:root {
  --ink: #102120;
  --muted: #5f706e;
  --teal: #278f8b;
  --teal-dark: #196d69;
  --mint: #dff1ee;
  --mist: #f3f8f7;
  --warm: #fbfaf6;
  --white: #fff;
  --line: rgba(16, 33, 32, .11);
  --shadow: 0 24px 70px rgba(28, 76, 73, .12);
  --radius: 28px;
  --content-width: 820px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--warm); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(251, 250, 246, .86); backdrop-filter: blur(18px); }
.site-header.scrolled { border-color: var(--line); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; display: inline-flex; align-items: center; }
.brand img { width: 164px; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.brand::after, .footer-top > a::after { content: ""; position: absolute; inset: 0; background: url("/assets/cortiloop-wordmark.png") center / 100% 100% no-repeat; clip-path: inset(0 13% 0 61%); pointer-events: none; }
.nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 14px; font-weight: 650; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta { padding: 10px 16px; color: white; background: var(--ink); border-radius: 999px; }
.menu-button, .mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before { content: ""; position: absolute; width: 650px; height: 650px; right: -210px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(58,159,156,.2), transparent 67%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--teal-dark); font-size: 11px; line-height: 1.2; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(48px, 6.8vw, 84px); line-height: .98; letter-spacing: -.065em; }
h1 em { color: var(--teal); font-style: normal; }
.hero-lead { max-width: 650px; margin-bottom: 30px; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 21px; border: 1px solid var(--line); border-radius: 14px; font-weight: 750; cursor: pointer; }
.button.primary { border-color: var(--teal); color: white; background: var(--teal); box-shadow: 0 14px 32px rgba(39,143,139,.22); }
.button.secondary { background: rgba(255,255,255,.66); }
.microcopy { margin-top: 16px; color: var(--muted); font-size: 13px; }

.hero-evidence { position: relative; padding: 28px 30px 30px; border: 1px solid rgba(58,159,156,.2); border-radius: 30px; background: linear-gradient(155deg, rgba(22,55,48,.96), rgba(8,28,23,.98)); box-shadow: 0 40px 90px rgba(0,0,0,.22); }
.hero-evidence::before { content: ""; position: absolute; width: 230px; height: 230px; right: -55px; top: -70px; border: 1px solid rgba(112,212,205,.12); border-radius: 50%; box-shadow: 0 0 0 48px rgba(112,212,205,.025); pointer-events: none; }
.evidence-topline { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--night-line); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.evidence-topline span { color: var(--night-muted); }
.evidence-topline strong { color: #75d2cc; }
.evidence-row { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--night-line); }
.evidence-index { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(112,212,205,.22); border-radius: 10px; color: #75d2cc; font-size: 10px; font-weight: 850; }
.evidence-row small, .daily-output small { display: block; color: #75d2cc; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.evidence-row h2 { margin: 4px 0 3px; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.evidence-row p { margin: 0; color: var(--night-muted); font-size: 12px; }
.daily-output { position: relative; display: grid; grid-template-columns: 1fr 118px; gap: 24px; padding-top: 24px; }
.daily-output strong { display: block; margin-top: 7px; font-size: 13px; line-height: 1.35; }
.daily-output p { align-self: end; margin: 0; color: var(--night-muted); font-size: 10px; line-height: 1.4; }
.daily-output p span { display: block; color: var(--night-text); font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }

.trust-strip { padding: 18px 0; border-block: 1px solid var(--line); background: white; }
.trust-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--teal); }
.section { padding: 104px 0; }
.section.soft { background: var(--mist); }
.section.dark { color: white; background: var(--ink); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: 1fr .75fr; gap: 70px; align-items: end; }
.section-heading h2, .content-hero h1 { margin: 15px 0 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.055em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.dark .section-heading p { color: rgba(255,255,255,.65); }
.step-grid, .feature-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card, .feature-card, .guide-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.step-card > span { color: var(--teal); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.step-card h3, .feature-card h3, .guide-card h3 { margin: 52px 0 12px; font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.step-card p, .feature-card p, .guide-card p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.feature-card { min-height: 310px; background: rgba(255,255,255,.72); }
.feature-card .icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--teal-dark); background: var(--mint); font-size: 20px; }
.feature-card h3 { margin-top: 48px; }
.principles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.principle-list { border-top: 1px solid rgba(255,255,255,.15); }
.principle { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.principle span { color: #7cd4cf; font-size: 12px; font-weight: 800; }
.principle h3 { margin-bottom: 5px; font-size: 21px; }
.principle p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }
.guide-card { display: block; transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card small { color: var(--teal-dark); font-weight: 800; letter-spacing: .1em; }
.guide-card h3 { margin-top: 32px; }
.guide-card b { display: block; margin-top: 24px; color: var(--teal-dark); font-size: 13px; }
.guides-editorial { max-width: var(--content-width); margin: 34px auto 0; }

.waitlist { position: relative; overflow: hidden; padding: 98px 0; color: white; background: var(--teal-dark); }
.waitlist::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -300px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.04), 0 0 0 140px rgba(255,255,255,.025); }
.waitlist-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .95fr; gap: 80px; align-items: center; }
.waitlist h2 { margin: 10px 0 18px; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.055em; }
.waitlist p { color: rgba(255,255,255,.72); }
.waitlist-form { padding: 26px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.field-row { display: flex; gap: 10px; }
.field-row input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; color: var(--ink); background: white; }
.field-row button { flex: 0 0 auto; min-height: 54px; padding: 0 20px; border: 0; border-radius: 13px; color: white; background: var(--ink); font-weight: 800; cursor: pointer; }
.field-row button:disabled { opacity: .6; cursor: wait; }
.form-consent { display: flex; gap: 10px; margin-top: 13px; color: rgba(255,255,255,.72); font-size: 12px; }
.form-consent a { color: white; text-decoration: underline; text-underline-offset: 2px; }
.form-message { min-height: 24px; margin: 12px 0 0; color: white !important; font-size: 13px; }
.hp-field { position: absolute; left: -9999px; }

