/* The home page only. The privacy and support pages keep style.css.

   Built 1:1 from the Figma frame "Scavee Landing – One Screen", drawn at
   1440 × 900. Every size below is that frame's number times --px, one
   design pixel. At 1440 × 900 and larger --px is exactly 1px; in a smaller
   window it shrinks with whichever side runs out first, so the whole page
   scales down as one picture and never needs a scroll. Text has a floor so
   it stays readable. Phones get their own one-column layout at the end. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Light only: the phone shows a light-mode screenshot, and a dark page
   would need a dark one to match. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #16181d;
  --mark: #12141d;
  --muted: #5c6470;
  --rule: #e4e7ec;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;

  --px: min(1px, calc(100vw / 1440), calc(100vh / 900));
}

@supports (height: 100svh) {
  :root {
    --px: min(1px, calc(100vw / 1440), calc(100svh / 900));
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* The frame: 40 / 120 / 32 padding, header at the top, footer at the
   bottom, the main row centred in the room between them. */
.page {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(40 * var(--px)) calc(120 * var(--px)) calc(32 * var(--px));
}

/* Header: the app icon and the wordmark. */

.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--mark);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* The bird from the app's logo, in the wordmark's ink, drawn inline so it
   needs no file and stays sharp at any size. */
.brand svg {
  height: 25px;
  width: auto;
}

/* Main: the copy on the left, the phone on the right. */

/* The phone sits in the middle of the room right of the copy, not against
   the right edge: pushed apart, the two read as separate things with a
   hole between them. The copy keeps its left edge on the logo's. */
main {
  display: grid;
  grid-template-columns: minmax(0, calc(616 * var(--px))) 1fr;
  align-items: center;
  gap: calc(96 * var(--px));
  padding: calc(16 * var(--px)) 0;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: calc(40 * var(--px));
}

.intro {
  display: flex;
  flex-direction: column;
  gap: calc(20 * var(--px));
}

h1 {
  font-size: max(40px, calc(72 * var(--px)));
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

.lede {
  color: var(--muted);
  font-size: max(16px, calc(20 * var(--px)));
  line-height: 1.36;
  max-width: calc(600 * var(--px));
  margin: 0;
  text-wrap: pretty;
}

/* Benefits: the paywall's coloured badges. */

.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(24 * var(--px));
}

.benefits li {
  display: grid;
  grid-template-columns: max(32px, calc(40 * var(--px))) 1fr;
  gap: calc(16 * var(--px));
  align-items: start;
}

.badge {
  display: grid;
  place-items: center;
  width: max(32px, calc(40 * var(--px)));
  height: max(32px, calc(40 * var(--px)));
  border-radius: 50%;
  color: var(--tint);
  background: color-mix(in srgb, var(--tint) 15%, transparent);
}

.badge svg {
  width: 55%;
  height: 55%;
}

.blue { --tint: var(--blue); }
.amber { --tint: var(--amber); }
.green { --tint: var(--green); }
.red { --tint: var(--red); }

.benefits h2 {
  font-size: max(15px, calc(18 * var(--px)));
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 calc(2 * var(--px));
}

.benefits p {
  color: var(--muted);
  font-size: max(14px, calc(16 * var(--px)));
  line-height: 1.4;
  margin: 0;
  text-wrap: pretty;
}

/* Call to action: Apple's own badge, sized by height as Apple's guidelines
   specify it, never below the 40 px they set as the minimum on screens. */

.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(14 * var(--px));
}

.store {
  display: block;
  border-radius: 8px;
}

.store img {
  display: block;
  height: max(40px, calc(59 * var(--px)));
  width: auto;
}

.store:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.trust {
  color: var(--muted);
  font-size: max(13px, calc(14 * var(--px)));
  font-weight: 500;
  margin: 0;
}

.phone {
  display: block;
  height: calc(679 * var(--px));
  width: auto;
  justify-self: center;
}

/* Footer: one quiet line. */

footer {
  display: flex;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: calc(20 * var(--px));
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: max(13px, calc(14 * var(--px)));
}

footer nav {
  display: flex;
  gap: calc(28 * var(--px));
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* Phones and narrow tablets: one column at fixed sizes, scrolling like any
   page. The download button comes straight after the promise, where the
   decision is made; the benefits follow, then the phone. */

@media (max-width: 860px) {
  :root {
    --px: 1px;
  }

  .page {
    padding: 28px 24px 24px;
  }

  main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 40px 0 48px;
  }

  .copy {
    gap: 32px;
  }

  .intro { order: 1; }
  .cta { order: 2; }
  .benefits { order: 3; }

  h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .lede {
    font-size: 18px;
    max-width: none;
  }

  .benefits {
    gap: 20px;
  }

  .benefits li {
    grid-template-columns: 36px 1fr;
    gap: 14px;
  }

  .badge {
    width: 36px;
    height: 36px;
  }

  .benefits h2 {
    font-size: 17px;
  }

  .benefits p {
    font-size: 15px;
  }

  .store img {
    height: 48px;
  }

  .phone {
    justify-self: center;
    height: auto;
    width: min(300px, 74vw);
  }

  footer {
    flex-wrap: wrap;
  }
}
