/* ThroughFriends web. The tokens below are the app's tokens, ported straight from
   src/theme/colors.ts, typography.ts, elevation.ts and layout.ts. If a token changes
   in the app, change it here too so the site and the app stay one system.
   Design rules being followed, from docs/ui-refresh-plan.md:
     - the serif (Lora) only ever handles emotional beats, Inter handles everything functional
     - colour fields are for moments, everything between them stays near-monochrome on cream
     - shadows are warm brown, never black
     - display leading near 110%, body near 140%
   The paper objects (ticket, bubbles, batch grid) are the texture layer that
   docs/breeze-competitive-analysis.md §7.6 says we were missing. */

:root {
  --screen-background: #faf6f0;
  --card: #ffffff;
  --border: #e8dfd3;

  --primary: #d85a30;
  --primary-text: #faece7;
  --primary-field: #e0663c;
  --primary-tint: #fbe7de;
  --primary-deep: #b24523;

  --heading-text: #4a1b0c;
  --accent-text: #993c1d;
  --body-text: #712b13;
  --muted-text: #5f5e5a;

  --surface-sunken: #f3eae0;
  --photo-placeholder: #e0cba8;
  --ink: #3b1a0e;
  --ink-text: #f7ede4;
  --ink-muted-text: #c9ab99;

  --shadow: 74, 27, 12;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --raised: 0 4px 12px rgba(var(--shadow), 0.06);
  --lifted: 0 10px 24px rgba(var(--shadow), 0.1);
  --object: 0 14px 34px rgba(var(--shadow), 0.16);

  --gutter: 24px;
  --measure: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--screen-background);
  color: var(--body-text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-text);
  text-decoration-color: rgba(153, 60, 29, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

/* Paper grain. What stops a flat fill from looking like a flat fill. */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/grain.png");
  background-size: 128px 128px;
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 820px;
}

/* Type ------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  color: var(--heading-text);
  margin: 0;
  font-weight: 600;
  /* Evens the line lengths and stops a display line ending on one orphaned word.
     Ignored by browsers that don't support it, which just wrap as normal. */
  text-wrap: balance;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.3;
}

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  color: var(--body-text);
  max-width: 34em;
  margin: 22px 0 0;
  text-wrap: pretty;
}

.muted {
  color: var(--muted-text);
}

.center {
  text-align: center;
}

.center .lede,
.center .section-head p {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons ---------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
}

.center .actions {
  justify-content: center;
}

/* Sticker button. A hard offset beneath the pill, so it reads as a physical object
   stuck to the page rather than a filled rectangle. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 3px 0 var(--primary-deep);
}

.btn-primary:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--primary-deep);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--primary-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--heading-text);
  box-shadow: inset 0 0 0 1.5px rgba(74, 27, 12, 0.2);
}

.btn-secondary:hover {
  box-shadow: inset 0 0 0 1.5px rgba(74, 27, 12, 0.45);
}

/* On an ink or coral field the sticker inverts. */
.on-dark .btn-primary {
  background: var(--card);
  color: var(--heading-text);
  box-shadow: 0 3px 0 rgba(59, 26, 14, 0.35);
}

.on-dark .btn-secondary {
  color: var(--ink-text);
  box-shadow: inset 0 0 0 1.5px rgba(247, 237, 228, 0.4);
}

.on-dark .btn-secondary:hover {
  box-shadow: inset 0 0 0 1.5px rgba(247, 237, 228, 0.75);
}

.fineprint {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted-text);
}

.on-dark .fineprint {
  color: rgba(247, 237, 228, 0.7);
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 240, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading-text);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--body-text);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav .btn {
  padding: 10px 20px;
  font-size: 14.5px;
  color: var(--primary-text);
}

@media (max-width: 860px) {
  .site-nav a:not(.btn) {
    display: none;
  }
}

/* Sections --------------------------------------------------------------- */

section {
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 52px;
}

.section-head p {
  margin: 18px 0 0;
  font-size: 18px;
  color: var(--muted-text);
  max-width: 34em;
}

