/* Marketing landing page (/). The legal and support pages keep their own `styles.css`:
   this is a different visual system and only one page uses it.

   The design is a single-viewport hero — masthead, a two-column pitch that takes the
   remaining height, and a footer — rather than a scrolling sequence of sections. */

:root {
  color-scheme: light;
  --ink: #1d1b1a;
  --body: #4a4642;
  --muted: #6f6a64;
  --paper: #faf8f5;
  --card: #fff;
  --line: rgba(0, 0, 0, .12);
  --rule: rgba(0, 0, 0, .09);
  --accent: #da5a34;
  --accent-hover: #c44a26;
  --accent-deep: #b8431f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* `.waitlist-done` is display:flex, which would otherwise win over the hidden attribute. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

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

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Masthead */

.masthead { display: flex; align-items: center; gap: 11px; }

.masthead img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 2px 8px rgba(30, 20, 10, .16);
}

.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -.7px; }

/* Hero: pitch on the left, phones on the right, collapsing to one column when narrow. */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 36px 48px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.pitch { min-width: 0; }

.pitch h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -2px;
  text-wrap: balance;
}

.lede {
  margin: 16px 0 0;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  text-wrap: pretty;
}

/* Store badges */

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.stores img { display: block; height: 48px; width: auto; }
/* The App Store badge is the page's one call to action, so it is the largest thing in the row. */
.stores .store-link img { height: 56px; }

.free-note { font-size: 13.5px; font-weight: 600; color: var(--muted); }

.benefits {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--body);
}
.benefits li { padding-left: 22px; position: relative; }
.benefits li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.benefits strong { color: var(--ink); }

.store-link { display: block; line-height: 0; border-radius: 10px; }
.store-link:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent-deep);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}

.divider {
  height: 1px;
  border: 0;
  background: var(--rule);
  margin: 26px 0 24px;
  max-width: 520px;
}

/* Waitlist */

.waitlist { max-width: 520px; }

.waitlist h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.7px; }

/* U+2696 defaults to text presentation, so the variation selector alone is not enough on
   every renderer — naming the colour-emoji fonts is. */
.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

.waitlist-lede { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }

.signup-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

.signup-row input {
  min-width: 0;
  font: 400 16px var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
}

/* The name needs less room than the address, but both wrap before the button does. */
.signup-row input[type="text"]  { flex: 1 1 160px; }
.signup-row input[type="email"] { flex: 1 1 200px; }

.signup-row input::placeholder { color: #b4aba0; }

.signup-row button {
  flex: 0 0 auto;
  font: 700 16px var(--sans);
  letter-spacing: -.2px;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 13px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background .15s;
}

.signup-row button:hover { background: var(--accent-hover); }
.signup-row button[disabled] { opacity: .6; cursor: progress; }

.form-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.form-hint.is-error { color: #ba3f27; }

.form-consent { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.waitlist-done { display: flex; align-items: flex-start; gap: 14px; max-width: 520px; }

.tick {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tick::after {
  content: "";
  width: 14px;
  height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translate(1px, -2px);
}

.waitlist-done p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--body); }

/* Showcase: three phones, the middle one larger and lifted off the baseline. */

.showcase {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
}

.showcase img {
  display: block;
  height: auto;
  aspect-ratio: 252 / 545;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .07);
  /* The three widths sum to 106% before the gaps, which is what gives the middle phone its
     prominence. Without this an <img> flex item cannot shrink below its own specified width —
     its automatic minimum size — so on a narrow screen the outer two were clipped by the
     viewport instead of scaling down together. */
  min-width: 0;
}

.shot-side {
  width: 34%;
  max-width: 210px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(30, 20, 10, .1);
}

.shot-lead {
  width: 38%;
  max-width: 236px;
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(30, 20, 10, .14);
  margin-bottom: 26px;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-size: 13px;
  font-weight: 500;
}

.site-footer p { margin: 0; color: var(--muted); }

.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }

/* The mark inherits the link colour, so it hovers with the text rather than staying orange. */
.social { display: inline-flex; align-items: center; gap: 7px; }
.social-icon { flex: none; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 720px) {
  .page { padding: 18px 20px 20px; gap: 18px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .hero { gap: 28px; }
  .pitch h1 { font-size: 36px; letter-spacing: -1.4px; }
  .lede { margin-top: 12px; font-size: 16.5px; }
  .stores { margin-top: 18px; }
  .benefits { margin-top: 20px; }
  .showcase { gap: 10px; }
  .signup-row button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
