/* ==========================================================================
   Railit — marketing page. Dark only, monochrome only, English only.

   The palette is five greys and nothing else:
     #0A0A0A  page surface
     #111111  raised surfaces
     #171717  hairlines and dividers
     #E5E5E5  muted text
     #FAFAFA  primary text, the mark, the primary button fill
   Intermediate greys used for states and fine text are steps between those
   anchors — never a hue. The single exception is semantic colour inside a
   product mockup (the green "Paid" chip in the agent demo), which is
   information from the product, not decoration on the page.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2-variations'),
       url('fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations'),
       url('fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations'),
       url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Thmanyah carries the Arabic inside the product mockups — the demo bubbles
   and example chips. It is the product's Arabic face, not page copy. */
@font-face {
  font-family: 'Thmanyah';
  src: url('fonts/thmanyah-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Thmanyah';
  src: url('fonts/thmanyah-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
  --bg: #0A0A0A;
  --raised: #111111;
  --hairline: #171717;

  --text: #FAFAFA;
  --text-2: #E5E5E5;   /* muted */
  --text-3: #A3A3A3;   /* body copy */
  --text-4: #8A8A8A;   /* captions, fine print */
  --faint: #6E6E6E;    /* decorative labels only — never running text */

  --card-border: #222222;
  --tick: #2C2C2C;

  /* Semantic — permitted ONLY inside product mockups. */
  --paid: #3ECF8E;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --arabic: 'Thmanyah', 'Geist', ui-sans-serif, system-ui, sans-serif;

  --fs-hero: clamp(2.625rem, 1.4rem + 5.2vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 1.15rem + 2.4vw, 2.875rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);

  --container: 1120px;
  --radius: 16px;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, figure, figcaption { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--text); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------- utilities */

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 550;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-4);
}

.section-title {
  margin-top: 14px;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-lead {
  margin-top: 18px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-3);
  max-width: 46ch;
}

/* Figures — always mono, always tabular. */
.num, .amount, .amt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Arabic inside the product mockups. */
[lang='ar'] { font-family: var(--arabic); }

/* Links inside running prose — the small print under the prices, an answer in
   the FAQ, the legal pages. Underlined, because a colour change is not a cue
   on a page that only has greys. The legal pages each carried their own copy
   of this; it belongs here, once. */
.lnk {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: #3A3A3A;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.lnk:hover { color: var(--text); text-decoration-color: var(--text-4); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.006em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

/* Primary: white fill, near-black label. The one loud thing on the page. */
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--text-2); }

.btn-ghost {
  border: 1px solid #2A2A2A;
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  border-color: #414141;
  color: var(--text);
  background: rgba(250, 250, 250, 0.03);
}

