/* RTA Group: bright, expensive, animation-forward. Whites and light
   blues, Inter Tight display, Inter text. No dependencies beyond
   Google Fonts. */

:root {
  --bg: #f5f9ff;
  --card: #ffffff;
  --ink: #0b1c33;
  --ink-soft: #46597a;
  --ink-faint: #7f93b2;
  --accent: #4da6ff;
  --accent-deep: #1e6ede;
  --accent-soft: rgba(77, 166, 255, 0.10);
  --live: #0e9f6e;
  --hairline: rgba(11, 28, 51, 0.08);
  --hairline-strong: rgba(11, 28, 51, 0.16);
  --shadow: 0 1px 2px rgba(11, 28, 51, 0.04), 0 12px 32px rgba(70, 140, 230, 0.10);
  --shadow-hover: 0 2px 4px rgba(11, 28, 51, 0.05), 0 18px 44px rgba(70, 140, 230, 0.16);
  --shadow-deep: 0 24px 70px rgba(60, 130, 220, 0.22);
  --radius: 26px;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: var(--text);
  margin: 0; padding: 0 22px 0;
  line-height: 1.7; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main, .narrow { max-width: 720px; margin: 0 auto; position: relative; }
body.landing main, body.app-page main { max-width: 1120px; }
img { max-width: 100%; display: block; }

h1, h2.display, .stat b, .abstract .big-glyph {
  font-family: var(--display);
}
h1 {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.02;
  font-size: clamp(2.8rem, 7.4vw, 5.2rem); margin: 0 0 28px;
}
h1 .grad, .grad-text {
  background: linear-gradient(115deg, #2e8bf5 10%, #4da6ff 55%, #8fd0ff 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2.display {
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 0 0 14px;
}
h2 { font-size: 1.2rem; margin-top: 2.2em; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.tag {
  color: var(--accent-deep); font-weight: 700; letter-spacing: 0.2em;
  font-size: 0.72rem; text-transform: uppercase; margin: 0 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.tag::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.tag.center { justify-content: center; }
.tag.center::before { display: none; }
.lede { color: var(--ink-soft); font-size: 1.16rem; max-width: 36em; }
.crumb { font-size: 0.85rem; margin: 30px 0; display: inline-block; }

/* ---------- Ambient background ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(77, 166, 255, 0.12), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(125, 211, 252, 0.16), transparent 55%),
    linear-gradient(180deg, #eaf3ff 0%, var(--bg) 42%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.orb.a {
  width: 520px; height: 520px; left: -140px; top: -120px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.5), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb.b {
  width: 640px; height: 640px; right: -220px; top: 12%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.45), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.orb.c {
  width: 480px; height: 480px; left: 28%; bottom: -260px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.4), transparent 65%);
  animation: drift-c 38s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(90px, 70px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-110px, 90px) scale(0.92); } }
@keyframes drift-c { to { transform: translate(70px, -80px) scale(1.15); } }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.025;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
nav.site {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -22px; padding: 0 22px;
  background: transparent;
  transition: background 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
nav.site.scrolled {
  background: rgba(245, 249, 255, 0.74);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  border-bottom-color: var(--hairline);
}
nav.site .inner {
  max-width: 1120px; margin: 0 auto; height: 68px;
  display: flex; align-items: center; gap: 30px;
}
.wordmark {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; font-size: 1.12rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px;
}
.wordmark::before {
  content: ""; width: 28px; height: 28px;
  /* url() resolves against this stylesheet's location, so the root
     favicon works from every page depth. No radius or shadow: the
     mark's letters sit outside the square, on transparency. */
  background: url("favicon.svg") center / contain no-repeat;
}
/* Nav only: black letters. The footer and browser tab keep favicon.svg. */
nav.site .wordmark::before { background-image: url("logo-nav.svg"); }
.wordmark span { font-weight: 400; color: var(--ink-soft); }
nav.site ul {
  display: flex; gap: 24px; list-style: none; margin: 0 0 0 auto; padding: 0;
  /* No overflow clipping here: it would cut the live-dot ping ring.
     Mobile opts back into horizontal scrolling below, with padding. */
}
nav.site ul::-webkit-scrollbar { display: none; }
nav.site li { flex: none; }
nav.site ul a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.87rem;
  font-weight: 550; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 0; position: relative; transition: color 200ms ease;
}
nav.site ul a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--accent);
  transition: right 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
nav.site ul a:hover { color: var(--ink); }
nav.site ul a:hover::after { right: 0; }
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  position: relative;
}
.dot-live::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid var(--live); opacity: 0.6;
  animation: ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.1); opacity: 0; } }
