/* ─────────────────────────────────────────────────────────────────────
   PennaSystems — marketing stylesheet
   Cream paper. Ink lines. Editorial serif + clean sans.
   Ported from design canvas (no .dc-* or .tweaks-* classes).
   ───────────────────────────────────────────────────────────────────── */

:root {
  --paper:    #F5EFE3;
  --paper-hi: #FBF6EA;
  --paper-lo: #ECE4D2;
  --ink:      #1B1A17;
  --ink-2:    #3A372F;
  --muted:    #6E665A;
  --rule:     #D9CFB8;
  --gold:     #B58A3F;
  --gold-text: #83642A; /* text/link-safe gold — ≥4.5:1 on --paper/#fff (A11Y-02a) */

  --serif: 'Newsreader', 'Source Serif Pro', Georgia, serif;
  --sans:  'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  font-feature-settings: 'ss01','cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
main { flex: 1; }
p, h1, h2, h3, h4, h5, h6, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }
em { font-style: italic; }

/* ── Nav (shared) ───────────────────────────────────────────────── */
.ps-nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 56px; border-bottom: 1px solid var(--rule);
}
.ps-logo { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.ps-logo svg { transform: rotate(-12deg); }
.ps-wordmark { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.ps-wordmark b { font-weight: 700; }
.ps-nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); justify-self: center; }
.ps-nav-links a:hover { color: var(--ink); }
.ps-nav-links a.on { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.ps-nav-cta { display: flex; align-items: center; gap: 18px; justify-self: end; }
.ps-link { font-size: 14px; color: var(--ink-2); }
.ps-link:hover { color: var(--ink); }
.ps-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 10px 18px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper-hi);
  border-radius: 999px; transition: transform .1s ease;
}
.ps-btn:hover { transform: translateY(-1px); }
.ps-btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ps-link-arrow { font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; display: inline-flex; align-items: center; gap: 6px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.ps-footer {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
  padding: 56px; border-top: 1px solid var(--rule);
  background: var(--paper-lo); margin-top: auto;
}
.ps-foot-l { }
.ps-foot-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; }
.ps-foot-mark svg { transform: rotate(-12deg); }
.ps-foot-note { color: var(--muted); margin-top: 12px; font-size: 14px; max-width: 30ch; }
/* De-AI pass (2026-08-17): three exactly equal footer columns holding 8, 4 and
   2 links. The even split was a layout reflex, not a fit to the content —
   these are now sized to what they actually carry. */
.ps-foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 0.7fr; gap: 32px; }
.ps-foot-cols h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.ps-foot-cols a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.ps-foot-cols a:hover { color: var(--ink); }

/* ── Shared eyebrow / display ─────────────────────────────────────
   De-AI structure pass (2026-08-17), mirroring #1008 on pennapay.com.
   This one rule set the same uppercase, letter-spaced, monospaced eyebrow
   above the headline of every page in the cream family — 29 pages wearing
   the identical label tic. It is plain small text now; the words are
   unchanged, and the pages that used the label purely to restate their own
   name (pennasystems-index) drop the element instead. */
.eyebrow, .heroA-eyebrow, .pp-eyebrow, .sub-eyebrow, .memo-eyebrow {
  font-size: 13px; color: var(--muted);
}

/* ─────────────────────────────────────────────────────────────────
   FAN — the centerpiece. Pivot at bottom-center.
   ───────────────────────────────────────────────────────────────── */
/* Column layout: the stage on top, the legend strip (rendered by fan.js)
   below it. align-items keeps both centred as before. */
