/* Cairn: Form product landing page.
   Loaded after styles.css by /form/ and /form/waitlist/. The corporate shell (header, footer,
   skip link) is unchanged; the page re-points the shared custom properties at the app's own
   palette (cadence-form: src/design/palette.ts) so the chrome follows the product.
   Display face is Fraunces, already self-hosted for the site. */

@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122, U+2190-2193;
}

body.cairn {
  /* Shared primitives, repainted. The header, footer and .text-link inherit these. */
  --paper: #f3f0e7;
  --sheet: #f8f5ed;
  --ink: #1b1d19;
  --ink-2: rgba(27, 29, 25, .74);
  --ink-3: rgba(27, 29, 25, .72);
  --line: rgba(63, 87, 74, .18);
  --accent: #3f574a;

  /* Product tokens. */
  --forest: #3f574a;
  --moss: #567061;
  --clay: #90593b;
  --stone-clay: #c9774f;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --cf-y: clamp(56px, 7vw, 104px);
}

body.cairn { background: var(--paper); color: var(--ink); }
.cairn ::selection { background: #d9e2d8; }

/* ----------------------------------------------------------------- type */

.cairn .display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.06;
  text-wrap: balance;
}
.cairn em { font-style: italic; color: var(--forest); }
.cairn .cf-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0; color: var(--clay);
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.cairn .cf-eyebrow svg { flex: 0 0 auto; }
.cairn .cf-lede { max-width: 48ch; margin-top: 22px; color: var(--ink-2); font-size: clamp(1.0625rem, .97rem + .4vw, 1.25rem); }

/* --------------------------------------------------------------- buttons */

.cf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 16px 30px;
  border: 1px solid var(--forest); border-radius: 14px;
  background: var(--forest); color: #f6f4ec;
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.cf-btn:hover { background: #33493d; transform: translateY(-1px); }
.cf-btn--ghost { background: transparent; color: var(--forest); }
.cf-btn--ghost:hover { background: rgba(63, 87, 74, .07); }
.cf-btn--pale { border-color: rgba(246, 244, 236, .5); background: #f6f4ec; color: var(--forest); }
.cf-btn--pale:hover { background: #fff; }

/* ------------------------------------------------------------------ hero */

.cf-hero {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(36px, 5vw, 76px); align-items: center;
  padding-block: clamp(24px, 3vw, 44px) var(--cf-y);
}
.cf-hero h1 { margin-top: 26px; font-size: clamp(2.9rem, 1.2rem + 5.4vw, 5.1rem); }
.cf-hero .cf-lede { margin-top: 26px; }

.cf-offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px;
  margin-top: 36px; padding: 20px 24px;
  background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--stone-clay);
  border-radius: 4px;
}
.cf-offer svg { grid-row: span 2; align-self: center; }
.cf-offer strong { font-size: .9375rem; font-weight: 600; }
.cf-offer span { color: var(--ink-2); font-size: .8125rem; }

.cf-signup-block--hero + .text-link { margin-top: 22px; }
.cf-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; padding: 0; }
.cf-stores li {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink-2); font-size: .8125rem;
}
.cf-stores b { color: var(--ink); font-weight: 600; }
.cf-stores i { width: 6px; height: 6px; border-radius: 50%; background: var(--stone-clay); }
.cf-stores a { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.cf-stores a:hover b, .cf-stores a:focus-visible b { text-decoration: underline; }
.cf-stores .is-live { border-color: var(--moss); }
.cf-stores .is-live i { background: var(--moss); }

/* The brand landscape, with a real app screen standing in front of it. */
.cf-stage { position: relative; padding-bottom: 26px; padding-left: clamp(0px, 4vw, 54px); }
.cf-scene {
  margin: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 13 / 15;
  background: var(--sheet); border: 1px solid var(--line);
}
.cf-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 36%; }
.cf-phone {
  position: absolute; left: 0; bottom: 0; width: min(58%, 260px);
  padding: 7px; border-radius: 26px; background: #e8e5da;
  box-shadow: 0 24px 50px -22px rgba(27, 29, 25, .5), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.cf-phone img { border-radius: 20px; }

/* ----------------------------------------------------------------- proof */

.cf-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; padding-bottom: var(--cf-y); }
.cf-proof > div { padding-top: 18px; border-top: 1px solid var(--line); }
.cf-proof h2 { font-family: var(--display); font-weight: 400; font-size: 1.25rem; letter-spacing: -.01em; }
.cf-proof p { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }

/* -------------------------------------------------------------- features */

.cf-section-head { max-width: 46ch; padding-top: 22px; border-top: 1px solid var(--line); }
.cf-section-head h2 { margin-top: 20px; font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); }
.cf-section-head p { margin-top: 18px; color: var(--ink-2); max-width: 54ch; }

