:root {
  color-scheme: dark;
  --ink: #f5f7fb;
  --muted: #9ca9bc;
  --muted-strong: #c0cad8;
  --line: rgba(255, 255, 255, 0.12);
  --surface: #111d2e;
  --surface-strong: #17263a;
  --canvas: #08111f;
  --canvas-deep: #060c16;
  --accent: #567be0;
  --accent-bright: #7091ed;
  --accent-soft: rgba(86, 123, 224, 0.16);
  --max-width: 1160px;
  --copy-width: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-bright); text-underline-offset: 3px; }
a:hover { color: #9bb3ff; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(112, 145, 237, 0.55); outline-offset: 4px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 17, 31, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.28em;
  font-size: 13px;
  font-weight: 760;
}

.brand-mark { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark img { width: 28px; height: 28px; border-radius: 8px; display: block; }

.header-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.header-nav a { color: var(--muted-strong); text-decoration: none; }
.header-nav a:hover { color: var(--ink); }
.landing-nav .nav-cta { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.landing-main { width: min(calc(100% - 64px), var(--max-width)); margin: 0 auto; }

.landing-hero {
  min-height: 720px;
  padding: 110px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  align-items: center;
  gap: 78px;
}

.eyebrow { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.3; font-weight: 780; letter-spacing: 0.22em; text-transform: uppercase; }
.eyebrow-blue { color: #89a5f0; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; }
h1, .section-heading h2, .statement-panel h2, .privacy-copy h2, .legal-panel h2 { font-family: Iowan Old Style, Baskerville, Georgia, serif; font-weight: 500; }

.hero-copy h1 { max-width: 640px; margin: 22px 0 24px; font-size: clamp(58px, 7vw, 92px); line-height: 0.98; }
.hero-lede { max-width: 560px; margin-bottom: 34px; color: var(--muted-strong); font-size: 20px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 720; text-decoration: none; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 10px 28px rgba(61, 93, 188, 0.28); }
.button-primary:hover { color: #fff; background: var(--accent-bright); }
.button-primary span { margin-left: 12px; font-size: 18px; }
.button-quiet { color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.button-quiet:hover { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 27px 0 0; color: var(--muted); font-size: 13px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 5px rgba(112, 145, 237, 0.12); }

.hero-art { position: relative; min-height: 590px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 530px; height: 530px; border-radius: 50%; background: radial-gradient(circle, rgba(81, 121, 226, 0.2), rgba(81, 121, 226, 0) 68%); filter: blur(10px); }
.dashboard-shell { position: relative; width: min(100%, 500px); padding: 27px 28px 30px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 34px; background: linear-gradient(145deg, rgba(25, 42, 65, 0.96), rgba(10, 19, 32, 0.98)); box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.dashboard-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 25% 70%, rgba(86, 123, 224, 0.07)); }
.dashboard-topline, .dashboard-heading, .week-card-heading, .week-card-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.dashboard-topline { color: #aab8cc; font-size: 11px; font-weight: 760; letter-spacing: .24em; }
.topline-status { display: flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: .14em; }
.topline-status i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #8da6ed; }
.dashboard-heading { margin: 34px 0 18px; align-items: flex-start; }
.dashboard-kicker, .dose-card-label { margin: 0 0 7px; color: #8494ab; font-size: 10px; font-weight: 760; letter-spacing: .18em; }
.dashboard-heading h2 { margin: 0; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 40px; line-height: 1; font-weight: 500; }
.dashboard-avatar { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #b7c8ef; font-weight: 700; background: rgba(86, 123, 224, .15); }
.dashboard-card { position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; background: rgba(8, 16, 29, .34); }
.dose-card { padding: 22px 22px 20px; text-align: center; }
.ring-wrap { display: grid; place-items: center; margin: 2px 0 19px; }
.ring { display: grid; place-items: center; width: 194px; height: 194px; padding: 11px; border-radius: 50%; background: conic-gradient(var(--accent-bright) 0 56%, rgba(255, 255, 255, .1) 56% 100%); box-shadow: 0 0 34px rgba(80, 125, 229, .16); transform: rotate(-35deg); }
.ring-center { display: flex; width: 100%; height: 100%; transform: rotate(35deg); border-radius: 50%; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 30%, #18304e, #0b1728 72%); }
.ring-center strong { color: var(--ink); font-size: 30px; letter-spacing: -.04em; line-height: 1; }
.ring-center span { margin-top: 10px; color: #a6b9ef; font-size: 14px; font-weight: 700; }
.ring-center small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dashboard-action { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border-radius: 14px; color: #fff; background: var(--accent); font-size: 15px; font-weight: 730; }
.dashboard-action span { font-size: 22px; font-weight: 400; }
.dashboard-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 13px 0; }
.dashboard-metrics > div { min-width: 0; padding: 15px 13px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; background: rgba(255, 255, 255, .045); }
.dashboard-metrics strong { display: block; color: #fff; font-size: 23px; line-height: 1; }
.dashboard-metrics span { display: block; margin-top: 8px; overflow: hidden; color: #8799b1; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.week-card { padding: 18px 18px 16px; }
.week-card-heading { color: #92a2ba; font-size: 10px; font-weight: 760; letter-spacing: .18em; }
.week-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 18px 2px 12px; }
.week-dots i { display: block; height: 9px; border-radius: 99px; background: #2a394c; }
.week-dots i.complete { background: #91a7da; }
.week-dots i.today { background: var(--accent-bright); box-shadow: 0 0 0 5px rgba(112, 145, 237, .12); }
.week-card-footer { color: #8598b1; font-size: 11px; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip > div { min-height: 112px; padding: 27px 27px 25px 0; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-content: center; }
.trust-strip > div + div { padding-left: 27px; border-left: 1px solid var(--line); }
.trust-index { grid-row: span 2; color: var(--accent-bright); font-size: 12px; font-weight: 760; letter-spacing: .08em; }
.trust-strip strong { font-size: 15px; font-weight: 680; }
.trust-strip span:last-child { color: var(--muted); font-size: 13px; }

.landing-section { padding: 150px 0; }
.section-heading { max-width: 780px; margin-bottom: 55px; }
.section-heading h2 { margin: 20px 0 18px; font-size: clamp(46px, 5vw, 70px); line-height: .99; }
.section-heading > p:last-child { max-width: 610px; margin-bottom: 0; color: var(--muted-strong); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature-card { min-height: 350px; padding: 25px 23px; position: relative; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); }
.feature-card:hover { border-color: rgba(112, 145, 237, .5); background: linear-gradient(180deg, rgba(86, 123, 224, .12), rgba(255, 255, 255, .02)); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(112, 145, 237, .33); border-radius: 15px; color: var(--accent-bright); background: var(--accent-soft); }
.feature-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.feature-number { position: absolute; top: 31px; right: 23px; color: #62718a; font-size: 11px; font-weight: 760; letter-spacing: .12em; }
.feature-card h3 { margin: 73px 0 12px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 27px; font-weight: 500; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.method-section { padding-top: 0; }
.compact-heading { margin-bottom: 38px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step-card { display: grid; grid-template-columns: 44px 1fr; gap: 17px; min-height: 172px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.step-card > span { color: var(--accent-bright); font-size: 12px; font-weight: 780; letter-spacing: .1em; }
.step-card h3 { margin: 0 0 9px; font-size: 19px; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.statement-panel { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: start; padding: 72px 74px; border-radius: 30px; background: #f2f4f8; color: #101722; }
.statement-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 34px; box-shadow: 0 12px 22px rgba(65, 96, 186, .25); }
.statement-panel .eyebrow { color: #5072cc; }
.statement-panel h2 { max-width: 700px; margin: 18px 0 17px; font-size: clamp(42px, 4.8vw, 67px); line-height: .99; }
.statement-panel p:last-child { max-width: 620px; margin: 0; color: #5f6c7e; font-size: 17px; }

.privacy-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; padding: 150px 0; }
.privacy-copy h2, .legal-panel h2 { margin: 20px 0 16px; font-size: clamp(45px, 5vw, 66px); line-height: 1; }
.privacy-copy > p:not(.eyebrow) { max-width: 500px; margin-bottom: 25px; color: var(--muted-strong); font-size: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; text-decoration: none; }
.text-link span { font-size: 20px; }
.privacy-panel { padding: 33px; border: 1px solid rgba(112, 145, 237, .32); border-radius: 26px; background: linear-gradient(145deg, rgba(86, 123, 224, .2), rgba(17, 29, 46, .9) 65%); }
.privacy-panel-top { display: flex; align-items: center; gap: 12px; color: #a7bbf2; font-size: 11px; font-weight: 780; letter-spacing: .18em; }
.shield { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(168, 190, 250, .55); border-radius: 50%; color: #fff; font-size: 16px; }
.privacy-panel p { margin: 30px 0 29px; font-family: Iowan Old Style, Baskerville, Georgia, serif; color: #fff; font-size: 32px; line-height: 1.1; }
.privacy-rule { height: 1px; margin-bottom: 19px; background: rgba(255, 255, 255, .16); }
.privacy-panel small { display: block; color: #aab8cc; font-size: 12px; line-height: 1.55; }

.legal-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 54px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-panel h2 { max-width: 490px; margin-bottom: 0; }
.legal-panel-links { display: flex; flex-direction: column; }
.legal-panel-links a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 650; text-decoration: none; }
.legal-panel-links a:first-child { border-top: 1px solid var(--line); }
.legal-panel-links a span:last-child { color: var(--accent-bright); font-size: 20px; }

.site-footer { color: var(--muted); }
.landing-footer { width: min(calc(100% - 64px), var(--max-width)); margin: 0 auto; padding: 48px 0 34px; }
.footer-inner { display: flex; align-items: center; gap: 26px; }
.footer-inner > p { margin: 0; font-family: Iowan Old Style, Baskerville, Georgia, serif; color: var(--muted-strong); font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; font-size: 12px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 45px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 11px; }

/* Legal document pages keep a bright, long-form reading surface. */
body.legal-page {
  color-scheme: light;
  --ink: #10141c;
  --muted: #657084;
  --line: #dde2ea;
  --surface: #ffffff;
  --canvas: #f2f4f7;
  --accent: #4f70c4;
  --accent-soft: #eef2ff;
}
body.legal-page .site-header { border-bottom-color: rgba(16, 20, 28, .08); background: rgba(255, 255, 255, .92); }
body.legal-page .header-inner { width: min(calc(100% - 40px), var(--copy-width)); min-height: 68px; }
body.legal-page .brand { color: var(--ink); }
body.legal-page .header-nav a { color: var(--muted); }
body.legal-page .header-nav a[aria-current="page"] { color: var(--ink); }
body.legal-page main { width: min(calc(100% - 40px), var(--copy-width)); margin: 42px auto 72px; }
.document { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: 0 22px 70px rgba(20, 29, 45, .08); }
.document-hero { padding: 48px 52px 40px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 88% 10%, rgba(95, 120, 189, .18), transparent 34%), linear-gradient(180deg, #fff 0%, #fafbff 100%); }
.document-hero .eyebrow { color: var(--accent); }
.document-hero h1 { margin: 0 0 15px; color: var(--ink); font-size: clamp(42px, 6vw, 68px); line-height: 1; }
.lede { max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.meta span + span { padding-left: 18px; border-left: 1px solid var(--line); }
.document-body { padding: 48px 52px 56px; }
.document-body section + section { margin-top: 47px; padding-top: 42px; border-top: 1px solid var(--line); }
.document-body h2 { margin: 0 0 15px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; font-size: 25px; font-weight: 760; letter-spacing: -.02em; }
.document-body h3 { margin: 25px 0 8px; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; font-size: 18px; font-weight: 740; letter-spacing: -.01em; }
.document-body p, .document-body li { color: #434d5c; }
.document-body p { margin-bottom: 15px; }
.document-body ul { margin: 12px 0 0; padding-left: 23px; }
.document-body li + li { margin-top: 8px; }
.callout { margin: 22px 0; padding: 18px 20px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-soft); }
.callout p { margin: 0; color: #2b3d68; }
.document-body a { color: #385eae; }
.document-body a:hover { color: #23427f; }
.table-wrap { margin: 22px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.document-body table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 14px; }
.document-body th, .document-body td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.document-body th { color: var(--ink); background: #f7f8fb; font-size: 13px; }
.document-body tr:last-child td { border-bottom: 0; }
body.legal-page .site-footer { width: min(calc(100% - 40px), var(--copy-width)); margin: 0 auto 45px; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .landing-hero { grid-template-columns: 1fr; gap: 45px; padding-top: 82px; }
  .hero-copy { max-width: 700px; }
  .hero-art { min-height: 520px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { min-height: 285px; }
  .feature-card h3 { margin-top: 55px; }
  .privacy-section { gap: 50px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner, .landing-main, .landing-footer { width: min(calc(100% - 36px), var(--max-width)); }
  .header-inner { min-height: 66px; }
  .header-nav { gap: 13px; font-size: 12px; }
  .header-nav a:nth-child(2) { display: none; }
  .landing-nav .nav-cta { padding: 8px 11px; }
  .brand { font-size: 11px; letter-spacing: .22em; }
  .brand-mark { gap: 8px; }
  .brand-mark img { width: 25px; height: 25px; border-radius: 7px; }
  .landing-hero { min-height: auto; padding: 72px 0 80px; gap: 30px; }
  .hero-copy h1 { margin: 18px 0 20px; font-size: clamp(51px, 15vw, 72px); }
  .hero-lede { font-size: 17px; }
  .hero-art { min-height: 440px; margin: 0 -5px; }
  .dashboard-shell { padding: 20px 17px 19px; border-radius: 26px; }
  .dashboard-heading { margin-top: 25px; }
  .dashboard-heading h2 { font-size: 33px; }
  .ring { width: 165px; height: 165px; }
  .ring-center strong { font-size: 25px; }
  .dashboard-metrics { gap: 7px; }
  .dashboard-metrics > div { padding: 12px 9px; }
  .dashboard-metrics strong { font-size: 20px; }
  .dashboard-metrics span { font-size: 9px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div, .trust-strip > div + div { min-height: auto; padding: 22px 0; border-left: 0; }
  .trust-strip > div + div { border-top: 1px solid var(--line); }
  .landing-section, .privacy-section { padding: 92px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 48px; }
  .section-heading > p:last-child { font-size: 16px; }
  .feature-grid, .steps-grid, .privacy-section, .legal-panel { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { min-height: 240px; }
  .statement-panel { grid-template-columns: 1fr; gap: 20px; padding: 38px 28px; border-radius: 24px; }
  .statement-mark { width: 58px; height: 58px; font-size: 26px; }
  .statement-panel h2 { font-size: 43px; }
  .privacy-section { gap: 37px; }
  .privacy-copy h2, .legal-panel h2 { font-size: 48px; }
  .privacy-panel { padding: 26px; }
  .privacy-panel p { font-size: 27px; }
  .legal-panel { padding: 42px 0; gap: 30px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer-links { margin-left: 0; gap: 11px 16px; }
  .footer-bottom { flex-direction: column; margin-top: 36px; }
  body.legal-page .header-inner, body.legal-page main, body.legal-page .site-footer { width: min(calc(100% - 28px), var(--copy-width)); }
  body.legal-page main { margin-top: 22px; }
  .document { border-radius: 20px; }
  .document-hero { padding: 34px 24px 30px; }
  .document-hero h1 { font-size: 45px; }
  .lede { font-size: 17px; }
  .document-body { padding: 34px 24px 40px; }
  .document-body section + section { margin-top: 35px; padding-top: 32px; }
  .document-body h2 { font-size: 22px; }
  .meta { gap: 8px 12px; }
  .meta span + span { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { background: #fff; color: #111; }
  .site-header { position: static; background: #fff; }
  .header-nav { display: none; }
  body.legal-page main { width: 100%; margin: 0; }
  .document { border: 0; box-shadow: none; }
  .document-hero { padding: 25px 0; background: #fff; }
  .document-body { padding: 25px 0; }
  body.legal-page .site-footer { width: 100%; margin: 25px 0 0; }
  a { color: #111; }
}