/* Hero ------------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 8vw, 104px) 0 0;
  text-align: center;
}

/* The tagline is one sentence set as two: a quiet italic lead-in, then the quote
   itself at hero scale, so the page opens on a line a real couple would say. */
.say {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.2;
  color: var(--accent-text);
}

.hero h1.said {
  max-width: 20ch;
  margin: 0 auto;
  font-size: clamp(40px, 6.6vw, 78px);
  line-height: 1.02;
}

.hero .actions {
  justify-content: center;
}

.hero .lede {
  margin: 26px auto 0;
  max-width: 30em;
}

/* Negation line. Timeleft's "No bios. No swiping. No planning." does most of the
   positioning work on their page in one line, so ours gets the same job. */
.negations {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--accent-text);
}

.negations span {
  white-space: nowrap;
}

.negations span + span::before {
  content: "·";
  margin: 0 12px;
  color: var(--photo-placeholder);
}

/* Three nowrap phrases will not fit on one phone line, so they stack and the
   middots go away rather than stranding one at the start of a wrapped line. */
@media (max-width: 640px) {
  .negations {
    display: grid;
    gap: 4px;
  }

  .negations span + span::before {
    content: none;
  }
}

/* The collage. Three paper objects that together tell the whole product:
   the ask, the pick, the booked date. No app chrome, no empty states. */
.collage {
  position: relative;
  margin-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: end;
  text-align: left;
}

.collage-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.collage-caption {
  font-size: 14.5px;
  color: var(--muted-text);
  text-align: center;
  max-width: 26ch;
  margin: 0 auto;
}

.collage-caption b {
  color: var(--heading-text);
  font-weight: 600;
}

.tilt-left {
  transform: rotate(-2.2deg);
}

.tilt-right {
  transform: rotate(1.8deg);
}

.raise {
  transform: translateY(-34px);
}

@media (max-width: 880px) {
  .collage {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 420px;
    margin-inline: auto;
  }

  .raise {
    transform: none;
  }
}

/* Object: the text-message ask. The invite is the growth engine
   (docs/timeleft-analysis.md §4.1), so it gets to be the first thing shown. */
.thread {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--object);
  display: grid;
  gap: 10px;
}

.bubble {
  font-size: 15px;
  line-height: 1.4;
  padding: 11px 15px;
  border-radius: 18px;
  max-width: 85%;
}

.bubble-them {
  background: var(--surface-sunken);
  color: var(--heading-text);
  border-bottom-left-radius: 6px;
}

.bubble-me {
  background: var(--primary);
  color: var(--primary-text);
  border-bottom-right-radius: 6px;
  justify-self: end;
}

/* Object: the batch. Fifteen a day, five picks, which is the mechanic nobody else has. */
.batch {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--object);
}

.batch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.batch-head strong {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--heading-text);
  font-weight: 600;
}

.batch-head span {
  font-size: 12px;
  color: var(--muted-text);
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.batch-grid i {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  background: var(--surface-sunken);
  position: relative;
}

.batch-grid i.picked {
  background: var(--primary-tint);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.batch-grid i.picked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/heart.png") center / 11px 11px no-repeat;
}

/* Object: the booked date. The thing the product actually produces. */
.ticket {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--object);
  overflow: hidden;
}

.ticket-top {
  background: var(--ink);
  color: var(--ink-text);
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ticket-body {
  padding: 20px;
}

.ticket-when {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  color: var(--heading-text);
  font-weight: 600;
}

.ticket-where {
  font-size: 15px;
  color: var(--muted-text);
  margin-top: 6px;
}

/* A perforated rule, so the ticket reads as a ticket. */
.ticket-tear {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 18px 0;
}

.ticket-who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--body-text);
}

.ticket-who img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Numbers strip ---------------------------------------------------------- */

.numbers {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-sunken);
  padding: 0;
}

.numbers .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.number {
  padding: 38px 20px;
  text-align: center;
}

