/* Curvano website. Palette and shapes mirror the app (Curvano/Core/Theme.swift):
   ink, panel, asphalt, signal green, cloud, the Pro purple gradient, 26 px cards, 18 px controls. */

@font-face {
  font-family: "Sui Generis";
  src: url("fonts/SuiGeneris-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Sui Generis";
  src: url("fonts/SuiGeneris-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --panel: #1f1f23;
  --asphalt: #3a3a40;
  --slate: #2a2a30;
  --signal: #a3ff47;
  --signal-deep: #7fd42a;
  --cloud: #eaeaea;
  --white: #ffffff;
  --muted: rgba(234, 234, 234, 0.62);
  --dim: rgba(234, 234, 234, 0.42);
  --hairline: rgba(255, 255, 255, 0.09);
  --separator: rgba(255, 255, 255, 0.045);
  --pro: #a855f7;
  --pro-deep: #6d28d9;
  --pro-light: #d8b4fe;
  --pro-gradient: linear-gradient(135deg, #5b21b6 0%, #7c3aed 45%, #a855f7 80%, #c084fc 100%);
  --card-radius: 26px;
  --control-radius: 18px;
  --display: "Sui Generis", "Barlow", system-ui, sans-serif;
  --body: "Barlow", -apple-system, system-ui, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--cloud);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
  color: var(--white);
}
h1 { font-size: clamp(44px, 6.6vw, 84px); }
.nowrap { white-space: nowrap; }
h2 { font-size: clamp(34px, 4.6vw, 58px); }
h3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.05; }
h2 .thin, h1 .thin { font-family: "Barlow"; font-weight: 200; font-style: italic; text-transform: uppercase; letter-spacing: 0.01em; }
h1 .thin { font-size: 0.72em; }

.eyebrow {
  font-family: var(--body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow.signal { color: var(--signal); }
.eyebrow.pro { color: var(--pro-light); }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 46ch; }
.rule { width: 42px; height: 3px; background: var(--signal); border-radius: 2px; margin: 26px 0; }
.rule.pro { background: var(--pro-light); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* Buttons: the app's PrimaryRideButtonStyle, SecondaryRideButtonStyle and ProButtonStyle. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 22px;
  border-radius: var(--control-radius);
  font-family: var(--body); font-weight: 600; font-size: 16px; letter-spacing: 0.01em;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--signal); color: #000; box-shadow: 0 10px 30px rgba(163, 255, 71, 0.18); }
.btn.primary:hover { background: #b4ff6b; }
.btn.secondary { background: var(--panel); color: var(--cloud); box-shadow: inset 0 0 0 1px var(--hairline); }
.btn.secondary:hover { background: #26262b; }
.btn.pro { background: var(--pro-gradient); color: #fff; box-shadow: 0 12px 34px rgba(168, 85, 247, 0.45); }
.btn.pro:hover { box-shadow: 0 14px 40px rgba(168, 85, 247, 0.6); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 13px; }

/* Apple's official App Store badge (assets/brand/app-store-badge.svg). Height sets the size. */
.store { display: inline-block; line-height: 0; transition: transform .15s ease, opacity .2s ease; }
.store img { height: 54px; width: auto; }
.store:hover { opacity: .92; }
.store:active { transform: scale(0.97); }
.store.compact img { height: 40px; }
.store.light { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }

/* A quiet text link with an arrow, next to the store badge. */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 16px; color: var(--cloud);
  padding: 8px 4px; border-bottom: 1px solid transparent;
  transition: color .2s ease, gap .2s ease;
}
.link-arrow svg { width: 18px; height: 18px; color: var(--signal); }
.link-arrow:hover { color: var(--white); gap: 12px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--separator);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.top .logo img { height: 46px; width: auto; }
.top nav { display: flex; gap: 30px; font-weight: 400; font-size: 15px; color: var(--muted); }
.top nav a:hover { color: var(--white); }
.top .cta { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .top nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(163, 255, 71, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(163, 255, 71, 0.06), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero .copy p.tag { font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--signal); margin-bottom: 22px; font-weight: 400; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }
.hero .note { font-size: 13px; color: var(--dim); margin-top: 14px; }
.hero .art { position: relative; display: flex; justify-content: center; }
/* Two phones, tilted over each other, rising out of the bottom of the hero. */
.hero-phones { height: 620px; align-items: flex-end; margin-bottom: -120px; }
.hero-phones .phone { position: absolute; bottom: 0; width: 320px; max-width: none; opacity: 0; animation: phone-rise 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-phones .phone.a { --tx: -20px; --rot: -9deg; transform-origin: bottom center; z-index: 1; bottom: -40px; animation-delay: .15s; }
.hero-phones .phone.b { --tx: 150px; --rot: 7deg; transform-origin: bottom center; z-index: 2; bottom: -90px; animation-delay: .35s; }
@keyframes phone-rise {
  from { opacity: 0; transform: translateX(var(--tx)) translateY(140px) rotate(var(--rot)); }
  to { opacity: 1; transform: translateX(var(--tx)) translateY(0) rotate(var(--rot)); }
}
@media (prefers-reduced-motion: reduce) { .hero-phones .phone { animation: none; opacity: 1; transform: translateX(var(--tx)) rotate(var(--rot)); } }
.hero { padding-bottom: 0; }
.hero .copy { padding-bottom: 72px; }
@media (max-width: 860px) {
  .hero .copy { padding-bottom: 0; }
  .hero-phones { height: 440px; margin-bottom: -80px; }
  .hero-phones .phone { width: 220px; }
  .hero-phones .phone.a { --tx: -30px; }
  .hero-phones .phone.b { --tx: 60px; }
}
.hero .road {
  position: absolute; inset: 0; pointer-events: none;
}
.hero .road svg { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .hero { padding: 48px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .art { margin-top: 32px; }
}

/* Phones */
.phone {
  position: relative; width: 300px; max-width: 78vw; min-width: 0; flex: 0 0 auto;
  border-radius: 46px; padding: 10px;
  background: #121215;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(163, 255, 71, 0.08);
}
.phone img { border-radius: 38px; width: 100%; }
.phone.pro-glow { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 120px rgba(168, 85, 247, 0.22); }
.phone.sm { width: 220px; max-width: 40vw; border-radius: 36px; padding: 8px; }
.phone.sm img { border-radius: 30px; }

/* Cards */
.card {
  background: var(--panel);
  border-radius: var(--card-radius);
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
  position: relative;
}
.card.feature { background: transparent; box-shadow: none; }
.card.feature .shot, .card.feature .body { box-shadow: inset 1px 0 0 var(--hairline), inset -1px 0 0 var(--hairline); }
.card.feature .shot { box-shadow: inset 1px 1px 0 var(--hairline), inset -1px 0 0 var(--hairline); }
.card.feature .body { box-shadow: inset 1px -1px 0 var(--hairline), inset -1px 0 0 var(--hairline); }
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

/* Feature card: the phone starts above the card, sits a little low, and lifts with a tilt on hover.
   The shot clips left, right and bottom only, so the phone can rise past the top edge. */
.feature { display: flex; flex-direction: column; overflow: visible; margin-top: 70px; }
.feature .shot {
  position: relative; height: 300px;
  clip-path: inset(-120px 0 0 0 round 26px 26px 0 0);
  background: radial-gradient(70% 60% at 50% 100%, rgba(163, 255, 71, 0.14), transparent 70%), #17171a;
  border-radius: 26px 26px 0 0;
  display: flex; justify-content: center; align-items: flex-start;
}
.feature .shot .phone {
  width: 250px; padding: 8px; border-radius: 40px; margin-top: -64px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px rgba(0,0,0,.55);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
  transform-origin: center center; will-change: transform;
}
.feature .shot .phone img { border-radius: 33px; }
.feature:hover .shot .phone { transform: translateY(-16px) rotate(-3deg); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 40px 70px rgba(0,0,0,.6), 0 0 40px rgba(163, 255, 71, 0.22); }
.feature.pro:hover .shot .phone { box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 40px 70px rgba(0,0,0,.6), 0 0 40px rgba(168, 85, 247, 0.28); }
/* A small lamp behind the phone that fades in on hover: green on free, purple on Pro. */
.feature .shot::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 240px; height: 240px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle, rgba(163, 255, 71, 0.22) 0%, rgba(163, 255, 71, 0.06) 45%, transparent 70%);
}
.feature.pro .shot::before { background: radial-gradient(circle, rgba(168, 85, 247, 0.26) 0%, rgba(168, 85, 247, 0.08) 45%, transparent 70%); }
.feature:hover .shot::before { opacity: 1; }
.feature .shot.crop::before { top: 50%; }
.feature .shot.crop img { transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .6s ease; }
.feature:hover .shot.crop img { filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 0 14px rgba(168, 85, 247, 0.35)); }
.feature .shot.crop { display: grid; place-items: center; padding: 28px 36px; background: radial-gradient(70% 70% at 50% 50%, rgba(168, 85, 247, 0.22), transparent 70%), #17171a; }
.feature .shot.crop img { max-height: 200px; width: auto; max-width: 100%; object-fit: contain; border-radius: 0; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.feature:hover .shot.crop img { transform: translateY(-8px) scale(1.04); }
.feature .shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 110px; pointer-events: none;
  background: linear-gradient(rgba(31,31,35,0), var(--panel) 78%);
}
.feature.pro .shot { background: radial-gradient(70% 60% at 50% 100%, rgba(168, 85, 247, 0.26), transparent 70%), #17171a; }
.feature .body { flex: 1; padding: 6px 24px 26px; display: flex; flex-direction: column; gap: 10px; background: var(--panel); border-radius: 0 0 26px 26px; }
.feature .body p { color: var(--muted); font-size: 16px; margin: 0; }
.feature .tags { display: flex; gap: 8px; margin-bottom: 4px; }
.grid:has(.feature) { row-gap: 18px; align-items: stretch; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.pill.free { background: rgba(163, 255, 71, 0.14); color: var(--signal); }
.pill.pro { background: rgba(168, 85, 247, 0.22); color: var(--pro-light); }
.pill.soon { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* Small icon cards, the "also in the app" row. */
.mini { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.mini .icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(163, 255, 71, 0.12); color: var(--signal);
}
.mini .icon svg { width: 22px; height: 22px; }
.mini.pro .icon { background: rgba(168, 85, 247, 0.2); color: var(--pro-light); }
.mini h3 { font-family: var(--body); font-weight: 600; font-style: normal; text-transform: none; letter-spacing: 0; font-size: 17px; }
.mini p { color: var(--muted); font-size: 15px; margin: 0; }

/* Section headers */
.head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 44px; }
.head .lead { margin-top: 18px; }
@media (max-width: 720px) { .head { grid-template-columns: 1fr; } }

/* Split row: copy next to a phone. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .art { order: -1; }
.split .art { display: flex; justify-content: center; gap: 18px; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip .art { order: 0; } }

.check { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; color: var(--cloud); font-size: 16px; }
.check li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--signal); }
.check.pro li svg { color: var(--pro-light); }
.check li span b { font-weight: 500; }

/* Tagline strip, the "same road, different vibes" banner. */
.strip {
  position: relative; overflow: hidden; padding: 130px 0;
  background: #141417;
}
/* Photo behind a section: drop the file in assets/photos; until then the dark ground shows. */
.photo-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-size: cover; background-position: center;
  filter: saturate(0.8);
}
.photo-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 11, 12, 0.94) 0%, rgba(11, 11, 12, 0.7) 45%, rgba(11, 11, 12, 0.35) 100%);
}
.strip .wrap { position: relative; }
/* Wider than the strip on every screen, so the ends of the road are always cut off by the row. */
.strip .curve { position: absolute; right: -22%; top: 50%; transform: translateY(-50%); width: 95%; pointer-events: none; overflow: visible; }
@media (max-width: 1024px) {
  .strip { padding: 90px 0 150px; }
  .strip .curve { top: auto; bottom: -40px; right: -25%; width: 150%; transform: none; }
}
html.js .curve.draw path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
html.js .curve.draw.in path { animation: draw-line 2.2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.strip p.big { font-family: var(--display); font-weight: 400; font-style: normal; letter-spacing: 0.32em; text-transform: uppercase; font-size: clamp(14px, 1.6vw, 18px); color: var(--white); line-height: 2.2; margin: 0; }
.strip .rule { margin: 22px 0 0; }

/* Pro */
.pro-section { position: relative; }
.pro-hero {
  position: relative; overflow: hidden; border-radius: 34px;
  background: var(--pro-gradient); color: #fff;
  padding: 64px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  box-shadow: 0 30px 90px rgba(109, 40, 217, 0.35);
}
.pro-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 85% 20%, rgba(255, 255, 255, 0.22), transparent 60%);
}
.pro-hero h2, .pro-hero h3 { color: #fff; }
.pro-hero .lead { color: rgba(255, 255, 255, 0.85); }
.pro-hero .eyebrow { color: rgba(255, 255, 255, 0.8); }
.pro-hero .art { position: relative; display: flex; justify-content: flex-end; align-items: flex-end; align-self: stretch; min-height: 560px; }
.pro-hero .phone { position: absolute; right: -40px; bottom: -190px; width: 380px; max-width: none; transform: rotate(-10deg); transform-origin: bottom right; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 40px 80px rgba(40, 10, 90, 0.55); }
@media (max-width: 860px) { .pro-hero .art { min-height: 380px; } .pro-hero .phone { width: 260px; right: -20px; bottom: -110px; } }
.pro-hero .btn.primary { background: #fff; color: #3b0764; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.pro-hero .btn.primary:hover { background: #f4ecff; }
.pro-hero .check li { color: #fff; } .pro-hero .check li svg { color: #fff; }
@media (max-width: 860px) { .pro-hero { grid-template-columns: 1fr; padding: 40px 28px; border-radius: 28px; } }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.prices .prices-note { grid-column: 1 / -1; margin: 0; opacity: .7; font-size: .9rem; }
.price {
  border-radius: 22px; padding: 22px 24px;
  background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.price.best { background: rgba(255, 255, 255, 0.92); color: #2e1065; }
.price .k { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500; opacity: .85; }
.price .v { font-family: var(--display); font-size: 34px; margin: 6px 0 2px; }
.price .n { font-size: 14px; opacity: .8; }
.price .save { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #2e1065; color: #fff; }
@media (max-width: 500px) { .prices { grid-template-columns: 1fr; } }

/* Big CTA on a photo */
.cta-photo { position: relative; overflow: hidden; padding: 150px 0; background: #141417; }
.cta-photo .photo-bg, .strip .photo-bg { top: -12%; bottom: -12%; will-change: transform; }
.cta-photo .photo-bg::after { background: linear-gradient(180deg, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.75) 100%); }
.cta-photo .wrap { position: relative; }
.cta-copy { text-align: center; max-width: 760px; margin: 0 auto; }
.cta-copy .lead { margin: 18px auto 0; }
.cta-copy .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Footer */
footer { padding: 56px 0 40px; border-top: 1px solid var(--separator); color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer img { height: 44px; width: auto; margin-bottom: 16px; }
footer h4 { font-family: var(--body); font-weight: 600; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cloud); margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
footer a:hover { color: var(--white); }
footer .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; margin-top: 12px; border-top: 1px solid var(--separator); color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } }

/* Text pages (privacy, terms, support) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 8px; }
.doc .updated { color: var(--dim); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: 0; }
.doc h3 { font-family: var(--body); font-style: normal; text-transform: none; font-weight: 600; font-size: 18px; letter-spacing: 0; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 16.5px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--signal); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0 24px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--separator); vertical-align: top; color: var(--muted); }
.doc th { color: var(--cloud); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.doc .table-wrap { overflow-x: auto; }
.doc .card { padding: 22px 24px; margin: 18px 0; }
.doc .card p:last-child { margin: 0; }

.faq details { border-bottom: 1px solid var(--separator); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--cloud); font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--signal); font-size: 22px; font-weight: 300; }
.faq details[open] summary::after { content: "–"; }
.faq details .answer { overflow: hidden; }
.faq details p { margin: 10px 0 0; }
.faq summary::after { transition: transform .3s ease; }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }

html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Alert banner above the navigation, set from the console. */
.site-banner {
  display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 11px 56px 11px 20px; position: relative; text-align: center;
  font-weight: 500; font-size: 14px; line-height: 1.4;
  background: rgba(163, 255, 71, 0.14); color: var(--signal); border-bottom: 1px solid rgba(163, 255, 71, 0.25);
}
.site-banner.warning { background: rgba(255, 179, 71, 0.14); color: #ffb347; border-color: rgba(255, 179, 71, 0.3); }
.site-banner.down { background: rgba(255, 92, 92, 0.14); color: #ff6b6b; border-color: rgba(255, 92, 92, 0.3); }
.site-banner a { text-decoration: underline; text-underline-offset: 3px; }
.site-banner button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; opacity: .7; padding: 6px 10px; }
.site-banner button:hover { opacity: 1; }

/* Status page */
.status-grid { display: grid; gap: 14px; margin: 8px 0 44px; }
.status-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; }
.status-card h3 { font-family: var(--body); font-style: normal; text-transform: none; letter-spacing: 0; font-size: 18px; margin: 0 0 2px; }
.status-card p { margin: 0; font-size: 15px; }
.status-card .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.status-card .state { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.status-card[data-state="ok"] .dot { background: var(--signal); box-shadow: 0 0 0 4px rgba(163,255,71,.15), 0 0 18px rgba(163,255,71,.5); }
.status-card[data-state="ok"] .state { color: var(--signal); }
.status-card[data-state="down"] .dot { background: #ff5c5c; box-shadow: 0 0 0 4px rgba(255,92,92,.15), 0 0 18px rgba(255,92,92,.5); }
.status-card[data-state="down"] .state { color: #ff6b6b; }
.status-card[data-state="checking"] .dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* Live status dots in the footer, next to the copyright. */
.footer-status { display: flex; gap: 18px; align-items: center; }
.footer-status a { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); }
.footer-status a:hover { color: var(--cloud); }
.footer-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.footer-status [data-state="ok"] .dot { background: var(--signal); box-shadow: 0 0 8px rgba(163,255,71,.6); }
.footer-status [data-state="down"] .dot { background: #ff5c5c; box-shadow: 0 0 8px rgba(255,92,92,.6); }
.footer-status [data-state="checking"] .dot { animation: pulse 1.2s ease-in-out infinite; }

/* /add/<code>: a friend invite */
.add-card { text-align: center; }
.friend-code { font-size: 34px; font-weight: 600; letter-spacing: 0.12em; margin: 12px 0 22px; color: var(--cloud); font-variant-numeric: tabular-nums; }
.add-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 18px; }
