/*
 * Landing page stylesheet.
 *
 * Three layers, applied in this order — later layers deliberately win:
 *
 *   1. SKELETON   the shared structure every page has.
 *   2. VARIANTS   seed-picked body classes (card-*, bt-*, dv-*, tx-*, dc-*).
 *                 Two pages with the same layout mode differ here.
 *   3. LAYOUTS    the layout mode, as a complete design system rather than a
 *                 hero tweak. Each one restyles headings, sections, cards,
 *                 buttons and rhythm, so two layout modes never read alike.
 *
 * Every colour, radius and font comes from CSS custom properties the template
 * writes inline from site.json — one stylesheet serves every domain. No
 * framework, no web fonts, no external requests.
 */

/* ═══════════════════════════ 1. SKELETON ═══════════════════════════ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  /* --space is the seed's density multiplier; every vertical rhythm below is
     expressed through it, so one value changes the feel of the whole page. */
  --section-pad: calc(clamp(2.25rem, 5.5vw, 4rem) * var(--space));
  --hero-pad: calc(clamp(2.5rem, 7vw, 5.5rem) * var(--space));
  --gap: calc(1rem * var(--space));

  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--body-size, 1rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Room for the fixed action bar so it never covers the last paragraph. */
body.has-cta-bar {
  padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: var(--head-weight, 700);
  line-height: 1.2;
  letter-spacing: var(--head-tracking, -0.02em);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1,
h2 {
  text-transform: var(--head-case, none);
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
}
h3 {
  font-size: 1.125rem;
  letter-spacing: normal;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ───────────────────────────── Header ───────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

.site-header.is-transparent {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
}

.site-header.is-centered .header-inner {
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--fg);
}

@media (max-width: 40rem) {
  .site-nav {
    display: none;
  }
}

/* ────────────────────────────── Hero ────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--hero-pad);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: calc(clamp(1.75rem, 4vw, 3rem) * var(--space));
  align-items: center;
}

/* Shown only by the layouts that want an eyebrow above the H1. */
.hero-kicker {
  display: none;
  margin: 0 0 0.9rem;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ───────────────────────────── Sections ─────────────────────────── */

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--alt {
  background: var(--surface);
}

/* Default is a plain stack; layouts turn this into columns. */
.section-grid {
  display: block;
}

.section-head h2 {
  margin-bottom: 0.55em;
}

.prose {
  max-width: 68ch;
}

.prose.lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose > :last-child {
  margin-bottom: 0;
}

/* ────────────────────────────── Cards ───────────────────────────── */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

/* Fill and border come from variables, not from a competing rule, so a layout
   that wants flat cards only has to override this one declaration. */
.card {
  background: var(--card-bg, var(--bg));
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card h3 {
  margin-bottom: 0.35em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ────────────────────────────── Steps ───────────────────────────── */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps h3 {
  margin-bottom: 0.25em;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ────────────────────────────── Stats ───────────────────────────── */

.stats {
  margin: 0;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.stat {
  text-align: center;
  background: var(--card-bg, transparent);
  border: 1px solid var(--card-border, var(--border));
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
}

.stat dt {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: var(--head-weight, 700);
  color: var(--primary);
  line-height: 1.1;
}

.stat dd {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ─────────────────────────────── FAQ ────────────────────────────── */

.faq {
  max-width: 48rem;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  cursor: pointer;
  padding: 1.05rem 2rem 1.05rem 0;
  position: relative;
  list-style: none;
}

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

.faq summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.02rem;
}

.faq summary::after {
  content: '';
  position: absolute;
  right: 0.35rem;
  top: 1.45rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

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

.faq details > .prose {
  padding-bottom: 1.1rem;
  color: var(--muted);
}

/* ────────────────────── Table of contents ───────────────────────── */

/* Only the article layout renders one, but the styling lives here so the
   markup stays layout-agnostic. */
.toc {
  padding-block: 1.25rem 0;
}

.toc .wrap {
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.toc-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.94rem;
}

.toc li {
  margin-bottom: 0.25rem;
}

.toc a {
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}

@media (min-width: 44rem) {
  .toc ol {
    columns: 2;
    column-gap: 2rem;
  }
}

/* ─────────────────────────────── CTA ────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
}

.section--cta {
  background: var(--surface);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin-bottom: 0.3em;
}

.cta-band .prose {
  color: var(--muted);
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ───────────────────────────── Footer ───────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--fg);
}

/* ═══════════════════════════ 2. VARIANTS ═══════════════════════════ */

/* Card treatment ------------------------------------------------- */

.card-solid,
.card-stripe {
  --card-bg: var(--surface);
}

/* A solid card on a banded section would be the same colour as the band, so
   the fill flips there. Done with a variable rather than a more specific rule
   so it cannot outrank a layout that wants no fill at all. */
.card-solid .section--alt,
.card-stripe .section--alt {
  --card-bg: var(--bg);
}

.card-solid {
  --card-border: transparent;
}

.card-shadow {
  --card-border: transparent;
}
.card-shadow .card,
.card-shadow .stat {
  box-shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 14px 30px -18px rgb(0 0 0 / 45%);
}

.card-underline .card,
.card-underline .stat {
  border: 0;
  border-top: 3px solid var(--primary);
  border-radius: 0;
  background: transparent;
  padding-inline: 0;
}

.card-stripe .card,
.card-stripe .stat {
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Button treatment ------------------------------------------------ */

.bt-outline .btn-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.bt-shadow .btn-primary {
  box-shadow: 0 12px 22px -12px var(--primary);
}

.bt-block .btn-primary,
.bt-block .btn-ghost {
  border-radius: 0;
  border-color: var(--fg);
  box-shadow: 4px 4px 0 var(--fg);
}
.bt-block .btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--fg);
  filter: none;
}

/* Section dividers ------------------------------------------------ */

.dv-rule .section + .section {
  border-top: 1px solid var(--border);
}

.dv-accent .section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: 3.5rem;
  height: 3px;
  background: var(--accent);
}

/* Background texture on banded sections --------------------------- */

.tx-dots .section--alt {
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 16px 16px;
}

.tx-grid .section--alt {
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 30px 30px;
}

.tx-gradient .section--alt {
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 10%, transparent),
    transparent 70%
  );
}

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

.hero-deco {
  display: none;
  position: absolute;
  pointer-events: none;
}

.dc-blob .hero-deco {
  display: block;
  top: -30%;
  right: -10%;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--primary) 45%, transparent),
    transparent 65%
  );
  filter: blur(30px);
}

