/* DripSage landing page. Values follow the Claude Design handoff (README "Design tokens"). */

:root {
  --paper: #F6F1E6;
  --card: #FFFDF8;
  --white: #FFFFFF;
  --ink: #0C2742;
  --ink-2: #23384D;
  --ink-3: #4A5B6B;
  --green: #337C04;
  --green-hover: #2A6803;
  --green-hover-dark: #3E8F0A;
  --green-wash: #DDE8CF;
  --green-success: #E6EFD9;
  --water: #1696F3;
  --water-text: #0B63B0;
  --focus-on-dark: #9CD0FF;
  --row-highlight: #E4F0FB;
  --soil-dark: #8A6A4C;
  --alert: #A8431F;
  --cloud: #D3DCE3;
  --placeholder-bg: #F3EAD9;
  --placeholder-text: #6B4E37;
  --cta-text-soft: #E3EAF1;
  --cta-success: #16395E;
  --hair-12: rgba(12, 39, 66, .12);
  --hair-14: rgba(12, 39, 66, .14);
  --hair-16: rgba(12, 39, 66, .16);
  --hair-20: rgba(12, 39, 66, .20);

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 112px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); }
a { color: var(--ink); }
a:hover { color: var(--green); }
::selection { background: #CFE3F7; }

.page { font-family: var(--sans); color: var(--ink); background: var(--paper); overflow-x: hidden; }

:focus-visible { outline: 3px solid var(--water-text); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.min0 { min-width: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Header ---------- */
.site-header { max-width: 1160px; margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; box-sizing: border-box; }
.brand { display: flex; flex: none; border-radius: 6px; }
.brand:focus-visible { outline-offset: 4px; }
.brand img { height: 32px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; font-size: 15px; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--green); }
.site-nav a:focus-visible { outline-offset: 4px; }
.btn-outline { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .site-nav { display: none; } }

/* ---------- Shared type ---------- */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: 0 0 16px; }
.eyebrow--hero { line-height: 1.4; }
.eyebrow--sm { font-size: 11px; margin: 0 0 12px; }
.eyebrow--log { margin: 8px 0 12px; }

h1 { font: 500 clamp(40px, 6.2vw, 76px)/1.02 var(--serif); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font: 500 clamp(32px, 4.4vw, 52px)/1.08 var(--serif); letter-spacing: -.015em; margin: 0 0 20px; text-wrap: balance; }
.h2--spaced { margin-bottom: clamp(32px, 5vw, 56px); }
.h2--box { margin-bottom: 24px; }
.h2--faq { margin-bottom: 28px; }

.body-lg { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 0 14px; max-width: 52ch; text-wrap: pretty; }
.body-lg--last { margin-bottom: 0; }
.mono-caption { font: 400 12px/1.5 var(--mono); color: var(--ink-3); margin: 0; }
.idx { font: 500 12px var(--mono); color: var(--green); }

.chip { display: inline-block; font: 500 11px/1.4 var(--mono); letter-spacing: .04em; padding: 3px 9px; border: 1px dashed var(--soil-dark); border-radius: 4px; color: var(--placeholder-text); background: var(--placeholder-bg); }
.chip--placeholder { padding: 2px 8px; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--rule { border-top: 1px solid var(--hair-12); }
.inner { max-width: 1160px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(28px, 5vw, 72px); }
.two-col--center { align-items: center; }
.two-col--start { align-items: start; }

/* ---------- Hero ---------- */
.hero { max-width: 1160px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) 0; box-sizing: border-box; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(20px, 4vw, 56px); align-items: end; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; margin: 0 0 20px; color: var(--ink-2); text-wrap: pretty; }

.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.input { flex: 1 1 220px; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); font: 400 17px var(--sans); color: var(--ink); box-sizing: border-box; }
.input::placeholder { color: var(--ink-3); }
.input[aria-invalid="true"] { border-color: var(--alert); }
.btn-primary { flex: 0 0 auto; white-space: nowrap; height: 52px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--green); color: #fff; font: 600 17px var(--sans); cursor: pointer; }
.btn-primary:hover { background: var(--green-hover); }
.btn-primary[disabled] { cursor: progress; opacity: .8; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--ink-3); margin: 12px 0 0; }
.form-error { flex: 1 0 100%; margin: 0; font-size: 15px; line-height: 1.5; color: var(--alert); }

