/* Rigaway — marketing site design system */

/* Fonts (same roles as the app, ref:style-guide): Roboto Slab for headings and buttons,
   PT Sans Narrow for body, Aldrich for code. Self-hosted latin subsets in /fonts. */
@font-face { font-family: "Roboto Slab"; font-weight: 600; font-display: swap; src: url("/fonts/roboto-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto Slab"; font-weight: 700 900; font-display: swap; src: url("/fonts/roboto-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Sans Narrow"; font-weight: 400 500; font-display: swap; src: url("/fonts/pt-sans-narrow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "PT Sans Narrow"; font-weight: 600 900; font-display: swap; src: url("/fonts/pt-sans-narrow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Aldrich"; font-weight: 400 900; font-display: swap; src: url("/fonts/aldrich-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0b0d;
  --bg-2: #0e1013;
  --panel: #14171b;
  --panel-2: #1a1e23;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --muted: #ffffff;
  --faint: #cbcdd1;
  --accent: #92d378;
  --accent-2: #b9e6a5;
  /* Palette partners of the green accent. Green leads (buttons, primary actions); cyan and
     navy support it in section labels, icon tiles and step badges. Navy is too dark for text
     on the dark background, so text uses --navy-2; fills use --navy. */
  --blue: #3eb1d0;
  --blue-2: #8fd0e2;
  --navy: #2a478d;
  --navy-2: #8fa6e0;
  --green: #92d378;
  --danger: #fb7185;
  /* Solid colors only — no gradients on boxes (cards, CTA band, frames). --grad/--grad-soft keep their names for
     the rules that use them. */
  --grad: var(--accent);
  --grad-soft: rgba(146, 211, 120, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --mono: "Aldrich", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "PT Sans Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Roboto Slab", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 20% -5%, rgba(146, 211, 120, 0.22), transparent 60%),
    radial-gradient(55% 45% at 95% 0%, rgba(62, 177, 208, 0.16), transparent 55%),
    radial-gradient(40% 40% at 50% 100%, rgba(42, 71, 141, 0.12), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
.brand, .eyebrow, .plan .pname, .plan .amount { font-family: var(--display); }
p { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Headings are plain white; the class is kept so a highlight can come back without touching
   every page. */
.gradient-text { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #0a0b0d;
  font-weight: 700;
}
.btn-primary:hover { background: #a7de91; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255,255,255,0.25); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Pills / badges ---------- */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 11, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 0.93rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .mobile-menu { display: block; }
}
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 13, 0.96);
  padding: 10px 24px 20px;
}
.mobile-menu a:not(.btn) { display: block; padding: 12px 4px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 500; }
.mobile-menu a:not(.btn):nth-last-child(2) { border-bottom: 0; }
.mobile-menu .btn { display: flex; width: 100%; justify-content: center; margin-top: 14px; }

/* ---------- Sections ---------- */
section { position: relative; }
/* Section colors: page sections take turns green, cyan, navy for their eyebrow label. */
body > section:nth-of-type(3n+1) { --sec-color: var(--accent); }
body > section:nth-of-type(3n+2) { --sec-color: var(--blue); }
body > section:nth-of-type(3n+3) { --sec-color: var(--navy-2); }
.sec { padding: 64px 0; }
.sec-sm { padding: 40px 0; }
.sec-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head p { margin-top: 14px; font-size: 1.08rem; }
/* Phones: the desktop section rhythm stacks into tall empty gaps between sections. */
@media (max-width: 760px) {
  .sec { padding: 20px 0; }
  .sec-sm { padding: 16px 0; }
  #options { padding-top: 40px; }
  .sec-head { margin-bottom: 28px; }
}
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sec-color, var(--accent)); margin-bottom: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; }
.hero p.lead { font-size: 1.18rem; max-width: 540px; }
.hero p.lead-strong { margin: -6px 0 16px; font-size: 1.18rem; font-weight: 700; color: var(--text); }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 12px; font-size: 0.88rem; color: var(--faint); display: flex; gap: 4px 18px; flex-wrap: wrap; }
.hero-grid.solo { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.hero-grid.solo p.lead { margin-inline: auto; }
.hero-grid.solo .hero-cta, .hero-grid.solo .hero-note { justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
}

/* Phone mock */
.demo-wrap { display: flex; justify-content: center; margin-top: 8px; }
/* The capture already includes the phone's status bar + home indicator, so it
   needs no extra device bezel — show it whole in a clean rounded frame (no crop). */
.demo-shot {
  width: 300px; max-width: 86vw; margin: 0;
  border-radius: 34px; overflow: hidden;
  background: #0c0e11;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), 0 0 0 10px rgba(255,255,255,0.02);
}
.demo-shot img, .demo-shot video { display: block; width: 100%; height: auto; }
.phone {
  position: relative;
  width: 300px;
  margin: 0 auto;
  aspect-ratio: 300 / 620;
  border-radius: 37px;
  background: #1c2026;
  border: 1px solid var(--border-strong);
  padding: 5px;
  box-shadow: var(--shadow);
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 24px; border-radius: 0 0 16px 16px;
  background: #0a0b0d;
  z-index: 3;
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #0c0e11;
  display: flex;
  flex-direction: column;
}
/* Real app screenshot: the capture already includes the status bar + Dynamic
   Island, so hide the frame's faux notch and let the image fill the screen. */
.phone.real::before { display: none; }
.phone-shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; border-radius: 32px; }
.phone-bar { padding: 30px 18px 10px; font-size: 0.72rem; color: var(--faint); display: flex; justify-content: space-between; }

/* ---------- Logo strip ---------- */
.logos { display: flex; justify-content: center; gap: 10px 40px; flex-wrap: wrap; }
.logos span { font-weight: 600; color: var(--muted); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 9px; transition: color 0.2s ease; }
.logos span svg { color: var(--faint); transition: color 0.2s ease; }
.logos span:hover, .logos span:hover svg { color: var(--text); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
/* Feature cards keep the icon inline with the heading (icon left, title beside
   it, body below) rather than stacked on its own line. The icon sits in the
   first column; everything else flows down the second. */
.card:has(> .ic) {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 15px;
  row-gap: 8px;
  align-items: start;
}
.card { --tint: 146, 211, 120; --tint-text: var(--accent-2); }
.grid > .card:nth-child(3n+2) { --tint: 62, 177, 208; --tint-text: var(--blue-2); }
.grid > .card:nth-child(3n+3) { --tint: 42, 71, 141; --tint-text: var(--navy-2); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(var(--tint), 0.16);
  border: 1px solid var(--border-strong);
  color: var(--tint-text);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.card > .ic { grid-row: 1 / span 2; }
.card:has(> .ic) > :not(.ic) { grid-column: 2; margin: 0; }
.ic svg { display: block; }
.card:hover .ic {
  border-color: rgba(var(--tint), 0.55);
  color: var(--tint-text);
}
.card h3 { margin-bottom: 9px; }
/* "Two ways to run Rigaway" cards: price line + a button under the copy. */
.options { max-width: 900px; margin: 0 auto; }
.options .opt-price { font-size: 0.85rem; font-weight: 600; color: var(--sec-color, var(--accent)); margin: -4px 0 10px; }
.options .btn { margin-top: 18px; justify-self: start; }
.card p { font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
/* Steps can also live in a plain .grid (e.g. the download page); reset the
   counter there too so they number 01, 02, 03 instead of all 01. */
.grid:has(> .step) { counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative; padding: 28px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--panel);
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start;
}
.step .n {
  counter-increment: step;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #0a0b0d;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad);
  grid-row: 1 / span 2;
}
.step:nth-child(3n+2) .n { background: var(--blue); }
.step:nth-child(3n+3) .n { background: var(--navy); color: #ffffff; }
.step h3 { grid-column: 2; align-self: center; }
.step p { grid-column: 2; }
.step .n::before { content: "0" counter(step); }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev .split-media { order: 0; } }
.split h2 { margin-bottom: 16px; }
.solo-copy { max-width: 680px; text-align: center; }
.solo-copy h2 { margin-bottom: 16px; }
.solo-copy .feature-list { width: fit-content; margin-inline: auto; text-align: left; }
.split-media .demo-shot { margin: 0 auto; }
/* Features page: the icon list with the demo video on its right; stacked on phones. */
.feat-layout { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; max-width: 980px; }
.feat-rows { list-style: none; display: grid; gap: 18px; }
.feat-video .demo-shot { margin: 0 auto; }
@media (max-width: 860px) {
  .feat-layout { grid-template-columns: 1fr; gap: 40px; }
  .feat-rows { max-width: 620px; margin: 0 auto; }
}
.feat-rows li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.feat-rows .ic { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 10px; }
.feat-rows h3 { font-size: 1.02rem; margin-bottom: 2px; }
.feat-rows p { font-size: 0.95rem; line-height: 1.5; }
/* Icon on top, then title and text: columns without card boxes. */
.icon-cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 36px; max-width: 760px; margin: 0 auto; text-align: center; }
@media (max-width: 760px) { .icon-cols { grid-auto-flow: row; gap: 28px; } }
.icon-cols .ic { width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 14px; }
.icon-cols h3 { margin-bottom: 8px; }
.feat-rows .ic, .icon-cols .ic {
  display: grid; place-items: center;
  background: rgba(var(--tint), 0.16);
  border: 1px solid var(--border-strong);
  color: var(--tint-text);
}
.feat-rows li, .icon-cols > * { --tint: 146, 211, 120; --tint-text: var(--accent-2); }
.feat-rows li:nth-child(3n+2), .icon-cols > :nth-child(3n+2) { --tint: 62, 177, 208; --tint-text: var(--blue-2); }
.feat-rows li:nth-child(3n+3), .icon-cols > :nth-child(3n+3) { --tint: 42, 71, 141; --tint-text: var(--navy-2); }
.feature-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.feature-list li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); margin-top: 9px; }

