/*
Theme Name: Bpers
Theme URI: https://bpers.com/
Author: Bpers
Author URI: https://bpers.com/
Description: Custom theme for bpers.com — the company site for Bpers Shopify apps. Hand-written, no page builder, no external requests, no cookies. Palette taken from the Reamly App Store icon: deep navy #031533 with a cyan #09F2E2 accent.
Version: 2.8.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: Proprietary
Text Domain: bpers
*/

/* ---------------------------------------------------------------
   1. Tokens
   Palette sampled from listing-assets/reamly-icon-1200.png.
   #09F2E2 is used ONLY on the navy ground — it fails contrast on
   white, so light-background links and buttons use --accent.
   --------------------------------------------------------------- */

:root {
  --navy:        #031533;
  --navy-2:      #071E44;
  --navy-3:      #0E2B58;
  --cyan:        #09F2E2;
  --cyan-soft:   #7FF8EE;
  --accent:      #0B8C84;

  --ink:         #0B1220;
  --ink-2:       #2A3550;
  --ink-muted:   #5B6780;
  --ground:      #FFFFFF;
  --ground-soft: #F5F7FB;
  --ground-3:    #EDF1F7;
  --rule:        #E3E8F0;
  --rule-strong: #CBD4E1;

  --on-navy:      #FFFFFF;
  --on-navy-mute: #A9BBD8;
  --on-navy-dim:  #7C90B4;
  --navy-rule:    rgba(255, 255, 255, .12);
  --navy-card:    rgba(255, 255, 255, .045);

  --ok:   #0B8C84;
  --warn: #B4451F;

  --maxw:     72rem;
  --measure:  36em;
  --r-sm:     8px;
  --r:        12px;
  --r-lg:     18px;
  --r-pill:   999px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05), 0 6px 16px -6px rgba(11, 18, 32, .08);
  --shadow:    0 2px 4px rgba(11, 18, 32, .06), 0 18px 40px -18px rgba(11, 18, 32, .22);
  --shadow-lg: 0 30px 70px -24px rgba(2, 10, 26, .55);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:         #E9EDF5;
    --ink-2:       #C3CCDC;
    --ink-muted:   #93A0B8;
    --ground:      #080D18;
    --ground-soft: #0E1524;
    --ground-3:    #141D30;
    --rule:        #1E2739;
    --rule-strong: #2C3852;
    --accent:      #4FE3D6;
    --ok:          #4FE3D6;
    --warn:        #FF9877;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 6px 16px -6px rgba(0,0,0,.5);
    --shadow:    0 2px 4px rgba(0,0,0,.5), 0 18px 40px -18px rgba(0,0,0,.7);
    --shadow-lg: 0 30px 70px -24px rgba(0,0,0,.85);
  }
}

/* ---------------------------------------------------------------
   2. Base
   --------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-underline-offset: 2px; }

h1, h2, h3, h4 { margin: 0 0 .5rem; font-weight: 680; line-height: 1.1; letter-spacing: -.03em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: -.015em; }
p  { margin: 0 0 1rem; }

button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--cyan); color: var(--navy); }

.skip-link { position: absolute; left: -9999px; background: var(--navy); color: #fff; padding: .8rem 1.3rem; z-index: 200; border-radius: 0 0 var(--r-sm) 0; }
.skip-link:focus { left: 0; top: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 1.5rem; }
.narrow { max-width: 52rem; }

.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;
}

/* ---------------------------------------------------------------
   3. Motion — everything here is opt-out
   --------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------
   4. Shared pieces
   --------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 1rem; font-size: .76rem; font-weight: 680;
  text-transform: uppercase; letter-spacing: .16em; color: var(--accent);
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.on-navy .eyebrow { color: var(--cyan); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-muted); max-width: var(--measure); }
.on-navy .lede { color: var(--on-navy-mute); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 620; font-size: .97rem; line-height: 1;
  padding: 1rem 1.6rem; border-radius: var(--r-pill);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; }

.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: 0 8px 24px -8px rgba(9,242,226,.5); }
.btn-primary:hover { background: var(--cyan-soft); box-shadow: 0 14px 32px -10px rgba(9,242,226,.6); }

.btn-ghost { background: rgba(255,255,255,.04); color: #E6EEFB; border-color: var(--navy-rule); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.32); }

.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-3); }
@media (prefers-color-scheme: dark) {
  .btn-solid { background: var(--cyan); color: var(--navy); }
  .btn-solid:hover { background: var(--cyan-soft); }
}

.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-line:hover { border-color: var(--ink-muted); }

section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 16em; }

/* ---------------------------------------------------------------
   5. Header
   --------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(3, 21, 51, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.site-header.stuck { background: rgba(3, 21, 51, .94); border-bottom-color: var(--navy-rule); }
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; transition: min-height .3s var(--ease); }
.site-header.stuck .wrap { min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.06rem; letter-spacing: -.025em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; flex: none; transition: transform .3s var(--ease); }
.brand:hover .mark { transform: rotate(-6deg) scale(1.06); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.site-nav a { color: var(--on-navy-mute); text-decoration: none; font-size: .93rem; font-weight: 520; position: relative; padding: .3rem 0; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--cyan); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: #fff; }
/* .site-nav a (0,2,0) outranks .btn-primary (0,1,0), so without this the CTA
   renders cyan text on a cyan pill. Caught in a render on 2026-09-08. */
