/* ==========================================================================
         Peymankar Yar — public site (landing, pricing, about, contact, legal).
         Lane: PeymankarYar Enterprise (see design.md): warm paper canvas, graphite
         ink, one restrained bronze accent, hairline grid, Peyda. No gradients,
         glows, glass or shadows on surfaces. Tokens mirror apps/web/src/index.css.
         ========================================================================== */

@font-face {
  font-family: "Peyda";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/peyda/Peyda-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Peyda";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/peyda/Peyda-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "Peyda";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/peyda/Peyda-SemiBold.ttf") format("truetype");
}

:root {
  color-scheme: light;

  --canvas: #f4f5f2;
  --surface: #ffffff;
  --surface-2: #f0f2ee;

  --ink: #202827;
  --ink-2: #2b3432;
  --muted: #59635f;

  --border: #e5e9e4;
  --input: #d5dcd5;

  --bronze: #6e5239;
  --bronze-deep: #51402f;
  --bronze-soft: #f2ebe3;
  --ring: #896548;

  --success: #287456;
  --attention: #8e5918;

  --graphite: #202827;
  --graphite-ink: #e9ece8;
  --graphite-muted: #b9c1bd;

  --r-control: 8px;
  --r-card: 12px;
  --r-panel: 16px;

  --wrap: min(100% - 2.5rem, 1200px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  /* Set per element by site.js; declared here so it has a default. */
  --reveal-delay: 0ms;
}

/* ---------------- Base ---------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Peyda", "Vazirmatn", "Tahoma", system-ui, sans-serif;
  font-size: 1rem;
  /* Peyda's own space is 0.13em; Persian needs about 0.25em or words touch. */
  word-spacing: 0.12em;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--r-control);
}

::selection {
  background: var(--bronze-soft);
  color: var(--bronze-deep);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--graphite);
  color: var(--graphite-ink);
  font-size: 0.875rem;
  text-decoration: none;
  transition: inset-block-start 150ms var(--ease);
}

.skip:focus {
  inset-block-start: 12px;
}

/* One icon family: 18px, stroke 1.6, colour taken from the text role. */
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- Shared parts ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 20px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms var(--ease),
    border-color 150ms var(--ease),
    color 150ms var(--ease),
    transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.985);
}

.btn-primary {
  background: var(--bronze);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--bronze-deep);
}

.btn-secondary {
  border-color: var(--input);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--bronze);
  color: var(--bronze-deep);
}

.btn-sm {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.875rem;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--bronze);
  font-size: 0.8125rem;
  font-weight: 500;
}

.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  flex: none;
  background: currentColor;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.badge-live {
  border-color: #cfe3d8;
  background: #eaf4ee;
  color: var(--success);
}

.badge-beta {
  border-color: #eddcc4;
  background: #fbf2e5;
  color: var(--attention);
}

.badge-roadmap {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--muted);
}

/* ---------------- Top bar ---------------- */

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--r-control);
  background: var(--graphite);
  color: #d8c6b3;
}

.brand-mark .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.nav {
  display: none;
  align-items: center;
  gap: 26px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  padding-block: 6px;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem) clamp(2.75rem, 5vw, 4.5rem);
  overflow: hidden;
}

/* Drafting grid: the world's material, not an effect. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(to left, rgba(32, 40, 39, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 40, 39, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000 0, #000 55%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.35rem);
  line-height: 1.45;
}

.hero h1 span {
  display: block;
}

.lead {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 2;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.safe-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 42ch;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.85;
}

.safe-note .icon {
  width: 16px;
  height: 16px;
  margin-block-start: 3px;
  color: var(--ink-2);
}

/* The one composed moment: a real product surface, labelled as a sample. */
.workspace {
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
  overflow: hidden;
}

.ws-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.ws-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.ws-body {
  padding: 18px;
}

.ws-source {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.85;
}

.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-block: 18px;
}

/* On a phone a record reads as property rows, not a grid with a hole. */
.record > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.record > div:first-child {
  display: block;
  padding-block-end: 14px;
  border-bottom: 1px solid var(--border);
}

.record dt {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.record dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}

.record .amount {
  color: var(--bronze);
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.record .unit {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block-start: 16px;
  border-top: 1px solid var(--border);
}

.mock-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 14px;
  border: 1px solid var(--input);
  border-radius: var(--r-control);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.mock-btn.is-primary {
  border-color: var(--bronze);
  background: var(--bronze);
  color: #ffffff;
}

.ws-foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.ws-foot .icon {
  width: 15px;
  height: 15px;
  margin-block-start: 2px;
  color: var(--ink-2);
}

.sample {
  margin-block-start: 10px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------------- Sections ---------------- */

.sec {
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
  border-top: 1px solid var(--border);
}

.sec-muted {
  background: var(--surface-2);
}

.head {
  display: grid;
  gap: 14px;
  margin-block-end: clamp(24px, 3vw, 34px);
  padding-block-start: 20px;
  border-top: 1px solid var(--border);
}

.head h2 {
  font-size: clamp(1.1875rem, 1.03rem + 0.7vw, 1.5625rem);
  line-height: 1.55;
}

.head p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.95;
}

.cards {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--border);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 2px;
}

.card h3 {
  font-size: 1rem;
  line-height: 1.6;
}

.card-top h3 {
  font-size: 1.0625rem;
}

.card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.95;
}

.checks {
  display: grid;
  gap: 8px;
  margin-block-start: 4px;
  padding-block-start: 14px;
  border-top: 1px solid var(--border);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.checks .icon {
  width: 15px;
  height: 15px;
  margin-block-start: 3px;
  color: var(--muted);
}

/* Flow: a drafting table, one cell per step. */
.steps {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--border);
}

.step {
  padding: 18px 20px 20px;
  background: var(--surface);
}