.cf-features { display: grid; gap: 18px; margin-top: clamp(40px, 5vw, 60px); }
.cf-feature {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 3.4vw, 52px); border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(140deg, var(--sheet), rgba(248, 245, 237, .35));
}
.cf-feature:nth-child(even) { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.cf-feature:nth-child(even) .cf-shot { order: 2; }
.cf-shot {
  justify-self: center; width: min(100%, 300px); padding: 8px;
  border-radius: 30px; background: linear-gradient(170deg, #eceade, #ddddcd);
  box-shadow: 0 30px 60px -28px rgba(27, 29, 25, .55);
}
.cf-shot img { border-radius: 23px; }
.cf-feature h3 { font-family: var(--display); font-weight: 300; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -.02em; line-height: 1.1; }
.cf-feature p { margin-top: 18px; color: var(--ink-2); max-width: 46ch; }
.cf-feature .cf-tag { margin: 0 0 14px; color: var(--moss); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.cf-points { list-style: none; padding: 0; margin-top: 24px; max-width: 46ch; }
.cf-points li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9375rem; }
.cf-points li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 9px; height: 5px; border-radius: 4px 4px 2px 2px; background: var(--forest); }

/* ----------------------------------------------------------------- tiers */

.cf-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.cf-tier { padding: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); }
.cf-tier--premium { background: var(--forest); color: #ece9dd; border-color: var(--forest); }
.cf-tier h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.cf-tier > p { margin-top: 10px; font-size: .9375rem; color: var(--ink-2); }
.cf-tier--premium > p { color: rgba(236, 233, 221, .88); }
.cf-tier ul { list-style: none; padding: 0; margin-top: 22px; font-size: .9375rem; }
.cf-tier li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.cf-tier--premium li { border-color: rgba(236, 233, 221, .22); color: rgba(236, 233, 221, .86); }
/* The flag sits beside its heading, so both cards start on the same line. */
.cf-tier-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 36px; }
.cf-flag {
  padding: 6px 12px; border-radius: 999px;
  background: var(--stone-clay); color: #221a13;
  font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.cf-smallprint { margin-top: 20px; color: var(--ink-3); font-size: .8125rem; max-width: 70ch; }

/* ------------------------------------------------------------- the band */

.cf-band { margin-top: var(--cf-y); padding-block: clamp(56px, 7vw, 92px); background: var(--forest); color: #ece9dd; }
.cf-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cf-band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cf-band h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); }
.cf-band .cf-eyebrow { color: var(--stone-clay); }
.cf-band p { margin-top: 20px; color: rgba(236, 233, 221, .9); max-width: 44ch; }
.cf-band .cf-note { margin-top: 26px; font-size: .8125rem; color: rgba(236, 233, 221, .82); }
.cf-band a:not(.cf-btn) { color: #ece9dd; }

/* One control, not a field with a button parked next to it. The same markup serves the hero on
   paper and the band on forest; only the colours change. */
.cf-signup-block { width: 100%; max-width: 480px; }
.cf-signup-block--hero { margin-top: 34px; }
.cf-signup {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%;
  padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
/* The form ships hidden and is shown by its script: display must not outrank [hidden]. */
.cf-signup[hidden] { display: none; }
.cf-signup:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(63, 87, 74, .14); }
.cf-field {
  flex: 1 1 190px; min-width: 0; min-height: 50px; padding: 12px 16px;
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem;
}
.cf-field::placeholder { color: var(--ink-3); }
/* The ring belongs to the whole control, so the field inside it does not draw a second one. */
.cf-field:focus, .cf-field:focus-visible { outline: none; }
.cf-signup .cf-btn { flex: 0 0 auto; min-height: 50px; padding: 14px 22px; border-radius: 11px; }
.cf-signup-status:empty { display: none; }
.cf-signup-status { margin-top: 14px; font-size: .875rem; color: var(--ink-2); max-width: 44ch; }
.cf-signup-status[data-state="error"] { color: var(--clay); }
.cf-signup-status[data-state="done"] { font-size: 1rem; color: var(--ink); }
.cf-signup-block .cf-note { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); }

.cf-band .cf-signup { background: rgba(246, 244, 236, .12); border-color: rgba(246, 244, 236, .42); }
.cf-band .cf-signup:focus-within { border-color: #f6f4ec; box-shadow: 0 0 0 3px rgba(246, 244, 236, .2); }
.cf-band .cf-field { color: #f6f4ec; }
.cf-band .cf-field::placeholder { color: rgba(236, 233, 221, .62); }
.cf-band .cf-signup-status { color: rgba(236, 233, 221, .92); }
.cf-band .cf-signup-status[data-state="error"] { color: #f2c6a8; }
.cf-band .cf-signup-status[data-state="done"] { color: #ece9dd; }
.cf-band .cf-signup-status:focus-visible { outline: 3px solid #f6f4ec; outline-offset: 5px; }

/* ------------------------------------------------------------------ FAQ */

.cf-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.cf-faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.cf-faq h3 { font-size: 1rem; }
.cf-faq p { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }
.cf-faq a:hover { color: var(--forest); }

.cf-close { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: baseline; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.cf-close p { color: var(--ink-3); font-size: .8125rem; max-width: 60ch; }

/* --------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .cf-rise { animation: cf-rise 700ms var(--ease) both; }
  .cf-rise:nth-child(2) { animation-delay: 70ms; }
  .cf-rise:nth-child(3) { animation-delay: 140ms; }
  .cf-stage { animation: cf-settle 900ms var(--ease) both 120ms; }
  @keyframes cf-rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes cf-settle { from { opacity: 0; transform: translateY(22px) scale(.985); } }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1000px) {
  .cf-hero, .cf-band-inner { grid-template-columns: minmax(0, 1fr); }
  .cf-stage { padding-left: 0; max-width: 560px; }
  .cf-proof { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cf-proof > div { padding-block: 18px; }
  .cf-feature, .cf-feature:nth-child(even), .cf-tiers, .cf-faq { grid-template-columns: minmax(0, 1fr); }
  .cf-feature:nth-child(even) .cf-shot { order: 0; }
  .cf-shot { width: min(100%, 260px); }
  .cf-faq { gap: 0; }
}
@media (max-width: 620px) {
  .cf-hero h1 { font-size: clamp(2.6rem, 1.1rem + 7vw, 3.6rem); }
  .cf-signup .cf-btn { flex: 1 1 100%; }
  .cf-phone { width: 46%; }
  .cf-tier { padding: 24px; }
}

/* --------------------------------------------------------- /form/ (about) */

.cairn .cf-form-title { margin-top: 22px; font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); }
.cairn .cf-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.cairn .prose h2, .cairn .availability h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: -.01em; }