.site-nav a.btn { padding: .62rem 1.15rem; font-size: .89rem; }
.site-nav a.btn-primary { color: var(--navy); }
.site-nav a.btn-primary:hover { color: var(--navy); }
.site-nav .btn::after { display: none; }

@media (max-width: 780px) {
  .site-nav { gap: 1rem; }
  .site-nav .nav-hide-sm { display: none; }
}

/* ---------------------------------------------------------------
   5b. Premium surface details
   --------------------------------------------------------------- */

/* A word of the headline picked out in the brand gradient. */
.grad {
  background: linear-gradient(94deg, var(--cyan) 8%, #7FB4FF 92%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* Film grain over the navy grounds. Kills the flatness large dark areas get
   on cheap panels, and costs one 88-byte data URI. */
/* No mix-blend-mode. Blending escapes the z-order and was dimming the white
   invoice in the hero from #FFF to rgb(186,191,200) — measured on the live site
   2026-09-08. Plain low opacity behind the content does the same job safely. */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
.grain > .wrap { position: relative; z-index: 1; isolation: isolate; }

/* ---------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------- */

.hero {
  background: var(--navy); color: var(--on-navy);
  position: relative; overflow: hidden;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  margin-top: -72px; padding-top: calc(72px + clamp(2rem, 4.5vw, 3.5rem));
}
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(70px); opacity: .5;
}
.aurora i:nth-child(1) { width: 46rem; height: 46rem; left: -14rem; top: -20rem; background: radial-gradient(closest-side, rgba(9,242,226,.30), transparent 70%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 40rem; height: 40rem; right: -12rem; top: -8rem;  background: radial-gradient(closest-side, rgba(46,105,206,.45), transparent 70%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 34rem; height: 34rem; left: 38%;   bottom: -20rem; background: radial-gradient(closest-side, rgba(9,242,226,.16), transparent 70%); animation: drift3 24s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(6rem, 4rem, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-5rem, 5rem, 0) scale(1.08); } }
@keyframes drift3 { to { transform: translate3d(-7rem, -3rem, 0) scale(1.15); } }

.hero .wrap { position: relative; z-index: 1; }
/* align-items:start, not center. Centring pushed the left column 143px below
   the language pills, so the two halves visibly did not share a top edge —
   measured on the live site 2026-09-08 before it was fixed. */
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }
.hero-copy { padding-top: .35rem; }

.hero h1 { color: #fff; max-width: 13em; text-wrap: balance; }
.hero .lede { margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-note { margin: 1.9rem 0 0; font-size: .91rem; color: var(--on-navy-dim); display: flex; align-items: center; gap: .6rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.6); opacity: 0; } }

/* ---------------------------------------------------------------
   7. The interactive invoice — hero right
   --------------------------------------------------------------- */

.demo { position: relative; }
/* Two-letter codes in a single row. Full names wrapped to a second line at
   every desktop width and read as a layout bug. */
.demo-langs {
  display: flex; flex-wrap: nowrap; gap: .35rem; margin-bottom: .9rem;
  padding: 4px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); border: 1px solid var(--navy-rule);
  width: fit-content; max-width: 100%; overflow-x: auto;
  scrollbar-width: none;
}
.demo-langs::-webkit-scrollbar { display: none; }
.lang {
  border: 0; background: transparent; flex: none;
  color: var(--on-navy-mute); border-radius: var(--r-pill);
  padding: .42rem .78rem; font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  cursor: pointer; transition: all .2s var(--ease);
}
.lang:hover { color: #fff; background: rgba(255,255,255,.09); }
.lang[aria-pressed="true"] { background: var(--cyan); color: var(--navy); box-shadow: 0 2px 10px -2px rgba(9,242,226,.6); }

.paper {
  background: #fff; color: #16202F; border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 1.15rem 1.25rem 1.3rem;
  font-size: .69rem; line-height: 1.45;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg) translateZ(0);
  transition: transform .5s var(--ease);
}
.demo:hover .paper { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
@media (max-width: 999px) { .paper, .demo:hover .paper { transform: none; } }

.paper[dir="rtl"] { text-align: right; }
.paper-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .85rem; }
.paper .seller { font-weight: 700; font-size: .82rem; }
.paper .muted { color: #64748B; }
.paper .doctype { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; color: var(--accent); }
.paper .meta { display: grid; grid-template-columns: auto auto; gap: .1rem .8rem; font-size: .68rem; }
.paper .meta span:nth-child(odd) { color: #64748B; }
.paper[dir="rtl"] .meta { direction: rtl; }

.paper table { width: 100%; border-collapse: collapse; margin: .7rem 0 .3rem; font-size: .655rem; }
.paper th { text-align: left; font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; color: #64748B; border-bottom: 1px solid #E2E8F0; padding: .3rem .35rem; font-weight: 650; }
.paper td { padding: .3rem .35rem; border-bottom: 1px solid #F1F5F9; }
.paper[dir="rtl"] th, .paper[dir="rtl"] td { text-align: right; }
.paper .num { text-align: right; font-variant-numeric: tabular-nums; }
.paper[dir="rtl"] .num { text-align: left; }

.paper .totals { margin-top: .6rem; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; font-size: .7rem; }
.paper[dir="rtl"] .totals { align-items: flex-start; }
.paper .totals .row { display: flex; gap: 1.4rem; }
.paper .totals .row span:first-child { color: #64748B; }
.paper .totals .grand { font-weight: 700; font-size: .84rem; border-top: 2px solid #16202F; padding-top: .3rem; margin-top: .25rem; }
.paper .tsum { margin-top: .8rem; }
.paper .tsum .tsum-h { font-size: .6rem; text-transform: uppercase; letter-spacing: .07em; color: #64748B; margin: 0 0 .25rem; }

.demo-cap { margin: .9rem 0 0; font-size: .82rem; color: var(--on-navy-dim); max-width: 34em; }
.demo-cap b { color: var(--cyan); font-weight: 620; }

/* ---------------------------------------------------------------
   8. Trust strip
   --------------------------------------------------------------- */

.strip { background: var(--navy-2); border-block: 1px solid var(--navy-rule); padding: 1.15rem 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem 2.4rem; justify-content: center; font-size: .89rem; color: var(--on-navy-mute); }
.strip li { display: flex; align-items: center; gap: .55rem; }
.strip svg { width: 15px; flex: none; color: var(--cyan); }

/* ---------------------------------------------------------------
   9. VAT demo — one instrument panel, not two columns.
   The first cut put the controls in a left column and the results in
   a right one: the inputs were a screen-width away from the numbers
   they changed, and the right column ran out of content, leaving a
   large dead area under the verdict. Now the controls sit along the
   top of the same panel as the output they drive.
   --------------------------------------------------------------- */

.vat { background: var(--ground-soft); border-block: 1px solid var(--rule); }
.vat .section-head { max-width: 46rem; }

.vat-panel {
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--ground);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* toolbar */
.vat-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 2.5rem;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--ground-soft), var(--ground));
}
.vat-bar .control { flex: 0 0 auto; }
.vat-bar .control.grow { flex: 1 1 15rem; min-width: 12rem; }
.control label {
  display: block; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-muted); margin-bottom: .5rem; white-space: nowrap;
}
.control label .val { color: var(--accent); font-variant-numeric: tabular-nums; }

.field { display: flex; align-items: center; gap: .55rem; }
.field .unit { color: var(--ink-muted); font-size: 1rem; font-weight: 600; }
.field input[type="number"] {
  width: 7.5rem; font: inherit; font-weight: 620; font-variant-numeric: tabular-nums;
  padding: .58rem .75rem; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  background: var(--ground); color: var(--ink);
}
.field input[type="number"]:focus { border-color: var(--accent); }
.field input[type="range"] { width: 100%; accent-color: var(--accent); }
/* Every control in the toolbar is exactly the same height, so flex-end aligns
   the labels as well as the boxes. Relying on padding left the price label 4px
   above the other two. */
.vat-bar .field { height: 2.9rem; }
.vat-bar .field input[type="number"] { height: 100%; padding-block: 0; }
.vat-bar .seg { height: 2.9rem; align-items: center; }


.seg { display: inline-flex; background: var(--ground-3); border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 3px; }
.seg button {
  border: 0; background: transparent; border-radius: var(--r-pill);
  padding: .5rem 1rem; font-size: .86rem; font-weight: 620;
  color: var(--ink-muted); cursor: pointer; transition: all .2s var(--ease); white-space: nowrap;
}
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
@media (prefers-color-scheme: dark) { .seg button[aria-pressed="true"] { background: var(--cyan); color: var(--navy); } }

/* results */
.vat-results { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vat-results { grid-template-columns: 1fr 1fr; } }

.calc-card { padding: 1.6rem 1.7rem 1.7rem; position: relative; }
.calc-card + .calc-card { border-top: 1px solid var(--rule); }
@media (min-width: 760px) { .calc-card + .calc-card { border-top: 0; border-left: 1px solid var(--rule); } }
.calc-card.right { background: color-mix(in srgb, var(--ok) 4%, var(--ground)); }
.calc-card.wrong { background: color-mix(in srgb, var(--warn) 4%, var(--ground)); }

.calc-card h3 {
  display: flex; align-items: center; gap: .5rem;
  font-size: .76rem; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: .9rem; font-weight: 700;
}
.calc-card h3 svg { width: 17px; height: 17px; flex: none; }
.calc-card.right h3 { color: var(--ok); }
.calc-card.wrong h3 { color: var(--warn); }

.calc-card .how {
  font-family: var(--mono); font-size: .78rem; color: var(--ink-muted);
  margin: 0 0 1.1rem; padding: .5rem .7rem; border-radius: var(--r-sm);
  background: var(--ground-3); word-break: break-word;
}

.calc-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums; font-size: .95rem;
}
.calc-line:last-of-type { border-bottom: 0; padding-bottom: 0; }
.calc-line span:first-child { color: var(--ink-muted); }
.calc-line span:last-child { font-weight: 600; }
.calc-line.big { font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; padding-top: .8rem; }
.calc-line.big span:first-child { font-size: .95rem; font-weight: 600; color: var(--ink); }
.calc-line.big span:last-child { font-weight: 700; }
.calc-card.wrong .calc-line.big span:last-child { color: var(--warn); }

/* verdict footer */
.vat-verdict {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.3rem 1.7rem;
  border-top: 1px solid var(--rule);
  background: var(--ground-soft);
  font-size: .95rem;
}
.vat-verdict .delta {
  flex: none; font-size: 1.75rem; font-weight: 700; letter-spacing: -.04em;
  line-height: 1; color: var(--warn); font-variant-numeric: tabular-nums;
}
.vat-verdict .delta small { display: block; font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-muted); margin-top: .35rem; }
.vat-verdict p { margin: 0; color: var(--ink-muted); max-width: 44em; }
.vat-verdict.agree .delta { color: var(--ok); }

.vat-foot { margin: 1.25rem 0 0; font-size: .89rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------
   10. Stats
   --------------------------------------------------------------- */

.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stat .n { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat .n .suffix { color: var(--cyan); }
.stat .l { margin: .6rem 0 0; color: var(--on-navy-mute); font-size: .92rem; }
.stats .foot { margin: 2.75rem 0 0; color: var(--on-navy-dim); font-size: .88rem; }

/* ---------------------------------------------------------------
   11. Apps
   --------------------------------------------------------------- */

.apps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.app-card {
  position: relative; border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--ground); padding: 1.8rem 1.9rem 1.9rem; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.app-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(20rem 20rem at var(--mx, 50%) var(--my, 0%), rgba(9,242,226,.10), transparent 70%);
  transition: opacity .3s var(--ease); pointer-events: none;
}
.app-card:hover { transform: translateY(-4px); border-color: var(--rule-strong); box-shadow: var(--shadow); }
.app-card:hover::before { opacity: 1; }
.app-card .tag { display: inline-block; font-size: .7rem; font-weight: 680; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: var(--r-pill); padding: .25rem .7rem; margin-bottom: 1rem; }
.app-card h3 { font-size: 1.4rem; letter-spacing: -.03em; margin-bottom: .5rem; }
.app-card p { color: var(--ink-muted); font-size: .96rem; }
.app-card .go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 640; text-decoration: none; margin-top: .5rem; }
.app-card .go svg { width: 14px; transition: transform .25s var(--ease); }
.app-card:hover .go svg { transform: translateX(4px); }
.app-card.soon { background: var(--ground-soft); }
.app-card.soon h3, .app-card.soon .tag { color: var(--ink-muted); }
.app-card.soon .tag { border-color: var(--rule-strong); }

/* ---------------------------------------------------------------
   12. Principles accordion
   --------------------------------------------------------------- */

.acc { border-top: 1px solid var(--rule); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary {
  list-style: none; cursor: pointer; padding: 1.4rem 0;
  display: flex; align-items: center; gap: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 640; letter-spacing: -.02em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .idx { font-size: .78rem; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: .08em; flex: none; width: 2rem; }
.acc summary .chev { margin-left: auto; width: 18px; flex: none; color: var(--ink-muted); transition: transform .3s var(--ease); }
.acc details[open] summary .chev { transform: rotate(180deg); }
.acc .body { padding: 0 0 1.5rem 3rem; color: var(--ink-muted); max-width: 46em; }
@media (max-width: 620px) { .acc .body { padding-left: 0; } }

/* ---------------------------------------------------------------
   13. CTA + footer
   --------------------------------------------------------------- */

.cta { text-align: center; background: var(--ground-soft); border-top: 1px solid var(--rule); }
.cta .lede { margin-inline: auto; }
.cta .hero-actions { justify-content: center; margin-top: 2.25rem; }

.site-footer { background: var(--navy); color: var(--on-navy-dim); padding: 4rem 0 2.5rem; font-size: .92rem; }
.site-footer a { color: var(--on-navy-mute); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 2.75rem; border-bottom: 1px solid var(--navy-rule); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.3fr 2.7fr; } }
.footer-blurb { color: var(--on-navy-mute); max-width: 26em; margin: 1rem 0 0; }
.footer-cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.footer-cols h2.fcol, .footer-cols h4 { color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 1rem; font-weight: 680; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: .55rem; }
.footer-legal { padding-top: 1.75rem; font-size: .85rem; }
.footer-legal p { margin: 0 0 .4rem; max-width: 52em; }

/* ---------------------------------------------------------------
   14. Simple content pages
   --------------------------------------------------------------- */

.page-head { background: var(--navy); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); margin-top: -72px; padding-top: calc(72px + clamp(3rem, 6vw, 5rem)); }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; }
.page-head .lede { color: var(--on-navy-mute); }