.media-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}
/* Product shots in split rows: a phone screenshot, or a browser-window
   screenshot (frame baked into the image). */
.phone-stage { position: relative; padding: 34px 0 6px; }
.site-shot { display: block; width: 100%; height: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band .hero-cta { justify-content: center; }
@media (max-width: 620px) { .cta-band { padding: 40px 24px; } }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.price-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
@media (max-width: 1080px) { .price-grid.cols-4 { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; } }
@media (max-width: 900px) { .price-grid, .price-grid.cols-4, .price-grid.cols-2 { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: transparent; position: relative; background: rgba(146, 211, 120,0.08); box-shadow: 0 0 0 1px rgba(146, 211, 120,0.5), var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan .pname { font-size: 1.1rem; font-weight: 700; }
.plan .pdesc { color: var(--muted); font-size: 0.9rem; margin: 6px 0 20px; min-height: 40px; }
.plan .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 12px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.93rem; }
.plan ul li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); margin-top: 9px; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- Included-on-every-plan card ---------- */
.incl-card {
  max-width: 920px;
  margin: 0 auto 40px;
  padding: 26px 28px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(146, 211, 120,0.05);
  box-shadow: var(--shadow);
}
.incl-head {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-align: center;
  margin-bottom: 22px;
}
.incl-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 26px;
}
.incl-grid li { display: flex; gap: 12px; align-items: flex-start; }
.incl-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(146, 211, 120,0.12);
  border: 1px solid rgba(146, 211, 120,0.28);
  color: var(--accent-2);
}
.incl-grid li div { display: flex; flex-direction: column; gap: 2px; }
.incl-grid li strong { font-size: 0.93rem; font-weight: 650; color: var(--text); }
.incl-grid li span { font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 760px) { .incl-grid { grid-template-columns: 1fr; } }

