/* Shared layout: small, readable public pages with a fixed brand background. */
:root {
  color-scheme: dark;
  --ink: #e9f2f7;
  --muted: #b8c9d1;
  --blue: #27a8ff;
  --copper: #ff8b39;
  --line: rgb(159 193 208 / 20%);
  --header-height: 84px;
  --site-gutter: clamp(20px, 3.2vw, 60px);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: #030910;
  color: var(--ink);
}
* { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-width: min(320px, 100%); min-height: 100svh; margin: 0; isolation: isolate; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.content-width { width: min(1080px, calc(100% - 80px)); margin-inline: auto; }
.site-atmosphere { position: fixed; z-index: -1; inset: 0; background: linear-gradient(180deg, rgb(3 9 16 / 28%), rgb(3 9 16 / 84%)), #030910 url("/assets/thrive-hex-hero-no-signal-v1.png") center / cover no-repeat; pointer-events: none; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; background: #0a1722; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 20; display: flex; min-height: var(--header-height); padding: 0 var(--site-gutter); align-items: center; justify-content: space-between; gap: 24px; background: rgb(3 9 16 / 60%); }
.site-wordmark { display: inline-flex; flex: none; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; white-space: nowrap; }
.site-wordmark img { display: block; flex: none; }
.brand-smallcaps { font-size: .78em; letter-spacing: .105em; }
.brand-smallcaps b { font-size: 1.28em; font-weight: inherit; }
.site-nav { display: flex; align-items: center; gap: clamp(0px, .8vw, 12px); }
.nav-item { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 650; color: var(--muted); }
.nav-item:hover, .nav-item[aria-current="page"] { color: var(--ink); background: rgb(39 168 255 / 10%); }
.nav-item[aria-current="page"] { box-shadow: inset 0 -2px var(--blue); }
.sign-in { color: var(--ink); border: 1px solid var(--line); margin-left: 8px; }
.menu-toggle { display: none; }
.header-pulse { position: absolute; right: 0; bottom: -4px; left: 0; height: 9px; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, transparent 4px, rgb(169 184 192 / 24%) 4px, rgb(169 184 192 / 24%) 5px, transparent 5px); }
.header-pulse::after { position: absolute; top: 4px; left: 0; width: 22%; height: 1px; content: ""; color: var(--copper); background: linear-gradient(90deg, transparent, currentColor 38%, currentColor 62%, transparent); box-shadow: 0 0 9px currentColor; animation: header-pulse 6s linear infinite; }
@keyframes header-pulse { 0% { color: var(--copper); transform: translateX(-110%); } 1% { color: var(--copper); } 2.8% { color: #f4fbff; } 5% { color: var(--blue); } 6.7%, 100% { color: var(--blue); transform: translateX(565%); } }

main { flex: 1; }
.page-content { padding-block: 64px 80px; }
.page-content > h1 { margin-bottom: 44px; }
.home-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; min-height: calc(100svh - 244px); padding-block: 48px 64px; text-align: center; }
.hero-logo { width: clamp(190px, 32vw, 340px); max-height: 46svh; object-fit: contain; filter: drop-shadow(0 18px 30px #0006); }
.home-slogan { max-width: 30ch; color: var(--ink); font-size: clamp(19px, 2.3vw, 26px); line-height: 1.45; text-wrap: balance; }
.app-showcase { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 28px 56px; }
.app-showcase + .app-showcase { padding-top: 56px; border-top: 1px solid var(--line); }
.app-copy p { max-width: 34ch; margin-top: 20px; }
.app-visual { display: flex; align-items: center; justify-content: center; padding: 28px; border-radius: 28px; background: radial-gradient(ellipse at center, rgb(30 77 104 / 32%), rgb(3 9 16 / 24%) 70%); }
.tablet-screen { width: min(100%, 320px); border: 10px solid #101b24; border-radius: 24px; box-shadow: 0 20px 48px #0008; }
.phone-pair { gap: 18px; padding-inline: 12px; }
.phone-screen { width: calc((100% - 18px) / 2); max-width: 200px; min-width: 0; border: 7px solid #101b24; border-radius: 22px; box-shadow: 0 16px 32px #0006; }
.assessment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.assessment-card { padding: 32px 30px 38px; text-align: center; background: rgb(8 22 33 / 85%); border: 1px solid var(--line); border-radius: 22px; }
.guide-stage { display: flex; align-items: center; justify-content: center; height: 360px; margin-bottom: 28px; }
.guide-stage img { width: 100%; height: 100%; object-fit: contain; }
.assessment-card p { max-width: 30ch; margin: 16px auto 0; font-size: 17px; }
.company { display: flex; flex-direction: column; justify-content: center; gap: 28px; min-height: calc(100svh - 244px); padding-block: 88px; }
.company h1 { max-width: 20ch; }
.company > p { max-width: 52ch; font-size: clamp(19px, 2.4vw, 24px); }
.faq-section { max-width: 800px; }
.faq { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgb(9 22 33 / 94%); }
.faq summary { padding: 22px 26px; cursor: pointer; font-size: 18px; font-weight: 600; line-height: 1.5; }
.faq summary::marker { color: var(--blue); }
.faq > div { padding: 0 26px 24px; }
.faq p { font-size: 17px; }
.faq p + p { margin-top: 12px; }
.faq a, .text-link { color: #81d0ff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer { width: 100%; display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, 570px); align-items: center; gap: 20px 40px; padding: 28px var(--site-gutter) 32px; border-top: 1px solid var(--line); background: rgb(3 9 16 / 60%); }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font-size: 16px; font-weight: 650; }
.footer-brand img { flex: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.site-footer .copyright { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; }
@media (max-width: 840px) {
  :root { --site-gutter: 24px; }
  .content-width { width: calc(100% - 48px); }
  .site-header { flex-wrap: wrap; gap: 0; }
  .site-wordmark { min-height: var(--header-height); font-size: 18px; }
  .site-nav { flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 4px; padding-bottom: 12px; }
  .navigation-ready .menu-toggle { display: flex; width: 44px; height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 50%; background: #0a1722; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .navigation-ready .site-nav { position: absolute; top: 100%; right: 16px; left: 16px; display: none; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #0a1722; box-shadow: 0 20px 40px #0006; }
  .navigation-ready .site-nav[data-open="true"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav .sign-in { margin: 6px 0 0; grid-column: 1 / -1; }
  .app-showcase { gap: 28px; }
  .app-visual { padding: 12px; }
  .phone-pair { gap: 12px; }
  .phone-screen { width: calc((100% - 12px) / 2); border-width: 5px; border-radius: 16px; }
  .guide-stage { height: 300px; }
  .assessment-card { padding: 24px 20px 30px; }
}
@media (max-width: 600px) {
  :root { --header-height: 74px; --site-gutter: 20px; }
  .content-width { width: calc(100% - 40px); }
  .page-content { padding-block: 40px 48px; }
  .page-content > h1 { margin-bottom: 28px; }
  .home-hero { min-height: calc(100svh - 302px); padding-block: 42px 50px; gap: 28px; }
  .hero-logo { width: min(66vw, 280px); }
  .app-showcase { grid-template-columns: 1fr; gap: 26px; padding-block: 0 40px; text-align: center; }
  .app-showcase + .app-showcase { padding-top: 40px; }
  .app-copy p { margin-inline: auto; margin-top: 14px; }
  .tablet-screen { max-width: 260px; }
  .phone-pair { max-width: 400px; margin-inline: auto; }
  .assessment-grid { grid-template-columns: 1fr; gap: 20px; }
  .guide-stage { height: 320px; margin-bottom: 20px; }
  .company { min-height: calc(100svh - 302px); padding-block: 64px; }
  .faq summary { padding: 20px; font-size: 17px; }
  .faq > div { padding: 0 20px 22px; }
  .site-footer { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 28px; }
  .site-footer nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-pulse::after { display: none; animation: none; }
}

/* Legal documents keep the brand while using a calm, readable text surface. */
.legal-page { padding-block: 56px 80px; }
.legal-intro { max-width: 900px; }
.eyebrow { color: var(--copper); font-size: 14px; font-weight: 650; letter-spacing: .06em; margin-bottom: 16px; }
.legal-intro h1 { font-size: clamp(34px, 4.4vw, 56px); }
.legal-date { margin-top: 20px; font-size: 16px; }
.legal-layout { margin-top: 36px; display: grid; grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 24px; padding-block: 8px; }
.legal-toc h2 { font-size: 19px; letter-spacing: 0; }
.legal-toc ol { list-style: none; margin: 16px 0 24px; padding: 0; }
.legal-toc li + li { margin-top: 4px; }
.legal-toc li a { display: block; padding-block: 7px; line-height: 1.4; font-size: 15px; color: var(--muted); }
.legal-toc li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal-copy { background: #081522; border: 1px solid var(--line); border-radius: 16px; padding: 36px; overflow-wrap: anywhere; }
.legal-copy section { scroll-margin-top: 28px; }
.legal-copy section + section { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 32px; }
.legal-copy h2 { font-size: clamp(23px, 2.3vw, 28px); line-height: 1.25; }
.legal-copy p { font-size: 17px; line-height: 1.75; margin-top: 16px; }
.legal-copy strong { color: var(--ink); }
.legal-copy a { color: #8ed5ff; text-decoration: underline; text-underline-offset: 4px; }
.legal-copy .back-top { margin-top: 36px; }
.site-footer nav { max-width: 570px; justify-content: flex-end; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
  .legal-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
}
@media (max-width: 600px) {
  .legal-page { padding-block: 36px 48px; }
  .legal-copy { padding: 24px 20px; }
  .legal-copy p { font-size: 16px; }
  .legal-toc ol { grid-template-columns: 1fr; margin-block: 12px 20px; }
  .legal-toc li a { min-height: 44px; display: flex; align-items: center; }
  .site-footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: start; gap: 8px 20px; }
  .site-footer nav a { white-space: normal; }
}
@media print {
  :root { color-scheme: light; background: white; color: black; }
  .site-atmosphere, .site-header, .site-footer, .skip-link, .legal-toc, .back-top { display: none; }
  body { min-width: 0; }
  .legal-page { width: 100%; margin: 0; padding: 0; }
  .legal-layout { display: block; }
  .legal-copy { background: white; border: 0; padding: 0; }
  .legal-copy p, .legal-copy strong, .legal-copy a, .legal-date, .eyebrow { color: black; }
  .legal-copy h2 { break-after: avoid; }
  .legal-copy p { orphans: 3; widows: 3; }
}