.dc-bars .hero-deco {
  display: block;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  opacity: 0.35;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 2px,
    transparent 2px 14px
  );
  mask-image: linear-gradient(to left, #000, transparent);
}

.dc-ring .hero-deco {
  display: block;
  top: 50%;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  translate: 0 -50%;
  border-radius: 50%;
  border: clamp(2rem, 5vw, 4rem) solid color-mix(in srgb, var(--accent) 16%, transparent);
}

/* ═══════════════════════════ 3. LAYOUTS ════════════════════════════ */

/* ─────────────── hero-centered — poster ─────────────── */

.layout-hero-centered .hero-inner {
  text-align: center;
  justify-items: center;
}
.layout-hero-centered .hero-kicker {
  display: block;
}
.layout-hero-centered .lede {
  margin-inline: auto;
}
.layout-hero-centered .hero-actions {
  justify-content: center;
}
.layout-hero-centered .hero-media {
  width: min(100%, 58rem);
}

.layout-hero-centered .section-head {
  text-align: center;
}
.layout-hero-centered .section-head h2::after {
  content: '';
  display: block;
  width: 3.25rem;
  height: 3px;
  margin: 0.7rem auto 0;
  background: var(--primary);
}
.layout-hero-centered .section--text .prose,
.layout-hero-centered .prose.lead {
  margin-inline: auto;
  text-align: center;
}
.layout-hero-centered .card {
  text-align: center;
}
.layout-hero-centered .faq,
.layout-hero-centered .stats {
  margin-inline: auto;
}
.layout-hero-centered .cta-band {
  justify-content: center;
  text-align: center;
}

