/* 3togo.app. Colours, radii and type come from design/3togo-kit/tokens/tokens.css
   (light tokens are canonical; the app has no dark theme yet, so neither does
   the site). */

@font-face { font-family: "Onest"; src: url("fonts/onest.woff") format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FBFAF7; --paper-raised: #FFFFFF; --paper-sunken: #F3F1EC;
  --ink: #1B1A20; --ink-2: #56535E; --ink-3: #6E6B79;
  --hairline: rgba(27,26,32,.08);
  --right: #2E8B6E; --right-soft: #E6F3EE; --right-ink: #1D5B48;
  --shadow-hero: 0 1px 2px rgba(27,26,32,.04), 0 18px 40px -22px rgba(27,26,32,.22);
  --r-button: 28px; --r-card: 20px;
  --font-ui: "Onest", -apple-system, system-ui, sans-serif;
  --font-display: "Newsreader", ui-serif, Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0;
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top-link { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.top-link:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--r-button);
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 500; font-size: 17px;
  transition: transform 180ms cubic-bezier(.2,0,.2,1);
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero h1 {
  font: 400 clamp(44px, 6.4vw, 72px)/1.02 var(--font-display);
  letter-spacing: -.02em; margin: 18px 0 22px; text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero h1 span { display: block; }
.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 30ch; margin: 0 0 32px; }
.fine { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }

.phone {
  justify-self: center; width: min(100%, 320px); aspect-ratio: 592 / 1280;
  border-radius: 46px; padding: 10px; background: var(--ink);
  box-shadow: var(--shadow-hero);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #131218; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--hairline); }
.section h2 {
  font: 400 clamp(34px, 4.6vw, 52px)/1.08 var(--font-display);
  letter-spacing: -.015em; margin: 14px 0 0; max-width: 18ch; text-wrap: balance;
}

.steps { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.steps li { display: flex; flex-direction: column; gap: 18px; }
.shot { border-radius: 26px; overflow: hidden; background: var(--paper-sunken); box-shadow: var(--shadow-hero); border: 1px solid var(--hairline); aspect-ratio: 1320 / 2260; }
/* Cropped above the tab bar: on Home the badge chips run under it and their
   descenders clip, which reads as typos ("Nobodu asked"). */
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step-n { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--ink-3); }
.steps h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.steps p { margin: 0; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); margin: clamp(32px, 4vw, 48px) 0 0; }
.fact { padding: 22px 0; border-top: 1px solid var(--hairline); }
.fact h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.fact p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.es { font-family: var(--font-display); font-style: italic; font-size: 1.08em; }

.privacy-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.privacy-note p { margin: 0 0 14px; color: var(--ink-2); max-width: 46ch; }

.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; }
.closing .btn { margin-top: 32px; }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 32px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 14px; color: var(--ink-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Document pages (privacy, terms, support) */
.doc { max-width: 680px; padding: clamp(16px, 4vw, 48px) 0 72px; }
.doc h1 { font: 400 clamp(38px, 5vw, 52px)/1.05 var(--font-display); letter-spacing: -.015em; margin: 12px 0 8px; }
.doc .meta { color: var(--ink-3); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero .phone { width: min(78%, 300px); }
  /* Three tall screenshots stacked would be 2,000px of scrolling on a phone;
     swipe through them instead, with the next one peeking in. */
  .steps {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 24px; scroll-padding-left: var(--gutter);
  }
  .steps::-webkit-scrollbar { display: none; }
  .steps li { scroll-snap-align: start; }
  .facts, .privacy-note { grid-template-columns: 1fr; }
}

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