.step .num {
  display: block;
  margin-block-end: 8px;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  margin-block-end: 6px;
  font-size: 0.9375rem;
}

.step p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.85;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-block-start: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--canvas);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.9;
}

.sec-muted .note {
  background: var(--surface);
}

.note .icon {
  width: 16px;
  height: 16px;
  margin-block-start: 3px;
  color: var(--muted);
}

.card-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.card-panel h3 {
  font-size: 1rem;
}

.card-panel p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.95;
}

.featured {
  border-top: 2px solid var(--bronze);
}

/* ---------------- Close ---------------- */

.close {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--r-panel);
  background: var(--graphite);
  color: var(--graphite-ink);
}

.close h2 {
  font-size: clamp(1.1875rem, 1.03rem + 0.7vw, 1.5rem);
}

.close p {
  max-width: 58ch;
  color: var(--graphite-muted);
  font-size: 0.9375rem;
  line-height: 1.95;
}

.close .actions {
  margin-block-start: 4px;
}

.btn-light {
  border-color: transparent;
  background: var(--canvas);
  color: var(--ink);
}

.btn-light:hover {
  background: #ffffff;
}

.btn-outline {
  border-color: rgba(233, 236, 232, 0.28);
  background: transparent;
  color: var(--graphite-ink);
}

.btn-outline:hover {
  border-color: rgba(233, 236, 232, 0.55);
  background: rgba(233, 236, 232, 0.06);
}

/* ---------------- Footer ---------------- */

.footer {
  padding-block: clamp(2rem, 3.5vw, 2.75rem) 20px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand p {
  max-width: 44ch;
  margin-block-start: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.9;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-title {
  margin-block-end: 10px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer-links a {
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-block-start: 32px;
  padding-block-start: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

/* ---------------- Motion ---------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy,
.hero-figure {
  animation: rise 260ms var(--ease) both;
}

.hero-figure {
  animation-delay: 70ms;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------- Layout ---------------- */

@media (min-width: 560px) {
  .record {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
  }

  .record > div {
    display: block;
  }

  .record > div:first-child {
    grid-column: 1 / -1;
  }

  .cards,
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (min-width: 600px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-head .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    column-gap: 48px;
    align-items: end;
  }

  .page-head .crumbs,
  .page-head .kicker {
    grid-column: 1 / -1;
  }

  .page-head h1 {
    grid-column: 1;
  }

  .page-head .lead,
  .page-head .meta-line {
    grid-column: 2;
  }

  .page-head .lead {
    margin-block-end: 4px;
  }

  .nav {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }

  .head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 12px 48px;
    align-items: end;
  }

  .head .kicker {
    grid-column: 1 / -1;
  }

  .head h2 {
    grid-column: 1;
  }

  .head p {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 48px;
  }

  .footer-cols {
    justify-content: end;
    max-width: 520px;
    margin-inline-start: auto;
  }

  .close {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(24px, 4vw, 56px);
    align-items: center;
  }

  .close h2,
  .close p {
    grid-column: 1;
  }

  .close .actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-block-start: 0;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Four items: a 2x2 block beats three plus a widow. */
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Six steps: two rows of three, never a dead cell. */
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .cards-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
         Shared across the public site: sub-page heads, plans, comparison, prose.
         ========================================================================== */

.page-head {
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  margin-block: 14px 12px;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.1rem);
  line-height: 1.45;
}

.page-head .lead {
  margin-block-end: 0;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .icon {
  width: 15px;
  height: 15px;
  transform: scaleX(-1);
}

.meta-line {
  margin-block-end: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bronze);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.link-more:hover {
  color: var(--bronze-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-more .icon {
  width: 15px;
  height: 15px;
}

/* Plans: three surfaces, one geometry, the middle one marked by weight. */
.plans {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--border);
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px;
  background: var(--surface);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-name {
  font-size: 1.0625rem;
  font-weight: 600;
}

.plan-desc {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-block: 14px;
  border-block: 1px solid var(--border);
}

.plan-amount {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.plan .plan-amount.is-free {
  color: var(--success);
}

.plan-period {
  color: var(--muted);
  font-size: 0.8125rem;
}

.plan-list {
  display: grid;
  gap: 8px;
  flex: 1;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.75;
}

.plan-list .icon {
  width: 15px;
  height: 15px;
  margin-block-start: 4px;
  color: var(--muted);
}

.plan .btn {
  width: 100%;
  margin-block-start: 4px;
}

.plan.is-featured {
  border-top: 2px solid var(--bronze);
}

/* Comparison: one header row, aligned figures, hairline rows. */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.compare {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare th,
.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
}

.compare thead th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.compare tbody th {
  color: var(--ink-2);
  font-weight: 500;
}

.compare td {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

/* FAQ: native details, so it works with the keyboard and without JS. */
.faq {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  /* Physical edges on purpose: the chevron must point down in either direction. */
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 150ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.95;
}

/* Long-form legal pages: comfortable measure, no decoration. */
.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-block: 32px 10px;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.prose h2:first-child {
  margin-block-start: 0;
}

.prose h3 {
  margin-block: 22px 8px;
  font-size: 0.9375rem;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 2;
}

.prose p + p {
  margin-block-start: 12px;
}

.prose ul {
  display: grid;
  gap: 6px;
  margin-block: 12px;
  padding-inline-start: 20px;
  list-style: disc;
}

.prose li::marker {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.9;
}

.notice .icon {
  width: 16px;
  height: 16px;
  margin-block-start: 3px;
  color: var(--muted);
}

/* ---------------- Motion ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition:
      opacity 240ms var(--ease),
      transform 240ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
}

@media (min-width: 560px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Two-item grids: stay two columns at every width, never a dead cell. */
@media (min-width: 560px) {
  .cards.cards-2up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
