/* TagPilot marketing site.
   The design system is taken from the live tagpilot.io pages so that visitors
   arriving from the WooCommerce plugin video recognise where they are:
   Inter, white ground with #f7f7f7 alternates, #001122 headings, #888 body,
   #222 primary buttons at 8px, 20px cards with a soft layered shadow. */
:root {
  --white:   #ffffff;
  --alt:     #f7f7f7;
  --ink:     #001122;
  --ink-2:   #333333;
  --muted:       #6f6f6f;  /* body-size grey, 5.02:1 on white */
  --muted-lg:    #888888;  /* the live site's grey, large text only */
  --btn:     #222222;
  --btn-2:   #ebebeb;
  --accent:  #8e33ea;
  --link:    #0b6fd4;
  --rule:    rgba(0,0,0,.08);
  --tint:    rgba(0,0,0,.05);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --r:     8px;
  --r-lg:  20px;
  --shadow:
    rgba(0,0,0,.05) 0 .8px 2.4px -.625px,
    rgba(0,0,0,.05) 0 2.3px 6.9px -1.25px,
    rgba(0,0,0,.05) 0 6.1px 18.3px -1.875px,
    rgba(0,0,0,.04) 0 20px 60px -2.5px;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font); margin: 0; color: var(--ink); }
h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 3.75rem);
  font-weight: 700; letter-spacing: -.04em; line-height: 1.15; color: var(--ink-2);
}
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.125rem); font-weight: 700; letter-spacing: -.042em; line-height: 1.12; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
h4 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
p  { margin: 0 0 1rem; }
a  { color: inherit; }

.wrap { width: min(100% - calc(var(--gutter) * 2), var(--max)); margin-inline: auto; }

.lede { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.5; color: var(--muted-lg); font-weight: 500; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }

/* ---------- header ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--rule); }
.masthead__inner { display: flex; align-items: center; gap: 2rem; padding: .9rem 0; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 40; background: var(--btn); color: #fff; padding: .7rem 1rem; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { left: .5rem; top: .5rem; }

.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.375rem; letter-spacing: -.05em; text-decoration: none; color: var(--ink); }
.brand img { width: 1.5rem; height: 1.5rem; flex: none; border-radius: 5px; }

.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a:focus-visible { color: #000; }
.nav a[aria-current='page'] { color: #000; text-decoration: underline; text-underline-offset: 5px; }
/* Nav dropdown. Built on <details> so keyboard and touch work without script;
   the only JS is closing it on outside click and Escape. */