/* ─────────────── split-image-left — product page ─────────────── */

.layout-split-image-left .hero-kicker {
  display: block;
  color: var(--primary);
}
.layout-split-image-left .hero-media img {
  aspect-ratio: 4 / 5;
}
.layout-split-image-left .section--alt {
  background: none;
}
.layout-split-image-left .section + .section {
  border-top: 1px solid var(--border);
}
.layout-split-image-left .section-head h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
}
.layout-split-image-left .section-head h2::before {
  content: '';
  display: block;
  width: 2.25rem;
  height: 4px;
  margin-bottom: 0.9rem;
  background: var(--primary);
}

@media (min-width: 56rem) {
  .layout-split-image-left .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
  .layout-split-image-left .hero-media {
    order: -1;
  }
  /* The heading column stays put while its content scrolls past — the single
     strongest cue that this is not the same page as the other layouts. */
  .layout-split-image-left .section-grid {
    display: grid;
    grid-template-columns: minmax(11rem, 27%) 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
  }
  .layout-split-image-left .section-head {
    position: sticky;
    top: 5rem;
  }
  .layout-split-image-left .cta-band {
    justify-content: flex-start;
    gap: 3rem;
  }
}

/* ─────────────── magazine — editorial ─────────────── */

.layout-magazine {
  counter-reset: mag;
}
.layout-magazine .site-header {
  border-bottom-width: 3px;
  border-bottom-color: var(--fg);
}
.layout-magazine .site-nav {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}
.layout-magazine .hero {
  padding-block: calc(1.5rem * var(--space)) calc(2.5rem * var(--space));
  border-bottom: 3px double var(--fg);
}
.layout-magazine .hero-kicker {
  display: block;
  border-top: 2px solid var(--fg);
  padding-top: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--fg);
}
.layout-magazine h1 {
  font-size: clamp(2.4rem, 7.5vw, 5rem);
  line-height: 1;
}
.layout-magazine .lede {
  max-width: none;
  color: var(--fg);
}

.layout-magazine .section {
  border-top: 1px solid var(--border);
  counter-increment: mag;
}
.layout-magazine .section--alt {
  background: none;
}
.layout-magazine .section-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.layout-magazine .section-head h2::before {
  content: counter(mag, decimal-leading-zero);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
/* No boxes anywhere — editorial pages use rules, not containers. */
.layout-magazine .card,
.layout-magazine .stat {
  background: none;
  border: 0;
  border-top: 2px solid var(--fg);
  border-radius: 0;
  padding: 0.85rem 0 0;
  box-shadow: none;
  text-align: left;
}
.layout-magazine .faq {
  max-width: none;
  border-top-width: 2px;
  border-top-color: var(--fg);
}
.layout-magazine .section--cta {
  background: var(--fg);
  color: var(--bg);
}
.layout-magazine .section--cta h2,
.layout-magazine .section--cta .prose {
  color: var(--bg);
}

@media (min-width: 56rem) {
  .layout-magazine .hero-inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
  }
  .layout-magazine .lede {
    columns: 2;
    column-gap: 2.25rem;
  }
  .layout-magazine .section-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  .layout-magazine .section--text .prose {
    max-width: none;
    columns: 2;
    column-gap: 2.5rem;
  }
  .layout-magazine .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  }
}

/* ─────────────── card-grid — bento ─────────────── */

.layout-card-grid {
  background: var(--surface);
}
.layout-card-grid .site-header {
  background: none;
  border-bottom: 0;
}
.layout-card-grid .hero {
  padding-block: calc(1.25rem * var(--space));
}
/* Hero and every section become tiles floating on the page background. */
.layout-card-grid .hero-inner,
.layout-card-grid .section-grid {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding-block: clamp(1.4rem, 3.5vw, 2.25rem);
}
.layout-card-grid .section {
  padding-block: calc(0.5rem * var(--space));
}
.layout-card-grid .section--alt {
  background: none;
}
.layout-card-grid .section--cta {
  background: none;
}
.layout-card-grid .cta-band {
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
}
.layout-card-grid .cta-band h2,
.layout-card-grid .cta-band .prose {
  color: var(--primary-ink);
}
.layout-card-grid .card {
  background: var(--surface);
  border-color: transparent;
  box-shadow: none;
}
.layout-card-grid .cards {
  gap: 0.75rem;
}

