/* The generated pages (Who it's for, Compare, Waitlist). Loaded after
 * home.css, so it reuses its tokens, nav, buttons and cards. */

.nav-cta { text-decoration: none; }
.narrow { max-width: 860px; }

.page-hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: linear-gradient(180deg, var(--lav) 0%, var(--paper) 100%); }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(19,23,26,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(19,23,26,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.page-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.page-hero-art { position: relative; display: grid; place-items: center; min-height: 440px; }
.page-hero-art::before { content: ''; position: absolute; width: 330px; height: 330px; border-radius: 50%; background: var(--yellow-soft); border: 3px dashed rgba(19,23,26,.12); }
.page-hero-art .phone { width: 210px; transform: rotate(4deg); }
.page-sticker { position: absolute; width: 96px; z-index: 2; animation: bob 6s ease-in-out infinite; filter: drop-shadow(3px 4px 0 rgba(19,23,26,.12)); }
.ps1 { left: 0; top: 30px; --rot: -8deg; }
.ps2 { right: 0; bottom: 40px; --rot: 8deg; animation-delay: -3s; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 62px); margin: 14px 0 18px; }
.page-hero h1 em { font-style: normal; color: var(--blue); }
.page-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.page-ctas .btn { text-decoration: none; }

.page-section { padding: 56px 0; }
.page-section.tint { background: var(--white); border-top: 1.5px solid rgba(19,23,26,.08); border-bottom: 1.5px solid rgba(19,23,26,.08); }
.page-h2 { font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 24px; }

.pains { list-style: none; display: grid; gap: 12px; }
.pains li {
  position: relative; padding: 16px 18px 16px 52px; border-radius: 16px;
  background: var(--white); border: 2px solid rgba(19,23,26,.12);
  font-size: 18px; font-weight: 700; color: var(--ink-2);
}
.pains li::before {
  content: ''; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: var(--yellow-soft); border: 2px solid var(--yellow);
}

.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; counter-reset: help; }
.help { position: relative; counter-increment: help; transition: transform .2s ease, box-shadow .2s ease; }
.help:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.help::before {
  content: counter(help, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-weight: 900; font-size: 14px; background: var(--green); color: var(--white);
}
.help:nth-child(2)::before { background: var(--blue); }
.help:nth-child(3)::before { background: var(--yellow); color: var(--ink); }
.help:nth-child(4)::before { background: var(--pink); color: var(--ink); }
.help, .versus .card { padding: 26px 28px 28px; }
.help h3 { font-size: 22px; margin-bottom: 8px; }
.help p { color: var(--ink-2); font-weight: 600; }


.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.link-grid a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 16px; background: var(--white); border: 2px solid rgba(19,23,26,.14);
  color: var(--ink); font-weight: 800; text-decoration: none;
}
.link-grid a:hover { border-color: var(--blue); color: var(--blue); }

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus h3 { font-size: 22px; margin-bottom: 12px; }
.versus ul { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-weight: 600; }
.card-yap { background: var(--green-soft); }

