:root {
  /* Studio (Harbor) tokens, mirroring Shared/Theme.swift. */
  --bg: #F2F2F0;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-2: #5A5955;
  --caption: #6E6D69;
  --muted: #8E8E89;
  --hairline: #E3E3E0;
  --row-divider: #EDEDEA;
  --control-border: #D6D6D2;
  --checkbox-ring: #B5B5B0;
  --accent: #1F5F73;
  --accent-2: #164852;
  --accent-300: #1F5F73;
  --accent-600: #164852;
  --accent-tint: #E0EEF1;
  --amber: #C08A1E;
  --amber-tag-bg: #F8ECD4;
  --amber-tag-text: #7A4F12;
  --neutral-tag-bg: #ECECE9;
  --peach-bg: #F6D9C8;
  --peach-text: #7A4420;
  --sage-bg: #D5E3DA;
  --sage-text: #2F5240;
  --divider: var(--hairline);
  /* Legacy names kept for rules not yet rewritten. */
  --n300: var(--text-2);
  --n400: var(--text-2);
  --n500: var(--caption);
  --n600: var(--muted);
  --n700: var(--control-border);
  --n800: var(--neutral-tag-bg);
  --n900: var(--neutral-tag-bg);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  /* Edges are hairlines, not shadows. */
  --shadow-sm: 0 0 0 1px var(--hairline);
  --shadow-md: 0 0 0 1px var(--hairline);
  --shadow-lg: 0 0 0 1px var(--hairline);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-2); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.accent { color: var(--accent); }
.nb { white-space: nowrap; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 8px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wordmark__mark {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
}
.wordmark:hover { color: var(--text); }

.header-link {
  flex: none;
  font-size: .875rem;
  font-weight: 600;
  color: var(--n300);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--divider);
  border-radius: 999px;
}
.header-link:hover { color: var(--accent); border-color: var(--accent); }

/* Hero */
.hero {
  display: grid;
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero .eyebrow {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.lede {
  margin-top: 20px;
  max-width: 34em;
  font-size: 1.125rem;
  color: var(--n300);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.fineprint {
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--n500);
}

/* Optional links: app.js hides any whose URL is empty or still a placeholder. */
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 18px;
  font-size: .9375rem;
}
.hero__links a { font-weight: 600; text-decoration: none; }
.hero__links a::after { content: " \2192"; }
.hero__links a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

/* Buttons: outline is the app's own treatment; the filled variant is the one primary action. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #FFFFFF; }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
}
.btn--ghost:hover { background: #F7F7F5; color: var(--text); }

.btn__icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Hero visual: the app, drawn in the app's own tokens */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.phone {
  padding: 18px 18px 8px;
  background: var(--bg);
  border-radius: 28px;
  box-shadow: 0 0 0 1px var(--hairline), 0 20px 50px rgba(26, 26, 26, .08);
}
.phone__label {
  margin-bottom: 10px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--n500);
}
.list-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 18px;
  font-size: 1.0625rem;
  font-weight: 600;
}
.list-title--first { margin-top: 0; }
.list-title__count { font-size: .8125rem; font-weight: 400; color: var(--n500); }

/* A request waiting on you, as in the app: who asked, the task, Accept / Tweak / Decline. */
.proposal {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline);
}
.proposal__head { display: flex; align-items: flex-start; gap: 10px; }
.proposal__text { min-width: 0; }
.proposal__from { font-size: .75rem; color: var(--text-2); }
.proposal__title { margin-top: 3px; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.proposal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
}
.pill--accent { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pill--n300 { color: var(--text); }
.pill--n500 { border-color: transparent; background: transparent; color: var(--text-2); }

.task {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--divider);
}
.task:last-child { border-bottom: 0; }
.task__check {
  width: 20px; height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--checkbox-ring);
  border-radius: 50%;
}
.task__body { min-width: 0; }
.task__title { font-size: .9375rem; line-height: 1.3; }
.task__meta { margin-top: 2px; font-size: .75rem; color: var(--n500); }

.agent-line {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-size: .8125rem;
  line-height: 1.4;
  color: var(--text-2);
}
.agent-line strong { color: var(--accent); font-weight: 500; }
.agent-line__dot {
  flex: none;
  width: 8px; height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  display: none;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--sage-bg);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--sage-text);
}
.avatar--maya { background: var(--peach-bg); color: var(--peach-text); }

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-end;
  width: calc(100% - 28px);
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.notice__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
}
.notice__check svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.notice__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.notice__text strong { font-size: .875rem; font-weight: 600; }
.notice__text span { font-size: .75rem; color: var(--n500); }