.btn-sm { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-static { pointer-events: none; } /* mock control inside the demo */

/* ------------------------------------------------------------------ brand */

.brand {
  display: inline-flex;
  align-items: center;
  /* Optical, not box, spacing: the mark's right edge is the thin comet tail,
     whose surrounding whitespace already reads as part of the gap — so the
     gap is a step tighter than the naive value. */
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 22px;
  height: auto;
  flex: none;
  /* The rim opening at the lower left pulls the mark's visual centre a hair
     above its bounding-box centre; half a pixel down squares it with the
     wordmark's x-height. */
  transform: translateY(0.5px);
}
.brand-word {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* The sleeper wave — drives the mask shared by every #rail-mark-live use.
   Fading a sleeper towards white closes its gap in the track; each one runs
   120ms after the one above, so the wave travels down the rail. */
@keyframes rail-run {
  0%, 45% { opacity: 1; }
  60% { opacity: 0.15; }
  75%, 100% { opacity: 1; }
}
.sleeper { animation: rail-run 1.6s ease-in-out infinite; }
.sleeper-0 { animation-delay: 0s; }
.sleeper-1 { animation-delay: 0.12s; }
.sleeper-2 { animation-delay: 0.24s; }
.sleeper-3 { animation-delay: 0.36s; }

/* Stopped means stopped — the still mark is identical to the artwork. */
@media (prefers-reduced-motion: reduce) {
  .sleeper { animation: none; }
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.86);
  border-bottom-color: var(--hairline);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.site-nav { display: flex; gap: 24px; margin-left: 8px; }
.site-nav a {
  font-size: 0.9063rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.signin {
  font-size: 0.9063rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.signin:hover { color: var(--text); }

@media (max-width: 719px) {
  .site-nav { display: none; }
}
@media (max-width: 479px) {
  .signin { display: none; }
}

/* ------------------------------------------------------------------- hero */

.hero { padding-top: clamp(80px, 12vh, 140px); }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-mark {
  width: clamp(60px, 7vw, 88px);
  height: auto;
  color: var(--text);
}

.hero .eyebrow { margin-top: 34px; }

.hero-title {
  margin-top: 20px;
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.03;
  text-wrap: balance;
}
/* Two tones, one hue: the books are the given, the keeper is the news. */
.hero-title .dim { color: var(--text-4); }

.hero-sub {
  margin-top: 26px;
  max-width: 36rem;
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--text-3);
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.71875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero-shot {
  margin-top: clamp(56px, 8vw, 92px);
  width: min(100%, 1060px);
  box-shadow: 0 -40px 140px -30px rgba(250, 250, 250, 0.07);
}

/* ----------------------------------------------- screenshot placeholders */

/* A deliberate empty frame: raised surface, hairline border, dot grid, crop
   ticks in the corners, and a mono label naming what belongs there. Swap the
   whole <figure> for an <img> with the same id when screenshots exist. */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #1E1E1E;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(250, 250, 250, 0.045), transparent 62%),
    #0E0E0E;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(250, 250, 250, 0.05) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: center;
}
.ph::after {
  content: '';
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(var(--tick), var(--tick)) left top / 14px 1px,
    linear-gradient(var(--tick), var(--tick)) left top / 1px 14px,
    linear-gradient(var(--tick), var(--tick)) right top / 14px 1px,
    linear-gradient(var(--tick), var(--tick)) right top / 1px 14px,
    linear-gradient(var(--tick), var(--tick)) left bottom / 14px 1px,
    linear-gradient(var(--tick), var(--tick)) left bottom / 1px 14px,
    linear-gradient(var(--tick), var(--tick)) right bottom / 14px 1px,
    linear-gradient(var(--tick), var(--tick)) right bottom / 1px 14px;
  background-repeat: no-repeat;
}
.ph-label {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #767676;
}

.ph-16x10 { aspect-ratio: 16 / 10; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-3x4 { aspect-ratio: 3 / 4; }

.ph-mini { border-radius: 8px; }
.ph-mini::after { display: none; }
.ph-mini::before { background-size: 12px 12px; }
.ph-mini .ph-label {
  padding: 0 4px;
  font-size: 0.5rem;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------ proof strip */

.proof {
  margin-top: clamp(64px, 9vw, 112px);
  padding: clamp(44px, 6vw, 72px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 40px;
}
.proof-grid li {
  border-left: 1px solid var(--hairline);
  padding-left: 20px;
}
.proof-grid h3 {
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.proof-grid p {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-4);
}
.proof-grid p [lang='ar'] { font-size: 1.02em; }

@media (min-width: 600px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .proof-grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------- sections */

.agent, .capabilities, .wont, .pricing, .faq {
  padding-top: clamp(88px, 11vw, 148px);
}
.faq { padding-bottom: clamp(88px, 11vw, 148px); }

/* -------------------------------------------------------- the agent demo */

.demo-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 24px;
  align-items: stretch;
}
@media (min-width: 940px) {
  .demo-grid { grid-template-columns: 1fr 1fr; }
}

.demo { display: flex; flex-direction: column; }

.demo-caption {
  margin-top: 16px;
  padding: 0 6px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-4);
  max-width: 52ch;
}

.panel {
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: #101010;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #1B1B1B;
}
.panel-dots { display: flex; gap: 6px; }
.panel-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #262626;
}
.panel-title {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.panel-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
}

.msg-user {
  align-self: flex-end;
  max-width: 88%;
  padding: 10px 16px;
  background: #1C1C1C;
  border-radius: 14px;
  border-bottom-right-radius: 5px;
  font-size: 1.0625rem;
  line-height: 1.8;
}
.msg-agent {
  font-size: 1.0625rem;
  line-height: 1.95;
  color: #DDDDDD;
}
.msg-agent .num { font-size: 0.85em; color: var(--text); }

.agent-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-4);
}
.agent-steps li { display: flex; align-items: center; gap: 9px; }
.agent-steps svg { width: 13px; height: 13px; flex: none; color: var(--faint); }

/* The rendered-PDF card */
.file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #151515;
}
.file-card .ph { width: 58px; flex: none; }
.file-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.file-name {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.file-meta { font-size: 0.78rem; color: var(--text-4); }
.file-meta .num { font-size: 0.95em; }

/* Semantic colour, mockup only: green is "paid" in the product. */
.chip {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 9px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}
.chip-paid {
  color: var(--paid);
  background: rgba(62, 207, 142, 0.09);
  border: 1px solid rgba(62, 207, 142, 0.28);
}

/* The proposed journal entry */
.journal {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: #151515;
}
.journal-head {
  padding: 10px 14px;
  border-bottom: 1px solid #1F1F1F;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}
.journal-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.jrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.jrow-cr { padding-left: 20px; } /* credits indent, as in a ledger */
.jrow .side { flex: none; width: 20px; color: var(--faint); }
.jrow .acct {
  flex-shrink: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-2);
}
.jrow .leader {
  flex: 1 1 12px;
  min-width: 12px;
  border-bottom: 1px dotted #333333;
  transform: translateY(-3px);
}
.jrow .amt { flex: none; color: var(--text); }
.journal-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #1F1F1F;
}
.journal-note { font-size: 0.78rem; color: var(--text-4); }

/* ---------------------------------------------------------- capabilities */

.cap-list { margin-top: clamp(40px, 6vw, 64px); }

.cap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 56px;
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--hairline);
}
.cap:last-of-type { border-bottom: 1px solid var(--hairline); }
@media (min-width: 900px) {
  .cap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

.cap h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem);
  font-weight: 560;
  letter-spacing: -0.018em;
  line-height: 1.25;
  max-width: 18ch;
  text-wrap: balance;
}
.cap-right p {
  max-width: 54ch;
  color: var(--text-3);
  line-height: 1.7;
}