.fan { width: 100%; display: flex; flex-direction: column; align-items: center; }
.fan-stage {
  position: relative;
  width: var(--fan-size); height: calc(var(--fan-size) * 1.05);
  /* Press-and-drag scrubbing: claim touch gestures on the fan itself so a
     finger dragging across the feathers selects them instead of scrolling
     the page. Scoped to the stage only — the rest of the page scrolls. */
  touch-action: none;
}
.fan-feather {
  position: absolute; left: 50%; bottom: 0;
  width: var(--fan-size); height: var(--fan-size);
  /* nib of the feather glyph sits at (64,174) inside the 200x200 viewBox,
     i.e. 32% from the left and 87% from the top — rotation pivots there.
     --tx/--ty/--rot are set per-feather by renderDesktopFan: each feather
     gets its own pivot so the fan reads as a hand of cards, not a flower. */
  transform-origin: 32% 87%;
  transform: translate(var(--tx, -32%), var(--ty, 0)) rotate(var(--rot, 0deg));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s, filter .25s;
  cursor: pointer;
}
.fan-feather:focus-visible { outline: none; }
.fan-feather:focus-visible svg { filter: drop-shadow(0 0 0 2px var(--ink)); }
.fan-feather svg { position: absolute; inset: 0; }
/* Hover/active lift travels along the feather's own spine (the trailing
   translateY is applied in the rotated frame) so a feather pushes outward
   toward its tip instead of jumping straight up in screen space.
   Deliberately NOT driven by native :hover — the feather buttons are large
   overlapping rotated squares, so native per-element hover hit-testing
   picks up whichever button happens to be on top at that pixel, not the
   one the pointer is actually over. renderDesktopFan() in
   pennasystems-fan.js does its own angle-based hit test and toggles
   .is-active on the correct feather instead. */
.fan-feather.is-active {
  transform: translate(var(--tx, -32%), var(--ty, 0)) rotate(var(--rot, 0deg)) translateY(-8%);
  transition: transform 200ms ease;
}
/* One-time roll-call lift (fan.js adds/removes .is-lifted per feather in
   sequence on first viewport entry). Same outward-along-spine travel as
   hover, with a slightly softer ease so the sweep reads as a wave. */
.fan-feather.is-lifted {
  transform: translate(var(--tx, -32%), var(--ty, 0)) rotate(var(--rot, 0deg)) translateY(-8%);
  transition: transform 300ms cubic-bezier(.2,.7,.2,1);
}
/* Resting default-active feather: gently raised (about half the hover lift)
   with its name pill, while nothing else is highlighted. */
.fan-feather.is-resting {
  transform: translate(var(--tx, -32%), var(--ty, 0)) rotate(var(--rot, 0deg)) translateY(-4.5%);
}
.fan-feather.is-dim { opacity: 0.32; }
.fan-feather.is-front svg { filter: drop-shadow(0 4px 0 rgba(0,0,0,.04)); }

.fan-flag {
  /* left/top are set per-feather to the tip coordinate (stage space);
     the translate lifts the label clear of the tip and centres it on it.
     Hidden until its feather is highlighted (JS toggles .is-visible) so it
     never floats loose in the fan's whitespace — see fan.js. */
  position: absolute; z-index: 200;
  transform: translate(-50%, -150%);
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 160ms ease;
}
.fan-flag.is-visible { opacity: 1; }

/* Floating tool name that tracks the fingertip during a touch scrub. Painted
   at the touch point (stage space) by fan.js and lifted just above the
   finger so it isn't hidden under it. */
.fan-touch-label {
  position: absolute; z-index: 210; left: 0; top: 0;
  transform: translate(-50%, -220%);
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em; white-space: nowrap;
  padding: 4px 12px; border-radius: 999px;
  background: var(--paper-hi); border: 1px solid var(--rule);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  pointer-events: none; opacity: 0; transition: opacity 120ms ease;
}
.fan-touch-label.is-visible { opacity: 1; }

/* Name pill anchored to a feather's tip (stage space, like .fan-flag).
   Shown per-feather during the one-time roll-call sweep and on the resting
   default-active feather — never on ordinary hover, which keeps the tooltip
   below the fan as its label surface. */
