@font-face {
  font-family: 'Playfair Display';
  src: url('/static/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('/static/fonts/playfair-display-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Scope the approved cinematic design to the hero; the study sections keep
   their existing layout, typography and light/dark appearance. */
#mainContent.sheets-hero {
  --sh-pad: clamp(24px, 4.5vw, 76px);
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  overflow: clip;
  padding: 0;
  z-index: 1;
  background: transparent;
  color: #f6f5f2;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  line-height: 1.7;
}
#mainContent.sheets-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9,6,23,.45), rgba(9,6,23,.45) 75%, rgba(9,6,23,0));
}
#mainContent.sheets-hero a { color: inherit; text-decoration: none; }
#mainContent.sheets-hero :is(a, button):focus-visible { outline: 2px solid #c5b8ee; outline-offset: 6px; }
#mainContent.sheets-hero .hero-motion-bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
#mainContent.sheets-hero .hero-paper-scene { position: absolute; inset: 0; }
#mainContent.sheets-hero picture { display: contents; }
#mainContent.sheets-hero .hero-paper-scene :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
#mainContent.sheets-hero .hero-paper-scene video { opacity: 0; }
#mainContent.sheets-hero .hero-paper-scene.has-frame video { opacity: 1; }
#mainContent.sheets-hero .sh-glass {
  background: rgba(22,21,32,.65);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