.page-body { padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 7rem); }
.entry { max-width: 46rem; }
.entry h2 { font-size: 1.35rem; margin: 2.75rem 0 .75rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.entry h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.entry h3 { margin: 1.75rem 0 .5rem; }
.entry ul, .entry ol { padding-left: 1.2rem; }
.entry li { margin: .35rem 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .93rem; }
.entry th, .entry td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.entry code { font-family: var(--mono); font-size: .9em; background: var(--ground-3); padding: .1rem .35rem; border-radius: 4px; }

/* ---------------------------------------------------------------
   15. Depth — the "3D" pass, added 2026-09-08
   Flat fills and single-layer shadows were the reason the site read
   as competent rather than expensive. Every rule here adds a real
   depth cue: a light source from the top, layered shadows, and
   surfaces that are lit rather than filled.
   --------------------------------------------------------------- */

/* A light source from above: every raised surface gets a 1px highlight on its
   top edge and a slightly darker foot. This is the single cheapest depth cue
   there is, and the one most often missing. */
.card, .app-card, .pillar, .calc-card, .vat-panel, .plan, .included, .shot {
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%);
}
@media (prefers-color-scheme: dark) {
  .card, .app-card, .pillar, .calc-card, .vat-panel, .plan, .included, .shot {
    background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 42%);
  }
}

