/* Offlo — content, color and type are locked by LANDING-PAGE-SPEC.md.
   Card language, spacing rhythm and scroll-reveal motion borrow Fiilo's
   craft (flat cards, 12px radius, hairline borders, no shadows). */

:root {
  /* brand */
  --brand:        #C2410C;
  --brand-hover:  #9A3412;
  --accent-dark:  #F0A06A;

  /* light-section neutrals */
  --text:         #1C1917;
  --muted:        #6B6560;
  --border:       #E7E2DC;
  --bg:           #FAF9F7;
  --panel:        #F3EDE6;

  /* dark-section neutrals (hero, pricing, comparison-table header, footer) */
  --midnight:     #16130F;
  --navy:         #211C17;
  --dark-muted:       #A89F96;
  --dark-muted-dim:   #756E66;
  --dark-muted-dimmer:#4A4238;
  --dark-soft:    #E8E1D8;

  /* semantic */
  --danger:       #DC2626;
  --pending:      #DCAB3F;
  --pending-text: #EEC775;

  --wrap:   1200px;
  --gut:    clamp(1.25rem, 4vw, 2.5rem);
  --r:      12px;
  --r-sm:   8px;

  --ease:   cubic-bezier(.16,.84,.34,1);
  --dur:    .7s;

  --step--1: clamp(.86rem, .84rem + .08vw, .92rem);
  --step-0:  clamp(1rem, .97rem + .14vw, 1.06rem);
  --step-1:  clamp(1.13rem, 1.06rem + .3vw, 1.3rem);
  --step-2:  clamp(1.4rem, 1.22rem + .8vw, 1.85rem);
  --step-3:  clamp(1.8rem, 1.4rem + 1.8vw, 2.75rem);
  --step-4:  clamp(2.4rem, 1.5rem + 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-weight: 700; letter-spacing: -.035em; }
h1 em { font-style: normal; color: var(--brand); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.anchor-offset { display: block; position: relative; top: -90px; visibility: hidden; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--brand); color: #fff;
  padding: .75rem 1.1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { left: 0; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── header ──────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,249,247,0);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-head.is-stuck {
  background: rgba(250,249,247,.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.head-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.28rem; font-weight: 700;
  text-decoration: none; color: var(--text);
  margin-right: auto;
}
.brand-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; margin-left: 1px; }

.nav { display: flex; gap: 1.75rem; }
.nav a {
  text-decoration: none; font-size: .94rem; font-weight: 500;
  color: var(--text); padding: .35rem 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--brand); transition: right .35s var(--ease);
}
.nav a:hover::after { right: 0; }

.head-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; padding: 0;
}
.nav-toggle .bar { display: block; width: 16px; height: 2px; background: var(--text); margin-inline: auto; transition: transform .3s var(--ease); }
.site-head.is-open .nav-toggle .bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-head.is-open .nav-toggle .bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav a {
  display: block; padding: .95rem var(--gut); text-decoration: none;
  border-bottom: 1px solid var(--border); font-weight: 500;
}
.mobile-nav .btn { margin: 1rem var(--gut); width: calc(100% - var(--gut) * 2); }

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .9rem 1.6rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease);
}
.btn-sm { padding: .62rem 1.1rem; font-size: .87rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-outline { color: var(--text); border-color: var(--border); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero { background: var(--midnight); color: var(--dark-soft); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 480px at 18% 0%, var(--navy), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.badge {
  display: inline-block;
  font-size: .84rem; font-weight: 600; color: var(--accent-dark);
  background: rgba(240,160,106,.12); border: 1px solid rgba(240,160,106,.28);
  border-radius: 999px; padding: .4em 1em; margin: 0 0 1.4rem;
}

.hero-eyebrow { color: var(--accent-dark); margin: 0 0 .6rem; }

.hero h1 { font-size: var(--step-4); color: var(--dark-soft); max-width: 14ch; }
.hero-sub { margin-top: 1.3rem; max-width: 46ch; font-size: var(--step-1); color: var(--dark-muted); line-height: 1.55; }

.email-form { margin-top: 2rem; max-width: 30rem; }
.email-form-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.email-form input {
  flex: 1 1 14rem; min-width: 0;
  font: inherit; font-size: .96rem; color: var(--text);
  padding: .85rem 1rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.email-form input::placeholder { color: var(--muted); }
.email-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(194,65,12,.18); }
.email-form input[aria-invalid="true"] { border-color: var(--danger); }
.form-status { margin: .75rem 0 0; font-size: .88rem; min-height: 1.3em; color: var(--dark-muted); }
.form-status.is-ok { color: var(--accent-dark); font-weight: 500; }
.form-status.is-err { color: #ff8a7a; }

.trust-row { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
/* dark-muted-dim measures 3.68:1 on the hero's midnight ground — below the
   spec's own accessible floor, and the spec reserves that tier for
   decorative text (timestamps, placeholders), not read content like this. */
.trust-row li { font-size: .85rem; color: var(--dark-muted); position: relative; padding-left: 1.3rem; }
.trust-row li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(240,160,106,.5);
}

/* hero visual: tabs + panels */
.hero-visual { position: relative; }
.tabs { display: inline-flex; gap: .3rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: .3rem; margin-bottom: 1.1rem; }
.tab {
  font: inherit; font-size: .87rem; font-weight: 600; color: var(--dark-muted);
  background: transparent; border: 0; border-radius: 999px; padding: .55em 1.2em; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.tab.is-active { background: var(--brand); color: #fff; }
.tab:not(.is-active):hover { color: var(--dark-soft); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel img { border-radius: var(--r); border: 1px solid rgba(255,255,255,.12); }

.slack-mock {
  background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r);
  padding: 1.3rem 1.4rem;
}
.slack-msg { display: flex; gap: .8rem; margin-bottom: 1rem; }
.slack-msg:last-of-type { margin-bottom: .8rem; }
.slack-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .8rem;
}
.slack-msg b { display: block; font-size: .86rem; color: var(--dark-soft); margin-bottom: .15rem; }
.slack-msg p { margin: 0; font-size: .88rem; color: var(--dark-muted); line-height: 1.45; }
.slack-unresolved { margin: .4rem 0 0; text-align: center; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-muted-dimmer); }

/* ── stats ───────────────────────────────────────────────────────────────── */

.stats { background: var(--panel); padding-block: clamp(2.2rem, 5vw, 3rem); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.stat-n {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.9rem);
  font-weight: 700; color: var(--brand); line-height: 1;
}
.stat-n i { font-style: normal; font-size: .55em; }
.stat-l { font-size: .92rem; color: var(--muted); line-height: 1.4; max-width: 26ch; }

/* ── real-screenshot frames ──────────────────────────────────────────────── */
/* Real product crops don't share one aspect ratio (a tall calendar month
   view, a short wide approval-card strip, a roughly-square balance panel),
   so each gets the treatment that suits it rather than one generic rule:
   shot-cover crops to a fixed height (for panels that sit beside/inside a
   fixed-height layout slot, like the hero tab), shot-contain shows the
   image at its own aspect ratio inside a padded card (for the strip/panel
   crops, where cropping further would cut off real content). */
.shot-frame {
  border-radius: var(--r); border: 1px solid var(--border);
  background: #fff; overflow: hidden;
}
.shot-frame.on-dark { border-color: rgba(255,255,255,.12); background: var(--navy); }
.shot-frame img { width: 100%; display: block; }
.shot-frame.shot-cover { height: 300px; }
.shot-frame.shot-cover img { height: 100%; object-fit: cover; object-position: 50% 8%; }
.shot-frame.shot-contain { padding: 12px; }
.shot-frame.shot-contain img { height: auto; }

/* ── sections ────────────────────────────────────────────────────────────── */

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-panel { background: var(--panel); }
.section-dark { background: var(--midnight); color: var(--dark-soft); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .8rem;
}
.section-dark .eyebrow { color: var(--accent-dark); }
.section-head h2 { font-size: var(--step-3); }
.section-dark .section-head h2 { color: var(--dark-soft); }
.lede { margin-top: .9rem; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
.section-dark .lede { color: var(--dark-muted); }

/* ── cards ───────────────────────────────────────────────────────────────── */

.cards { display: grid; gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}
.section-panel .card { background: var(--bg); }
.card h3 { font-size: var(--step-1); margin-bottom: .7rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card blockquote {
  margin: 1.1rem 0 0; padding: .85rem 1rem;
  background: var(--panel); border-radius: var(--r-sm);
  font-size: .87rem; font-style: italic; color: var(--text);
}
.section-panel .card blockquote { background: var(--bg); }

.card-compact { padding: 1.4rem 1.5rem; }
.card-compact h4 { font-size: 1.02rem; margin-bottom: .5rem; }
.card-compact p { color: var(--muted); font-size: .89rem; }
.feature-strip { margin-top: clamp(2.75rem, 5vw, 4rem); padding-top: clamp(2.75rem, 5vw, 4rem); border-top: 1px solid var(--border); }

/* ── steps ───────────────────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 1.7rem; }
.step-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .92rem;
  font-family: "Bricolage Grotesque", sans-serif;
}
.step-time { font-size: .78rem; color: var(--muted); font-weight: 500; }
.steps h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .93rem; }

/* ── feature pairs ───────────────────────────────────────────────────────── */

.feature-pairs { display: grid; gap: clamp(2.75rem, 5vw, 4rem); }
.feature-pair {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.feature-pair-reverse { grid-template-columns: 1fr 1.15fr; }
.feature-pair-reverse .feature-pair-media { order: 2; }
.feature-pair-reverse .feature-pair-copy { order: 1; }

.feature-pair-media { position: relative; }
.feature-pair-media img { border-radius: var(--r); border: 1px solid var(--border); width: 100%; }

/* The three real screenshots don't share a source aspect ratio (near-square
   calendar, short-wide approval strip, compact balance panel). Rather than
   let each sit at its own natural size -- which reads as three unrelated,
   unevenly-weighted blocks -- every shot gets the same tinted "stage": a
   fixed-rhythm panel that centers the image at a shared max height. Extra
   space around a smaller shot reads as deliberate matting, not a gap. */
.feature-pair-media .shot-frame {
  background: var(--panel);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(180px, 26vw, 300px);
}
.feature-pair-media .shot-frame img {
  width: auto; height: auto;
  max-width: 100%; max-height: clamp(160px, 22vw, 300px);
}
.media-badge {
  position: absolute; bottom: -14px; right: 20px;
  background: var(--midnight); color: var(--dark-soft);
  font-size: .8rem; font-weight: 600;
  padding: .5em 1em; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
}

.feature-pair-copy h3 { font-size: var(--step-2); margin: .6rem 0 .8rem; }
.feature-pair-copy p { color: var(--muted); max-width: 42ch; }

/* ── comparison table ─────────────────────────────────────────────────────
   Styling kept from the previous design by explicit request: dark header,
   Offlo's column highlighted the full height of the table, sticky
   row-label column on mobile (below) instead of the table just vanishing
   or making the visitor scroll blind past unlabeled rows. */

.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .93rem; min-width: 640px; }
.compare-table th, .compare-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  background: var(--midnight); color: var(--dark-muted);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600;
  border-bottom: 0;
}
.compare-table thead .col-offlo { color: var(--brand); background: #3A2415; }
.compare-table tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.compare-table td.col-offlo { background: #FDECE0; color: #9A3412; font-weight: 600; }
.compare-table .yes { color: var(--brand); font-size: 1.05em; }
.compare-table .no { color: var(--danger); font-size: 1.05em; }

@media (max-width: 900px) {
  .compare-table th.row-label, .compare-table tbody th {
    position: sticky; left: 0; z-index: 1;
  }
  .compare-table tbody th { background: #fff; }
  .compare-table th.row-label { background: var(--midnight); }

  /* tbody th's white-space:nowrap (above) is fine at desktop widths but on a
     phone it forces the row-label column as wide as its longest sentence
     ("See the price without a sales call"), which crowds Offlo's own
     highlighted column down to a sliver that's cut off before any scrolling.
     Let labels wrap within a fixed column width instead. */
  .compare-table tbody th { white-space: normal; width: 132px; max-width: 132px; }
  .compare-table th, .compare-table td { padding: .85rem .9rem; }

  /* Visual cue that the table keeps going -- a fading edge over the last
     visible pixels, so "scroll for more" reads without adding new copy. */
  .table-wrap { position: relative; }
  .table-wrap::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
    background: linear-gradient(to right, transparent, rgba(28,25,23,.14));
    pointer-events: none;
  }
}

/* ── pricing ─────────────────────────────────────────────────────────────── */

.pricing-cards { align-items: start; }
.price-card { background: var(--navy); border-color: rgba(255,255,255,.12); }
.price-card h3 { color: var(--dark-soft); font-size: var(--step-2); }
.price { display: flex; align-items: baseline; gap: .3rem; margin: .6rem 0 .3rem; }
.price-n { font-family: "Bricolage Grotesque", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--dark-soft); }
.price-period { color: var(--dark-muted); font-size: .95rem; }
/* .card p already sets a light-section color at equal-or-higher specificity
   (class+element beats a lone class), so this must be qualified under
   .price-card to actually win. */
.price-card .price-sub { color: var(--dark-muted); font-size: .9rem; margin-bottom: 1.4rem; }
.price-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .6rem; }
.price-list li { position: relative; padding-left: 1.5rem; color: var(--dark-muted); font-size: .9rem; }
.price-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }

.price-card-featured { background: var(--brand); border-color: transparent; position: relative; }
.price-card-featured h3, .price-card-featured .price-n { color: #fff; }
.price-card-featured .price-period, .price-card-featured .price-sub, .price-card-featured .price-list li { color: rgba(255,255,255,.85); }
.price-card-featured .price-list li::before { color: #fff; }
.price-card-featured .btn-primary { background: #fff; color: var(--brand); }
.price-card-featured .btn-primary:hover { background: var(--panel); }
.price-flag {
  position: absolute; top: -13px; left: 1.7rem;
  background: var(--midnight); color: var(--accent-dark);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: .35em .9em; border-radius: 999px; margin: 0;
}
.price-card .btn-outline { border-color: rgba(255,255,255,.25); color: var(--dark-soft); }
.price-card .btn-outline:hover { border-color: var(--accent-dark); color: var(--accent-dark); }

.savings-note { margin-top: 2.4rem; color: var(--dark-muted); font-size: .93rem; max-width: 62ch; line-height: 1.6; }

/* ── final CTA ───────────────────────────────────────────────────────────── */

.final-cta-inner { max-width: 44rem; }
.final-cta .email-form { max-width: 30rem; }
.cta-microcopy { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* ── legal pages ─────────────────────────────────────────────────────────── */

.legal-wrap { max-width: 46rem; }
.legal-title { font-size: var(--step-3); }
.legal-updated { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.legal-body { margin-top: 2.5rem; }
.legal-body h2 { font-size: 1.2rem; margin: 2.2rem 0 .7rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--muted); font-size: .96rem; line-height: 1.65; }
.legal-body ul { margin: 0 0 1em 1.3rem; padding: 0; }
.legal-body li { margin-bottom: .4em; }
.legal-body a { color: var(--brand); }
.legal-body strong { color: var(--text); }

/* ── footer ──────────────────────────────────────────────────────────────── */

.site-foot { background: var(--midnight); color: var(--dark-muted); padding-block: 2.4rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.foot-brand { color: var(--dark-soft); font-size: 1.1rem; }
.foot-copy { font-size: .87rem; margin: 0; margin-right: auto; }
.foot-nav { display: flex; gap: 1.3rem; }
.foot-nav a { color: var(--dark-muted); text-decoration: none; font-size: .87rem; padding-block: .3rem; }
.foot-nav a:hover { color: var(--accent-dark); }

/* ── reveal ──────────────────────────────────────────────────────────────── */

.reveal { opacity: 1; }
.reveal.is-armed { opacity: 0; transform: translateY(16px); }
.reveal.is-armed.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-armed { opacity: 1; transform: none; transition: none; }
}

/* ── responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 44rem; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-pair, .feature-pair-reverse { grid-template-columns: 1fr; }
  /* The desktop rule above (.feature-pair-reverse media:2/copy:1) isn't
     scoped to desktop -- it's unconditional -- so it was still winning at
     this width too, forcing this pair's copy before its own image. Once
     all three pairs stack into one column that broke the sequence: with
     pair 1 and pair 3 both image-first, this pair's caption read as a
     continuation of pair 1's, and its screenshot ended up sitting next to
     pair 3's -- captions and screenshots visibly paired with the wrong
     neighbor. Flip it back so every pair reads [screenshot][its own
     caption], the same shape throughout. */
  .feature-pair-reverse .feature-pair-media { order: 1; }
  .feature-pair-reverse .feature-pair-copy { order: 2; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .head-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-head.is-open .mobile-nav { display: block; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .cards-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; }
}

@media (max-width: 620px) {
  .cards-4 { grid-template-columns: 1fr; }
  /* .email-form input's flex: 1 1 14rem (above) sizes it along the row's
     main axis -- normally width. Stacking the row to column here flips
     that axis to vertical without anyone telling the input, so its 14rem
     basis became a *height* instead: a 224px-tall box. Pin it back to an
     ordinary single-line field. */
  .email-form-row { flex-direction: column; }
  .email-form-row input { flex: none; width: 100%; }
  .email-form-row .btn { width: 100%; }
  .trust-row { gap: 1rem; }
  .compare-table { font-size: .86rem; }
}