.cap-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cap-chips li {
  padding: 8px 16px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--raised);
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.cap-queue {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 460px;
}
.cap-queue li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 14px;
  border: 1px solid #1E1E1E;
  border-radius: 10px;
  background: #0E0E0E;
  font-family: var(--mono);
  font-size: 0.78125rem;
  font-variant-numeric: tabular-nums;
}
.cap-queue .q-what { color: var(--text-2); }
.cap-queue .q-state {
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85em;
}

.cap-right .ph { margin-top: 26px; max-width: 560px; }

.cap-foot {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* --------------------------------------------------- what it will not do */

.wont-list {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 720px;
}
.wont-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-2);
  text-wrap: pretty;
}
.wont-list li:last-child { border-bottom: 1px solid var(--hairline); }
.wont-list svg {
  width: 14px;
  height: 14px;
  flex: none;
  transform: translateY(1px);
  color: var(--faint);
}

/* ---------------------------------------------------------------- pricing */

.price-grid {
  margin-top: clamp(44px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 960px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid #1F1F1F;
  border-radius: 18px;
  background: #101010;
}
.price-card-pro {
  border-color: #3D3D3D;
  background: #131313;
}

.rec-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.65625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price .amount {
  font-size: clamp(1.9rem, 1.6rem + 0.8vw, 2.375rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  color: var(--text);
  /* The figure carries its currency code — "USD 11" — and the code must never
     be left hanging on a line of its own on a narrow phone. */
  white-space: nowrap;
}
.price .per { font-size: 0.9063rem; color: var(--text-4); }
.price-rows { margin: 24px 0 28px; }
.price-rows li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--text-3);
}
.price-rows li:last-child { border-bottom: 1px solid var(--hairline); }
.price-rows .usd { color: var(--faint); }
/* Said plainly, not buried: Starter has no AI. */
.price-rows .plain { color: var(--text-2); font-weight: 500; }

.price-card .btn { margin-top: auto; }

.price-note {
  margin-top: 40px;
  text-align: center;
  color: var(--text-2);
}
/* Automatic renewal, how to stop it, and who takes the card — said beside the
   price and above the button, not only in the policy pages. */
.price-renew {
  margin: 18px auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-3);
}
.price-trial {
  margin: 10px auto 0;
  max-width: 54ch;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-4);
}

/* -------------------------------------------------------------------- faq */

.faq-list {
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 760px;
  border-bottom: 1px solid var(--hairline);
}

.faq-item { border-top: 1px solid var(--hairline); }

.faq-q { font-size: inherit; font-weight: inherit; }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 530;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.faq-btn:hover { color: var(--text-2); }

.faq-icon {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--text-4);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner p {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--text-3);
  line-height: 1.7;
}

/* Without JS the answers are simply open. */
.no-js .faq-panel { grid-template-rows: 1fr; }

@media (prefers-reduced-motion: reduce) {
  .faq-panel, .faq-icon { transition: none; }
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  margin-top: clamp(88px, 11vw, 148px);
  padding: clamp(48px, 6vw, 72px) 0 40px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 64px;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1fr auto auto; }
}

.footer-tag {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-4);
}

.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-nav a, .footer-contact a {
  font-size: 0.9375rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }

/* The legal rail — a row rather than a fourth column, so the footer keeps its
   three-track grid at every width and the policies still sit one click from
   anywhere on the site. */
.footer-legal-nav {
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  border-top: 1px solid var(--hairline);
}
.footer-legal-nav a {
  font-size: 0.875rem;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-legal-nav a:hover { color: var(--text); }
.footer-legal-nav a[aria-current='page'] { color: var(--text); }

.footer-legal {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: var(--faint);
}
/* Entity, jurisdiction and registered address, one to a line. */
.footer-legal span { display: block; }

/* --------------------------------------------------------- scroll reveal */

/* The hidden state exists only while JS is running; without it, everything
   is simply visible. Reduced motion shows everything immediately. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
