:root {
  color-scheme: light;
  --paper: #f3efe4;
  --card: #faf7f1;
  --cream: #f7f4ef;
  --ink: #1a1814;
  --muted: #3e3a34;
  --line: #d5cdbf;
  --spruce: #1b4332;
  --spruce-deep: #142e24;
  --forest: #16352b;
  --copper: #7a3e1d;
  --danger: #7f1d1d;
  --white: #ffffff;
  --serif: "Bitstream Charter", "Liberation Serif", Georgia, serif;
  --sans: Cantarell, "Liberation Sans", "Noto Sans", sans-serif;
  --header-h: 77px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

::selection { background: #d5e4da; }

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  min-height: 76px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand svg { flex: none; }

.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-nav a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--spruce);
  border-radius: 999px;
  color: var(--spruce);
  font-weight: 700;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--spruce);
  color: var(--paper);
}

h1, h2, h3, .footer-brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.08;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

h3 { margin: 0 0 8px; font-size: 1.35rem; }

p { margin: 0 0 12px; }

main section { padding: clamp(48px, 8vw, 88px) 0; }

main section[id] { scroll-margin-top: 6.5rem; }

.hero { padding-top: clamp(36px, 6vw, 64px); }
/* Tall container to provide scroll distance */
.hero-scroll-container {
  position: relative;
  height: 200vh; /* 2x screen height to allow scrolling through both */
}

/* Sticky wrapper pins the hero below the site header so copy and the phone stay in view. */
.hero-sticky-wrapper {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  width: 100%;
  overflow: hidden;
}

/* Keep the phone frame and action button fixed while slide content fades. */
.hero-sticky-wrapper .hero {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-messages {
  display: grid;
}

.hero-message {
  grid-area: 1 / 1;
  will-change: opacity;
}

.hero-message:nth-child(2),
.hero-screen:nth-child(2) {
  opacity: 0;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-grid, .signup-grid {
  display: grid;
  gap: 28px;
}

.hero-grid > *,
.signup-grid > *,
.form-row > * { min-width: 0; }

.founder {
  margin: 0;
  max-width: 28rem;
  font-size: 1.125rem;
}

.pitch, .lede { max-width: 40rem; }

.lead {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.hint, .not-yet, .footer-inner, figcaption { color: var(--muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 28px;
}

.button, .text-button {
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--spruce);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.button:hover { background: var(--spruce-deep); }

.button:disabled { cursor: progress; }

#signup-form .button,
.form-card .button {
  border-radius: 6px;
}

.text-link, .text-button {
  color: var(--spruce);
  font-weight: 700;
}

.text-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Phone frame around a real app screenshot. */

.product-mock {
  margin: 0;
  justify-self: center;
}

.phone { width: min(300px, 100%); margin-inline: auto; }

.phone-bezel {
  display: grid;
  background: #121c18;
  border-radius: 36px;
  padding: 10px;
  border: 1px solid #0b1210;
  box-shadow: 0 24px 48px -24px rgba(18, 28, 24, 0.45);
}

.hero-screen {
  grid-area: 1 / 1;
  will-change: opacity;
}

.phone-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
  background: var(--cream);
}

figcaption {
  margin: 12px 0 0;
  font-size: 0.92rem;
}

/* v1 01 02 03 cards */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
  padding: 20px 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
}

.step-num {
  margin: 0 0 8px;
  color: var(--copper);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.steps li p:last-child { margin: 0; }

.not-yet {
  margin: 28px 0 0;
  max-width: 42rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(18px, 3vw, 28px);
}

#signup-form { display: grid; gap: 16px; position: relative; }

.form-row { display: grid; gap: 16px; }

label { display: block; font-weight: 700; margin-bottom: 6px; }

.req { font-weight: 600; color: var(--muted); }

input, select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c9c0b0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.hint { margin: 6px 0 0; font-size: 0.95rem; }

.error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 700;
}

[aria-invalid="true"] { border-color: var(--danger); }

.thanks h3 { font-size: 1.7rem; }

#thanks-text { overflow-wrap: anywhere; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spruce);
}

.confirm { padding: 72px 0 96px; }

.confirm h1 { max-width: 16ch; }

.confirm ul { margin-top: 0; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-brand {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.legal-note {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-note a {
  color: var(--spruce);
  font-weight: 600;
  text-underline-offset: 0.18em;
}

/* Honeypot: present in the DOM for bots, off-screen for people. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal {
  padding: 36px 0 64px;
}

.legal-inner {
  max-width: 40rem;
}

.privacy-form-card {
  margin: 1.25rem 0 0.5rem;
}

.privacy-form-card textarea {
  width: 100%;
  min-height: 7rem;
  padding: 10px 12px;
  border: 1px solid #c9c0b0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.privacy-form-card .cf-turnstile {
  margin-top: 4px;
}

#privacy-form {
  display: grid;
  gap: 16px;
  position: relative;
}

.legal-kicker {
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--spruce);
  font-size: 0.85rem;
}

.legal h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.legal h2 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.25rem;
}

.legal ul {
  padding-left: 1.2rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.skip:focus {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

/* Single-column hero: shrink the phone so the home screen and headline fit under the header. */
@media (max-width: 859px) {
  .hero-sticky-wrapper .hero {
    padding: 8px 0 12px;
  }
  .hero-sticky-wrapper .phone {
    width: min(220px, 24vh);
  }
  .hero-sticky-wrapper .actions {
    margin-top: 16px;
  }
  .hero-sticky-wrapper h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .actions .button,
  #submit-button { width: 100%; }

  .site-nav a:not(.nav-cta) { display: none; }
}

@media (min-width: 700px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 48px;
  }
  .hero-copy { padding-top: 28px; }
  .signup-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 40px;
  }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .product-mock { justify-self: end; }
  .phone { margin-inline: 0; }
}

.section-title { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; }
