/* Canonical homepage navigation and footer, shared with every marketing route. */
@font-face {
  font-family: "Tone Shell Inter";
  src: url("/tone-research/assets/inter-medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

.tone-site-shell {
  --shell-gutter: 40px;
  --shell-text: var(--ink);
  --shell-muted: var(--ink-2);
  --shell-line: var(--line);
  color: var(--shell-text);
  color-scheme: inherit;
  font-family: var(--font-marketing-body, "Tone Shell Inter"), Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
  font-synthesis: none;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.tone-site-shell, .tone-site-shell * { box-sizing: border-box; }
.tone-site-shell a { color: inherit; text-decoration: none; }
.tone-site-shell button { font: inherit; color: inherit; cursor: pointer; }
.tone-site-shell button:disabled { cursor: default; }
.tone-site-shell :is(a, button) { -webkit-tap-highlight-color: transparent; }
.tone-site-shell :is(a, button):focus-visible { outline: 2px solid var(--tone-focus); outline-offset: 6px; }
.tone-site-shell img { display: block; max-width: 100%; }
.tone-site-shell p { margin: 0; }

.tone-site-shell.site-header { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color 240ms ease; }
.tone-site-shell.site-header.is-scrolled { background: var(--tone-nav); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tone-site-shell .nav-shell { max-width: 1440px; margin: auto; padding: 12px var(--shell-gutter); display: flex; align-items: center; min-height: 65px; }
.tone-site-shell .brand { flex: 1; display: flex; align-items: center; }
.tone-site-shell .desktop-nav { display: flex; flex: 1.3; gap: 48px; }
.tone-site-shell .desktop-nav a { min-width: 120px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); transition: color .2s; }
.tone-site-shell .desktop-nav a:hover, .tone-site-shell .text-button:hover { color: var(--ink); }
.tone-site-shell .nav-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.tone-site-shell .text-button { border: 0; background: none; padding: 10px 0; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; }
.tone-site-shell .pill.small { border: 0; border-radius: 40px; background: transparent; color: var(--shell-text); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 8px 12px; font-size: 14px; font-weight: 500; line-height: 16px; letter-spacing: 0; white-space: nowrap; transition: color .18s ease-out; }
.tone-site-shell .pill.small:hover { background: transparent; color: var(--shell-muted); transform: none; }
.tone-site-shell .pill.small:active { background: transparent; color: var(--shell-muted); transform: none; }
.tone-site-shell .menu-toggle, .tone-site-shell .mobile-nav { display: none; }
.tone-site-shell .mobile-nav[hidden] { display: none; }

.tone-site-shell .brand-swap { width: 66px; height: 32px; position: relative; display: inline-grid; align-items: center; justify-items: start; }
.tone-site-shell .brand-swap .t-icon { grid-area: 1 / 1; transform-origin: left center; transition: opacity 280ms cubic-bezier(.22,1,.36,1), filter 280ms cubic-bezier(.22,1,.36,1), transform 280ms cubic-bezier(.22,1,.36,1); will-change: opacity, filter, transform; }
.tone-site-shell .brand-swap[data-state="a"] [data-icon="a"],
.tone-site-shell .brand-swap[data-state="b"] [data-icon="b"] { opacity: 1; filter: blur(0); transform: scale(1); }
.tone-site-shell .brand-swap[data-state="a"] [data-icon="b"],
.tone-site-shell .brand-swap[data-state="b"] [data-icon="a"] { opacity: 0; filter: blur(2px); transform: scale(.82); }

.tone-site-shell.site-footer { border-top: 1px solid var(--shell-line); }
.tone-site-shell .footer-shell { max-width: 1440px; margin-inline: auto; padding: 40px var(--shell-gutter) 32px; display: grid; grid-template-columns: 320px 1fr auto; column-gap: 140px; row-gap: 110px; }
.tone-site-shell .footer-brand { width: max-content; }
.tone-site-shell .footer-links { display: flex; flex-direction: column; gap: 40px; }
.tone-site-shell .footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tone-site-shell .footer-group h2 { font-family: var(--font-marketing-body, "Tone Shell Inter"), Inter, Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; color: var(--shell-muted); margin: 9px 0 17px; }
.tone-site-shell .footer-group :is(button,a),
.tone-site-shell .footer-social :is(button,a),
.tone-site-shell .footer-legal :is(button,a) { border: 0; border-radius: 0; padding: 0; background: none; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; display: flex; gap: 8px; align-items: center; text-align: left; transition: color .2s; }
.tone-site-shell .footer-group :is(button,a):hover,
.tone-site-shell .footer-social :is(button,a):hover,
.tone-site-shell .footer-legal :is(button,a):hover { color: var(--tone-accent); }
.tone-site-shell .footer-social { display: flex; gap: 40px; align-items: flex-start; }
.tone-site-shell .footer-social :is(button,a),
.tone-site-shell .footer-legal :is(button,a),
.tone-site-shell .copyright { color: var(--shell-muted); font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; }
.tone-site-shell .copyright, .tone-site-shell .footer-legal { align-self: end; }
.tone-site-shell .footer-legal { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.tone-site-shell .footer-legal a { white-space: nowrap; }
.tone-site-shell .back-to-top { justify-self: end; align-self: end; transition: transform .3s; }
.tone-site-shell .back-to-top:hover { transform: translateY(-4px); }
.tone-site-shell .footer-group button[data-pending-action]:hover { color: inherit; }
.tone-site-shell .footer-social button[data-pending-action]:hover,
.tone-site-shell .footer-legal button[data-pending-action]:hover { color: var(--shell-muted); }

@media (max-width: 1100px) {
  .tone-site-shell .desktop-nav { gap: 30px; }
  .tone-site-shell .desktop-nav a { min-width: auto; }
  .tone-site-shell .contact-button { display: none; }
  .tone-site-shell .footer-shell { grid-template-columns: 210px 1fr auto; column-gap: 60px; }
  .tone-site-shell .footer-social { gap: 24px; }
}

@media (max-width: 767px) {
  .tone-site-shell { --shell-gutter: 24px; }
  .tone-site-shell.site-header { transition: transform 240ms cubic-bezier(.22,1,.36,1), background-color 200ms ease; }
  .tone-site-shell.site-header.menu-open { background: var(--tone-nav); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .tone-site-shell.site-header.is-nav-hidden { transform: translateY(-100%); pointer-events: none; }
  .tone-site-shell .nav-shell { min-height: 72px; padding-block: 18px; }
  .tone-site-shell .desktop-nav { display: none; }
  .tone-site-shell .nav-actions { gap: 18px; }
  .tone-site-shell .brand { flex: 1; }
  .tone-site-shell .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 24px; height: 32px; background: none; border: 0; padding: 0; }
  .tone-site-shell .menu-toggle span { height: 1px; width: 22px; background: var(--shell-text); transition: transform .2s; }
  .tone-site-shell .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .tone-site-shell .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .tone-site-shell .mobile-nav { --menu-close-dur: 260ms; display: grid; grid-template-rows: 0fr; padding: 0; gap: 0; overflow: hidden; border: 0; background: transparent; box-shadow: none; transition: grid-template-rows var(--menu-close-dur) cubic-bezier(.22,1,.36,1); }
  .tone-site-shell .mobile-nav.is-shown { grid-template-rows: 1fr; transition-duration: 420ms; }
  .tone-site-shell .mobile-nav-inner { min-height: 0; overflow: hidden; }
  .tone-site-shell .mobile-nav-links { display: flex; flex-direction: column; gap: 24px; padding: 24px; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .tone-site-shell .mobile-nav a { font-size: 20px; font-weight: 500; line-height: normal; letter-spacing: normal; text-align: left; background: none; border: 0; padding: 0; }
  .tone-site-shell .t-stagger-line { opacity: 0; transform: translateY(6px); filter: blur(2px); transition: opacity 320ms cubic-bezier(.22,1,.36,1), transform 320ms cubic-bezier(.22,1,.36,1), filter 320ms cubic-bezier(.22,1,.36,1); }
  .tone-site-shell .mobile-nav.is-shown .t-stagger-line { opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: calc(70ms + var(--nav-index,0) * 35ms); }
  .tone-site-shell .mobile-nav.is-hiding .t-stagger-line { opacity: 0; transform: translateY(0); filter: blur(0); transition: opacity 200ms ease, transform 0s linear, filter 0s linear; transition-delay: 0s; }
  .tone-site-shell .footer-shell { grid-template-columns: minmax(80px,.8fr) minmax(0,1.2fr); column-gap: 24px; row-gap: 40px; padding-top: 32px; }
  .tone-site-shell .footer-brand { grid-column: 1; }
  .tone-site-shell .footer-links { grid-column: 2; grid-row: 1 / 3; gap: 28px; }
  .tone-site-shell .footer-social { grid-column: 1; grid-row: 2; flex-direction: column; gap: 16px; }
  .tone-site-shell .footer-group h2 { margin-top: 0; margin-bottom: 8px; }
  .tone-site-shell .copyright { grid-column: 1; grid-row: 3; }
  .tone-site-shell .footer-legal { grid-column: 2; grid-row: 3; flex-direction: column; gap: 10px; }
  .tone-site-shell .back-to-top { grid-column: 1; grid-row: 4; justify-self: start; }
}

@media (max-width: 390px) {
  .tone-site-shell { --shell-gutter: 20px; }
  .tone-site-shell .nav-actions { gap: 12px; }
}

@media (max-width: 374px) {
  .tone-site-shell .pill.small { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .tone-site-shell, .tone-site-shell *, .tone-site-shell *::before, .tone-site-shell *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Top-layer sign-in keeps the current public page visible and inert behind it. */
.tone-preview-dialog { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; overflow:hidden; }
.tone-preview-dialog::backdrop { background:var(--tone-scrim); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
.tone-preview-dialog iframe { color-scheme:inherit; display:block; width:100%; height:100%; border:0; background:transparent; }

.waitlist-dot { display:inline-block; width:22px; height:22px; flex-shrink:0; border-radius:50%; background:#9b8066; }
.voice-library-dot { display:inline-block; width:22px; height:22px; flex-shrink:0; border-radius:50%; background:#95918d; }
.footer-group button[data-open-waitlist] { display:flex; align-items:center; gap:10px; }

/* One surface rule shared by the nav and library controls; kept outside CSS Modules. */
.tone-site-shell.site-header.is-scrolled,
.tone-site-shell.site-header.menu-open {
  background:var(--tone-nav);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}
/* Approved panel navigation, shared across the public site. */
.tone-site-shell.site-header .desktop-nav { display:none; }
.tone-site-shell.site-header .menu-toggle { display:grid; place-items:center; width:32px; height:36px; border:0; padding:4px; background:none; }
.tone-nav-preview { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; border:0; padding:0; overflow:hidden; background:transparent; }
.tone-nav-preview::backdrop { background:rgba(0,0,0,0); transition:background 350ms ease; }
.tone-nav-preview.is-open::backdrop { background:var(--tone-scrim); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.nav-preview-panel { position:absolute; top:16px; right:16px; bottom:16px; width:min(600px,calc(100% - 32px)); padding:28px; border-radius:28px; background:var(--tone-panel); display:flex; flex-direction:column; overflow-y:auto; overscroll-behavior:contain; clip-path:inset(0 0 100% 0 round 28px); transition:clip-path 350ms cubic-bezier(.76,0,.24,1); }
.is-open .nav-preview-panel { clip-path:inset(0 0 0 0 round 28px); transition-duration:450ms; }
.nav-preview-top { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:40px; color:var(--shell-muted); font-size:14px; }
.nav-preview-close { flex-shrink:0; position:relative; width:44px; height:44px; border:0; border-radius:50%; background:var(--paper-raised); }
.nav-preview-close span { position:absolute; width:20px; height:1.5px; background:var(--shell-text); left:12px; top:21px; transform:rotate(45deg); }
.nav-preview-close span:last-child { transform:rotate(-45deg); }
.nav-preview-primary { display:flex; flex-direction:column; gap:12px; }
.tone-nav-preview .nav-preview-primary :is(a,button) { font-family:var(--font-marketing-body, "Tone Shell Inter"),Inter,sans-serif; font-size:clamp(30px,4vw,48px); line-height:1.1; letter-spacing:-.035em; }
.nav-preview-primary :is(a,button),.nav-preview-bottom { opacity:0; transform:translateY(-12px); transition:opacity 160ms ease,transform 250ms cubic-bezier(.22,1,.36,1); }
.is-open .nav-preview-primary :is(a,button),.is-open .nav-preview-bottom { opacity:1; transform:translateY(0); transition-duration:350ms; transition-delay:180ms; }
.is-open .nav-preview-primary :is(a,button):nth-child(2) { transition-delay:215ms; }
.is-open .nav-preview-primary :is(a,button):nth-child(3) { transition-delay:250ms; }
.is-open .nav-preview-primary :is(a,button):nth-child(4) { transition-delay:285ms; }
.nav-preview-bottom { margin-top:auto; padding-top:56px; display:grid; gap:28px; }
.nav-preview-group { display:grid; grid-template-columns:1fr 1fr; gap:24px; font-size:14px; line-height:22px; }
.nav-preview-group > span { color:var(--shell-muted); }
.nav-preview-group > div { display:grid; gap:8px; }
.tone-nav-preview .nav-preview-cta { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--shell-line); padding:24px 0 0; font-size:16px; }
.tone-nav-preview a { color:var(--shell-text); }
.tone-nav-preview a:hover { color:var(--tone-accent); }
.tone-nav-preview button[data-open-waitlist] { color:var(--tone-accent); }
.nav-preview-primary button { border:0; padding:0; background:none; text-align:left; }
.nav-preview-label { transition:opacity 180ms ease-out,color 180ms ease-out; }
.tone-nav-preview button[data-open-waitlist]:hover .nav-preview-label { opacity:.6; }
.tone-nav-preview .nav-preview-close:focus { outline:none; box-shadow:none; }
.tone-nav-preview .nav-preview-close:is(:hover,:focus-visible) { background:var(--paper-inset); }
.is-open .nav-preview-primary :is(a,button):nth-child(5) { transition-delay:320ms; }
@media(max-width:767px) { .nav-preview-panel { inset:8px; width:auto; padding:20px; } .nav-preview-top { margin-bottom:36px; } .tone-nav-preview .nav-preview-primary :is(a,button) { font-size:32px; } .nav-preview-bottom { padding-top:40px; } }
@media(prefers-reduced-motion:reduce) { .tone-nav-preview::backdrop { transition:none; } }

@media(max-height:650px) { .nav-preview-top { margin-bottom:24px; } .nav-preview-bottom { gap:20px; padding-top:24px; } }

/* Keep the document width stable while the modal locks scrolling. */
html { scrollbar-gutter:stable; }
.tone-nav-preview .nav-preview-primary :is(a,button),.tone-nav-preview .nav-preview-bottom { transition-delay:0ms; }
.tone-nav-preview.is-open .nav-preview-primary :is(a,button),.tone-nav-preview.is-open .nav-preview-bottom { transition-delay:180ms; }
.tone-nav-preview.is-open .nav-preview-primary :nth-child(2) { transition-delay:215ms; }
.tone-nav-preview.is-open .nav-preview-primary :nth-child(3) { transition-delay:250ms; }
.tone-nav-preview.is-open .nav-preview-primary :nth-child(4) { transition-delay:285ms; }
.tone-nav-preview.is-open .nav-preview-primary :nth-child(5) { transition-delay:320ms; }

/* Keep the sticky library surface continuous with the full-width navigation. */
.tone-marketing .tone-library-toolbar{background:transparent;backdrop-filter:none;isolation:isolate}
.tone-marketing .tone-library-toolbar::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background:var(--tone-nav);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);pointer-events:none}

/* The iframe owns the panel; its native parent dialog owns the page scrim. */
.tone-preview-dialog[open]::backdrop{animation:tonePreviewScrimIn 340ms cubic-bezier(.22,1,.36,1) backwards}
@keyframes tonePreviewScrimIn{from{background-color:transparent;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}to{background-color:var(--tone-scrim);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}}
@media(prefers-reduced-motion:reduce){.tone-preview-dialog[open]::backdrop{animation:none}}
