/* runmii.app. Colours and type are the app's own (runmii-ios/Runmii/Design/RunmiiTokens.swift). */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-200.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050a0d;          /* tealDeep */
  --bg-2: #0b1519;
  --panel: #0e1a20;       /* tealMid */
  --panel-2: #13232c;     /* tealNight */
  --ink: #daeaea;         /* offWhite */
  --ink-body: #bfd0d0;
  --ink-soft: rgba(218, 234, 234, 0.5);
  --ink-faint: rgba(218, 234, 234, 0.34);
  --accent: #c1ff33;      /* fluorGreen */
  --accent-ink: #0a1409;
  --lake: #82b7b6;        /* mountainLake */
  --red: #ff6a4d;
  --line: rgba(218, 234, 234, 0.1);
  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(96px, 12vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.soft { display: block; color: var(--ink-soft); }

/* Nav: the one glass surface on the page */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, 100% - 2 * var(--gutter));
  display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 8px 0 18px;
  border-radius: 999px; background: rgba(5, 10, 13, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(218, 234, 234, 0.08);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 18px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-body); transition: color 160ms ease, background-color 160ms ease; }
.nav-links a:hover { color: var(--ink); background: rgba(218, 234, 234, 0.06); }
.nav .btn { margin-left: 4px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px; font: 600 15px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms ease, color 160ms ease;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #cfff5c; }
.btn-ghost { background: rgba(218, 234, 234, 0.08); color: var(--ink); }
.btn-ghost:hover { background: rgba(218, 234, 234, 0.14); }
.nav .btn { height: 40px; padding: 0 16px; font-size: 14px; }

/* Small line above a heading */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 500 15px/1.2 var(--text); color: var(--lake); margin-bottom: 20px; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(218, 234, 234, 0.08); font: 500 14px/1.2 var(--text); color: var(--ink); text-decoration: none; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 300; }
@media (max-width: 359px) { .h1 { font-size: 35px; } }
.h2 { font-size: clamp(30px, 4.3vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 400; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-body); max-width: 34em; }
.body { color: var(--ink-body); max-width: 31em; }
.body + .body { margin-top: 16px; }

/* Phones: the device as it is, upright and whole */
.phone { width: 100%; height: auto; aspect-ratio: 600 / 1238; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 120px 0 72px; }
.hero-film { position: absolute; inset: 0; z-index: -2; }
.hero-film video, .hero-film img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 10, 13, 0.94) 0%, rgba(5, 10, 13, 0.78) 38%, rgba(5, 10, 13, 0.35) 70%, rgba(5, 10, 13, 0.5) 100%),
    linear-gradient(180deg, rgba(5, 10, 13, 0.4) 0%, rgba(5, 10, 13, 0) 30%, rgba(5, 10, 13, 0) 70%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 48px; }
.hero .pill { margin-bottom: 28px; }
.hero .lede { margin-top: 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-phone { position: relative; width: clamp(240px, 23vw, 310px); justify-self: center; }
.hero-phone .phone + .phone { position: absolute; inset: 0; }
.hero-phone .phone { transition: opacity 700ms ease; }
.js .hero-phone .phone:not(.on) { opacity: 0; }
.hero-caption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-soft); min-height: 1.4em; }
@media (max-width: 860px) {
  .hero { padding-top: 112px; align-items: flex-start; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 10, 13, 0.82) 0%, rgba(5, 10, 13, 0.7) 50%, var(--bg) 100%); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-phone { width: min(260px, 68vw); }
}

/* Section rhythm */
.section { padding-block: var(--gap) 0; }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head .body { margin-top: 24px; }
.section-head.center .body { margin-inline: auto; }