.number + .number {
  border-left: 1px solid var(--border);
}

.number strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  color: var(--primary);
  font-weight: 600;
}

.number span {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted-text);
}

@media (max-width: 780px) {
  .numbers .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .number:nth-child(odd) {
    border-left: none;
  }

  .number:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* Steps ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--raised);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 22px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  margin: 0;
  font-size: 16px;
  color: var(--muted-text);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Pull quote ------------------------------------------------------------- */

.pull {
  background: var(--primary-field);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.pull blockquote {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 18em;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}

.pull cite {
  position: relative;
  z-index: 1;
  display: block;
  margin: 26px auto 0;
  max-width: 38ch;
  font-family: var(--sans);
  font-style: normal;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

/* Difference grid -------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Four items sit as a 2x2, so the grid never ends in a half-empty row. */
.facts.two-up {
  grid-template-columns: repeat(2, 1fr);
}

.fact {
  background: var(--screen-background);
  padding: 30px 26px;
}

.fact h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fact p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted-text);
}

@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* Ink panel -------------------------------------------------------------- */

.ink-panel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink-text);
}

.ink-panel h2 {
  color: var(--ink-text);
}

.ink-panel .lede {
  color: var(--ink-muted-text);
}

.ink-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

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

.ink-list li {
  padding-left: 30px;
  position: relative;
  color: var(--ink-muted-text);
  font-size: 16.5px;
}

.ink-list strong {
  display: block;
  color: var(--ink-text);
  font-weight: 600;
  margin-bottom: 2px;
}

.ink-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary-field);
}

@media (max-width: 860px) {
  .ink-grid {
    grid-template-columns: 1fr;
  }
}

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

.faq-list {
  max-width: 780px;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 600;
  color: var(--heading-text);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list p {
  margin: 0 0 24px;
  max-width: 60ch;
  color: var(--muted-text);
}

/* Closing CTA ------------------------------------------------------------ */

.closer {
  position: relative;
  overflow: hidden;
  background: var(--primary-field);
  color: #fff;
  text-align: center;
}

.closer .wrap {
  position: relative;
  z-index: 1;
}

.closer h2 {
  color: #fff;
}

.closer .lede {
  color: rgba(255, 255, 255, 0.9);
}

.closer .actions {
  justify-content: center;
}

.closer .fineprint {
  color: rgba(255, 255, 255, 0.75);
}

/* The heart mark is coral, so on a coral field it is masked to cream instead. */
.closer .mark {
  width: 44px;
  height: 46px;
  margin: 0 auto 26px;
  background: var(--primary-text);
  -webkit-mask: url("assets/heart.png") center / contain no-repeat;
  mask: url("assets/heart.png") center / contain no-repeat;
}

/* Link cards ------------------------------------------------------------- */

.link-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.link-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--raised);
  text-decoration: none;
  color: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lifted);
}

.link-card h3 {
  margin-bottom: 6px;
  color: var(--heading-text);
}

.link-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted-text);
}