.table-wrap { overflow-x: auto; border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1.5px solid rgba(19,23,26,.1); font-size: 15px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare thead th:last-child { color: var(--green); }
.compare tbody th { font-weight: 900; width: 28%; }
.compare td { color: var(--ink-2); font-weight: 600; }
.compare td:last-child { color: var(--ink); font-weight: 800; background: rgba(8,176,42,.06); }
.fineprint { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }

.cta-band { padding: 40px 0 96px; }
.cta-band .cta-panel { margin-top: 0; }
.cta-band .cta-panel h2 { font-size: clamp(34px, 5vw, 64px); }

/* Waitlist form */
.waitlist { display: grid; gap: 26px; padding: 28px; }
.field { display: grid; gap: 10px; border: 0; min-width: 0; }
.field-label { font-weight: 900; font-size: 17px; padding: 0; }
/* A legend sits outside its fieldset's grid, so the gap above does not reach it. */
legend.field-label { margin-bottom: 10px; }
.field-label small { font-weight: 700; color: var(--muted); }
.waitlist input[type=email], .waitlist input[type=text], .waitlist textarea {
  width: 100%; font: 600 16px var(--font); color: var(--ink); padding: 13px 15px;
  border: 2.5px solid var(--ink); border-radius: 14px; background: var(--white);
}
.waitlist textarea { resize: vertical; margin-top: 4px; }
.waitlist input:focus-visible, .waitlist textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-input { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip-input:active span { transform: scale(.96); }
.chip-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-input span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; border: 2px solid rgba(19,23,26,.25);
  background: var(--white); font-weight: 800; font-size: 15px; transition: background .12s, border-color .12s, transform .12s;
}
.chip-input input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip-input input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.other-input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.waitlist button { justify-self: start; cursor: pointer; font-family: var(--font); }
.waitlist button[disabled] { opacity: .6; cursor: wait; }
.form-status { font-weight: 800; min-height: 1.5em; }
.form-status.err { color: var(--red); }
.waitlist.done { text-align: center; padding: 48px 28px; }
.waitlist.done h2 { font-size: 30px; margin-bottom: 10px; }
.waitlist.done p { color: var(--ink-2); font-weight: 600; }

/* The beta page: a sticky pitch beside the form. */
.wl { padding: 64px 0 96px; background: linear-gradient(180deg, var(--lav) 0%, var(--paper) 55%); }
.wl-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.wl-pitch { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.wl-pitch h1 { font-size: clamp(38px, 4.6vw, 60px); }
.wl-pitch h1 em { font-style: normal; color: var(--blue); }
.wl-perks { list-style: none; display: grid; gap: 14px; margin-top: 6px; }
.wl-perks li { display: flex; gap: 14px; align-items: center; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.wl-perks img { width: 48px; height: 48px; flex: none; object-fit: contain; }
/* The globe's speech marks sit to its right, so the globe itself is moved over to share the column's centre with the star and the bars. */
.wl-perks li:first-child img { translate: 5px 0; }
.wl-perks b { display: block; color: var(--ink); font-weight: 900; font-size: 17px; }
.wl-art { position: relative; height: 380px; margin-top: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent 97%); mask-image: linear-gradient(#000 62%, transparent 97%); }
.wl-art .phone { width: 220px; margin: 0 auto; transform: rotate(-4deg) translateY(30px); }
/* Not .s1 / .s2: those are the hero's step numbers in home.css, and they
   painted these stickers onto green and blue squares. */
.wl-sticker { position: absolute; z-index: 1; width: 100px; height: auto; background: none; animation: bob 6s ease-in-out infinite; filter: drop-shadow(3px 4px 0 rgba(19,23,26,.14)); }
/* Six round the phone, three a side, in different sizes so it reads as a scatter.
   Each keeps 8px or more from the top and sides at the top of its bob (14px up,
   tilted), since .wl-art clips them. */
.wl-sticker.wl-s1 { left: 3%; top: 42px; --rot: -8deg; }
.wl-sticker.wl-s2 { right: 4%; top: 26px; width: 84px; --rot: 9deg; animation-delay: -3s; }
.wl-sticker.wl-s3 { left: 6%; top: 170px; width: 86px; --rot: 6deg; animation-delay: -1.5s; }
.wl-sticker.wl-s4 { right: 3%; top: 132px; --rot: -7deg; animation-delay: -4.5s; }
.wl-sticker.wl-s5 { left: 3%; top: 258px; width: 74px; --rot: -5deg; animation-delay: -2.2s; }
.wl-sticker.wl-s6 { right: 6%; top: 242px; width: 78px; --rot: 10deg; animation-delay: -5.2s; }
/* The phone and stickers follow the first language picked in the form
   (waitlist.js): the new screen fades in over the old one. */
.wl-art .screen > .wl-next { position: absolute; inset: 0; z-index: 1; }

.wl-progress { display: flex; align-items: center; gap: 12px; margin-bottom: -6px; }
.wl-bar { flex: 1; height: 14px; border-radius: 999px; border: 2.5px solid var(--ink); background: var(--white); overflow: hidden; }
.wl-bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--green), var(--blue)); transition: transform .5s cubic-bezier(.3,1.3,.5,1); }
.wl-pct { min-width: 46px; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.field-n {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 8px;
  background: var(--lav); border: 2px solid var(--ink); font-style: normal; font-size: 13px; font-weight: 900; vertical-align: 2px;
  transition: background .2s, color .2s;
}
.field.done .field-n { background: var(--green); color: var(--white); }
.chip-input span { display: inline-flex; align-items: center; gap: 8px; }
.chip-input span img { width: 24px; height: 18px; object-fit: contain; }
.chip-input:hover span { border-color: var(--ink); }
.chip-input input:checked + span { box-shadow: 2px 2px 0 var(--ink); }
.waitlist button[type=submit] { font-size: 18px; padding: 17px 30px; }

@media (max-width: 800px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-hero-art { min-height: 360px; }
  .wl-grid { grid-template-columns: 1fr; gap: 32px; }
  .wl-pitch { position: static; }
  .wl-art { display: none; }
  .help-grid, .versus { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .page-hero { padding: 48px 0 28px; }
  .link-grid { grid-template-columns: 1fr; }
  .waitlist { padding: 20px; }
  .page-ctas .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .chip-input span { transition: none; } }