.vat-panel {
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 1px 2px rgba(11,18,32,.05),
    0 12px 28px -12px rgba(11,18,32,.18),
    0 40px 70px -34px rgba(11,18,32,.28);
}
@media (prefers-color-scheme: dark) {
  .vat-panel { box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 24px 60px -28px rgba(0,0,0,.9); }
}

/* Cards lift on a hinge rather than sliding straight up. */
.app-card, .pillar, .plan {
  transform-style: preserve-3d;
  will-change: transform;
}
.app-card:hover, .pillar:hover {
  transform: translateY(-6px) perspective(900px) rotateX(2.2deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 18px 34px -16px rgba(11,18,32,.26),
    0 44px 80px -40px rgba(11,18,32,.34);
}
@media (prefers-color-scheme: dark) {
  .app-card:hover, .pillar:hover { box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 30px 60px -28px rgba(0,0,0,.95); }
}

/* Icon tiles are lit like the app mark, not flat navy squares. */
.pillar .ico, .card .num {
  background-image: linear-gradient(160deg, #0B2B55, #02102A);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 6px 14px -6px rgba(2,16,42,.65);
}

/* Buttons get a lit top edge and a shadow that sits under them. */
.btn-primary {
  background-image: linear-gradient(180deg, #4DF8EC, #09E0D2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 8px 18px -8px rgba(9,242,226,.65),
    0 2px 4px rgba(2,16,42,.25);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 26px -10px rgba(9,242,226,.7), 0 2px 4px rgba(2,16,42,.25); }
.btn-solid {
  background-image: linear-gradient(180deg, #14356A, #061B3D);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 10px 22px -10px rgba(2,16,42,.6);
}
@media (prefers-color-scheme: dark) { .btn-solid { background-image: linear-gradient(180deg, #4DF8EC, #09E0D2); } }

/* Navy bands get a vignette and a lit top edge, so they read as a surface
   with a light on it rather than a block of colour. */
.hero, .stats, .product {
  background-image:
    radial-gradient(120% 90% at 50% -20%, rgba(96,150,255,.20), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 12%);
}
.stats::before, .product::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}

/* Stat numbers catch the light. */
.stat .n {
  background: linear-gradient(180deg, #FFFFFF 30%, #A9C6F0);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.stat .n .suffix {
  background: linear-gradient(180deg, #6FF8EE, #09C7BC);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The invoice tilts toward the pointer. site.js sets --rx / --ry; with JS off
   or reduced motion on, it keeps the static angle it already had. */
.paper {
  transform:
    perspective(1400px)
    rotateX(calc(var(--rx, 2deg)))
    rotateY(calc(var(--ry, -7deg)));
  box-shadow:
    0 2px 4px rgba(2,10,26,.2),
    0 18px 30px -16px rgba(2,10,26,.5),
    0 50px 90px -40px rgba(2,10,26,.75);
}
.demo:hover .paper { transform: perspective(1400px) rotateX(var(--rx, 1deg)) rotateY(var(--ry, -3deg)); }
@media (max-width: 999px) {
  .paper, .demo:hover .paper { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .paper, .demo:hover .paper { transform: perspective(1400px) rotateY(-5deg); }
}

/* ---------------------------------------------------------------
   16. Blog
   Added 2026-09-08. WordPress is already here for WP Staging, so the
   blog is native posts rather than anything bolted on: write in
   wp-admin, it appears at /blog/.
   --------------------------------------------------------------- */

.page-head { background: var(--navy); color: #fff; position: relative; overflow: hidden;
  margin-top: -72px; padding: calc(72px + clamp(3rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background-image:
    radial-gradient(120% 90% at 50% -20%, rgba(96,150,255,.20), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 12%);
}
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); color: #fff; max-width: 18em; }
.page-head .lede { color: var(--on-navy-mute); }
.page-head .eyebrow { color: var(--cyan); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .87rem; color: var(--ink-muted); }
.page-head .post-meta { color: var(--on-navy-dim); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.post-grid { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }

.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--ground); overflow: hidden;
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@media (prefers-color-scheme: dark) { .post-card { background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 42%); } }
.post-card:hover {
  transform: translateY(-6px) perspective(900px) rotateX(2deg);
  border-color: var(--rule-strong);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 34px -16px rgba(11,18,32,.26), 0 44px 80px -40px rgba(11,18,32,.34);
}
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); position: relative; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb.blank {
  background-image:
    radial-gradient(120% 120% at 20% 0%, rgba(9,242,226,.35), transparent 60%),
    linear-gradient(160deg, #0B2B55, #02102A);
  display: grid; place-items: center;
}
.post-card .thumb.blank img { width: 44px; height: 44px; object-fit: contain; opacity: .9; }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card h2 { font-size: 1.2rem; letter-spacing: -.025em; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { color: var(--ink-muted); font-size: .94rem; margin: 0; }
.post-card .more { margin-top: auto; padding-top: .5rem; font-weight: 640; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.post-card .more svg { width: 14px; transition: transform .25s var(--ease); }
.post-card:hover .more svg { transform: translateX(4px); }

.blog-empty { border: 1px dashed var(--rule-strong); border-radius: var(--r-lg); padding: clamp(2.5rem, 6vw, 4rem); text-align: center; background: var(--ground-soft); }
.blog-empty h2 { font-size: 1.4rem; }
.blog-empty p { color: var(--ink-muted); max-width: 34em; margin-inline: auto; }

/* pagination */
.pager { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 3rem; }
.pager .page-numbers {
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem;
  border: 1px solid var(--rule); border-radius: var(--r-sm); text-decoration: none;
  color: var(--ink-muted); font-weight: 620; font-size: .92rem; background: var(--ground);
}
.pager .page-numbers:hover { border-color: var(--rule-strong); color: var(--ink); }
.pager .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) { .pager .page-numbers.current { background: var(--cyan); border-color: var(--cyan); color: var(--navy); } }

/* single post prose */
.prose { max-width: 44rem; font-size: 1.06rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.6rem; margin-top: 2.6em; }
.prose h3 { font-size: 1.22rem; margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4em; }
.prose img, .prose figure img { border-radius: var(--r); border: 1px solid var(--rule); }
.prose figcaption { font-size: .88rem; color: var(--ink-muted); margin-top: .6rem; }
.prose blockquote {
  margin: 2em 0; padding: .3em 0 .3em 1.4rem;
  border-left: 3px solid var(--accent); color: var(--ink-muted); font-style: italic;
}
.prose code { font-family: var(--mono); font-size: .89em; background: var(--ground-3); padding: .12em .38em; border-radius: 5px; }
.prose pre { background: var(--navy); color: #DCE6F5; padding: 1.1rem 1.25rem; border-radius: var(--r); overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }

.post-nav { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
@media (min-width: 700px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav a { display: block; padding: 1.1rem 1.3rem; border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; background: var(--ground); }
.post-nav a:hover { border-color: var(--rule-strong); }
.post-nav .dir { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: .3rem; font-weight: 700; }
.post-nav .ttl { color: var(--ink); font-weight: 620; }
.post-nav .next { text-align: right; }

/* Card meta line — the "Free · GPL · …" strip under a product description. */
.app-card .card-meta {
  font-size: .82rem;
  color: var(--ink-muted);
  margin: .9rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--rule);
}

/* The FAQ accordion has no index numbers, so its summary needs the same left
   padding the principles list gets from its .idx column. */
#faq .acc .body { padding-left: 0; }

/* ---------------------------------------------------------------
   17. Plugin pages
   /nonce-failure-explainer/ and /review-count-star-rating/.
   Same design system as the rest; only these three pieces are new.
   --------------------------------------------------------------- */

/* The facts strip — version, requires, tested, licence. Straight from the
   WordPress.org API, because a plugin page that disagrees with the directory
   is worse than one that omits the numbers. */
/* Flex, not grid: an auto-fit grid with five items leaves a phantom empty cell
   on the last row at narrow column widths. Flex distributes them instead. */
.facts {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}
.facts div { flex: 1 1 7.5rem; background: var(--ground); padding: 1.1rem 1.2rem; }
.facts dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin: 0 0 .35rem; }
.facts dd { margin: 0; font-weight: 640; font-variant-numeric: tabular-nums; }
.on-navy .facts { background: var(--navy-rule); border-color: var(--navy-rule); }
.on-navy .facts div { background: rgba(255,255,255,.04); }
.on-navy .facts dt { color: var(--on-navy-dim); }
.on-navy .facts dd { color: #fff; }

/* Two lists side by side — "what it records" against "what it never records". */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 1.7rem 1.8rem; background: var(--ground);
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%); }
@media (prefers-color-scheme: dark) { .split > div { background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 42%); } }
.split h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.split h3 svg { width: 17px; height: 17px; flex: none; }
.split.yes h3, .split > .yes h3 { color: var(--ok); }
.split > .no h3 { color: var(--warn); }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { position: relative; padding-left: 1.15rem; margin: .55rem 0; font-size: .95rem; color: var(--ink-muted); }
.split li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .55; }

/* Shortcode reference — a real table, because people copy from it. */
.codes { width: 100%; border-collapse: collapse; font-size: .93rem; }
.codes th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); padding: .6rem .7rem; border-bottom: 1px solid var(--rule); font-weight: 700; }
.codes td { padding: .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.codes td:first-child { white-space: nowrap; }
.codes code { font-family: var(--mono); font-size: .88em; background: var(--ground-3); padding: .18em .45em; border-radius: 5px; }
.codes td:last-child { color: var(--ink-muted); }

/* ⚠️ Any wide element must scroll inside its own box, never widen the page.
   .tablewrap existed in the first stylesheet and was lost in the v2.2.0 VAT
   rewrite; the shortcode table on /review-count-star-rating/ then pushed the
   page to 403px inside a 390px viewport. Wrap every wide table in it. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap .codes { min-width: 30rem; }

/* ---------------------------------------------------------------
   18. Components the plugin pages need
   ⚠️ These existed only in marketing/reamly/index.html, which is a
   standalone file. The plugin templates used the same class names and
   got unstyled text: .pillar cards rendered as bare headings, .feat
   columns stacked, and the .facts strip inherited the page-head's
   white text onto a white card — invisible. Ported here 2026-09-08.
   --------------------------------------------------------------- */

.pillars { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.pillar {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--ground); padding: 1.8rem 1.85rem;
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@media (prefers-color-scheme: dark) { .pillar { background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 42%); } }
.pillar .ico {
  width: 40px; height: 40px; border-radius: 11px; color: var(--cyan);
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background-image: linear-gradient(160deg, #0B2B55, #02102A);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 14px -6px rgba(2,16,42,.65);
}
.pillar .ico svg { width: 20px; height: 20px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.pillar p { color: var(--ink-muted); font-size: .95rem; margin: 0; }

.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.25rem 2.5rem; }
.feat h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; padding-bottom: .75rem; border-bottom: 1px solid var(--rule); }
.feat h3 svg { width: 17px; height: 17px; flex: none; color: var(--accent); }
.feat ul { margin: 0; padding: 0; list-style: none; }
.feat li { position: relative; padding-left: 1.15rem; margin: .5rem 0; font-size: .94rem; color: var(--ink-muted); }
.feat li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.note {
  margin-top: 1.5rem; background: var(--ground-3);
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1rem 1.2rem; font-size: .95rem;
}

/* The facts strip lives inside .page-head, which sets color:#fff. Without an
   explicit colour the values inherited white onto a white card. */
.page-head .facts { background: var(--navy-rule); border-color: var(--navy-rule); }
.page-head .facts div { background: rgba(255,255,255,.05); }
.page-head .facts dt { color: var(--on-navy-dim); }
.page-head .facts dd { color: #fff; }
.facts dd { color: var(--ink); }

/* ---------------------------------------------------------------
   19. Plugin page heroes
   Both plugin pages were text-only above the fold while the Reamly
   page showed its product working. Each now carries a live panel:
   the Nonce page an illustration of one recorded failure, the Review
   page a badge that renders as you drag the rating.
   --------------------------------------------------------------- */

.page-head.split-head { padding-bottom: clamp(3rem, 6vw, 5rem); }
.head-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .head-grid { grid-template-columns: 1.05fr .95fr; } }
.head-copy { padding-top: .35rem; }

/* chips that switch the panel */
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .9rem; padding: 4px;
  border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid var(--navy-rule); }
.chip { border: 0; background: transparent; color: var(--on-navy-mute); border-radius: var(--r-pill);
  padding: .45rem .8rem; font-size: .78rem; font-weight: 650; cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { color: #fff; background: rgba(255,255,255,.09); }
.chip[aria-pressed="true"] { background: var(--cyan); color: var(--navy); box-shadow: 0 2px 10px -2px rgba(9,242,226,.6); }

/* the product panel — a lit dark card, the same family as the marks */
.panel {
  border-radius: var(--r-lg); overflow: hidden;
  background-image: linear-gradient(165deg, #0B2B55, #02102A);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 24px 60px -28px rgba(0,0,0,.9), 0 4px 10px rgba(2,10,26,.4);
}
.panel-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.09); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 700; color: var(--on-navy-dim); }
.panel-bar .live { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex: none;
  box-shadow: 0 0 0 3px rgba(9,242,226,.18); }
.panel-bar .badge { margin-left: auto; font-size: .66rem; letter-spacing: .08em; padding: .22rem .55rem;
  border-radius: var(--r-pill); border: 1px solid currentColor; }
.panel-bar .badge.ok { color: var(--cyan); }
.panel-bar .badge.guess { color: #FFC46B; }
.panel-body { padding: 1.35rem 1.4rem 1.5rem; }
.panel-body h3, .panel-body .panel-title { color: #fff; font-size: 1.22rem; margin: 0 0 .5rem; letter-spacing: -.025em; }
.panel-body .say { color: #B9C6DE; font-size: .94rem; margin: 0 0 1.2rem; }
.panel-next { border-radius: var(--r); background: rgba(9,242,226,.08);
  border: 1px solid rgba(9,242,226,.22); padding: .8rem .95rem; margin-bottom: 1.2rem; }
.panel-next dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); font-weight: 700; margin-bottom: .3rem; }
.panel-next dd { margin: 0; color: #E2EAF7; font-size: .9rem; }
.panel-rows { display: grid; gap: .1rem .9rem; grid-template-columns: auto 1fr; font-size: .8rem; font-family: var(--mono); }
.panel-rows dt { color: var(--on-navy-dim); }
.panel-rows dd { margin: 0; color: #CFDCF0; word-break: break-word; }
.panel-foot { padding: .75rem 1.4rem 1rem; font-size: .76rem; color: var(--on-navy-dim); border-top: 1px solid rgba(255,255,255,.07); }

/* review badge preview */
.badge-preview { background: #fff; border-radius: var(--r); padding: 1.5rem 1.6rem; text-align: center; }
.badge-preview .plat { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: #64748B; font-weight: 700; }
.badge-preview .score { font-size: 3rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: #16202F; margin: .5rem 0 .6rem; font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: .18rem; }
.stars svg { width: 26px; height: 26px; display: block; }
.badge-preview .cnt { margin: .7rem 0 0; color: #64748B; font-size: .9rem; }
.code-out { margin-top: 1rem; font-family: var(--mono); font-size: .78rem; color: #CFDCF0;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm);
  padding: .65rem .8rem; word-break: break-all; }
.slide-row { display: flex; align-items: center; gap: .8rem; margin-top: 1.1rem; }
.slide-row label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--on-navy-dim); font-weight: 700; white-space: nowrap; }
.slide-row input[type="range"] { flex: 1; accent-color: var(--cyan); }
.slide-row output { font-family: var(--mono); font-size: .82rem; color: var(--cyan); min-width: 3.2rem; text-align: right; }

/* ---------------------------------------------------------------
   20. Post sidebar + services
   A post used to be a 44rem column in a 72rem wrap, which left a
   third of the page empty. That space now carries a sticky aside:
   the product the post is about, and one narrow service offer.
   --------------------------------------------------------------- */

.post-layout { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1080px) { .post-layout { grid-template-columns: minmax(0, 44rem) 19rem; } }
.post-layout .prose { max-width: none; }

.post-aside { display: grid; gap: 1rem; }
@media (min-width: 1080px) { .post-aside { position: sticky; top: 5.5rem; } }

.aside-card {
  border: 1px solid var(--rule); border-radius: var(--r-lg);
  background: var(--ground); padding: 1.35rem 1.4rem;
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 10px 24px -14px rgba(11,18,32,.22);
}
@media (prefers-color-scheme: dark) {
  .aside-card { background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 42%);
    box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 10px 24px -14px rgba(0,0,0,.8); }
}
.aside-card .tag {
  display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--r-pill); padding: .2rem .6rem; margin-bottom: .8rem;
}
.aside-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.aside-card p { font-size: .89rem; color: var(--ink-muted); margin: 0 0 1rem; }
.aside-card .btn { width: 100%; padding: .75rem 1rem; font-size: .89rem; }
.aside-card ul { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .88rem; color: var(--ink-muted); }
.aside-card li { position: relative; padding-left: 1.05rem; margin: .35rem 0; }
.aside-card li::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.aside-card.dark {
  background: var(--navy); border-color: rgba(255,255,255,.14);
  background-image: linear-gradient(165deg, #0B2B55, #02102A);
  box-shadow: 0 1px 0 rgba(255,255,255,.14) inset, 0 16px 36px -18px rgba(0,0,0,.8);
}
.aside-card.dark h3 { color: #fff; }
.aside-card.dark p { color: var(--on-navy-mute); }
.aside-card.dark .tag { color: var(--cyan); border-color: rgba(9,242,226,.4); }
.aside-card.dark ul { color: var(--on-navy-mute); }
.aside-card.dark li::before { background: var(--cyan); }
.aside-note { font-size: .8rem; color: var(--ink-muted); text-align: center; margin: 0; }

/* services page */
.svc { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.svc-card {
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--ground);
  padding: 1.8rem 1.85rem; display: flex; flex-direction: column;
  background-image: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 42%);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@media (prefers-color-scheme: dark) { .svc-card { background-image: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 42%); } }
.svc-card:hover { transform: translateY(-5px) perspective(900px) rotateX(2deg); border-color: var(--rule-strong); box-shadow: 0 18px 34px -16px rgba(11,18,32,.26); }
.svc-card .ico { width: 40px; height: 40px; border-radius: 11px; color: var(--cyan); display: grid; place-items: center; margin-bottom: 1.1rem;
  background-image: linear-gradient(160deg, #0B2B55, #02102A); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset; }
.svc-card .ico svg { width: 20px; height: 20px; }
.svc-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.svc-card p { color: var(--ink-muted); font-size: .95rem; }
.svc-card ul { list-style: none; margin: .6rem 0 1.2rem; padding: 0; font-size: .92rem; color: var(--ink-muted); }
.svc-card li { position: relative; padding-left: 1.15rem; margin: .4rem 0; }
.svc-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.svc-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 640; text-decoration: none; font-size: .93rem; }
.svc-card .go svg { width: 14px; transition: transform .25s var(--ease); }
.svc-card:hover .go svg { transform: translateX(4px); }

.steps { counter-reset: s; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps > div { position: relative; padding-top: 2.9rem; }
.steps > div::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--r-pill); padding: .3rem .7rem;
}
.steps h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.steps p { color: var(--ink-muted); font-size: .94rem; margin: 0; }