/* Four ways */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.way {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 24px;
  border-radius: 24px; overflow: hidden; isolation: isolate; text-decoration: none; background: var(--panel);
  transition: transform 300ms var(--ease);
}
.way img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.way::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 13, 0) 35%, rgba(5, 10, 13, 0.88) 100%); }
.way p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-body); }
.way .go { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 10, 13, 0.45); color: var(--ink); }
@media (hover: hover) { .way:hover { transform: translateY(-4px); } .way:hover img { transform: scale(1.04); } }
@media (max-width: 1020px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } .way { min-height: 380px; } }
@media (max-width: 560px) { .ways { grid-template-columns: 1fr; } .way { min-height: 320px; } }

/* Feature rows: a soft panel made from the app's own photograph, the phone standing in it */
.feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.feature.flip .stage { order: 2; }
.stage {
  position: relative; display: block; aspect-ratio: 1 / 1.02; border-radius: 32px; overflow: hidden;
  background: var(--panel) center / cover no-repeat;
}
.stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 100%, rgba(5, 10, 13, 0.35), rgba(5, 10, 13, 0) 60%); pointer-events: none; }
.stage .phone { position: absolute; z-index: 1; top: 8%; left: 0; right: 0; height: 84%; width: auto; margin-inline: auto; }  /* whole device, always inside the panel */
.copy .h2 { margin-bottom: 24px; font-size: clamp(30px, 3.4vw, 48px); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { padding: 8px 14px; border-radius: 999px; background: rgba(218, 234, 234, 0.07); font-size: 14px; color: var(--ink); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature .copy { order: -1; }
  .feature.flip .stage { order: 0; }
  .stage { aspect-ratio: 1 / 1.16; border-radius: 26px; }
}

/* Live: the duel screen's two sides, cut corner to corner by the line */
.live { position: relative; margin-top: var(--gap); min-height: min(940px, 100svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 96px 0; }
.live-side { position: absolute; inset: 0; z-index: -3; }
.live-side img { width: 100%; height: 100%; object-fit: cover; }
.live-side.you img { object-position: 50% 62%; }
.live-side.rival { clip-path: polygon(44% 0, 100% 0, 100% 100%, 60% 100%); }
.live-side.rival img { object-position: 50% 58%; }
.live-line { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.live::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 10, 13, 0.72) 0%, rgba(5, 10, 13, 0.25) 46%, rgba(5, 10, 13, 0.1) 100%), linear-gradient(180deg, var(--bg) 0%, rgba(5, 10, 13, 0) 18%, rgba(5, 10, 13, 0) 82%, var(--bg) 100%); }
.live-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
.live-copy { max-width: 520px; }
.live-copy .h2 { font-size: clamp(30px, 3.6vw, 52px); }
.live-copy .h2 { margin-bottom: 24px; }
.live-copy .body { color: var(--ink); }
.live-phone { width: clamp(230px, 22vw, 300px); justify-self: center; margin-left: 18%; }
.gap-scale { display: flex; gap: 28px; margin-top: 32px; font-family: var(--display); font-weight: 300; font-size: 34px; letter-spacing: -0.02em; line-height: 1; }
.gap-scale span small { display: block; margin-top: 8px; font: 400 14px/1.3 var(--text); letter-spacing: 0; color: var(--ink-body); }
.gap-scale .ahead { color: var(--accent); }
.gap-scale .behind { color: var(--red); }
@media (max-width: 860px) {
  .live { min-height: 0; padding: 80px 0; }
  .live::before { background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 10, 13, 0.9) 30%, rgba(5, 10, 13, 0.82) 50%, rgba(5, 10, 13, 0.3) 70%, var(--bg) 100%); }
  .live-grid { grid-template-columns: 1fr; gap: 48px; }
  .live-phone { width: min(250px, 64vw); margin-left: 0; }
}

