/* Swipee's landing page (web/landing/index.html). Loud and flat: whole fields
   of the app's own colours, Plus Jakarta Sans at its heaviest, the app's
   screens as the pictures. Everything references the tokens below.
   scripts/write-landing.js fills in the {{FONT_*}} urls with the app's own
   font files from the web export. */

@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url(/assets/node_modules/@expo-google-fonts/plus-jakarta-sans/400Regular/PlusJakartaSans_400Regular.dd3a1370a03dc0f2d7d093bd0ffe7c0b.ttf) format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url(/assets/node_modules/@expo-google-fonts/plus-jakarta-sans/500Medium/PlusJakartaSans_500Medium.0a825b3e08f62af5a9bc9130843b12ff.ttf) format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url(/assets/node_modules/@expo-google-fonts/plus-jakarta-sans/600SemiBold/PlusJakartaSans_600SemiBold.73de6fb49299ccb6478575127008c120.ttf) format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url(/assets/node_modules/@expo-google-fonts/plus-jakarta-sans/700Bold/PlusJakartaSans_700Bold.bac8ecad2d6da4aa6b4200699a80a9dd.ttf) format('truetype'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url(/assets/node_modules/@expo-google-fonts/plus-jakarta-sans/800ExtraBold/PlusJakartaSans_800ExtraBold.f90855567d2c693a26e66f7184645099.ttf) format('truetype'); }

:root {
  --bg: #0F1013;
  --bg-deep: #08090B;
  --surface: #1C1D22;
  --surface-2: #26272D;
  --ink: #FFFFFF;
  --muted: #A3A6AE;
  --accent: #DC2626;
  --accent-press: #B91C1C;
  --accent-ink: #FFFFFF;
  --blue: #2563EB;
  --amber: #FCD34D;
  --green: #22C55E;
  --dark-ink: #141519;

  --margin: 32px;
  --radius: 28px;
  --gap-section: 176px;

  /* The five sizes of the page */
  --t-hero: clamp(120px, 15vw, 230px);
  --t-big: clamp(52px, 8vw, 128px);
  --t-title: clamp(26px, 3vw, 44px);
  --t-lede: clamp(20px, 1.9vw, 28px);
  --t-body: 18px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F5F6; --bg-deep: #E9E9EC; --surface: #FFFFFF; --surface-2: #DEDEE3;
    --ink: #141519; --muted: #5B5E66; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F5F5F6; --bg-deep: #E9E9EC; --surface: #FFFFFF; --surface-2: #DEDEE3;
  --ink: #141519; --muted: #5B5E66; color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: var(--t-body); line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #FFFFFF; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--t-body); font-weight: 800; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { background: var(--accent-press); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--quiet { background: var(--surface-2); color: var(--ink); }
.btn--quiet:hover { background: var(--surface); }
.btn svg { flex-shrink: 0; }

/* ---------- Hero: a square over a moving line ---------- */

.hero {
  position: relative; min-height: 100svh; min-height: max(100svh, 820px);
  display: grid; grid-template-rows: auto 1fr auto auto; overflow: hidden;
}
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 28px var(--margin) 0; font-size: var(--t-body); font-weight: 700;
}
.top a { text-decoration: none; padding: 8px 0; transition: color .18s var(--ease); }
.top a:hover { color: var(--accent); }
.top .right { justify-self: end; }
.wordmark { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.top .menu { display: none; }

.band {
  --s: clamp(300px, 28vw, 420px);
  position: relative; align-self: start; margin-top: clamp(24px, 5vh, 64px); height: var(--s);
}
.square {
  position: absolute; left: 50%; top: 0; width: var(--s); height: var(--s); translate: -50% 0;
  border-radius: var(--radius); overflow: hidden;
}
.line {
  position: absolute; left: 0; right: 0; top: 44%; translate: 0 -50%;
  font-size: var(--t-hero); font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  white-space: nowrap; overflow: hidden; pointer-events: none;
}
.line .track { display: inline-flex; animation: slide var(--dur, 64s) linear infinite; }
.line .copy { display: inline-flex; align-items: center; }
.line .dot {
  display: inline-block; width: .3em; height: .3em; margin: 0 .32em; border-radius: 50%;
  background: currentColor; translate: 0 .06em;
}
.line--clip { position: absolute; inset: 0; color: var(--bg); clip-path: inset(0 calc(50% - var(--s) / 2)); }
@keyframes slide { to { transform: translateX(-50%); } }
.hero:hover .track { animation-play-state: paused; }

.intro { text-align: center; padding: 56px var(--margin) 0; }
.lede { font-size: var(--t-lede); line-height: 1.4; font-weight: 500; max-width: 38ch; margin: 0 auto; text-wrap: balance; }
.fact { margin-top: 20px; font-size: var(--t-body); font-weight: 700; color: var(--ink); }
.bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 32px var(--margin) 36px; font-size: var(--t-body);
}
.bottom p { font-weight: 600; }

