/* viralsales.co home page (preview at forms.viralsales.co/site/). System fonts, no framework.
 * Mario 2026-11-16: the first version "lack[ed] enough creative assets and images". So every section carries a
 * visual: the hero is a product composite (the live check in a browser frame, a result card and the embed line
 * floating on it), the proof strip shows the sites it runs on, the steps and the gallery are the real widget, the
 * deliverables are drawn as small charts (the creative library's deliverable-cards form), and the dashboard is a
 * bento of its own screens. */
:root {
  --ink: #10142a; --muted: #4f5672; --line: #e3e6f0; --bg: #ffffff; --soft: #f4f6fb; --navy: #0b1024; --navy2: #141b3b;
  --accent: #2f47e0; --accent2: #7d8ff5; --on-dark: #e9ecf8; --on-dark-muted: #aab2d4; --radius: 14px;
  --good: #2f47e0; --mid: #e8a33a; --low: #e0605a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.kicker { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700; color: var(--accent2); margin: 0 0 12px; }
.kicker.dark { color: var(--accent); }
.sub { color: var(--muted); font-size: 19px; max-width: 720px; margin: 14px 0 0; }
.sub.light { color: var(--on-dark-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 16px; white-space: nowrap; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(47,71,224,.35); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #8fa0ff; outline-offset: 2px; }
section { padding: 88px 0; }

/* header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #fff; font-size: 16px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; }

/* hero: copy left, a product composite right */
.hero { position: relative; overflow: hidden; color: #fff; padding: 76px 0 96px;
  background: radial-gradient(800px 520px at 82% 18%, rgba(125,143,245,.42), transparent 62%), radial-gradient(700px 460px at 0% 100%, rgba(47,71,224,.36), transparent 60%), var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 40%, #000, transparent); }
.hero-in { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.hl { background: linear-gradient(90deg, #9fb0ff, #7cf0d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 20px; color: var(--on-dark); margin: 20px 0 28px; max-width: 540px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: var(--on-dark-muted); font-size: 15px; }
.ticks li { position: relative; padding-left: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: #7cf0b2; }
.stage { position: relative; padding: 26px 0 30px; }
.frame { position: relative; z-index: 1; background: #fff; border-radius: 16px; box-shadow: 0 40px 90px rgba(0,0,0,.5); overflow: hidden; color: var(--ink); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f6; border-bottom: 1px solid #dfe3ee; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9cfdd; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: #7a8299; font-family: var(--mono); }
.frame-body { padding: 18px 20px 22px; font-size: 16px; }
.zoom { zoom: .82; }
.fake-line { height: 10px; border-radius: 6px; background: #edf0f6; margin: 0 0 10px; }
.w80 { width: 80%; } .w60 { width: 60%; margin-bottom: 18px; }
.float { position: absolute; z-index: 2; border-radius: 14px; box-shadow: 0 24px 50px rgba(3,6,20,.45); }
.f-code { top: -6px; right: -22px; background: #0f1530; border: 1px solid rgba(255,255,255,.12); padding: 12px 16px; transform: rotate(2deg); max-width: 300px; }
.f-code b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7cf0b2; margin-bottom: 6px; }
.f-code code { font: 12.5px/1.6 var(--mono); color: #c8d1ff; }
.f-code .t { color: #8fa0ff; } .f-code .a { color: #7cf0d2; } .f-code .s { color: #ffd38a; }
.f-step { bottom: -64px; right: -26px; width: 262px; background: #fff; color: var(--ink); padding: 14px 16px 12px; transform: rotate(2.2deg); }
.fs-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.fs-top b { color: var(--accent); } .fs-top span { color: #0f7a52; background: #ddf7ec; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.fs-segs { display: flex; gap: 4px; margin: 8px 0 10px; } .fs-segs i { flex: 1; height: 6px; border-radius: 6px; background: #e6e9f2; }
.fs-segs i.hi { background: var(--accent); } .fs-segs i.cur { background: #b9c3f8; }
.f-step p { margin: 0 0 8px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.fs-opt { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; }
.fs-opt i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c9cfdc; flex: none; }
.fs-opt.on { border-color: var(--accent); background: #eef1fd; font-weight: 700; } .fs-opt.on i { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.bars i { display: block; height: 8px; border-radius: 8px; background: #e6e9f2; overflow: hidden; }
.bars em { display: block; height: 100%; border-radius: 8px; background: var(--good); }
em.lo { background: var(--low) !important; } em.mid { background: var(--mid) !important; }
.demo-note { position: relative; z-index: 3; color: var(--on-dark-muted); font-size: 14px; margin: 30px 0 0; max-width: 60%; }

/* proof strip */
.proof { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--line); }
.proof-t { margin: 0 0 14px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.logos li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); min-width: 0; }
.logos img { width: 44px; height: 44px; border-radius: 10px; flex: none; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.logos span { font-size: 13px; color: var(--muted); line-height: 1.35; min-width: 0; }
.logos b { display: block; color: var(--ink); font-size: 15px; }

/* steps */
.band { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.step { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(16,20,42,.05), 0 18px 40px rgba(16,20,42,.06); }
.shot { height: 300px; overflow: hidden; background: linear-gradient(180deg, #eef1fb, #f8f9fd); padding: 16px; pointer-events: none; }
.zoom-s { width: 720px; zoom: .48; }
.step figcaption { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.step .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.step b { font-size: 17px; }
.step figcaption > span:last-child { color: var(--muted); font-size: 15px; }

/* deliverables */
.deliv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.dv { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; display: flex; flex-direction: column; }
.dv-top { display: flex; justify-content: space-between; align-items: center; font: 12px var(--mono); color: var(--muted); margin-bottom: 12px; }
.dv-tag { font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid #c9d2fb; border-radius: 6px; padding: 3px 8px; }
.dv-art { height: 118px; border-radius: 10px; background: linear-gradient(160deg, #f1f3fe, #e7ebfd); display: grid; place-items: center; padding: 12px; margin-bottom: 14px; color: var(--accent); }
.dv-art svg { width: 100%; max-width: 170px; }
.dv-art.bars { place-items: stretch; align-content: center; gap: 9px; }
.bars div { display: grid; grid-template-columns: 62px 1fr 48px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.bars .t { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; text-align: center; border-radius: 999px; padding: 1px 0; background: #e3e8fd; color: var(--accent); }
.bars .t.lo { background: #fde4e3; color: #991b1b; } .bars .t.mid { background: #fdf0d9; color: #92400e; }
.dv-art.plan { place-items: stretch; align-content: center; gap: 8px; }
.plan div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: 8px; padding: 6px 8px; box-shadow: 0 1px 2px rgba(16,20,42,.06); }
.plan div:first-child { box-shadow: 0 0 0 1.5px var(--accent); }
.plan b { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; }
.plan span, .mail span { display: block; height: 8px; border-radius: 6px; background: #d6dcf5; }
.plan span.s, .mail span.s { width: 72%; } .plan span.xs, .mail span.xs { width: 48%; }
.dv-art.mail { grid-template-columns: 56px 1fr; gap: 14px; place-items: center stretch; }
.mail svg { width: 56px; height: 56px; padding: 10px; border-radius: 14px; background: var(--accent); color: #fff; }
.mail div { display: grid; gap: 8px; }
.dv h3 { font-size: 18px; margin: 0 0 6px; }
.dv p { margin: 0; color: var(--muted); font-size: 15px; }
.dv .dv-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.dv p + .dv-foot { margin-top: 14px; }

/* styles gallery */
.pal-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 18px; align-items: center; }
.pal-row button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.pal-row button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--ink); }
.pal-row .mix { width: auto; height: 34px; border-radius: 999px; padding: 0 14px; font: 600 13px var(--font); background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.pal-row .mix[aria-pressed=true] { background: var(--ink); color: #fff; }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 10px 26px rgba(16,20,42,.06); }
.tile .shot { height: 150px; padding: 12px; background: #f3f5fb; }
.tile .zoom-s { width: 700px; zoom: .36; }
.tile p { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.tile p b { display: block; font-size: 15px; }
.tile p span { color: var(--muted); }
.more-note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }

/* opt-ins: the eight art kinds and the four drawings, all drawn by the widget */
.optins { background: linear-gradient(180deg, #fff, var(--soft)); }
.kinds { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 32px 0 26px; }
.kind { border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, #f1f3fe, #e6eafd); padding: 8px 6px 6px; text-align: center; }
.kind svg { display: block; width: 100%; height: auto; }
.kind span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.opt-cell { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 10px 26px rgba(16,20,42,.06); min-width: 0; }
.opt-cell.wide { grid-column: span 2; }
.opt-cell figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.opt-cell figcaption b { color: var(--ink); margin-right: 6px; }

/* embed */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tabs { display: flex; gap: 4px; margin: 28px 0 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
.code { background: var(--navy); color: #e3e8ff; padding: 18px; border-radius: 0 0 12px 12px; font: 14px/1.6 var(--mono); white-space: pre-wrap; word-break: break-all; margin: 0; }
.code-note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.cards { display: grid; gap: 14px; }
.card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef1fd; color: var(--accent); }
.card .ic svg { width: 22px; height: 22px; }
.card b { display: block; font-size: 17px; }
.card span { color: var(--muted); font-size: 15px; display: block; margin-top: 4px; }

/* dashboard bento */
.dash { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.dash::before { content: ""; position: absolute; inset: auto -10% -40% 30%; height: 70%; background: radial-gradient(closest-side, rgba(47,71,224,.45), transparent); pointer-events: none; }
.dash .wrap { position: relative; }
.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.bento { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 18px; margin-top: 36px; }
.bento figure { margin: 0; background: #141b3b; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; }
.bento .b-main { grid-row: span 2; }
.bento img { display: block; width: 100%; height: auto; }
.bento .b-main img { height: calc(100% - 52px); object-fit: cover; object-position: left top; }
.bento figcaption { padding: 14px 18px; color: var(--on-dark-muted); font-size: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.bento figcaption b { color: #fff; margin-right: 6px; }

/* access */
.access { background: linear-gradient(180deg, var(--soft), #fff); }
.access-form { margin-top: 32px; min-height: 420px; }
.foot { background: var(--navy); color: var(--on-dark-muted); padding: 34px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .logo { color: #fff; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--on-dark-muted); text-decoration: none; font-size: 15px; }

@media (max-width: 1080px) {
  .kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .deliv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-in, .two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .shot { height: 340px; }
  .zoom-s { zoom: .6; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: 1fr; }
  .bento .b-main { grid-row: auto; }
  .bento .b-main img { height: auto; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .f-code { right: 0; }
  .f-step { right: 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .gal, .deliv, .logos, .opt-grid { grid-template-columns: 1fr; }
  .opt-cell.wide { grid-column: auto; }
  .frame-body { padding: 12px; }
  .zoom { zoom: .9; }
  .zoom-s { zoom: .46; }
  .tile .zoom-s { zoom: .46; }
  .tile .shot { height: auto; }
  .f-code { display: none; }
  .f-step { display: none; }
  .demo-note { max-width: none; text-align: center; }
  .lede { font-size: 16.5px; margin: 14px 0 20px; }
  h1 { font-size: 34px; }
  .ticks { display: none; }
  .hero { padding: 32px 0 48px; }
  .hero-in { gap: 28px; }
  .stage { padding-top: 0; }
  .cta .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .sub { font-size: 17px; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* guides: a dark hero with the offer art, a contents column beside a 70-character text column, the live check in
   the text, then three related guides */
.g-hero { background: radial-gradient(700px 420px at 85% 10%, rgba(125,143,245,.35), transparent 60%), var(--navy); color: #fff; padding: 54px 0 60px; }
.g-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 44px; align-items: center; }
.g-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.g-crumbs { font-size: 14px; color: var(--on-dark-muted); margin: 0 0 14px; }
.g-crumbs a { color: var(--on-dark-muted); }
.g-lede { font-size: 19px; color: var(--on-dark); margin: 16px 0 0; max-width: 640px; }
.g-meta { font-size: 14px; color: var(--on-dark-muted); margin: 14px 0 0; }
.g-art { background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 18px; min-height: 230px; --vs-accent: #6d7dff; --vs-ink: #10142a; }
.g-art svg, .g-thumb svg { display: block; width: 100%; height: auto; }
.g-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; padding-top: 44px; padding-bottom: 30px; justify-content: center; }
.g-toc { position: sticky; top: 90px; align-self: start; font-size: 14px; }
.g-toc p { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.g-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.g-toc a { color: var(--muted); text-decoration: none; }
.g-toc a:hover { color: var(--accent); }
.g-body { font-size: 18px; line-height: 1.7; min-width: 0; }
.g-body h2 { font-size: 28px; margin: 40px 0 12px; scroll-margin-top: 90px; }
.g-body h3 { font-size: 21px; margin: 28px 0 8px; }
.g-body p, .g-body li { color: #262b45; }
.g-body ul, .g-body ol { padding-left: 22px; }
.g-body li { margin: 6px 0; }
.g-body a { color: var(--accent); text-underline-offset: 3px; }
.g-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 15.5px; display: block; overflow-x: auto; }
.g-body th, .g-body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.g-body th { background: var(--soft); font-weight: 700; }
.g-body blockquote { margin: 22px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; }
.g-body code { font: 15px var(--mono); background: var(--soft); padding: 1px 6px; border-radius: 5px; }
.g-check { margin: 34px 0; }
.g-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 44px 0 10px; padding: 22px 24px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #1a2a8f); color: #fff; }
.g-cta b { display: block; font-size: 20px; } .g-cta span { color: #dfe4ff; font-size: 15px; }
.g-cta .btn.primary { background: #fff; color: var(--accent); box-shadow: none; }
.g-related { background: var(--soft); padding: 56px 0; }
.g-related h2, .g-theme h2 { font-size: 26px; margin: 0 0 18px; }
.g-theme { padding: 44px 0 6px; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.g-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 8px 22px rgba(16,20,42,.05); transition: transform .15s ease, box-shadow .15s ease; }
.g-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(16,20,42,.1); }
.g-thumb { background: linear-gradient(160deg, #eef1fd, #dfe4fb); padding: 12px 18px 6px; min-height: 150px; --vs-accent: #2f47e0; --vs-ink: #10142a; }
.g-card-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.g-card-body b { font-size: 16.5px; line-height: 1.3; } .g-card-body span { color: var(--muted); font-size: 14.5px; }
.g-hero-index { padding-bottom: 50px; }
@media (max-width: 980px) {
  .g-hero-in { grid-template-columns: 1fr; } .g-art { max-width: 420px; }
  .g-layout { grid-template-columns: minmax(0, 1fr); } .g-toc { position: static; }
  .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .g-grid { grid-template-columns: 1fr; } .g-body { font-size: 17px; } .g-art { min-height: 0; } }
/* blog posts moved from WordPress (build_blog.py): the featured photo in the hero, one text column */
.b-photo img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.b-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; padding-top: 44px; padding-bottom: 30px; }
.g-body img { max-width: 100%; height: auto; border-radius: 10px; }
.g-body figure { margin: 24px 0; } .g-body figcaption { font-size: 14px; color: var(--muted); }
.b-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--soft); }
.b-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