.fan-name-pill {
  position: absolute; z-index: 205;
  color: var(--pill-color, var(--ink));
  transform: translate(-50%, -160%);
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em; white-space: nowrap;
  padding: 3px 11px; border-radius: 999px;
  background: var(--paper-hi); border: 1px solid var(--rule);
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  pointer-events: none; opacity: 0; transition: opacity 180ms ease;
}
.fan-name-pill.is-visible { opacity: 1; }
/* Feathers that also carry a "soon" flag: lift the pill clear so the two
   stack (name above, SOON below) instead of overlapping at the tip. */
.fan-name-pill.has-flag { transform: translate(-50%, -215%); }

/* Legend strip — persistent glyph + name chips under the fan, rendered by
   fan.js on the desktop layout only (the mobile list already shows names).
   margin-top clears the fan's below-stage feather overhang — the same
   clearance the .fan-below margin used to provide; tuned for size:220. */
.fan-legend {
  margin-top: 152px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 10px; padding: 0 24px;
}
.fan-legend-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper-hi);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  transition: border-color 120ms ease, color 120ms ease, transform 120ms ease;
}
.fan-legend-chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.fan-legend-chip:focus-visible {
  border-color: var(--ink); color: var(--ink);
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.fan-legend-glyph { height: 15px; width: auto; display: block; transform: rotate(-12deg); flex-shrink: 0; }
.fan-legend-soon {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em;
  color: var(--muted); border: 1px solid var(--rule); border-radius: 999px;
  padding: 1px 6px; line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .fan-feather, .fan-name-pill, .fan-legend-chip { transition: none; }
}

/* ─────────────────────────────────────────────────────────────────
   HERO A — fan-forward, sidebar tooltip
   ───────────────────────────────────────────────────────────────── */
.heroA-main {
  display: grid; grid-template-columns: 1fr 1fr 320px;
  gap: 48px; padding: 64px 56px 32px; align-items: end;
}
.heroA-copy { padding-bottom: 40px; }
.heroA-copy .eyebrow { display: block; margin-bottom: 18px; }
.display, .heroB-display, .pp-display, .sub-display {
  font-family: var(--serif); font-weight: 400; line-height: 1.02;
  letter-spacing: -0.022em; color: var(--ink);
}
.display { font-size: 64px; }
/* De-AI pass (2026-08-17): the last two or three words of every cream-family
   headline used to be wrapped in <em> and rendered as an italic gold serif
   flourish ("creative suite.", "hello.", "one desk.", "three plans."). Seven
   pages, one identical gesture. The <em> markup and the words both stay; the
   flourish styling does not — <em> now just reads as the rest of the
   headline. Same call #1008 made for .hero-headline em on pennapay.com. */
.display em { font-style: normal; color: inherit; }
.lede { margin-top: 22px; font-size: 17px; color: var(--ink-2); max-width: 38ch; line-height: 1.55; text-wrap: pretty; }

.heroA-fan-wrap { position: relative; padding-bottom: 24px; }
/* Plain sentence, not an uppercase letter-spaced label (de-AI pass). It is an
   instruction to the reader — "Hover a feather to learn more." — so it should
   read like one. */
.fan-hint { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--muted); }