/* Uneven tile spans are what make a grid read as bento rather than as a
   plain three-column list. */
@media (min-width: 48rem) {
  .layout-card-grid .cards {
    grid-template-columns: repeat(6, 1fr);
  }
  .layout-card-grid .cards > li {
    grid-column: span 2;
  }
  .layout-card-grid .cards > li:nth-child(6n + 1) {
    grid-column: span 4;
  }
  .layout-card-grid .cards > li:nth-child(6n + 4),
  .layout-card-grid .cards > li:nth-child(6n + 5) {
    grid-column: span 3;
  }
  .layout-card-grid .cards > li:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

/* ─────────────── feature-list — numbered rows ─────────────── */

.layout-feature-list .hero {
  padding-block: calc(2.25rem * var(--space)) calc(1.25rem * var(--space));
}
.layout-feature-list .hero-inner {
  justify-items: start;
}
.layout-feature-list .hero-kicker {
  display: block;
}
.layout-feature-list .section--alt {
  background: none;
}
.layout-feature-list .section {
  padding-block: calc(1.6rem * var(--space));
}
.layout-feature-list .section-head h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* Cards stop being cards: each point is a full-width row with a big number. */
.layout-feature-list .cards {
  display: block;
  counter-reset: feat;
}
.layout-feature-list .card {
  counter-increment: feat;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0 1.1rem;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 1.15rem 0;
  text-align: left;
}
.layout-feature-list .card::before {
  content: counter(feat, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: var(--head-weight, 700);
  line-height: 1;
  color: color-mix(in srgb, var(--primary) 65%, var(--muted));
}
.layout-feature-list .card h3 {
  grid-column: 2;
  margin: 0;
}
.layout-feature-list .card p {
  grid-column: 2;
}
.layout-feature-list .stat {
  text-align: left;
}

@media (min-width: 52rem) {
  .layout-feature-list .card {
    grid-template-columns: 4rem 15rem 1fr;
    align-items: baseline;
  }
  .layout-feature-list .card h3 {
    grid-column: 2;
    grid-row: 1;
  }
  .layout-feature-list .card p {
    grid-column: 3;
    grid-row: 1;
  }
  .layout-feature-list .steps {
    grid-template-columns: 1fr;
  }
}

/* ─────────────── minimal-text-only — typographic ─────────────── */

body.layout-minimal-text-only {
  --radius: 0px;
}
.layout-minimal-text-only .wrap {
  max-width: 42rem;
}
.layout-minimal-text-only .site-header,
.layout-minimal-text-only .site-footer {
  border-color: transparent;
}
.layout-minimal-text-only .hero {
  padding-block: calc(4rem * var(--space)) calc(1.5rem * var(--space));
}
/* This layout's whole premise is no fills and no ornament, so it opts out of
   whatever decoration the seed picked. */
.layout-minimal-text-only .hero-deco {
  display: none;
}
.layout-minimal-text-only h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 400;
}
.layout-minimal-text-only .lede {
  font-size: 1.05rem;
  color: var(--fg);
}
.layout-minimal-text-only .section {
  padding-block: calc(2.75rem * var(--space));
  border-top: 1px solid var(--border);
}
.layout-minimal-text-only .section--alt,
.layout-minimal-text-only .section--cta {
  background: none;
}
.layout-minimal-text-only .section-head h2 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.layout-minimal-text-only .prose {
  max-width: none;
  font-size: 1.05rem;
}
/* Nothing is a container here — no borders, no fills, no shadows. */
.layout-minimal-text-only .cards,
.layout-minimal-text-only .steps {
  display: block;
}
.layout-minimal-text-only .card,
.layout-minimal-text-only .stat {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 1.4rem;
  text-align: left;
}
.layout-minimal-text-only .card h3 {
  font-size: 1rem;
  margin-bottom: 0.15em;
}
.layout-minimal-text-only .stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  display: grid;
}
.layout-minimal-text-only .steps li {
  margin-bottom: 1.4rem;
}
.layout-minimal-text-only .steps li::before {
  background: none;
  color: var(--muted);
  border-radius: 0;
  place-items: start;
  font-size: 0.8rem;
}
.layout-minimal-text-only .faq {
  border-top-color: var(--border);
}
/* Buttons become text links — the page has no filled shapes at all. */
.layout-minimal-text-only .btn {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.layout-minimal-text-only .btn::after {
  content: '\2192';
}
.layout-minimal-text-only .btn:hover {
  transform: none;
  box-shadow: none;
}

/* ─────────────── long-form-article — article ─────────────── */

.layout-long-form-article {
  counter-reset: art;
}
.layout-long-form-article .wrap {
  max-width: 44rem;
}
.layout-long-form-article .hero {
  padding-block: calc(2.5rem * var(--space)) calc(0.75rem * var(--space));
}
.layout-long-form-article .hero-kicker {
  display: block;
}
.layout-long-form-article h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
}
.layout-long-form-article .section {
  padding-block: calc(1.5rem * var(--space));
}
.layout-long-form-article .section--alt {
  background: none;
}
.layout-long-form-article .section-head {
  counter-increment: art;
}
.layout-long-form-article .section-head h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}
.layout-long-form-article .section-head h2::before {
  content: counter(art) '.';
  margin-right: 0.45rem;
  color: var(--primary);
}
.layout-long-form-article .prose {
  max-width: none;
  font-size: 1.05rem;
}
/* Drop cap on the article's opening paragraph only.
   `:first-of-type` would be wrong here — it counts <section> siblings, and the
   first one is always the hero, so it never matches a text section. The
   sibling combinator below picks the first .section--text on the page and the
   rule after it undoes the cap on every later one. */