.link-card .arrow {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

@media (max-width: 700px) {
  .link-cards {
    grid-template-columns: 1fr;
  }
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  font-size: 14.5px;
  color: var(--muted-text);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}

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

.site-footer a {
  color: var(--muted-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

/* Document pages (privacy, support) -------------------------------------- */

.doc {
  padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.doc-updated {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted-text);
}

.doc-body {
  margin-top: 44px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--body-text);
}

.doc-body h2 {
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.3;
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.doc-body h3 {
  font-size: 17.5px;
  margin: 30px 0 8px;
}

.doc-body p {
  margin: 0 0 18px;
}

.doc-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body strong {
  color: var(--heading-text);
  font-weight: 600;
}

/* Wide content scrolls inside its own container, the page body never does. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.doc-body table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15.5px;
}

.doc-body th,
.doc-body td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc-body th {
  font-weight: 600;
  color: var(--heading-text);
  background: var(--surface-sunken);
}

.doc-body tbody tr:last-child td {
  border-bottom: none;
}

.callout {
  background: var(--primary-tint);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 0 0 28px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.faq {
  border-top: 1px solid var(--border);
  padding: 24px 0 6px;
}

.faq h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Coming soon holding page ------------------------------------------------ */

/* One screen, centred, no header and no footer nav. Anything that invites scrolling or
   clicking elsewhere competes with the only thing this page is for. */

.soon-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

.soon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.soon-inner {
  width: 100%;
  max-width: 420px;
  /* Flex items default to min-width:auto and refuse to shrink below their content, which on a
     narrow phone pushes the whole card wider than the screen. */
  min-width: 0;
  text-align: center;
}

.soon-mark {
  width: 56px;
  height: 58px;
  margin: 0 auto 28px;
  background: var(--primary);
  -webkit-mask: url("assets/heart.png") center / contain no-repeat;
  mask: url("assets/heart.png") center / contain no-repeat;
}

/* The lead-in and the quote are one sentence, split so the line someone actually says out
   loud gets the hero size. Same device as the full site's hero. */
.soon-say {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 4.5vw, 21px);
  line-height: 1.2;
  color: var(--accent-text);
}

.soon-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(29px, 7.5vw, 38px);
  line-height: 1.1;
  color: var(--heading-text);
  margin: 0 0 34px;
  text-wrap: balance;
}

.soon-lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--body-text);
  margin: 0 auto 32px;
  text-wrap: pretty;
}

/* The title's bottom margin exists to space it off the form. In the success state there is no
   form, so it would just be trailing air. */
#soon-done .soon-title {
  margin-bottom: 0;
}

.soon-form {
  text-align: left;
}

.soon-form .field {
  margin-bottom: 14px;
}

.soon-btn {
  width: 100%;
  margin-top: 6px;
}

.soon-inner .fineprint {
  margin-top: 20px;
}

.soon-inner .fineprint a {
  color: var(--muted-text);
}

/* Waitlist form ---------------------------------------------------------- */

/* The form sits on a raised card rather than the page, so the act of joining reads as one
   discrete object the way the ticket and the batch grid do, instead of a run of inputs. */

.join-section {
  padding: 64px 0 96px;
}

.join-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--object);
  padding: 44px 40px 40px;
}

.join-card h1 {
  margin-top: 0;
}

.join-card .lede {
  margin-bottom: 34px;
}

.join-card form {
  margin: 0;
}

.field {
  margin-bottom: 20px;
  flex: 1 1 0;
  min-width: 0;
}

.field-row {
  display: flex;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading-text);
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; /* under 16px iOS Safari zooms the page on focus */
  color: var(--body-text);
  background: var(--screen-background);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23712b13' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.field input::placeholder {
  color: var(--muted-text);
  opacity: 0.75;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.field-hint {
  margin: 7px 0 0;
  font-size: 13.5px;
  color: var(--muted-text);
}

/* Hidden from people, still in the DOM, because some bots skip anything display:none.
   Clipped rather than pushed off-screen with a big negative offset, since that technique
   widens the layout and broke the holding page on narrow phones. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.form-error {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--primary-deep);
}

.join-card .actions {
  margin-top: 26px;
}

.join-card .btn {
  width: 100%;
}

.join-card .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

#waitlist-done {
  text-align: center;
}

.confirm-mark {
  width: 52px;
  height: 54px;
  margin: 0 auto 24px;
  background: var(--primary);
  -webkit-mask: url("assets/heart.png") center / contain no-repeat;
  mask: url("assets/heart.png") center / contain no-repeat;
}

#waitlist-done .mark {
  width: 44px;
  height: 46px;
  margin: 0 auto 22px;
  background: var(--primary);
  -webkit-mask: url("assets/heart.png") center / contain no-repeat;
  mask: url("assets/heart.png") center / contain no-repeat;
}

#waitlist-done .lede {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 560px) {
  .join-card {
    padding: 34px 24px 30px;
  }

  .field-row {
    display: block;
  }
}

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

  * {
    transition: none !important;
  }
}