/* ---------- Compare table ---------- */
.compare-hint { display: none; font-size: 0.82rem; color: var(--faint); margin: 0 0 10px; }
@media (max-width: 720px) { .compare-hint { display: block; } }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); }
.compare { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 0.82rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--bg-2); }
.compare tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.compare td { color: var(--muted); }
.compare .hl { background: rgba(146, 211, 120,0.08); }
.compare thead th.hl { color: var(--accent-2); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform 0.2s; color: var(--accent-2); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 40px; text-align: center; }
.page-hero .eyebrow { display: block; }
.page-hero p { max-width: 640px; margin: 16px auto 0; font-size: 1.1rem; }

/* ---------- Forms ---------- */
.form { max-width: 620px; margin: 0 auto; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  width: 100%; min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(146, 211, 120, 0.25);
}
.form .btn { justify-self: start; }
.form-note { font-size: 0.85rem; color: var(--faint); }
.form-success {
  display: none;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(146, 211, 120, 0.12);
  border: 1px solid rgba(146, 211, 120, 0.4);
  color: var(--green);
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ---------- Contact methods ---------- */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 760px) { .contact-methods { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 780px; margin: 0 auto; }
@media (max-width: 620px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card { display: flex; gap: 18px; align-items: center; }
.dl-card .store { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-strong); flex: none; }
.dl-card .meta small { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.dl-card .meta b { font-size: 1.1rem; display: block; }
.server-card { max-width: 780px; margin: 0 auto; padding: 32px; }
.server-card:hover { transform: none; }
.server-steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 0 0 20px; padding: 0; }
.server-steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.server-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: var(--accent-2); border: 1px solid var(--border-strong); }
.cmd-block { margin: 0; padding: 16px 18px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); overflow-x: auto; }
.cmd-block code, .server-card .form-note code { font-family: var(--mono); font-size: 0.88rem; color: var(--accent-2); }
@media (max-width: 560px) { .server-card { padding: 24px 20px; } }