.status { margin: 0; padding: 16px 18px; border-radius: 10px; }
.status:focus { outline: none; }
.status--light { font-size: 18px; line-height: 1.5; background: var(--green-success); color: var(--ink); }

.hero-frame { margin-top: clamp(28px, 4vw, 48px); border-radius: 16px; overflow: hidden; border: 1px solid var(--hair-14); background: var(--paper); }
.hero-art { max-width: 100%; margin: 0 auto; aspect-ratio: 800 / 500; line-height: 0; }
@media (max-width: 860px) { .hero-art { max-width: 440px; aspect-ratio: 400 / 652; } }
.hero-caption-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-top: 12px; }
.pause-btn { height: 44px; min-width: 76px; padding: 0 14px; border: 1px solid rgba(12, 39, 66, .4); border-radius: 22px; background: transparent; font: 500 12px var(--mono); color: var(--ink); cursor: pointer; }
.pause-btn:hover { background: var(--card); }
.pause-btn[hidden] { display: none; }

/* ---------- Problem ---------- */
.figure-card { margin: 0; padding: clamp(14px, 2.5vw, 24px); border-radius: 16px; background: var(--card); border: 1px solid var(--hair-12); }
.figure-card figcaption { margin-top: 12px; font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legend > span { display: flex; align-items: center; gap: 6px; }
.legend--chart { margin-top: 10px; font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.legend-note { color: var(--ink-3); margin-top: 8px; }
.sw { display: inline-block; flex: none; }
.sw-line { width: 16px; height: 2px; background: var(--ink); }
.sw-band { width: 14px; height: 10px; background: var(--green-wash); }
.sw-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--water); }
.sw-skip { width: 8px; height: 8px; border-radius: 50%; border: 1.4px solid var(--ink); }
.sw-rain { width: 9px; height: 12px; background: var(--cloud); }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 4vw, 56px); }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.step-num { font: 400 64px/1 var(--serif); color: var(--green); }
.steps h3 { font: 600 22px/1.25 var(--sans); margin: 16px 0 8px; }
.steps p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ---------- The system ---------- */
.system-lead { max-width: 56ch; margin-bottom: clamp(32px, 5vw, 56px); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 32px); }
.card { display: flex; flex-direction: column; gap: 14px; }
.illus-panel { aspect-ratio: 4 / 3; overflow: hidden; background: var(--card); border: 1px solid var(--hair-12); border-radius: 14px; line-height: 0; }
.card-eyebrow { margin: 6px 0 0; }
.card h3 { font: 500 28px/1.15 var(--serif); margin: 0; }
.card > p:last-child { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; text-wrap: pretty; }

.phone { width: 214px; margin: 22px auto 0; border: 2px solid var(--ink); border-radius: 28px; background: var(--paper); padding: 16px 12px 40px; box-sizing: border-box; display: flex; flex-direction: column; gap: 7px; line-height: normal; }
.phone-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.phone-head img { width: 22px; height: 22px; border-radius: 6px; }
.phone-head span { font: 600 13px var(--sans); }
.phone-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; padding: 7px 9px; border-radius: 8px; background: var(--card); }
.phone-row .is-water { color: var(--water-text); font-weight: 600; }
.phone-row .is-idle { color: var(--ink-3); }
.phone-note { font-size: 11px; line-height: 1.4; padding: 8px 9px; border-radius: 8px; background: var(--ink); color: #fff; }

.system-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-top: clamp(28px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--hair-12); }
.system-foot > p:first-child { font-size: 17px; line-height: 1.6; color: var(--ink); margin: 0; max-width: 60ch; text-wrap: pretty; }

/* ---------- The brain ---------- */
.brain { background: var(--card); border-top: 1px solid var(--hair-12); border-bottom: 1px solid var(--hair-12); }
.inputs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.inputs-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--hair-14); }
.inputs-list li:last-child { border-bottom: 1px solid var(--hair-14); }
.inputs-list .idx { font: 500 12px/1.9 var(--mono); }
.inputs-list strong { font-size: 17px; }
.inputs-list p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 2px 0 0; }