/* Three phones */
.trio-stage { margin-top: 56px; border-radius: 32px; overflow: hidden; background: var(--panel) center / cover no-repeat; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 64px) 0; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); max-width: 920px; margin-inline: auto; align-items: end; }
.trio figure { margin: 0; }
.trio .phone { width: 100%; }
.trio figcaption { padding: 16px 0 clamp(28px, 4vw, 48px); text-align: center; font-size: 15px; color: var(--ink); }
@media (max-width: 700px) {
  .trio-stage { padding-inline: 0; }
  .trio { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .trio::-webkit-scrollbar { display: none; }
  .trio figure { flex: 0 0 62%; scroll-snap-align: center; }
}

/* Join */
.join { position: relative; margin-top: var(--gap); border-radius: 32px; overflow: hidden; isolation: isolate; padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 80px); text-align: center; }
.join > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.join::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 10, 13, 0.55), rgba(5, 10, 13, 0.82)); }
@media (max-width: 700px) { .join::before { background: linear-gradient(180deg, rgba(5, 10, 13, 0.78), rgba(5, 10, 13, 0.9)); } }
.join .h2 { max-width: 760px; margin-inline: auto; }
.join .lede { margin: 24px auto 0; }
.join .ctas { justify-content: center; }
.join .note { margin-top: 20px; font-size: 14px; color: var(--ink-body); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 400 19px/1.35 var(--display); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(218, 234, 234, 0.07); font: 300 20px/1 var(--text); color: var(--ink); transition: transform 200ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--ink-body); }
.faq-list a, .doc a:not(.btn), .body a { color: var(--ink); text-decoration-color: rgba(193, 255, 51, 0.6); text-underline-offset: 3px; }
.faq-list a:hover, .doc a:not(.btn):hover, .body a:hover { text-decoration-color: var(--accent); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { margin-top: var(--gap); padding: 64px 0 40px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr)); gap: 40px; }
.foot p { color: var(--ink-body); font-size: 15px; max-width: 26em; margin-top: 16px; }
.foot h2 { font: 500 14px/1.3 var(--text); letter-spacing: 0; color: var(--ink-soft); margin-bottom: 14px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; color: var(--ink); font-size: 15px; }
.foot ul a:hover { color: var(--accent); }
.fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }
.fine a { color: inherit; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Text pages: privacy, terms, faq, delete account, not found */
.page { padding: 152px 0 0; }
.doc { width: min(720px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.doc .h1 { font-size: clamp(40px, 5.6vw, 64px); }
.doc .updated { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.doc h2 { margin: 48px 0 14px; font-size: 24px; line-height: 1.25; font-weight: 400; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-body); }
.doc p + p, .doc ul + p { margin-top: 14px; }
.doc .ctas { margin-top: 32px; }
.doc ul { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.doc strong { color: var(--ink); font-weight: 500; }
.doc .faq-list { margin-top: 40px; }
.doc .after { margin-top: 40px; }
.form { margin-top: 28px; padding: 28px; border-radius: 24px; background: var(--panel); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.label { font-size: 14px; font-weight: 500; color: var(--ink); }
.input { width: 100%; height: 48px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--panel-2); color: var(--ink); font: 400 16px/1 var(--text); box-shadow: inset 0 0 0 1px rgba(218, 234, 234, 0.08); }
.input::placeholder { color: var(--ink-faint); }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.btn-danger { background: #3a1a14; color: #ffb5a5; justify-self: start; }
.btn-danger:hover { background: #4a2018; }

/* Entrance: rises 16px once. Nothing moves with reduced motion. */
.js [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .hero [data-rise] { transform: translateY(18px); filter: blur(6px); transition: opacity 1100ms var(--ease), transform 1100ms var(--ease), filter 1100ms var(--ease); transition-delay: calc(120ms + var(--i, 0) * 90ms); }
.js .hero [data-rise].in { filter: none; transform: none; }
.js .hero .hero-phone[data-rise] { transform: translateY(64px); transition-duration: 1400ms; }
.js .hero .hero-phone[data-rise].in { transform: none; }
.js [data-lift] .phone { transform: translateY(40px); transition: transform 1200ms var(--ease); }
.js [data-lift].in .phone { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise], .js .hero [data-rise], .js [data-lift] .phone { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .way, .way img, .btn, .hero-phone .phone { transition: none; }
}