/* ---------- Features: stacking colour sheets ---------- */

.why { padding-top: var(--gap-section); }
.why > h2, .how > h2 {
  font-size: var(--t-big); font-weight: 800; letter-spacing: -0.045em; line-height: .95;
  padding: 0 var(--margin); margin-bottom: calc(48px + var(--radius)); max-width: 14ch;
}
.sheet {
  --c: var(--blue); --on: #FFFFFF;
  position: relative; margin-top: calc(var(--radius) * -1);
  min-height: max(86svh, 680px); background: var(--c); color: var(--on);
  border-radius: var(--radius) var(--radius) 0 0;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  grid-template-rows: 72px 1fr; padding: 0 var(--margin);
}
.sheet:nth-child(2) { --c: var(--amber); --on: var(--dark-ink); }
.sheet:nth-child(3) { --c: var(--green); --on: var(--dark-ink); }
.sheet:nth-child(4) { --c: #E4E4E8; --on: var(--dark-ink); }
.sheet h3 {
  grid-column: 1 / 7; grid-row: 1; align-self: center;
  font-size: var(--t-title); font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
}
.sheet p { grid-column: 1 / 6; grid-row: 2; align-self: end; padding-bottom: calc(56px + var(--radius)); max-width: 30ch; font-size: var(--t-lede); line-height: 1.35; font-weight: 500; }
.sheet .shot {
  grid-column: 7 / 13; grid-row: 2; position: relative; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start; padding-top: 24px;
}
.sheet .shot .ui-screen { zoom: 1.18; border-radius: 34px 34px 0 0; }

/* ---------- Showcase: one control, blown up ---------- */

.switch-field {
  --field: var(--accent); --field-ink: #FFFFFF;
  position: relative; min-height: max(92svh, 720px); overflow: hidden;
  background: var(--field); color: var(--field-ink);
  padding: 72px var(--margin) 0; transition: background-color .45s var(--ease), color .45s var(--ease);
}
.switch-field[data-mode="groups"] { --field: var(--amber); --field-ink: var(--dark-ink); }
.switch-field h2 { font-size: var(--t-big); font-weight: 800; letter-spacing: -0.045em; line-height: .95; }
.switch-field h2 .word { display: inline-block; }
.switch-field > p { margin-top: 28px; max-width: 34ch; font-size: var(--t-lede); line-height: 1.4; font-weight: 500; }

.giant {
  position: absolute; left: 38%; bottom: -0.3em;
  font-size: clamp(56px, 6.2vw, 104px); font-weight: 800; letter-spacing: -0.03em;
  display: flex; padding: .14em; gap: .1em; border-radius: 999px;
  background: rgba(0, 0, 0, .22); transition: transform .45s var(--ease);
}
.giant button {
  height: 2.1em; padding: 0 .8em; border: 0; border-radius: 999px; background: transparent;
  color: inherit; font-size: 1em; font-weight: 800; letter-spacing: inherit; white-space: nowrap;
  opacity: .72; transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s var(--ease), transform .18s var(--ease);
}
.giant button:hover { opacity: 1; }
.giant button:active { transform: scale(.98); }
.giant button[aria-pressed="true"] { background: #FFFFFF; color: var(--dark-ink); opacity: 1; }
.switch-field[data-mode="groups"] .giant { background: rgba(0, 0, 0, .12); }
.switch-field[data-mode="groups"] .giant button[aria-pressed="true"] { background: var(--dark-ink); color: #FFFFFF; }
.giant button:focus-visible { outline-width: .05em; outline-color: currentColor; border-radius: 999px; }

/* ---------- How it works: stages as one bar ---------- */

.how { padding-top: var(--gap-section); }
.how > h2 { max-width: 16ch; margin-bottom: 64px; }
.stages { display: flex; gap: 6px; padding: 0 var(--margin); list-style: none; margin: 0; }
.stage { flex: var(--g) 1 0; min-width: 12%; display: flex; flex-direction: column; gap: 18px; }
.stage .seg {
  height: max(22vh, 180px); background: var(--c); color: var(--on); border-radius: 0;
  padding: 20px; font-size: var(--t-title); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.stage:first-child .seg { border-radius: var(--radius) 0 0 var(--radius); }
.stage:last-child .seg { border-radius: 0 var(--radius) var(--radius) 0; }
.stage p { max-width: 24ch; font-size: var(--t-body); font-weight: 500; }
.stage:nth-child(1) { --g: 1.7; --c: var(--surface-2); --on: var(--ink); }
.stage:nth-child(2) { --g: 3; --c: var(--accent); --on: #FFFFFF; }
.stage:nth-child(3) { --g: 4; --c: var(--blue); --on: #FFFFFF; }

/* ---------- Get the app: a question at both edges ---------- */

.get {
  margin-top: var(--gap-section); background: var(--bg-deep);
  display: grid; grid-template-rows: auto 1fr auto auto; text-align: center; padding: 40px var(--margin) 32px;
}
.get h2 { display: contents; }
.get .q {
  display: block; font-size: var(--t-big); font-weight: 800; letter-spacing: -0.045em; line-height: 1;
  white-space: nowrap;
}
.get .q[hidden] { display: none; }
.choice { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 80px 0; }
.choice .row { display: flex; align-items: center; justify-content: center; gap: 40px; }
.choice .or { font-size: var(--t-body); color: var(--muted); font-weight: 600; }
.choice .btn { min-width: 240px; height: 60px; }
.choice .after { max-width: 44ch; font-size: var(--t-body); color: var(--muted); }
.get[data-install="prompt"] [data-when]:not([data-when~="prompt"]),
.get[data-install="ios"] [data-when]:not([data-when~="ios"]),
.get[data-install="standalone"] [data-when]:not([data-when~="standalone"]),
.get[data-install="open"] [data-when]:not([data-when~="open"]),
.get[data-install="desktop"] [data-when]:not([data-when~="desktop"]) { display: none; }

/* iPhone how-to: the three taps, drawn as the Safari parts they are */
.howto {
  display: grid; grid-template-columns: repeat(3, 220px); gap: 8px; text-align: left; margin-top: 8px;
}
.howto li { list-style: none; background: var(--surface); border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.howto ol { display: contents; }
.howto .pic { height: 92px; border-radius: 14px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.howto span.say { font-size: 16px; font-weight: 600; }
.howto b { font-weight: 800; }
.safari-bar { display: flex; gap: 22px; align-items: center; color: #3B82F6; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 84%; padding: 10px 14px; border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 600; }
.add-row { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.add-row img { width: 48px; height: 48px; border-radius: 12px; }
.add-row .add { color: #3B82F6; font-weight: 800; margin-left: 6px; }

.qr { display: flex; align-items: center; gap: 18px; text-align: left; background: #FFFFFF; color: var(--dark-ink); border-radius: 22px; padding: 14px 20px 14px 14px; }
.qr svg { width: 104px; height: 104px; }
.qr span { font-size: 16px; font-weight: 700; max-width: 15ch; }

.stores { display: flex; gap: 10px; justify-content: center; margin-top: 48px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 14px;
  background: #000000; color: #FFFFFF; text-decoration: none; text-align: left; line-height: 1.1;
}
.store small { display: block; font-size: 13px; font-weight: 500; }
.store strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
/* Not live yet: dimmed, not clickable. To switch one on, remove data-soon and aria-disabled and give it its store link. */
.store[data-soon] { background: var(--surface-2); color: var(--muted); pointer-events: none; }

/* ---------- Footer: the mark, built large ---------- */

.foot { background: var(--bg); padding: 96px var(--margin) 32px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: 34svh; min-height: 240px; }
.blocks span {
  flex: 1; height: var(--h); background: var(--c); color: var(--on);
  display: flex; align-items: flex-end; justify-content: center; border-radius: 22px 22px 0 0;
  font-size: clamp(64px, 11vw, 180px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; overflow: hidden;
}
.foot nav { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 16px; font-size: var(--t-body); }
.foot nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot nav ul:nth-child(1) { grid-column: 1 / 4; }
.foot nav ul:nth-child(2) { grid-column: 4 / 7; }
.foot nav .notes { grid-column: 8 / 13; display: flex; flex-direction: column; gap: 10px; }
.foot nav a { text-decoration: none; font-weight: 700; }
.foot nav a:hover { color: var(--accent); }
.foot .last { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: var(--t-body); }
.theme { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.theme button { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; font-size: 16px; }
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Motion: entrances ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--n, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
.square .ui-card { animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .line .track { animation: none; transform: translateX(calc(-25% + 0px)); }
  .square .ui-card { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .giant, .giant button, .switch-field { transition: none; }
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 900px) {
  :root { --gap-section: 120px; }
  .switch-field { min-height: 600px; }
  .giant { font-size: 12vw; bottom: 40px; }
  .sheet { grid-template-rows: 60px auto auto; }
  .sheet h3 { grid-column: 1 / -1; }
  .sheet .shot { grid-column: 1 / -1; grid-row: 2; aspect-ratio: 4 / 3; }
  .sheet p { grid-column: 1 / -1; grid-row: 3; padding: 28px 0 calc(40px + var(--radius)); }
  .giant { left: var(--margin); }
}

@media (max-width: 600px) {
  :root { --margin: 20px; --t-hero: 34vw; --t-big: clamp(44px, 12vw, 64px); --t-lede: 18px; --t-body: 17px; }
  .hero { min-height: 100svh; min-height: max(100svh, 760px); }
  .top { padding-top: 18px; }
  .top .left, .top .right { visibility: hidden; width: 0; overflow: hidden; }
  .top .right { display: none; }
  .square .ui-chips { display: none; }
  .square .ui-name b { font-size: 20px !important; }
  .square .ui-name span { font-size: 17px !important; }
  .top .menu { display: block; justify-self: end; grid-column: 3; }
  .wordmark { font-size: 26px; }
  .band { --s: 46vw; margin-top: 12svh; }
  .intro { padding-top: 48px; }
  .bottom { flex-direction: column-reverse; align-items: stretch; padding: 32px var(--margin) 20px; text-align: center; }
  .bottom .btn { width: 100%; }

  .why > h2 { margin-bottom: calc(32px + var(--radius)); }
  .how > h2 { margin-bottom: 32px; }
  .sheet { grid-template-rows: 52px auto auto; min-height: 0; align-content: start; }
  .sheet h3 { font-size: 22px; }
  .sheet .shot { aspect-ratio: auto; height: 440px; margin: 0 calc(var(--margin) * -1); padding-top: 12px; }
  .sheet .shot .ui-screen { zoom: .9; }
  .sheet p { padding: 20px 0 calc(32px + var(--radius)); font-size: 17px; }

  .switch-field { min-height: 560px; padding-top: 48px; }
  .switch-field > p { font-size: 17px; }
  .giant { left: var(--margin); bottom: 40px; font-size: 11vw; }

  .stages { flex-direction: column; height: auto; }
  .stage .seg { height: calc(var(--g) * 64px); min-height: 72px; font-size: 22px; }
  .stage:first-child .seg { border-radius: var(--radius) var(--radius) 0 0; }
  .stage:last-child .seg { border-radius: 0 0 var(--radius) var(--radius); }
  .stage { gap: 10px; }
  .stage p { max-width: none; padding-bottom: 14px; }

  .get { padding-top: 32px; }
  .get .q { font-size: 13.5vw; white-space: normal; }
  .choice .row .qr { width: 100%; }
  .choice { padding: 32px 0; }
  .choice .row { flex-direction: column; gap: 12px; width: 100%; }
  .choice .btn { width: 100%; min-width: 0; }
  .howto { grid-template-columns: 1fr; width: 100%; }
  .howto li { padding: 14px; gap: 10px; }
  .howto .pic { height: 72px; }
  .stores { flex-wrap: wrap; }

  .foot { padding-top: 56px; }
  .blocks { height: 22svh; min-height: 150px; }
  .blocks span { font-size: 17vw; border-radius: 14px 14px 0 0; }
  .foot nav ul:nth-child(1) { grid-column: 1 / 7; }
  .foot nav ul:nth-child(2) { grid-column: 7 / 13; }
  .foot nav .notes { grid-column: 1 / -1; margin-top: 16px; }
}

/* ---------- The app's own screens (data-ui): Omi look, kept as the app draws it ---------- */

.ui-screen {
  position: relative; width: 390px; height: 720px; flex-shrink: 0; overflow: hidden;
  background: #0F1013; color: #FFFFFF; font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px; line-height: 1.35;
}
.ui-photo { position: relative; overflow: hidden; background: var(--p, #CDBFB2); }
.ui-photo .who { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ui-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.4) 32%, rgba(0,0,0,.88) 100%); }
.ui-glass { background: rgba(23,24,28,.38); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #FFFFFF; }
.ui-chip { height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-name { display: flex; align-items: center; gap: 8px; }
.ui-name b { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; }
.ui-name span { font-size: 26px; font-weight: 400; }
.ui-card-box { background: #1C1D22; border: 1px solid rgba(255,255,255,.08); border-radius: 22px; padding: 16px; }
.ui-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #A3A6AE; }
.ui-tabs { display: flex; padding: 4px; border-radius: 999px; }
.ui-tabs span { flex: 1; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85); }
.ui-tabs span.on { background: #FFFFFF; color: #17181C; font-weight: 800; }
.ui-card { position: absolute; inset: 0; color: #FFFFFF; }
.ui-toggle { width: 46px; height: 28px; border-radius: 999px; background: #DC2626; position: relative; flex-shrink: 0; }
.ui-toggle::after { content: ""; position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 999px; background: #FFFFFF; }
.ui-slider { position: relative; height: 6px; border-radius: 999px; background: #26272D; }
.ui-slider i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); border-radius: 999px; background: #DC2626; }
.ui-slider i::after { content: ""; position: absolute; right: -11px; top: -8px; width: 22px; height: 22px; border-radius: 999px; background: #FFFFFF; }