.pip {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid rgba(77, 166, 255, 0.22);
  border-radius: 999px; padding: 2px 7px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 30px; min-height: 74vh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
/* The mask window extends well past the line box on both sides so no
   ascender or descender can clip (0.35em is deeper than any glyph
   tail); negative margins cancel the padding so line spacing is
   unchanged. The span starts 160% down so the deeper window still
   fully hides it before the rise. */
.line-mask {
  display: block; overflow: hidden;
  padding: 0.12em 0 0.35em; margin: -0.12em 0 -0.35em;
}
.line-mask > span {
  display: block; transform: translateY(160%);
  animation: rise 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  /* background-clip: text only paints within this element's own box,
     and the tight line-height makes the box shorter than the glyphs:
     without this padding a gradient line's descenders (the g tail)
     fall outside the paint area and turn invisible. The negative
     margin cancels the layout impact. */
  padding-bottom: 0.28em; margin-bottom: -0.28em;
}
.line-mask:nth-child(2) > span { animation-delay: 120ms; }
@keyframes rise { to { transform: translateY(0); } }
.hero .tag, .hero .lede, .hero .cta-row, .hero .trust-row { opacity: 0; animation: fade-up 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.hero .tag { animation-delay: 60ms; }
.hero .lede { animation-delay: 320ms; }
.hero .cta-row { animation-delay: 480ms; }
.hero .trust-row { animation-delay: 620ms; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.trust-row {
  margin-top: 26px; font-size: 0.82rem; color: var(--ink-faint);
  display: flex; gap: 18px; flex-wrap: wrap; font-weight: 550;
}
.trust-row s { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.trust-row s::before { content: "✓"; color: var(--live); font-weight: 800; }

/* Hero mark: the RTA compass logo, floating gently. Phone frames are
   still used by the feature rows and app pages below. */
.hero-visual { display: grid; place-items: center; min-height: 360px; }
.hero-mark {
  width: min(58vw, 340px); display: block;
  filter: drop-shadow(0 26px 50px rgba(60, 130, 220, 0.28));
  animation: float-a 7s ease-in-out infinite alternate;
}
.phone {
  border-radius: 42px; border: 9px solid #0d1e36; overflow: hidden;
  background: #0d1e36; box-shadow: var(--shadow-deep);
  position: relative; width: min(36vw, 208px);
}
.phone img { width: 100%; height: auto; }
@keyframes float-a { to { transform: translateY(-16px); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-weight: 650; font-size: 0.95rem; letter-spacing: 0.005em;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease, background 220ms ease;
}
.btn-primary {
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #4da6ff, #7cc2ff);
  box-shadow: 0 8px 30px rgba(77, 166, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 600ms ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(77, 166, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover::after { left: 140%; }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover { transform: translateY(-2px); background: #ffffff; }
.btn-small { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin: 84px 0 0;
}
.stat {
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow);
}
.stat b {
  display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--accent-deep); line-height: 1.1;
}
.stat i { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); font-weight: 550; }

/* ---------- Feature rows ---------- */
.section-head { margin: 110px 0 8px; text-align: center; }
.section-head .lede { margin-left: auto; margin-right: auto; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin: 84px 0;
}
.feature-row.flip .feature-visual { order: 2; }
.feature-copy h3 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 6px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.feature-copy .tagline {
  font-size: 1.12rem; font-weight: 650; color: var(--accent-deep); margin: 0 0 14px;
}
.feature-copy p.body { margin: 0 0 22px; color: var(--ink-soft); }
.feature-visual { position: relative; display: flex; justify-content: center; }
.feature-visual .phone {
  position: relative; width: min(70vw, 264px); left: auto; right: auto; top: auto;
  transform: rotate(-2.5deg);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-row.flip .feature-visual .phone { transform: rotate(2.5deg); }
.feature-visual:hover .phone { transform: rotate(0deg) translateY(-8px); }
.feature-visual .halo {
  position: absolute; inset: 8% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(77, 166, 255, 0.16), transparent);
}

/* ---------- Lab cards (coming soon trio) ---------- */
.lab {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 8px;
  perspective: 1400px;
}
.lab-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--hairline);
  text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow); transform-style: preserve-3d;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 280ms ease, box-shadow 280ms ease;
  will-change: transform;
}
.lab-card:hover { border-color: rgba(77, 166, 255, 0.35); box-shadow: var(--shadow-hover); }
.abstract {
  height: 150px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.abstract .big-glyph {
  width: 64px; height: 64px; border-radius: 19px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.9); color: var(--accent-deep);
  box-shadow: 0 10px 30px rgba(60, 130, 220, 0.18);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lab-card:hover .big-glyph { transform: rotate(-5deg) scale(1.1); }
.abstract.g1 { background: linear-gradient(135deg, #dcecff, #b9d9ff 60%, #9cc8ff); }
.abstract.g2 { background: linear-gradient(135deg, #e0f3ff, #bfe4ff 60%, #a3d4fb); }
.abstract.g3 { background: linear-gradient(135deg, #e4f0ff, #c8ddff 60%, #aac9ff); }
.abstract::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.35) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(closest-side at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000, transparent);
}
.lab-card .pad { padding: 22px 24px 24px; }
.lab-card h4 {
  font-family: var(--display); font-weight: 800; font-size: 1.2rem;
  margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.lab-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.lab-card .card-link { margin-top: 14px; }

.badge {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; border-radius: 999px; padding: 4px 11px;
}
.badge.soon {
  background: var(--accent-soft); color: var(--accent-deep);
  border: 1px solid rgba(77, 166, 255, 0.22);
}
.badge.live {
  background: rgba(14, 159, 110, 0.10); color: var(--live);
  border: 1px solid rgba(14, 159, 110, 0.28);
}
.card-link {
  font-size: 0.9rem; font-weight: 650; color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.card-link i { font-style: normal; transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.lab-card:hover .card-link i, .feature-copy .card-link:hover i { transform: translateX(4px); }

/* ---------- Manifesto ---------- */
.manifesto {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 100px 0 10px;
}
.principle { border-top: 1px solid var(--hairline-strong); padding-top: 18px; }
.principle b {
  display: block; font-family: var(--display); font-size: 0.74rem;
  letter-spacing: 0.2em; color: var(--accent-deep); margin-bottom: 8px;
}
.principle h4 { margin: 0 0 6px; font-size: 1.04rem; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 110px 0 0; border-radius: 30px; padding: 58px 40px;
  text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2e8bf5, #4da6ff 55%, #8fd0ff);
  box-shadow: 0 24px 70px rgba(77, 166, 255, 0.42);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(closest-side at 50% 0%, #000, transparent);
  -webkit-mask-image: radial-gradient(closest-side at 50% 0%, #000, transparent);
}
.cta-band h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto 26px; max-width: 34em; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn { background: #fff; color: var(--accent-deep); box-shadow: 0 10px 30px rgba(10, 40, 100, 0.3); }
.cta-band .btn:hover { transform: translateY(-2px); }
.cta-band .cta-mail {
  margin: 14px 0 0; font-size: 0.85rem; font-weight: 550;
  color: rgba(255, 255, 255, 0.78); letter-spacing: 0.02em;
}

/* ---------- App page ---------- */
.app-hero { padding: 90px 0 20px; text-align: center; }
.app-hero .glyph-xl {
  width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 24px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #e4efff, #c8dfff); color: var(--accent-deep);
  border: 1px solid rgba(77, 166, 255, 0.2);
  box-shadow: 0 14px 40px rgba(70, 140, 230, 0.18);
}
.app-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.app-hero .tagline {
  font-family: var(--display); font-weight: 650; font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--accent-deep); margin: 0 0 18px;
}
.app-hero .lede { margin: 0 auto; }
.app-hero .cta-row { justify-content: center; }
.app-body { max-width: 720px; margin: 40px auto 0; }
.app-shot { display: flex; justify-content: center; margin: 56px 0; position: relative; }
.app-shot .phone { position: relative; width: min(72vw, 280px); transform: rotate(-2deg); }
.app-shot .halo {
  position: absolute; inset: 6% 10%; z-index: -1; border-radius: 60px;
  background: radial-gradient(closest-side, rgba(77, 166, 255, 0.18), transparent);
}
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.feature-grid li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.95rem; color: var(--ink-soft);
}
.feature-grid li::before {
  content: "✓"; color: var(--live); font-weight: 800; flex: none;
  margin-top: 1px;
}
.support-box {
  margin: 64px 0 0; background: var(--card); border: 1px solid var(--hairline);
  border-radius: 22px; padding: 28px 30px; box-shadow: var(--shadow);
}
.support-box h2 { margin-top: 0; }

/* ---------- Scroll reveals ----------
   Hidden state only when JS has announced itself (html.js): without
   scripts the content must simply be visible, animations or not.
   The is-in rules carry the same html.js scope so they outrank the
   hidden rule (plain .reveal.is-in would lose on specificity). */
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal.d1.is-in { transition-delay: 90ms; }
html.js .reveal.d2.is-in { transition-delay: 180ms; }
html.js .reveal.d3.is-in { transition-delay: 270ms; }

/* ---------- Footer ---------- */
footer {
  margin: 120px -22px 0; padding: 54px 22px 46px;
  background: #0b1c33; color: #b9c7dd;
}
footer .cols {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
footer .wordmark { color: #fff; }
footer .wordmark span { color: #8fa3c2; }
footer p { margin: 10px 0 0; font-size: 0.88rem; max-width: 30em; }
footer h5 {
  margin: 4px 0 12px; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #8fa3c2;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 8px 0; }
footer a { color: #d7e2f2; text-decoration: none; font-size: 0.92rem; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .fine {
  max-width: 1120px; margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem; color: #8fa3c2;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 70px; padding-bottom: 0; }
  /* Content-sized and symmetrically spaced so the mark sits centred
     between the hero copy and the stats band. */
  .hero-visual { min-height: 0; margin: 36px 0; }
  .stats { margin-top: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 30px; margin: 64px 0; }
  .feature-row.flip .feature-visual { order: 0; }
  .lab { grid-template-columns: 1fr; }
  .manifesto { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; gap: 26px; }
}
.nav-burger { display: none; }

@media (max-width: 720px) {
  nav.site .inner { gap: 16px; height: 60px; }

  /* App links collapse into a dropdown behind the burger. */
  nav.site ul {
    display: none; position: absolute; top: calc(100% + 10px);
    left: 14px; right: 14px; z-index: 30;
    flex-direction: column; gap: 2px; margin: 0; padding: 10px;
    background: var(--card); border: 1px solid var(--hairline);
    border-radius: 18px; box-shadow: var(--shadow-hover);
  }
  nav.site.open ul { display: flex; animation: menu-in 240ms cubic-bezier(0.22, 1, 0.36, 1); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
  nav.site ul a {
    font-size: 0.98rem; width: 100%; padding: 13px 14px;
    border-radius: 12px; gap: 10px;
  }
  nav.site ul a::after { display: none; }
  nav.site ul a:hover, nav.site ul a:active { background: var(--accent-soft); color: var(--ink); }
  nav.site.open {
    background: rgba(245, 249, 255, 0.92);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    backdrop-filter: saturate(1.4) blur(18px);
    border-bottom-color: var(--hairline);
  }

  .nav-burger {
    display: grid; gap: 4.5px; place-content: center;
    width: 42px; height: 42px; margin-left: auto;
    background: transparent; border: 0; cursor: pointer; padding: 0;
  }
  .nav-burger span {
    width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
  }
  nav.site.open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  nav.site.open .nav-burger span:nth-child(2) { opacity: 0; }
  nav.site.open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone-size polish ---------- */
@media (max-width: 560px) {
  body { padding: 0 18px; }
  nav.site { margin: 0 -18px; padding: 0 18px; }
  .hero { padding: 44px 0 0; gap: 18px; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.2rem); margin-bottom: 20px; }
  .lede { font-size: 1.04rem; }
  .cta-row { gap: 10px; margin-top: 26px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; padding: 13px 16px; }
  .trust-row { gap: 8px 16px; font-size: 0.78rem; margin-top: 20px; }
  .hero-visual { min-height: 0; margin: 28px 0; }
  .hero-mark { width: 62vw; }
  .stats { gap: 12px; margin-top: 16px; }
  .stat { padding: 16px 18px; border-radius: 16px; }
  .stat b { font-size: 1.55rem; }
  .stat i { font-size: 0.78rem; }
  .section-head { margin: 62px 0 0; }
  .feature-row { margin: 46px 0; gap: 22px; }
  .feature-copy h3 { font-size: 1.5rem; }
  .feature-visual .phone { width: min(60vw, 220px); }
  .lab { gap: 14px; }
  .abstract { height: 118px; }
  .lab-card .pad { padding: 18px 20px 20px; }
  .manifesto { margin: 60px 0 8px; gap: 18px; }
  .cta-band { margin-top: 70px; padding: 40px 24px; border-radius: 22px; }
  footer { margin-top: 76px; padding: 40px 18px 34px; }
  .app-hero { padding-top: 52px; }
  .app-hero h1 { font-size: 2.1rem; gap: 10px; }
  .app-shot { margin: 40px 0; }
  .support-box { padding: 22px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line-mask > span { transform: none; }
  .hero .tag, .hero .lede, .hero .cta-row, .hero .trust-row, .reveal { opacity: 1; transform: none; }
}