.layout-long-form-article .section--text .prose > p:first-child::first-letter {
  float: left;
  font-family: var(--font-head);
  font-size: 3.4em;
  line-height: 0.82;
  font-weight: var(--head-weight, 700);
  color: var(--primary);
  padding: 0.06em 0.1em 0 0;
}
.layout-long-form-article .section--text ~ .section--text .prose > p:first-child::first-letter {
  float: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
  padding: 0;
}
/* Points read as an indented list inside the article, not as a card grid. */
.layout-long-form-article .cards {
  display: block;
}
.layout-long-form-article .card {
  border: 0;
  border-left: 2px solid var(--border);
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0.1rem 0 0.1rem 1.1rem;
  margin-bottom: 1.1rem;
  text-align: left;
}
.layout-long-form-article .card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2em;
}
.layout-long-form-article .stats {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}
.layout-long-form-article .faq {
  max-width: none;
}
.layout-long-form-article .section--cta {
  background: var(--surface);
}

/* ─────────────────── Fixed action bar (required) ────────────────── */

/* Deliberately outside the layout layer: this bar looks and behaves the same
   on every page, whatever the layout mode. */

.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.5rem clamp(0.5rem, 3vw, 1rem);
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}

.cta-bar-inner {
  max-width: 32rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(var(--cta-count, 3), 1fr);
  gap: 0.5rem;
}

.cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.35rem;
  border-radius: calc(var(--radius) * 0.8);
  text-decoration: none;
  color: var(--fg);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease;
}

.cta-item svg {
  width: 1.25rem;
  height: 1.25rem;
}

.cta-item:hover {
  background: var(--surface);
}

/* The primary action is the one people should notice first. */
.cta-item--daftar {
  background: var(--primary);
  color: var(--primary-ink);
}
.cta-item--daftar:hover {
  background: var(--primary);
  filter: brightness(1.08);
}

.cta-item--whatsapp {
  color: #12924b;
}
.cta-item--livechat {
  color: var(--accent);
}

@media (min-width: 48rem) {
  .cta-bar-inner {
    max-width: 34rem;
  }
  .cta-item {
    flex-direction: row;
    gap: 0.45rem;
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