/* ---------- About ---------- */
.prose { max-width: 740px; margin: 0 auto; }
.prose p { font-size: 1.05rem; margin-bottom: 20px; color: var(--muted); }
.prose h2 { margin: 44px 0 16px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
/* Narrow value cards: icon, then title, then body, so all three line up. */
.values .card:has(> .ic) { grid-template-columns: 1fr; align-content: start; padding: 24px; }
.values .card:has(> .ic) > * { grid-column: 1; }
.values .card:has(> .ic) > .ic { grid-row: auto; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 36px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
/* Narrow screens: brand on its own row, the three link columns side by side. */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer-grid { gap: 28px 12px; }
  .footer-col h4 { font-size: 0.74rem; letter-spacing: 0.08em; margin-bottom: 10px; }
  .footer-col a { font-size: 0.86rem; padding: 4px 0; overflow-wrap: anywhere; }
}
.footer-brand p { font-size: 0.92rem; margin: 14px 0 18px; max-width: 300px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; padding: 5px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.86rem; flex-wrap: wrap; gap: 14px; }
.socials { display: flex; gap: 14px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); transition: all 0.15s; }
.socials a:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.04); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sign in ---------- */
.login-card { max-width: 500px; margin: 0 auto; padding: 44px 44px 40px; }
.login-card:hover { transform: none; }
.login-card .form { gap: 22px; }
.login-card .form-note { margin: 0; text-align: center; }
.login-card .form-success { margin-bottom: 22px; }
.btn-block { width: 100%; justify-content: center; }
.login-card .form .btn-block { justify-self: stretch; margin: 10px 0; }
.social-login { display: grid; gap: 12px; }
.btn-social {
  width: 100%; justify-content: center; gap: 12px;
  padding: 14px 20px; font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong); color: var(--text);
}
.btn-social:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255,255,255,0.25); }
.btn-social svg { width: 20px; height: 20px; flex: none; }
.login-divider { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; color: var(--faint); font-size: 0.85rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
@media (max-width: 560px) { .login-card { padding: 28px 22px 26px; } }