.heroA-side { padding-bottom: 40px; }
.tip {
  border: 1px solid var(--rule); background: var(--paper-hi);
  padding: 24px; min-height: 280px;
  display: flex; flex-direction: column; gap: 10px;
}
.tip-mark svg { transform: rotate(-12deg); }
.tip-name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; margin-top: 6px; }
.tip-name.muted { color: var(--ink); }
.tip-tag { font-size: 15px; color: var(--ink); font-weight: 500; }
.tip-blurb { font-size: 14px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.tip-cta { font-size: 13px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 14px; }
.tip-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.tip-list li { display: flex; align-items: center; gap: 10px; }
.tip-list .dot { width: 8px; height: 8px; border-radius: 999px; }
.tip-list .more { color: var(--muted); font-style: italic; padding-left: 18px; }

/* ─────────────────────────────────────────────────────────────────
   HERO — CENTERED (front page of pennasystems.com)
   ───────────────────────────────────────────────────────────────── */
.hero-centered {
  display: flex; flex-direction: column; align-items: center;
  padding: 56px 24px 24px; gap: 32px;
}
.hero-copy-center {
  text-align: center; max-width: 720px;
}
.hero-copy-center .eyebrow { display: block; margin-bottom: 18px; }
.hero-copy-center .display { font-size: 64px; }
.hero-copy-center .lede { margin: 22px auto 0; max-width: 60ch; }

.fan-centered {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  /* The fan paints well outside its fan-stage box: near-vertical feathers
     extend above the stage top, horizontal feathers swing below the nib.
     padding-top reserves room for the top overhang AND the name pills above the
     crown tips, so feathers and pills don't crash
     into the hero copy; the fan-hint gets a matching margin-top below.
     Values are tuned for renderFan size:220 — re-tune if that changes. */
  padding-top: 128px;
  min-height: 520px;
  overflow: visible;
}
.fan-centered #fan-container { position: relative; }
.fan-centered .fan-stage { overflow: visible; }

.fan-below {
  /* The feather-overhang clearance (152px, tuned for size:220) now lives on
     .fan-legend, which sits between the stage and this block — so this only
     needs a small gap below the legend strip. */
  margin-top: 28px;
  position: relative;
  width: min(420px, 90vw);
}

.fan-tooltip {
  position: relative;
  width: 100%;
  background: var(--paper-hi); border: 1px solid var(--rule);
  padding: 22px 24px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 160ms ease;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.fan-tooltip.is-visible { opacity: 1; pointer-events: auto; }
.fan-tooltip .tip-name { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.fan-tooltip .tip-tag { font-size: 15px; color: var(--ink); font-weight: 500; }
.fan-tooltip .tip-blurb { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.fan-tooltip .tip-cta { font-size: 13px; font-weight: 500; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 4px; }

.fan-centered .fan-hint {
  /* Overlaid on the .fan-below area; fades out when tooltip appears.
     Plain sentence, not an uppercase letter-spaced label (de-AI pass) —
     matches the flattened .fan-hint rule above. */
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--muted); white-space: nowrap;
  margin: 0; transition: opacity 160ms ease;
}

@media (max-width: 720px) {
  .hero-copy-center .display { font-size: 40px; }
  .fan-centered { min-height: auto; }
  .fan-below { margin-top: 24px; }
  .fan-tooltip { opacity: 1; pointer-events: auto; }
  .fan-tooltip:not(.is-visible) { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE FAN — .m-* classes emitted by renderMobileFan() when
   viewport < 700px. These selectors were never defined before.
   ───────────────────────────────────────────────────────────────── */
.mobile-fan { width: 100%; }
.m-list { display: flex; flex-direction: column; }
.m-item { border-bottom: 1px solid var(--rule); }
.m-item:first-child { border-top: 1px solid var(--rule); }
.m-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; cursor: pointer;
}
.m-feather { flex-shrink: 0; width: 56px; height: 56px; }
.m-feather svg { width: 56px; height: 56px; }
.m-row-text { flex: 1; min-width: 0; }
.m-row-name {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  color: var(--ink); display: flex; align-items: center; gap: 8px; line-height: 1.2;
}
.m-soon {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 2px 7px; line-height: 1.4; flex-shrink: 0;
}
.m-row-tag { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.m-row-chev { color: var(--muted); font-size: 14px; flex-shrink: 0; transition: transform 160ms ease; }
.m-row:hover .m-row-chev, .m-row:active .m-row-chev { transform: translateX(3px); }
.m-row:active { opacity: 0.75; }

/* Fan caption per input type. Hover devices read the mouse hint; touch
   devices that get the interactive fan (>=700px, where renderFan draws the
   radial fan rather than the tappable mobile list) read the press-and-drag
   hint. Touch + narrow viewport shows the mobile list, which is
   self-explanatory, so neither caption is shown there. */
.fan-hint-touch { display: none; }
@media (hover: none) {
  .fan-hint-hover { display: none; }
}
@media (hover: none) and (min-width: 700px) {
  .fan-hint-touch { display: inline; }
}

/* In the works */
.works { padding: 24px 56px 8px; border-top: 1px solid var(--rule); margin-top: 24px; }
.works-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; }
.works-list li { display: flex; align-items: baseline; gap: 12px; font-size: 14px; }
.works-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; transform: translateY(2px); }
.works-name { font-weight: 600; color: var(--ink); }
.works-tag { color: var(--ink-2); }
.works-list li.overlay .works-tag { font-style: italic; color: var(--muted); }

/* ─────────────────────────────────────────────────────────────────
   SUBPAGE — per-tool template
   ───────────────────────────────────────────────────────────────── */
.subpage { background: var(--paper); }
.sub-hero { text-align: center; padding: 32px 56px 0; position: relative; }
.sub-back { position: absolute; left: 56px; top: 32px; font-size: 13px; color: var(--muted); }
.sub-back:hover { color: var(--ink); }
.sub-mark { display: flex; justify-content: center; margin: 8px 0 24px; }
.sub-mark svg { transform: rotate(-8deg); }
/* Plain, per the shared .eyebrow rule above — this used to re-apply the mono/
   uppercase/0.16em tic on top of it for the nine module pages. */
.sub-eyebrow { font-size: 13px; }
.sub-display { font-size: 56px; line-height: 1.04; margin: 16px auto 18px; max-width: 18ch; }
.sub-lede { max-width: 50ch; margin: 0 auto; font-size: 17px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }
.sub-cta { display: flex; gap: 24px; justify-content: center; align-items: center; margin: 28px 0 8px; }
.sub-cta .ps-btn { color: var(--paper-hi); }
.sub-cta-soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  padding: 10px 18px; border: 1px dashed currentColor; border-radius: 999px;
  font-family: var(--sans);
}
.sub-cta-soon-dot {
  width: 8px; height: 8px; border-radius: 999px;
  animation: ps-pulse 2.4s ease-in-out infinite;
}
@keyframes ps-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.sub-shot { padding: 40px 56px; }
.sub-shot-frame { border: 1px solid; background: var(--paper-hi); padding: 8px; border-radius: 4px; }
.sub-shot-img { width:100%; height:auto; display:block; border-radius:var(--radius,4px); }
.sub-shot-caption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }

/* De-AI pass (2026-08-17): three exactly equal columns under every module
   screenshot, each headed by a letter-spaced "01"/"02"/"03" — the same
   numbered-eyebrow-over-a-symmetric-grid rhythm #1008 broke on the pennapay
   homepage. The columns are now uneven (the first point is the load-bearing
   one and gets the room), and the numerals are plain text at body weight
   rather than a mono label. */
.sub-points { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 32px 44px; padding: 24px 56px 56px; border-top: 1px solid var(--rule); }
.sub-point-num { font-size: 13px; }
.sub-points h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 8px 0 6px; }
.sub-points p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.sub-value { padding: 56px 56px 64px; text-align: center; border-top: 1px solid var(--rule); }
.sub-value h2 { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.1; letter-spacing: -0.022em; max-width: 20ch; margin: 0 auto 16px; }
.sub-value p { max-width: 52ch; margin: 0 auto; font-size: 16px; color: var(--ink-2); line-height: 1.55; text-wrap: pretty; }