#mainContent.sheets-hero .sh-site-header {
  align-self: start;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 24px;
  padding: 28px var(--sh-pad);
  position: relative;
  z-index: 5;
}
#mainContent.sheets-hero .sh-brand {
  justify-self: start;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.025em;
}
#mainContent.sheets-hero .sh-brand-ai { font-weight: 400; opacity: .75; }
#mainContent.sheets-hero .sh-desktop-nav {
  position: static;
  grid-column: 2;
  display: flex;
  height: auto;
  padding: 5px;
  border-radius: 99px;
  gap: 2px;
  background: rgba(24,22,38,.22);
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#mainContent.sheets-hero .sh-desktop-nav a { font-size: 13px; font-weight: 500; padding: 12px 18px; border-radius: 99px; }
#mainContent.sheets-hero .sh-desktop-nav a:hover { background: rgba(255,255,255,.11); }
#mainContent.sheets-hero .sh-header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 26px; font-size: 13px; }
#mainContent.sheets-hero .sh-nav-cta { border-radius: 99px; display: flex; align-items: center; gap: 27px; min-height: 45px; padding: 0 20px; white-space: nowrap; }
#mainContent.sheets-hero .sh-login { padding: 12px 0; white-space: nowrap; }
#mainContent.sheets-hero .sh-login:hover { text-decoration: underline; }
#mainContent.sheets-hero .sh-account { display: none; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; max-width: 190px; }
#mainContent.sheets-hero #navUserAvatar { flex: 0 0 34px; width: 34px; height: 34px; }
#mainContent.sheets-hero #navUserEmail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mainContent.sheets-hero .nav-cta-hidden, .is-signed-in #mainContent.sheets-hero .sh-login { display: none; }
#mainContent.sheets-hero .sh-mobile-nav { display: none; }
#mainContent.sheets-hero .sh-hero-content { padding: 32px var(--sh-pad); display: flex; justify-content: center; }
#mainContent.sheets-hero .sh-hero-copy { width: 100%; max-width: 650px; text-align: center; }
#mainContent.sheets-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
}
#mainContent.sheets-hero h1 span { color: #e0dcf0; font-style: italic; }
#mainContent.sheets-hero .sh-hero-description { font-size: 18px; line-height: 1.65; color: #f6f5f2; margin: 18px auto 0; max-width: 540px; }
#mainContent.sheets-hero .sh-hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
#mainContent.sheets-hero .sh-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 54px;
  padding: 8px 9px 8px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 650;
  background: #f3f1f8;
  color: #1c1928;
  transition: background .2s, transform .2s;
}
#mainContent.sheets-hero .sh-button:hover { background: #fff; transform: translateY(-2px); }
#mainContent.sheets-hero .sh-arrow { display: grid; place-items: center; width: 36px; height: 36px; background: #e1dce9; border-radius: 50%; font-size: 20px; font-weight: 400; }
#mainContent.sheets-hero .sh-text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 100px;
  background: rgba(20,17,32,.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f6f5f2;
  font-size: 14px;
  font-weight: 500;
}
#mainContent.sheets-hero .sh-text-link:hover { background: rgba(20,17,32,.5); border-color: rgba(255,255,255,.55); }
#mainContent.sheets-hero .sh-hero-note { display: flex; justify-content: center; gap: 10px; color: #e3e1eb; font-size: 12px; margin: 12px 0 0; }
@media (max-width: 1100px) {
  #mainContent.sheets-hero .sh-site-header { gap: 18px; }
  #mainContent.sheets-hero .sh-desktop-nav a { padding: 11px 12px; }
  #mainContent.sheets-hero .sh-header-actions { gap: 17px; }
}
@media (max-width: 1100px) {
  #mainContent.sheets-hero .sh-site-header { display: flex; }
  #mainContent.sheets-hero .sh-desktop-nav { display: none; }
  #mainContent.sheets-hero .sh-header-actions { margin-left: auto; }
  #mainContent.sheets-hero .sh-mobile-nav { display: block; position: relative; }
  #mainContent.sheets-hero .sh-menu-button {
    cursor: pointer; width: 44px; height: 44px; border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  }
  #mainContent.sheets-hero .sh-menu-button span { display: block; width: 16px; height: 1px; background: #fff; }
  #mainContent.sheets-hero .sh-menu-button.active span:first-child { transform: translateY(3px) rotate(45deg); }
  #mainContent.sheets-hero .sh-menu-button.active span:last-child { transform: translateY(-3px) rotate(-45deg); }
  #mainContent.sheets-hero .sh-mobile-panel { display: none; position: absolute; top: 56px; right: 0; width: 240px; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 12px; background: #1c1b28; border: 1px solid #45414e; border-radius: 16px; }
  #mainContent.sheets-hero .sh-mobile-panel.open { display: block; }
  #mainContent.sheets-hero .sh-mobile-panel a { display: block; padding: 13px 12px; font-size: 13px; border-radius: 8px; }
  #mainContent.sheets-hero .sh-mobile-panel a:hover { background: #302d3d; }
  #mainContent.sheets-hero .sh-desktop-break { display: none; }
  #mainContent.sheets-hero .sh-hero-description { max-width: 480px; }
}
@media (max-width: 600px) {
  #mainContent.sheets-hero { --sh-pad: 24px; }
  #mainContent.sheets-hero::before,
  #mainContent.sheets-hero .hero-motion-bg::after { content: none; }
  #mainContent.sheets-hero .sh-site-header { padding-block: 20px; gap: 13px; }
  #mainContent.sheets-hero .sh-brand { font-size: 17px; }
  #mainContent.sheets-hero .sh-header-actions .sh-login { display: none; }
  #mainContent.sheets-hero .sh-nav-cta { min-height: 40px; padding-inline: 14px; font-size: 12px; gap: 12px; }
  #mainContent.sheets-hero .sh-menu-button { width: 40px; height: 40px; }
  #mainContent.sheets-hero .sh-hero-copy { max-width: 440px; }
  #mainContent.sheets-hero .sh-hero-description { margin-top: 20px; max-width: 325px; font-size: 17px; }
  #mainContent.sheets-hero .sh-hero-actions { gap: 12px 22px; margin-top: 20px; }
  #mainContent.sheets-hero .sh-button { min-height: 51px; padding-left: 20px; gap: 24px; }
  #mainContent.sheets-hero .sh-arrow { width: 34px; height: 34px; }
  #mainContent.sheets-hero .sh-text-link { min-height: 51px; }
  #mainContent.sheets-hero .sh-hero-note { flex-wrap: wrap; gap: 8px; }
  #mainContent.sheets-hero .sh-account { max-width: 125px; font-size: 12px; }
}
@media (max-width: 360px) {
  #mainContent.sheets-hero .sh-site-header { gap: 10px; }
  #mainContent.sheets-hero .sh-header-actions { display: none; }
  #mainContent.sheets-hero .sh-mobile-nav { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  #mainContent.sheets-hero .hero-paper-scene.has-frame video { opacity: 0; }
  #mainContent.sheets-hero .sh-button { transition: none; }
}
@media (prefers-contrast: more) {
  #mainContent.sheets-hero .sh-glass, #mainContent.sheets-hero .sh-text-link { background: #171322; border-color: #fff; }
}

#mainContent.sheets-hero .sh-brand-area { display: flex; align-items: center; gap: 16px; }
#mainContent.sheets-hero .sh-lite-control {
  position: absolute;
  right: var(--sh-pad);
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 3;
}
#mainContent.sheets-hero .sh-lite-control .lite-mode-toggle {
  min-height: 44px;
  padding: 8px 12px;
  background: rgba(22, 18, 35, .82);
  border-color: rgba(255, 255, 255, .24);
  color: #e3e1eb;
  font-size: 11px;
  font-weight: 500;
}
#mainContent.sheets-hero .sh-lite-control .lite-mode-toggle:hover {
  background: #292239;
  border-color: #b9a9d3;
}
#mainContent.sheets-hero .sh-lite-control .lite-mode-toggle[aria-pressed="true"] {
  background: #302442;
  border-color: #c2a9e2;
  color: #fff;
}
@media (max-width: 1100px) {
  #mainContent.sheets-hero .sh-mobile-nav { display: block; }
  #mainContent.sheets-hero .sh-site-header { display: flex; }
  #mainContent.sheets-hero .sh-desktop-nav { display: none; }
  #mainContent.sheets-hero .sh-header-actions { margin-left: auto; }
}
