/* The site's pages: the landing page and the documents beside it (privacy,
   terms). Brand palette from experience-final-brand-assets (cream, charcoal,
   coral), the split-e mark, Geist. One primary button; no rules, no glow.

   Colour is one light-dark() pair per token; the phone's choice picks the
   side, and the framed Menu follows the same choice. */

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

:root {
  color-scheme: light dark;
  --bg: light-dark(#f8f5ef, #2b2a28);
  --ink: light-dark(#20201e, #f8f5ef);
  --muted: light-dark(#55504a, #c6c1b8);
  --line: light-dark(#e2dcd0, #454340);
  --accent: #f84e32;
  --accent-ink: #fff8f5;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 72rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  background: var(--bg);
}

/* Before light-dark() (Chrome 123, Safari 17.5), the light side of every
   pair keeps the page legible; the Menu makes the same floor. */
@supports not (color: light-dark(#000, #fff)) {
  :root {
    color-scheme: light;
    --bg: #f8f5ef;
    --ink: #20201e;
    --muted: #55504a;
    --line: #e2dcd0;
  }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: Geist, system-ui, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  /* The body is a stacking context so the grain below can sit under every
     child at a negative level while staying above the body's own colour. */
  position: relative;
  isolation: isolate;
}

/* Grain on the background colour and nothing else: a fixed tile of
   monochrome noise, painted once, at the bottom of the stack, screened in
   the dark and multiplied in the light. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.035;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  body::before {
    opacity: 0.055;
    mix-blend-mode: screen;
  }
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

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

.wrap {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

:is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mark -------------------------------------------------------------------- */

/* The header: the mark, and the quiet way to reach us on every page. The
   button is the commitment; this is the question before it. */
.hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.hdr .reach {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 140ms var(--ease);
}

.hdr .reach:hover {
  color: var(--ink);
}

/* The mark alone is the wordmark. */
.brand {
  display: inline-flex;
  align-items: center;
}

.brand svg {
  width: 2.5rem;
  height: 2.5rem;
}

.mark-top {
  fill: var(--ink);
}

.mark-bottom {
  fill: var(--accent);
}

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

/* One primary face. Depth comes from a gentle top-to-bottom gradient, a
   hairline of light on the top edge and a hairline of shade on the bottom,
   and a shadow no wider than the button: never a glow. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.75rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(
    to bottom,
    color-mix(in oklab, var(--accent) 94%, #fff),
    color-mix(in oklab, var(--accent) 94%, #000)
  );
  /* The site's charcoal on the coral: 4.8:1 behind the label, above the
     4.5:1 floor for text this size. Not a light-dark pair: the cream side
     of --ink would fall to 3.3:1, so the label keeps the charcoal in the
     dark as well. */
  color: #20201e;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 18%),
    inset 0 -1px 0 rgb(0 0 0 / 14%),
    0 1px 1px rgb(0 0 0 / 12%),
    0 2px 3px -1px rgb(0 0 0 / 16%);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    filter 140ms var(--ease),
    transform 140ms var(--ease),
    box-shadow 140ms var(--ease);
}

.btn:hover {
  filter: brightness(0.96);
}

.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 12%),
    inset 0 -1px 0 rgb(0 0 0 / 14%);
}

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

.h-display {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.h-section {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  align-items: center;
  align-content: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  min-height: calc(100dvh - 5.5rem);
  padding-block: 1rem 3rem;
}

.hero .copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 36rem;
}

.hero figure {
  display: grid;
  justify-items: end;
  margin: 0;
}

/* The link to the live Menu is for phones, where the framed Menu is a
   preview only; on a desktop the frame itself is live. */
.hero .live {
  display: none;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* Statement ---------------------------------------------------------------- */

.statement {
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.statement .h-section {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.statement p {
  max-width: 40ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(1.1875rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* The two promises in the accent: at this size and weight the coral holds
   3:1 on the cream, the floor for large text. */
.statement strong {
  color: var(--accent);
  font-weight: 600;
}

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

.ftr {
  padding-block: clamp(2rem, 5vw, 3.5rem) 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.ftr .wrap {
  display: flex;
  justify-content: center;
}

.ftr nav {
  display: flex;
  gap: 2rem;
  font-weight: 500;
}

.ftr nav a:hover {
  color: var(--ink);
}

/* Documents --------------------------------------------------------------- */

/* Privacy and terms sit in the same column as the landing page; only the
   running text keeps a reading measure. */
.doc {
  padding-block: 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

.doc h1,
.doc h2,
.doc p {
  max-width: 40rem;
}

.doc h1 {
  margin-bottom: 0.5rem;
}

.doc .updated {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.doc h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.doc p {
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.doc a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.15em;
}

/* Phone mockup ------------------------------------------------------------ */

/* iPhone 17 source geometry: 71.5 x 149.6 mm body (Apple technical
   specifications), 402 x 874 pt viewport (Apple HIG). The 432 x 903 model
   below preserves those physical proportions around a 402-wide browser
   viewport, shown at a uniform 0.74074 scale: 320 x 669 CSS pixels. */
:root {
  --stage-h: 669px;
  --scale: 0.74074;
}

.menu-preview {
  width: min(100%, 320px);
}

.menu-preview__stage {
  /* The screen's colour behind and above the Menu: the Menu's --ground,
     read from the frame once it loads, so the status band continues the
     Menu's own header rather than sitting on a mismatched surface. */
  --menu-preview-screen: light-dark(#f2f0ec, #0f0f12);
  --menu-preview-ink: light-dark(#282522, #f1f1ef);

  position: relative;
  width: 320px;
  height: var(--stage-h);
}

.menu-preview__device {
  position: absolute;
  top: 0;
  left: 0;
  width: 432px;
  height: 903px;
  border-radius: 62px;
  background:
    linear-gradient(135deg, #60625e 0%, #20211f 18%, #090a09 48%, #343632 100%),
    #111210;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 5px rgba(0, 0, 0, 0.86);
  transform: scale(var(--scale));
  transform-origin: top left;
}

.menu-preview__device::before {
  position: absolute;
  inset: 4px;
  border-radius: 58px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 3px rgba(0, 0, 0, 0.42);
  content: "";
  pointer-events: none;
}

.menu-preview__screen,
.menu-preview__screen-outline {
  position: absolute;
  inset: 14.5px 15px;
  border-radius: 52px;
}

.menu-preview__screen {
  z-index: 1;
  overflow: hidden;
  background: var(--menu-preview-screen);
}

/* A real phone shows the time, signal and battery in this band, and reports
   its height to the Menu as the top safe-area inset. A frame reports no
   inset, so the Menu starts below the band instead: the band is the
   screen's colour, synced to the Menu's header, and carries the glyphs. */
.menu-preview__status {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 2px 26px 0 32px;
  color: var(--menu-preview-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  pointer-events: none;
}

.menu-preview__status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.menu-preview__status-icons svg {
  display: block;
  overflow: visible;
}

.menu-preview__home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  z-index: 4;
  width: 140px;
  height: 5px;
  border-radius: 999px;
  background: var(--menu-preview-ink);
  opacity: 0.32;
  transform: translateX(-50%);
  pointer-events: none;
}

.menu-preview__screen-outline {
  z-index: 4;
  box-shadow:
    inset 0 0 0 0.75px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.68);
  pointer-events: none;
}

.menu-preview__frame {
  position: absolute;
  top: 48px;
  left: 0;
  display: block;
  width: 402px;
  height: 826px;
  border: 0;
  background: var(--menu-preview-screen);
  color-scheme: light dark;
}

.menu-preview__island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 4;
  width: 126px;
  height: 37px;
  border-radius: 999px;
  background: #030303;
  box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  pointer-events: none;
}

.menu-preview__island span {
  position: absolute;
  top: 11px;
  right: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1b2b3a, #06090d 68%);
}

.menu-preview__side-button,
.menu-preview__camera-control {
  position: absolute;
  z-index: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #111210, #555852 48%, #181917);
}

.menu-preview__side-button--action {
  top: 176px;
  left: -3px;
  height: 38px;
}

.menu-preview__side-button--volume-up {
  top: 235px;
  left: -3px;
  height: 68px;
}

.menu-preview__side-button--volume-down {
  top: 319px;
  left: -3px;
  height: 68px;
}

.menu-preview__side-button--power {
  top: 244px;
  right: -3px;
  height: 96px;
}

.menu-preview__camera-control {
  top: 615px;
  right: -3px;
  height: 72px;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 51.25rem) {
  /* The copy a fixed step below the header and the device a fixed step
     below the button; the device's head is what the fold leaves showing.
     The figure is only as tall as the peep; the rest of the device lies
     under it and the next section starts below the device. */
  :root {
    --peek: 13rem;
    --stage-h: 35.5625rem;
    --scale: 0.62963;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: 0;
    padding-block: 0;
    text-align: center;
  }

  .hero .h-display {
    font-size: 2.25rem;
  }

  /* The words and the button centre, where a thumb reaches. */
  .hero .copy {
    align-items: center;
    gap: 1.25rem;
    margin-inline: auto;
    padding-top: 2.5rem;
  }

  .hero .lede {
    margin-inline: auto;
  }

  .hero .btn {
    min-width: 11rem;
  }

  .hero .live {
    display: inline-block;
    margin-top: -0.25rem;
  }

  /* The framed Menu is a preview only: nothing in it takes a touch, so a
     flick over it scrolls the page, never the Menu. The page script also
     makes the frame inert at this width, for the keyboard and assistive
     technology. */
  .hero figure {
    height: var(--peek);
    justify-items: center;
  }

  .statement {
    padding-top: calc(var(--stage-h) - var(--peek) + 5rem);
  }

  .menu-preview__frame {
    pointer-events: none;
  }

  /* The device at a product shot's size, clear of the gutters. */
  .menu-preview,
  .menu-preview__stage {
    width: 17rem;
  }

  .ftr .wrap,
  .ftr nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