.data-card { margin-top: clamp(32px, 5vw, 56px); border: 1px solid var(--hair-16); border-radius: 18px; background: var(--white); padding: clamp(16px, 3vw, 28px); }
.data-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.zone-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-pill { flex: none; white-space: nowrap; height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 22px; background: transparent; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.zone-pill[aria-pressed="true"] { background: var(--ink); color: #fff; }
.data-card-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.zone-title { font: 500 26px/1.15 var(--serif); }
.zone-note { font-size: 15px; line-height: 1.5; color: var(--ink-3); margin: 4px 0 14px; }
#zone-chart { line-height: 0; }
.learned { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair-12); }
.learned dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.learned dt { font-size: 13px; color: var(--ink-3); }
.learned dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }

.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.5; }
.log li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 10px; }
.log li.is-selected { background: var(--row-highlight); }
.log-time { font: 400 12px/1.9 var(--mono); color: var(--ink-3); }
.alert-tag { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--alert); margin-right: 6px; }

/* ---------- Features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 40px); }
.features li { flex: 1 1 240px; border-top: 1px solid var(--ink); padding-top: 16px; }
.features h3 { font: 600 19px/1.3 var(--sans); margin: 8px 0 6px; }
.features p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ---------- Specs ---------- */
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.box-list { list-style: none; margin: 0; padding: 0; font-size: 18px; line-height: 1.5; }
.box-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--hair-14); }
.box-list li:last-child { border-bottom: 1px solid var(--hair-14); }
.specs { margin: 0; font-size: 16px; line-height: 1.5; }
.specs > div { display: grid; grid-template-columns: minmax(110px, 2fr) 3fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair-14); }
.specs > div:last-child { border-bottom: 1px solid var(--hair-14); }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-inner details { border-top: 1px solid var(--hair-20); padding: 4px 0; }
.faq-inner details:last-of-type { border-bottom: 1px solid var(--hair-20); }
.faq-inner summary { cursor: pointer; padding: 16px 0; font: 600 19px/1.35 var(--sans); }
.faq-inner details p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; max-width: 62ch; text-wrap: pretty; }

/* ---------- Final CTA ---------- */
.cta { padding: clamp(72px, 10vw, 128px) var(--gutter); background: var(--ink); color: #fff; }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta h2 { font: 500 clamp(36px, 5.4vw, 64px)/1.05 var(--serif); letter-spacing: -.015em; margin: 0 0 16px; }
.cta-lead { font-size: 19px; line-height: 1.55; color: var(--cta-text-soft); margin: 0 auto 28px; max-width: 46ch; text-wrap: pretty; }
.cta :focus-visible { outline-color: var(--focus-on-dark); }
.waitlist-form--dark { margin: 0 auto; max-width: 520px; }
.input--dark { height: 54px; border-color: #fff; background: #fff; }
.btn-primary--dark { flex: 1 0 auto; height: 54px; padding: 0 24px; }
.btn-primary--dark:hover { background: var(--green-hover-dark); }
.form-error--dark { color: #FFC4AE; text-align: left; }
.status--dark { font-size: 19px; line-height: 1.5; margin: 0 auto; background: var(--cta-success); max-width: 520px; box-sizing: border-box; }

/* ---------- Footer ---------- */
.site-footer { padding: 36px var(--gutter); }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner img { height: 28px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-3); }
.footer-links a { color: var(--ink-2); }

/* ---------- Legal pages (privacy) ---------- */
.legal { max-width: 680px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) var(--section-y); font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.legal-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; color: var(--ink); }
.legal-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; margin: 28px 0 8px; text-wrap: pretty; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 12px; color: var(--ink); }
.legal p, .legal li { text-wrap: pretty; }
.legal ul { padding-left: 1.2em; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--water-text); }
.legal a:hover { color: var(--green); }
.legal + .site-footer { border-top: 1px solid var(--hair-12); }