.dropdown { position: relative; }
.dropdown > summary {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .9375rem; font-weight: 500; color: var(--ink-2);
  cursor: pointer; list-style: none; white-space: nowrap;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary:hover { color: #000; }
.dropdown > summary[aria-current='page'] { color: #000; text-decoration: underline; text-underline-offset: 5px; }
.dropdown__chevron { width: .85rem; height: .85rem; transition: transform .15s ease; }
.dropdown[open] .dropdown__chevron { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + .6rem); left: 50%; transform: translateX(-50%);
  z-index: 30; margin: 0; padding: .4rem; list-style: none;
  min-width: 11rem; background: var(--white);
  border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--rule);
}
.dropdown__menu li { margin: 0; }
.dropdown__menu a {
  display: block; padding: .6rem .75rem; border-radius: var(--r);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
}
.dropdown__menu a { display: flex; align-items: center; gap: .45rem; }
.ext { width: .75rem; height: .75rem; flex: none; opacity: .5; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dropdown__menu a:hover, .dropdown__menu a:focus-visible { background: var(--btn-2); color: var(--ink); }

.nav__login { background: var(--btn); color: #fff !important; padding: .55rem 1rem; border-radius: var(--r); }
.mobile-nav { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: .9375rem;
  padding: .85rem 1.35rem; border-radius: var(--r); text-decoration: none;
  border: none; cursor: pointer; transition: background .15s ease, opacity .15s ease;
}
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost { background: var(--btn-2); color: var(--ink); }
.btn--ghost:hover { background: #e0e0e0; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #7d1fd8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero h1 { max-width: 14ch; }
.hero .lede { max-width: 30ch; margin-top: 1.5rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero--center { text-align: center; }
.hero--center h1 { max-width: 20ch; margin-inline: auto; }
.hero--center .lede { max-width: 52ch; margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }
.hero__split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__split .lede { max-width: 32ch; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--alt); }
.section--center { text-align: center; }
.section--center h2 { margin-inline: auto; }
.section--center .lede { margin-inline: auto; max-width: 46ch; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

/* Feature row: image one side, checklist the other, alternating down the page. */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.feature--flip .feature__media { order: 2; }
.feature__media img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg); border: 1px solid var(--rule);
  background: var(--white);
}
.feature h2 { margin-bottom: 1.5rem; }

/* Check list - the live pages' signature bullet. */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.checks li {
  position: relative; padding-left: 2.15rem;
  font-size: 1.0625rem; line-height: 1.5; color: var(--muted); font-weight: 500;
}
.checks li::before {
  content: ''; position: absolute; left: 0; top: .2rem;
  width: 1.25rem; height: 1.25rem;
  background: var(--ink);
  -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat;
}
.checks li b { color: var(--ink); font-weight: 600; }
.checks--bold li { color: var(--ink); font-weight: 700; font-size: 1.0625rem; }
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12.5 2.5 2.5 5-5.5'/%3E%3C/svg%3E"); }

.card { background: var(--white); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.card h2,
.card h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card p:last-child { margin-bottom: 0; }

.spec { list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: 1rem; }
.spec li { padding: .9rem 0; border-top: 1px solid var(--rule); display: flex; gap: 1.25rem; }
.spec b { font-weight: 600; min-width: 9rem; color: var(--ink); }
.spec span { color: var(--muted); }

.mono { font-family: var(--mono); font-size: .9em; }
.chip { display: inline-block; font-size: .875rem; font-weight: 500; padding: .35rem .75rem; background: var(--btn-2); border-radius: 999px; color: var(--ink-2); margin: 0 .4rem .4rem 0; }

/* ---------- quotes ---------- */
.quote { margin: 0; }
.quote p { font-size: 1.5rem; line-height: 1.5; font-weight: 500; color: var(--muted-lg); margin-bottom: 1.5rem; }
.quote cite { font-style: normal; font-weight: 600; font-size: 1.25rem; color: var(--ink); letter-spacing: -.025em; display: block; }
.quote small { display: block; color: var(--muted); font-size: .9375rem; font-weight: 500; margin-top: .25rem; }
.quotes { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); margin-top: 3rem; text-align: left; }
.quotes .quote p { font-size: 1.0625rem; line-height: 1.55; color: var(--muted); }
.quotes .quote cite { font-size: 1.125rem; }
.headline-stat { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; color: var(--ink); margin: 0 0 .75rem; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 3rem; text-align: left; max-width: 60rem; margin-inline: auto; }
.plan { background: var(--white); border-radius: var(--r-lg); padding: 2rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan__name { font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan__price { font-size: 3rem; font-weight: 700; letter-spacing: -.045em; color: var(--ink); margin: .75rem 0 .25rem; line-height: 1; min-height: 4.1rem; }
.plan__price small { display: block; font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: -.01em; margin-top: .35rem; }
.plan ul { list-style: none; margin: 1.75rem 0 2rem; padding: 0; font-size: 1rem; display: grid; gap: .9rem; }
.plan li { display: grid; grid-template-columns: 1.35rem 1fr; gap: .75rem; align-items: start; color: var(--muted); font-weight: 500; }
.plan li::before {
  content: ''; width: 1.1rem; height: 1.1rem; margin-top: .15rem;
  background: var(--ink);
  -webkit-mask: var(--check-solid) center/contain no-repeat; mask: var(--check-solid) center/contain no-repeat;
}
:root { --check-solid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='black'/%3E%3Cpath d='m7.5 12.4 3 3 6-6.6' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan--featured { box-shadow: var(--shadow), 0 0 0 2px var(--ink); }
.plan__note { color: var(--muted); font-size: .9375rem; line-height: 1.6; margin: 1.25rem 0 0; max-width: 62ch; }
.plan .plan__note { color: var(--link); font-weight: 600; margin-top: 1rem; max-width: none; }
.plan__note a { color: var(--link); font-weight: 600; }

/* ---------- faq ---------- */
.faq { max-width: 46rem; margin-inline: auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.35rem 0; font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; color: var(--muted); line-height: 1; }
.faq details[open] summary::after { content: '-'; }
.faq p { color: var(--muted); padding-bottom: 1.35rem; font-size: 1.0625rem; }


/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: 0 1rem; padding: 1.5rem; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); }
.section--alt .steps li { background: var(--white); }
.steps li::before { content: counter(step); grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--btn); color: #fff; font-size: .9375rem; font-weight: 700; }
.steps b { font-weight: 700; align-self: center; color: var(--ink); font-size: 1.0625rem; }
.steps span { color: var(--muted); font-size: 1rem; font-weight: 500; }

/* ---------- payload (code sample) ---------- */
.payload { margin-top: 2.5rem; background: var(--ink); color: #fff; border-radius: var(--r-lg); font-family: var(--mono); font-size: clamp(.75rem, .7rem + .2vw, .8125rem); line-height: 1.95; overflow-x: auto; padding: 1.5rem; }
.payload__row { display: flex; white-space: pre; }
.payload__key { color: rgba(255,255,255,.55); min-width: 9.5rem; flex: none; }
.payload__was { color: rgba(255,255,255,.5); text-decoration: line-through; margin-right: .9rem; }
.payload__now { color: #7bc6ff; margin-right: .9rem; }
.payload__note { color: #b98cff; margin-left: .9rem; }
.payload__caption { font-size: .9375rem; color: var(--muted); margin: 1rem 0 0; max-width: 60ch; font-weight: 500; }

/* ---------- product trace on the homepage ---------- */
.trace { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.trace__line { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.station { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 1.75rem; display: block; text-decoration: none; transition: transform .18s ease; }
.station:hover, .station:focus-visible { transform: translateY(-3px); }
.station__no { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.station__name { display: block; font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; color: var(--ink); margin: .6rem 0 .5rem; }
.station__what { font-size: 1rem; color: var(--muted); margin: 0; font-weight: 500; }
.station__dot { display: none; }

/* ---------- footer ---------- */
.footer { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; border-top: 1px solid var(--rule); font-size: .9375rem; }
.footer__cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer h4 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .6rem; }
.footer a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer a:hover { color: var(--ink); }
.footer__legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 500; }

@media (max-width: 52rem) {
  .feature, .hero__split { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .trace__line { grid-template-columns: 1fr; }
}

@media (max-width: 46rem) {
  .masthead__inner { gap: 1rem; padding: .8rem 0; position: relative; }
  .nav { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav > summary {
    display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
    list-style: none; font-size: .9375rem; font-weight: 600; color: var(--ink);
    padding: .55rem .8rem; border-radius: var(--r); background: var(--btn-2);
  }
  .mobile-nav > summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] .dropdown__chevron { transform: rotate(180deg); }
  .mobile-nav__menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    padding: .75rem var(--gutter) 1rem; background: var(--white);
    border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
  }
  .mobile-nav__menu a {
    padding: .65rem .4rem; color: var(--ink-2); text-decoration: none;
    font-size: .9375rem; font-weight: 500;
  }
  .mobile-nav__menu a[aria-current='page'] { text-decoration: underline; text-underline-offset: 4px; }
  .spec li { flex-direction: column; gap: .2rem; }
  .payload__key { min-width: 7.5rem; }
}

@media (max-width: 24rem) { .payload { font-size: .7rem; } }

/* ---------- long-form legal prose ---------- */
.prose { max-width: 48rem; margin-inline: auto; }
.prose h1 { margin-bottom: 2.5rem; }
.prose h2 {
  font-size: 1.5rem; letter-spacing: -.03em;
  margin: 3rem 0 1rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2rem; }
.prose p { font-size: 1rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.1rem; }
.prose ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
.prose li { font-size: 1rem; line-height: 1.7; color: var(--muted); margin-bottom: .5rem; }
.prose a { color: var(--link); }

/* ---------- forms ---------- */
.form { max-width: 32rem; margin: 3rem auto 0; text-align: left; display: grid; gap: 1.25rem; }
.form--narrow { max-width: 22rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--alt); width: 100%;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--btn); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.form__note { margin-top: 2rem; font-size: .9375rem; color: var(--muted); }
.form__note a { color: var(--link); }

/* ---------- team ---------- */
.team { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); max-width: 48rem; margin-inline: auto; }
.team__member img { width: 8.5rem; height: 8.5rem; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem; display: block; }
.team__member h3 { margin-bottom: .15rem; }
.team__member p { color: var(--muted); font-size: .9375rem; margin: 0; }


/* ---------- pricing add-on band ---------- */
.addon {
  display: grid; align-items: center; gap: 1.25rem 2rem;
  grid-template-columns: auto 1fr auto;
  margin-top: 1.5rem; padding: 1.5rem 1.75rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow); text-align: left;
}
.addon__label { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0; }
.addon__price { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; color: var(--ink); margin: .3rem 0 0; line-height: 1; white-space: nowrap; }
.addon__price small { display: block; font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: -.01em; margin-top: .35rem; }
.addon__body { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
.addon .btn { white-space: nowrap; }
@media (max-width: 52rem) {
  .addon { grid-template-columns: 1fr; }
  .addon .btn { justify-self: start; }
}


.feature__link { margin: 1.5rem 0 0; }
.feature__link a { color: var(--link); font-weight: 600; font-size: 1rem; text-decoration: none; }
.feature__link a:hover { text-decoration: underline; }
.feature .lede { margin-bottom: 1.5rem; }

/* A compact statement band for sections that do not warrant a full feature row. */
.band {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.band h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: .75rem; }
.band p { color: var(--muted); margin: 0; max-width: 62ch; }
.band .btn { white-space: nowrap; }
@media (max-width: 52rem) {
  .band { grid-template-columns: 1fr; }
  .band .btn { justify-self: start; }
}

/* A code block standing in for a screenshot inside a feature row. */
.payload--framed { margin-top: 0; }

/* ---------- customer stories ---------- */
.story {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 1fr;
}
.story + .story { margin-top: clamp(2rem, 4vw, 3rem); }
.story--illustrated { grid-template-columns: 22rem 1fr; }
.story--illustrated.story--flip { grid-template-columns: 1fr 22rem; }
.story--flip .story__media { grid-column: 2; grid-row: 1; }
.story--flip .story__body { grid-column: 1; grid-row: 1; }
.story__media { background: var(--alt); }
.story__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.story__body { padding: clamp(1.75rem, 4vw, 2.75rem); }
.story__body h2 { font-size: clamp(1.25rem, 1.05rem + .9vw, 1.625rem); margin-bottom: 1.25rem; }
.story__body p { color: var(--muted); line-height: 1.7; font-size: 1rem; }
.story__body b { color: var(--ink); font-weight: 600; }
.story__quote { font-style: italic; }
.story__by { display: flex; align-items: center; gap: .875rem; margin: 1.75rem 0 0; font-weight: 600; color: var(--ink); }
.story__avatar { width: 3.125rem; height: 3.125rem; border-radius: 50%; object-fit: cover; flex: none; }
.story__by a { color: var(--link); text-decoration: none; }
.story__by a:hover { text-decoration: underline; }
@media (max-width: 52rem) {
  .story--illustrated,
  .story--illustrated.story--flip { grid-template-columns: 1fr; }
  .story--flip .story__media { grid-column: 1; grid-row: 1; }
  .story--flip .story__body { grid-column: 1; grid-row: 2; }
  .story__media img { max-height: 16rem; }
}

/* ---------- preset cards ---------- */
.preset {
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem; align-items: start;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow);
}
.preset__icon { width: 3.5rem; height: 3.5rem; border-radius: 12px; object-fit: contain; }
.preset h3 { margin-bottom: .5rem; }
.preset p { color: var(--muted); font-size: .9375rem; margin-bottom: 0; }
.preset .feature__link { margin-top: .9rem; }
.preset .feature__link a { font-size: .9375rem; }

/* ---------- figure grid ---------- */
.figures { display: grid; gap: clamp(1.25rem, 3vw, 2rem); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.figure { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.75rem; box-shadow: var(--shadow); }
.figure__value { display: block; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); font-weight: 700; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.figure__label { display: block; margin-top: .75rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