.sub-suite { padding: 48px 56px; background: var(--paper-lo); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
/* "Part of PennaSystems" — a sentence, not a label (de-AI pass). */
.sub-suite-eyebrow { font-size: 13px; color: var(--muted); }
.sub-suite-h { font-family: var(--serif); font-size: 36px; font-weight: 400; line-height: 1.1; margin: 8px 0 28px; }
.sub-suite-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin-bottom: 24px; }
.sub-suite-card { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--paper-hi); border: 1px solid var(--rule); }
.sub-suite-card svg { transform: rotate(-12deg); flex-shrink: 0; }
.sub-suite-name { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.sub-suite-tag { font-size: 13px; color: var(--ink-2); }

/* Striped shot placeholder */
.shot-placeholder {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--paper-hi); border-radius: 2px;
}
.shot-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(27,26,23,.04) 11px 12px);
}
.shot-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em;
  background: var(--paper-hi); padding: 6px 12px; border: 1px solid var(--rule);
}

/* ─────────────────────────────────────────────────────────────────
   PRICING PAGE
   ───────────────────────────────────────────────────────────────── */
.pricing-page { background: var(--paper); }
.pricing-section {
  background: var(--paper); padding: 56px 0;
}

.pricing-hero {
  text-align: center; padding: 56px 56px 0;
}