.content-hero { padding: 72px 0 48px; }
.content-hero .container { max-width: var(--content-width); }
.content-hero p { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 19px; }
.content-wrap { max-width: var(--content-width); padding-top: 40px; padding-bottom: 100px; border-top: 1px solid var(--line); }
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap h2 { margin: 52px 0 14px; font-size: 32px; line-height: 1.15; letter-spacing: -.035em; }
.content-wrap h3 { margin: 32px 0 10px; font-size: 21px; }
.content-wrap p, .content-wrap li { color: var(--muted); }
.content-wrap a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.content-wrap .callout { margin: 38px 0; padding: 24px; border-left: 4px solid var(--teal); border-radius: 0 18px 18px 0; background: var(--mist); }
.content-wrap .callout p { margin: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 34px 0; }
.trust-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.55); }
.trust-card h2, .trust-card h3 { margin: 0 0 10px; font-size: 22px; }
.trust-card p { margin: 0; font-size: 14px; }
.source-list { padding-left: 20px; }
.source-list li { margin-bottom: 12px; }
.source-list a { overflow-wrap: anywhere; }
.editorial-note { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; }
.editorial-note p { margin: 0; font-size: 14px; }
.faq-list { margin: 34px 0; border-top: 1px solid var(--line); }
.faq-list details { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { color: var(--night-text); font-size: 19px; font-weight: 750; line-height: 1.3; cursor: pointer; }
.faq-list details p { margin: 14px 0 0; }
.breadcrumbs { margin-bottom: 25px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--teal-dark); }
.page-meta { margin-top: 22px; color: var(--muted); font-size: 13px; }
.legal-note { padding: 18px 20px; border-radius: 15px; background: var(--mist); }

