/* Shifty site: base, nav, buttons, hero type, device frames and the overview.
   Colours come from themes.css; sections in sections.css; motion and the hero rota in motion.css. */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face { /* the app's own title font, bundled with Shifty (SIL OFL 1.1) */
  font-family: "Righteous";
  src: url("fonts/righteous-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --brand: "Righteous", "Inter", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--sub);
  background: var(--ambient), var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--accent-rgb), .35); color: #fff; }
h1, h2, h3 { color: var(--text); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
strong { color: var(--text); font-weight: 600; }
code, .mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--accent-ink); }

/* ── Wordmark: the app's title in Righteous, the y in the app's cyan ──────────── */
.brand-name { font-family: var(--brand); font-weight: 400; letter-spacing: .02em; color: var(--text); }
.brand-name .y { color: var(--accent); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(18, 18, 30, .72); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 1.32rem; color: var(--text); }
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: .9rem; }
.nav-links a { position: relative; padding: 6px 0; color: var(--sub); }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a.is-current { color: var(--text); }
.nav-links a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-size: .98rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-primary {
  color: var(--accent-ink); background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 12px 32px -12px rgba(var(--accent-rgb), .9), 0 0 48px -14px rgba(var(--accent-rgb), .7);
}
.btn-primary:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 16px 40px -12px rgba(var(--accent-rgb), 1), 0 0 64px -12px rgba(var(--accent-rgb), .85); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .55; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero type (the stage and the rota behind it are in motion.css) ───────────── */
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 920px; margin: 0 auto; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(18, 18, 30, .6);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sub);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14), 0 0 12px rgba(var(--accent-rgb), .9);
}
.hero h1 { margin-top: 20px; font-size: clamp(4.2rem, 13vw, 9rem); line-height: .95; letter-spacing: .01em; text-shadow: 0 0 48px rgba(18, 18, 30, .9); }
.hero-sub { margin-top: 18px; font-size: clamp(1.3rem, 2.7vw, 1.95rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.22; color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 26px; list-style: none;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--muted);
}
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .85; }

/* ── Device frame around a real screenshot ───────────── */
.phone {
  position: relative; width: min(100%, 340px); margin: 0 auto; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2a2a40, #15151f 40%, #0d0d16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 60px 120px -50px rgba(0, 0, 0, .95), 0 40px 90px -50px rgba(var(--accent-rgb), .55);
}
.phone::before { /* camera */
  content: ""; position: absolute; top: 20px; left: 50%; z-index: 2; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: #05050a; box-shadow: inset 0 0 0 2px #1d1d2a;
}
.phone img { width: 100%; border-radius: 37px; background: var(--bg-app); }
.phone.sm { width: min(100%, 250px); padding: 8px; border-radius: 36px; }
.phone.sm img { border-radius: 29px; }
.phone.sm::before { top: 15px; width: 8px; height: 8px; margin-left: -4px; }

/* framed crop of the app's UI */
.frame {
  position: relative; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg-app);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 90px -46px rgba(0, 0, 0, .95), 0 24px 70px -46px rgba(var(--accent-rgb), .6);
}
.frame img { width: 100%; }

/* ── Overview: a large real screenshot, a summary and the key numbers ─────────── */
.overview { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 80px); }
.overview-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.overview-grid .phone { width: min(100%, 360px); }
.overview-copy .lead { margin-top: 18px; font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.55; color: #d6d6e2; }
.overview-copy h2 { margin-top: 16px; font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.04em; line-height: 1.04; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; list-style: none;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
}
.stats li { padding: 18px 20px; border-left: 1px solid var(--line); }
.stats li:nth-child(3n + 1) { border-left: 0; }
.stats li:nth-child(n + 4) { border-top: 1px solid var(--line); }
.stats .v { font-family: var(--mono); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -.03em; color: var(--text); line-height: 1.15; }
.stats .k { margin-top: 6px; font-size: .86rem; line-height: 1.4; }