.pricing-h1 {
  font-family: var(--serif); font-size: 56px; font-weight: 400;
  letter-spacing: -0.022em; line-height: 1.04; margin: 16px auto 18px;
  max-width: 20ch;
}

.pricing-lede {
  max-width: 50ch; margin: 0 auto; font-size: 17px; color: var(--ink-2);
  line-height: 1.55; text-wrap: pretty;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 64px 56px; max-width: 1280px; margin: 0 auto;
}

.pricing-card {
  border: 1px solid var(--rule); background: var(--paper);
  padding: 32px 24px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 200ms ease;
}

.pricing-card.is-featured {
  background: var(--paper-hi); border: 2px solid var(--gold);
  transform: scale(1.02);
}

.pricing-tier-name {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}

.pricing-desc {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
}

.pricing-price-block {
  display: flex; align-items: baseline; gap: 4px; margin-top: 8px;
}

.pricing-price {
  font-family: var(--serif); font-size: 48px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}

.pricing-price-free {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--ink-2);
}

.pricing-period {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}

.pricing-features {
  display: flex; flex-direction: column; gap: 10px; font-size: 14px;
  color: var(--ink-2); margin-top: 16px;
}

.pricing-features li {
  display: flex; align-items: center; gap: 10px;
}

.pricing-check {
  color: var(--gold-text); font-weight: 600;
}

.pricing-common {
  padding: 48px 56px; text-align: center;
  border-top: 1px solid var(--rule); margin-top: 48px;
}

.pricing-common-h {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  margin-bottom: 28px; color: var(--ink);
}

.pricing-common-list {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-2);
}

.pricing-common-list li {
  display: flex; align-items: center; gap: 10px;
}

.pricing-common-list .dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--ink);
}

/* ─────────────────────────────────────────────────────────────────
   MOBILE — narrow-viewport overrides for nav, subpage template, footer.
   Promoted from pennasystems-pennapay.html's page-local block so every
   module landing inherits the same fixes. Desktop is unaffected.
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Nav: cap padding and hide secondary links — keep logo + CTA visible. */
  .ps-nav { display: flex; justify-content: space-between; padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .ps-nav-links { display: none; }
  .ps-nav-cta { gap: 12px; }

  /* Subpage hero: 56px display was wrapping to 6+ lines in a 263px content area. */
  .sub-hero { padding: 24px 20px 0; }
  .sub-back { left: 20px; top: 24px; }
  .sub-display { font-size: 36px; max-width: none; }
  .sub-lede { font-size: 16px; }
  .sub-cta { flex-direction: column; gap: 16px; }

  /* Inner sections: tighten gutters, collapse multi-column layouts. */
  .sub-shot { padding: 32px 20px; }
  .sub-points { grid-template-columns: 1fr; padding: 20px 20px 32px; gap: 24px; }
  .sub-suite { padding: 36px 20px; }
  .sub-suite-h { font-size: 28px; }
  .sub-suite-grid { grid-template-columns: 1fr; }

  /* Closing tagline section (currently only used on pennapay, but harmless elsewhere). */
  .sub-value { padding: 36px 20px; }
  .sub-value h2 { font-size: 28px; }

  /* Footer: stack the lockup column on top of the link columns. */
  .ps-footer { padding: 32px 20px; grid-template-columns: 1fr; gap: 24px; }
  .ps-foot-cols { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
}