footer { padding: 42px 0 28px; border-top: 1px solid var(--line); background: white; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 30px; }
.footer-top > a { position: relative; display: inline-flex; align-items: center; }
.footer-top img { width: 148px; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .96; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-button { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; color: var(--ink); background: white; font-weight: 750; }
  .mobile-nav.open { display: grid; gap: 12px; padding: 15px 20px 22px; border-top: 1px solid var(--line); background: var(--warm); }
  .hero-grid, .waitlist-grid, .principles { grid-template-columns: 1fr; }
  .hero { padding-top: 58px; }
  .hero-grid { gap: 30px; }
  .hero-evidence { max-width: 680px; }
  .section-heading.split { grid-template-columns: 1fr; gap: 18px; }
  .step-grid, .feature-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1160px); }
  .nav-wrap { min-height: 64px; }
  .brand img { width: 142px; }
  h1 { font-size: 48px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-evidence { padding: 22px 20px; border-radius: 22px; }
  .evidence-topline { align-items: flex-start; flex-direction: column; gap: 7px; }
  .evidence-row { grid-template-columns: 36px 1fr; gap: 11px; padding: 18px 0; }
  .daily-output { grid-template-columns: 1fr 90px; gap: 14px; }
  .trust-row { display: grid; grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .step-grid, .feature-grid, .guide-grid { grid-template-columns: 1fr; }
  .step-card h3, .feature-card h3 { margin-top: 30px; }
  .field-row { display: grid; }
  .field-row button { width: 100%; }
  .waitlist { padding: 72px 0; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
}

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

/* Dark theme */
:root {
  color-scheme: dark;
  --night: #071310;
  --night-soft: #0b1b17;
  --night-card: #10241f;
  --night-line: rgba(218, 239, 233, .12);
  --night-text: #eef7f4;
  --night-muted: #93aaa4;
}

body { color: var(--night-text); background: var(--night); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #70d4cd; outline-offset: 3px; }
.site-header { background: rgba(7, 19, 16, .86); }
.site-header.scrolled { border-color: var(--night-line); }
.brand img, .footer-top img { height: auto; }
.nav, .microcopy, .breadcrumbs, .page-meta { color: var(--night-muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--night-text); }
.nav .nav-cta { color: #fff; background: var(--teal-dark); }
.hero { background: radial-gradient(circle at 82% 25%, rgba(58,159,156,.10), transparent 38%); }
.hero::before { background: radial-gradient(circle, rgba(58,159,156,.2), transparent 67%); }
.hero-lead, .section-heading p, .content-hero p, .content-wrap p, .content-wrap li { color: var(--night-muted); }
.button.secondary { color: var(--night-text); border-color: var(--night-line); background: var(--night-card); }
.trust-strip { border-color: var(--night-line); background: #091713; }
.trust-row { color: #a9bdb8; }
.section.soft { background: var(--night-soft); }
.step-card, .feature-card, .guide-card { border-color: var(--night-line); background: linear-gradient(155deg, #112620, #0c1d19); }
.step-card p, .feature-card p, .guide-card p { color: var(--night-muted); }
.feature-card .icon { color: #a7e2dd; background: rgba(58,159,156,.18); }
.guide-card small, .guide-card b { color: #74d0ca; }
.guide-card:hover { border-color: rgba(112,212,205,.32); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.section.dark { background: #040c0a; }
.waitlist { background: linear-gradient(135deg, #164e49, #0c3531); }
.waitlist-form { background: rgba(7,19,16,.3); }
.field-row input { color: var(--ink); background: #fff; }
.field-row button { color: #fff; background: var(--night); }
.content-wrap .callout, .legal-note { background: var(--night-card); }
.content-wrap { border-top-color: var(--night-line); }
.trust-card { border-color: var(--night-line); background: var(--night-card); }
.editorial-note, .faq-list, .faq-list details { border-color: var(--night-line); }
.content-wrap .callout { border-left-color: #70d4cd; }
.content-wrap a, .breadcrumbs a { color: #7ad4ce; }
footer { border-color: var(--night-line); background: #040c0a; }
.footer-links, .footer-bottom { color: var(--night-muted); }
.footer-bottom { border-color: var(--night-line); }

@media (max-width: 900px) {
  .menu-button { color: var(--night-text); border-color: var(--night-line); background: var(--night-card); }
  .mobile-nav.open { color: var(--night-text); border-color: var(--night-line); background: var(--night-soft); }
}

@media (max-width: 620px) {
  .content-hero { padding: 46px 0 36px; }
  .content-hero p { font-size: 17px; }
  .content-wrap { padding-top: 32px; padding-bottom: 72px; }
  .trust-grid, .editorial-note { grid-template-columns: 1fr; }
}