/* Story */
.story {
  padding: 56px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--surface);
}
.story__inner { display: flex; flex-direction: column; gap: 14px; }
.story .eyebrow { margin-bottom: 8px; }
.story__line {
  max-width: 22em;
  font-size: clamp(1.5rem, 4.6vw, 2.375rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.story__line--accent { color: var(--accent); }
.byline { margin-top: 6px; font-size: .875rem; color: var(--n500); }

.quote {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  max-width: 34em;
}
.quote blockquote { font-size: 1.125rem; color: var(--n300); }
.quote figcaption { margin-top: 6px; font-size: .8125rem; color: var(--n500); }

/* Benefits */
.benefits { padding-top: 64px; padding-bottom: 24px; }
.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.benefit-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.benefit {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
}
.benefit__icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.benefit h3 {
  margin-top: 18px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.benefit p { margin-top: 10px; color: var(--n400); }

/* Waitlist */
.waitlist { padding-top: 40px; padding-bottom: 72px; }
.waitlist__card {
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.waitlist h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.waitlist__sub { margin-top: 12px; max-width: 34em; color: var(--n400); }

.form { margin-top: 24px; }
.form__row { display: flex; flex-direction: column; gap: 12px; }
.form input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px minimum so iOS Safari doesn't zoom on focus */
}
.form input[type="email"]::placeholder { color: var(--n600); }
.form input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form input[type="email"][aria-invalid="true"] { border-color: var(--amber); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status {
  margin-top: 12px;
  font-size: .875rem;
  color: var(--n400);
}
.form__status:empty { margin-top: 0; } /* stays in the DOM so screen readers announce it when filled */
.form__status--error { color: var(--amber-tag-text); }

.form__success {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  color: var(--n300);
}
.form__success[hidden] { display: none; }
.form__success-title:focus { outline: none; } /* focused only so screen readers land on the confirmation */
.form__success-title {
  margin-bottom: 4px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text);
}

.waitlist__count { margin-top: 16px; font-size: .875rem; color: var(--n500); }
.waitlist__count[hidden] { display: none; }

/* Footer */
.site-footer {
  padding-top: 28px;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--divider);
  font-size: .8125rem;
  color: var(--n500);
}
.privacy { max-width: 46em; }
.copyright { margin-top: 12px; }

/* Wider screens */
@media (min-width: 560px) {
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .form__row { flex-direction: row; }
  .form__row input[type="email"] { flex: 1; min-width: 0; }
  .form__row .btn { flex: none; }
  .waitlist__card { padding: 40px 36px; }
}

@media (min-width: 880px) {
  .site-header { padding-top: 28px; }
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 64px;
    padding-top: 64px;
    padding-bottom: 88px;
  }
  .hero__visual { justify-self: end; }
  .story { padding: 88px 0; }
  .benefits { padding-top: 96px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .waitlist { padding-top: 56px; padding-bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- /demo ---------- */
.demo { padding-bottom: 64px; }
.demo__intro { padding: 40px 0 8px; max-width: 720px; }
.demo__block { padding: 28px 0; border-top: 1px solid var(--hairline); }
.demo__block h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 10px; }
.demo__sub { color: var(--text-2); margin: 0 0 16px; max-width: 640px; }
.demo__frame { position: relative; width: 100%; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--hairline); }
.demo__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo__frame--video { aspect-ratio: 16 / 9; max-width: 880px; }
.demo__frame--phone { aspect-ratio: 9 / 16; max-width: 420px; max-height: 820px; }
.demo__fallback { color: var(--caption); font-size: 14px; margin: 10px 0 0; }
.demo__steps { margin: 20px 0 0; padding-left: 20px; color: var(--text-2); max-width: 640px; }
.demo__steps li { margin: 8px 0; line-height: 1.5; }
.demo__claims { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.demo__claims li { margin: 0 0 14px; line-height: 1.55; color: var(--text-2); }
.demo__claims strong { color: var(--text); }
.site-footer { padding: 24px 0 48px; color: var(--caption); font-size: 14px; }
.site-footer a { color: inherit; }
@media (max-width: 480px) { .demo__intro { padding-top: 24px; } .demo__block h2 { font-size: 20px; } }
