/* PennTrail round 4 · P1 final. Layered on base3.css. One 8px spacing scale; two glass recipes (dark, light). */
:root {
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px;
  --sec: clamp(56px, 5.6vw, 80px);
  --font-s: 'Newsreader', Georgia, serif;
  --ledger: #2f6a4c;
}

/* ---------- hero (one photo, hills over the dashboard) ---------- */
.hero.h4 { background: var(--sky); padding: 152px 0 0; }
.hero.h4 .hero-bg, .hero .ridge { display: none; }
.h4-bg, .h4-fg { position: absolute; display: block; max-width: none; height: auto; pointer-events: none; user-select: none; }
.h4-bg { z-index: 0; } .h4-fg { z-index: 2; }
.h4-shade { position: absolute; inset: 0 0 auto; height: 520px; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(14, 28, 38, .28), rgba(14, 28, 38, 0)); }
.h4-mist { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(246, 247, 242, 0), rgba(246, 247, 242, .78) 62%, var(--paper) 100%); }
.hero.h4 .hero-in { padding-bottom: 144px; }
.hero .ctas { margin-top: var(--s4); }
.hero .fine { margin-top: var(--s2); }
.hero-shot { margin-top: var(--s7); }
@media (max-width: 760px) { .hero.h4 { padding-top: 120px; } .hero.h4 .hero-in { padding-bottom: 96px; } .h4-mist { height: 160px; } .hero-shot { margin-top: var(--s6); } }

/* WhatsApp: the same dark glass as the rest, with the WhatsApp mark. No green fills, no coloured glow. */
.btn.wa-pill { gap: 10px; }
.btn.wa-pill .ic { width: 19px; height: 19px; }
.btn.wa-pill:hover .ic { transform: none; }
.ctas .btn.glass { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -12px rgba(0, 0, 0, .4); }

/* ---------- nav ---------- */
.nav-in { gap: var(--s3); }
.nav-cta { gap: var(--s3); }
.nav-wa { width: auto; height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; font-size: 14.5px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; transform: none !important; }
.nav-wa:hover, .nav-wa[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.nav-wa .ic { width: 18px; height: 18px; }

/* Product menu: grouped columns, opens on hover */
.dd-panel { width: 840px; padding: var(--s2); border-radius: 24px; background: rgba(12, 20, 16, .97); }
.dd-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }   /* hover bridge over the gap */
.dd-cols { display: grid; gap: var(--s1); }
.dd-cols.n3 { grid-template-columns: repeat(3, 1fr); }
.dd-cols.n2 { grid-template-columns: repeat(2, 1fr); }
.dd-col { display: flex; flex-direction: column; gap: var(--s2); }
.dd-gh { padding: 4px 12px 2px; font: 600 11.5px/1 var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.dd-group { display: flex; flex-direction: column; gap: 2px; }
.dd-item { padding: 9px 12px; align-items: flex-start; }
.dd-ic { width: 34px; height: 34px; border-radius: 10px; }
.dd-ic .ic { width: 17px; height: 17px; }
.dd-item b { font-size: 14px; line-height: 1.3; } .dd-item small { display: block; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.dd-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); margin-top: var(--s1); padding-top: var(--s1); border-top: 1px solid rgba(255, 255, 255, .1); }
.dd-foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s1); padding: 14px 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); font-weight: 600; font-size: 14.5px; }
.dd-foot:hover { background: rgba(255, 255, 255, .1); }

/* mobile sheet */
.nav-sheet .dd-group { padding: 4px 0; }
.nav-sheet .dd-gh { padding: 10px 12px 4px; }
.nav-sheet .dd-item { padding: 8px 12px; }
.nav-sheet .sh-foot { margin: 8px 0 4px; }
.nav-sheet .btn.wa-pill { margin-top: var(--s2); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26); color: #fff; }

/* WhatsApp set-up card: the real number replaces "coming soon"; no QR */
.wa-pop { right: 0; }
.wp-top .ic { background: #0f3b26; color: #fff; }
.wp-num { display: grid; gap: 2px; margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: #f1f4ee; border: 1px solid #e1e6dc; }
.wp-num span { font-size: 12.5px; color: #5b6862; } .wp-num b { font: 600 17px var(--font-d); color: #0c1611; } .wp-num small { margin: 0 !important; text-align: left !important; }
.wp-steps { margin-bottom: 16px; }
.wa-pop .btn.primary .ic { width: 18px; height: 18px; }

/* ---------- section rhythm ---------- */
.sec { padding: var(--sec) 0; }
.sec.aud { padding-top: var(--s5); }
.sec-head { gap: var(--s2); }
.eyebrow { font: 600 13px/1 var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: var(--ledger); margin-bottom: var(--s2); }
.bento { margin-top: var(--s5); }

/* proof strip (hidden until real material exists) */
.proof { padding: var(--s5) 0 0; }
.proof-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.pf-logos { display: flex; gap: var(--s5); list-style: none; padding: 0; margin: 0; align-items: center; }
.pf-logos img { height: 28px; width: auto; filter: grayscale(1); opacity: .7; }
.pf-quote p { font: 400 22px/1.35 var(--font-s); color: var(--ink); max-width: 46ch; } .pf-quote cite { font-style: normal; color: var(--muted); font-size: 14px; }

/* ---------- problems: ledger rows (from P2) ---------- */
.prob-cols { display: grid; grid-template-columns: 64px 1fr 1fr; gap: var(--s4); margin-top: var(--s5); font: 600 12.5px var(--font-b); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prob-cols span:first-child { grid-column: 2; }
.prob-list { grid-template-columns: 1fr; gap: 0; margin-top: var(--s2); border-top: 1px solid var(--ink); }
.prob-list li { grid-template-columns: 64px 1fr 1fr; gap: var(--s4); align-items: start; padding: var(--s3) 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.pb-n { display: block; font: 400 34px/1 var(--font-s); font-variant-numeric: tabular-nums lining-nums; color: var(--ledger); }
.pb-ic { display: none; }
.pb-was b { font: 600 20px/1.3 var(--font-d); text-decoration: line-through; text-decoration-color: rgba(47, 106, 76, .55); text-decoration-thickness: 1.5px; }
.pb-fix { margin: 0; padding: 0; border: 0; gap: 12px; font: 400 24px/1.28 var(--font-s); color: var(--ink); }
.pb-fix i { margin-top: 5px; background: var(--brand); color: var(--lime); }
@media (max-width: 860px) { .prob-cols { display: none; } .prob-list li { grid-template-columns: 40px 1fr; gap: 8px var(--s2); } .pb-n { font-size: 26px; grid-row: span 2; } .pb-fix { font-size: 20px; } }

/* ---------- features: P2 layout, pinned; heading + strip + list all inside the pinned block ---------- */
.sec.feats { padding: 0; }
.fx-track { height: calc(100vh + (var(--n) - 1) * 40vh); margin: 0; }
.fx-sticky { height: 100vh; display: block; padding: 120px 0 var(--s4); }
.fx-wrap { height: 100%; display: flex; flex-direction: column; gap: var(--s4); }
.fx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); }
.fx-head .sec-sub { margin-top: var(--s1); }
.surfaces { margin: 0; gap: var(--s1); flex-wrap: nowrap; }
.surfaces > span { gap: 10px; padding: 8px 16px 8px 8px; }
.surfaces > span > span { display: flex; flex-direction: column; line-height: 1.25; }
.surfaces > span .ic, .surfaces > span:first-child .ic { width: 32px; height: 32px; padding: 7px; background: var(--brand); color: var(--lime); }
.surfaces small { margin: 0; font-size: 12.5px; }
.sf-line { display: none; }
.fx { flex: none; height: clamp(420px, calc(100vh - 400px), 470px); grid-template-columns: 1.25fr 1fr; grid-template-areas: 'stage tabs'; gap: var(--s6); align-items: stretch; }
.fx-stage { height: auto; min-height: 0; overflow: hidden; }
.fx-tabs { align-self: center; gap: 0; }
.fx-tab { display: grid; grid-template-columns: 44px 1fr; gap: 0; align-items: baseline; padding: 18px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent !important; box-shadow: none !important; transition: opacity .3s; }
.fx-tab:last-child { border-bottom: 1px solid var(--line); }
.fx-tab[aria-selected="false"] { opacity: .45; }
.fx-tab:hover { opacity: .85; }
.fx-ic { display: none; }
.fx-n { display: block; font: 500 15px/1 var(--font-d); color: var(--ledger); font-variant-numeric: tabular-nums; }
.fx-tx b { font: 600 20px/1.25 var(--font-d); letter-spacing: -0.01em; }
.fx-tx small { font-size: 15px; }
.fx-bar { left: 0; right: 0; top: -1px; bottom: auto; height: 2px; }
.fx-bar i { background: var(--ink); }
.soon { background: var(--paper-2); color: var(--ledger); }
.fx-web { left: 28px; top: 28px; width: calc(100% - 290px); }
.fx-stage .fx-phone { right: 28px; top: 40px; width: 220px; }
@media (max-width: 1000px), (max-height: 699px) {
  .fx { height: auto; }
  .sec.feats { padding: var(--sec) 0; }
  .fx-track { height: auto; } .fx-sticky { position: static; height: auto; padding: 0; }
  .fx-wrap { height: auto; gap: var(--s3); }
  .fx-head { flex-direction: column; align-items: flex-start; }
  .surfaces { flex-wrap: wrap; }
  .fx { grid-template-columns: 1fr; grid-template-areas: 'tabs' 'stage'; gap: var(--s2); }
  .fx-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s1); padding-bottom: 4px; scrollbar-width: none; }
  .fx-tabs::-webkit-scrollbar { display: none; }
  .fx-tab, .fx-tab:last-child { min-width: 240px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
  .fx-tab[aria-selected="true"] { background: var(--card) !important; opacity: 1; }
  .fx-bar { display: none; }
  .fx-stage { height: 560px; }
}
@media (max-width: 640px) { .surfaces > span { flex: 1 1 100%; } .fx-stage { height: 600px; } .fx-web { left: 16px; right: 16px; top: 16px; width: auto; } .fx-stage .fx-phone { width: 220px; right: auto; left: 50%; margin-left: -110px; transform: none; top: auto; bottom: -40px; animation: none !important; }
  .fx-tx b { font-size: 17px; } .fx-tab, .fx-tab:last-child { min-width: 220px; } }

/* ---------- Meet Penn: no glow, a flat tint and a soft floor shadow ---------- */
.penn-stage { background: none; }
.penn-shadow { background: rgba(0, 40, 20, .16); filter: blur(6px); }
.penn-in { gap: var(--s8); }
.ask { margin-top: var(--s4); }

/* ---------- trust ---------- */
.trust-grid { margin-top: var(--s5); }

/* ---------- pricing ---------- */
.cycle { margin-top: var(--s4); }
.plans { margin-top: var(--s3); gap: var(--s2); }
.plan-price b, .calc-out b, .band b { font-family: var(--font-s); font-weight: 400; font-style: normal; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.plan-price b { font-size: 44px; }
.seat-card .plan-price b { font-size: 48px; }
.calc-out b { font-size: 34px; }
.talk { margin-top: var(--s2); padding: var(--s4); }
.talk h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; }
.trial-note { margin-top: var(--s2); }
.addons { margin-top: var(--s5); }

/* ---------- FAQ: one column, first item open ---------- */
.faq-in { grid-template-columns: 1fr; max-width: 860px; gap: var(--s5); }
.faq-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.faq-head .sec-sub { margin-top: var(--s2); }
.faq-head .sec-sub a { color: var(--ink); font-weight: 600; }
.faq summary { font-size: 19px; }
.sec.faq { padding-bottom: var(--sec); }

/* ---------- closing CTA + footer: one photographic block ---------- */
.cta { padding: var(--s7) 0 var(--s5); }
.cta .ctas { margin-top: var(--s3); flex-direction: column; align-items: center; gap: var(--s2); }
.cta-link { color: rgba(255, 255, 255, .86); font-size: 15.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.cta-link:hover { color: #fff; text-decoration-color: #fff; }
.foot-top { padding-top: var(--s4); grid-template-columns: .8fr 2.6fr; gap: var(--s6); }
.foot-cols { grid-template-columns: 2.3fr 1fr 1fr; gap: var(--s3); }
.fc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.foot-cols a { padding: 3px 0; font-size: 14.5px; }
.foot-bottom { margin-top: var(--s4); padding-top: var(--s3); }
.lk.big .lk-svg { height: clamp(52px, 6.2vw, 88px); }
.foot-legal { font-size: 13.5px; color: rgba(255, 255, 255, .86); }
.foot-legal .credit { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr; gap: var(--s4); } .foot-cols { grid-template-columns: 1fr 1fr; } .fc-prod { grid-column: 1 / -1; } .foot-bottom { grid-template-columns: 1fr; gap: var(--s3); } .foot-legal { text-align: left; justify-items: start; } }

/* nav: Log in + Start free */
.nav-start { height: 40px; }
/* WhatsApp set-up card opens under the hero button */
.hero-wa { position: relative; display: inline-flex; }
.hero-wa .wa-pop { right: auto; left: 50%; top: calc(100% + 14px); transform: translateX(-50%); z-index: 20; text-align: left; }
@media (max-width: 760px) { .hero-wa { display: flex; width: 100%; } .hero-wa .btn { width: 100%; } }

/* Accountants pricing: free firm, flexible client pricing (Tyms' model, in naira) */
.pp { display: grid; grid-template-columns: 1fr 1.7fr; border: 1px solid var(--line); border-radius: 24px; background: var(--card); overflow: hidden; margin-top: var(--s5); }
.pp-l { padding: var(--s5); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.pp-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ledger); font: 600 13px var(--font-b); }
.pp-lead { margin-top: var(--s2); color: var(--muted); }
.pp .plan-price b { font-size: 64px; line-height: 1; }
.pp-unit { color: var(--ink); font-weight: 500; }
.pp-small { font-size: 13px; color: var(--muted); margin-bottom: var(--s3); }
.pp-l .btn + .btn { margin-top: var(--s1); }
.pp-r { padding: var(--s5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-content: center; }
.pp-col h4 { font: 600 16px var(--font-d); margin-bottom: var(--s2); }
.pp-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pp-col li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.pp-col li .ic { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--brand); color: var(--lime); margin-top: 1px; }
.pp-note { max-width: 70ch; margin: var(--s3) auto 0; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .pp { grid-template-columns: 1fr; } .pp-l { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s4); } .pp-r { grid-template-columns: 1fr; padding: var(--s4); } }

/* surfaces strip: keep each label on one line */
.surfaces > span { flex: none; white-space: nowrap; }
@media (max-width: 1200px) and (min-width: 1001px) { .surfaces small { display: none; } }

/* ---------- hero demo (Stageshow): the page is the ground, so no glass plate behind it ---------- */
.hero-shot .frame.has-stage { padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
.hero-stage { width: 100%; }

/* ---------- features, round 4.1 ----------
   Desktop: the block pins just under the nav and is only as tall as its content; the track is
   that height plus one step per feature (set in site4.js), so Meet Penn follows straight after.
   Phones and short screens: one card per feature, stacking as you scroll. */
@media (min-width: 1001px) and (min-height: 700px) {
  .fx-track { height: auto; }
  .fx-sticky { position: sticky; top: 88px; height: auto; display: block; padding: var(--s3) 0 var(--s5); }
  .fx-wrap { height: auto; }
  .fx-stage:has(> .fx-scene.has-show:not([hidden])) { height: auto; aspect-ratio: 640 / 470; max-height: calc(100vh - 290px); }
  .fxc { display: none; }
}
.fx-scene.has-show { padding: 0; }
.fx-show { position: relative; z-index: 1; width: 100%; height: 100%; }
.fx-show .ss-stage { margin: 0 auto; }

@media (max-width: 1000px), (max-height: 699px) {
  .sec.feats { padding: var(--sec) 0; }
  .fx { display: none; }
  .fxc { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 12px; }
  /* B2: each card sticks just under the 72px bar, 6px lower than the one before, so the stack reads
     as a thin pile of edges. --top is lowered by site4.js when a card is taller than the screen
     (short phones, Safari with its toolbars), so the whole card is always seen before the next covers it. */
  .fxc-i { position: sticky; top: var(--top, calc(78px + var(--i) * 6px)); }
  .fxc-card { overflow: hidden; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 -6px 18px -10px rgba(12, 22, 17, .22); }
  .fxc-tx { padding: 16px 18px 14px; }
  .fxc-n { display: block; font: 500 12.5px/1 var(--font-d); color: var(--ledger); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
  .fxc-tx h3 { margin: 8px 0 0; font: 600 19px/1.25 var(--font-d); letter-spacing: -0.015em; color: var(--ink); }
  .fxc-tx p { margin: 4px 0 0; font-size: 15px; line-height: 1.42; color: var(--muted); }
  .fxc-vis { position: relative; margin: 0 6px 6px; border-radius: 17px; overflow: hidden; background: var(--stage-bg, var(--forest)); }
  .fxc-vis:not(.has-show) { height: 420px; }
  .fxc-vis .fx-web { position: absolute; left: 14px; right: 14px; top: 14px; width: auto; }
  .fxc-vis .fx-phone { position: absolute; left: 50%; top: 190px; width: 210px; margin-left: -105px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .4)); }
}
@media (min-width: 640px) and (max-width: 1000px) {
  .fxc { max-width: 560px; margin-left: auto; margin-right: auto; }
}
.fxc-vis::before { content: ''; position: absolute; inset: 0; background: var(--stage-img, none) center / cover; opacity: .55; }


/* ---------- phone and tablet nav (B1, Nov 10) ----------
   Under 961px: a flat bar (logo left, 38px black circle button) and a full-screen dark menu that
   grows out of the button with a clip-path circle. Product is an accordion. Desktop is untouched. */
.nav-full { display: none; }
@media (max-width: 960px) {
  html.menu-open, html.menu-open body { overflow: hidden; }
  html.menu-open .cookie, html.menu-open .lbl-tg { opacity: 0 !important; pointer-events: none; }   /* the cookie banner waits while the menu is open */
  .nav { top: 0; padding: 0; }
  .nav-in { position: relative; z-index: 2; max-width: none; height: 72px; padding: 0 16px 0 20px; border-radius: 0; background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .3s, box-shadow .3s; }
  .lk-svg path { transition: fill .3s; }
  .nav.scrolled .nav-in, .nav.over-light .nav-in { background: rgba(245, 246, 241, .88); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 rgba(12, 22, 17, .08); }
  .nav.scrolled .lk-svg path, .nav.over-light .lk-svg path { fill: var(--ink); }
  .nav.scrolled .nav-logo .for, .nav.over-light .nav-logo .for { color: var(--brand); }
  .nav.open .nav-in { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .nav.open .lk-svg path { fill: #fff; }
  .nav.open .nav-logo .for { color: var(--lime); }

  /* the button: three lines that fold into a cross. No circle; the whole 48px square is the tap area. */
  .nav-menu { display: grid; place-items: center; position: relative; width: 48px; height: 48px; margin-right: -10px; border-radius: 12px; background: none; color: #fff; -webkit-tap-highlight-color: transparent; transition: color .3s, transform .2s; }
  .nav-menu:active { transform: scale(.92); }
  .nav-menu:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; }
  .nm-l { grid-area: 1 / 1; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s cubic-bezier(.76, 0, .24, 1), opacity .25s; }
  .nm-l:nth-child(1) { transform: translateY(-7px); }
  .nm-l:nth-child(3) { transform: translateY(7px); }
  .nav.scrolled .nav-menu, .nav.over-light .nav-menu { color: var(--ink); }
  .nav.open .nav-menu { color: #fff; }
  .nav.open .nm-l:nth-child(1) { transform: rotate(45deg); }
  .nav.open .nm-l:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .nav.open .nm-l:nth-child(3) { transform: rotate(-45deg); }

  /* the full-screen menu */
  .nav-full { display: block; position: fixed; inset: 0; z-index: 1; pointer-events: auto; background: #0a130e; color: #fff; overflow: hidden;
    clip-path: circle(0px at var(--mx, calc(100% - 35px)) var(--my, 36px)); visibility: hidden;
    transition: clip-path .6s cubic-bezier(.76, 0, .24, 1), visibility 0s .6s; }
  .nav.open .nav-full { clip-path: circle(var(--mr, 150vmax) at var(--mx, calc(100% - 35px)) var(--my, 36px)); visibility: visible; transition: clip-path .7s cubic-bezier(.76, 0, .24, 1), visibility 0s; }
  .nf-in { position: absolute; inset: 72px 0 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding: 8px 20px max(20px, env(safe-area-inset-bottom, 0px)); }
  .nf-in > * { opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s; }
  .nav.open .nf-in > * { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.16, 1, .3, 1) calc(.22s + var(--i, 0) * .06s), transform .6s cubic-bezier(.16, 1, .3, 1) calc(.22s + var(--i, 0) * .06s); }
  .nf-in > :nth-child(2) { --i: 1; } .nf-in > :nth-child(3) { --i: 2; } .nf-in > :nth-child(4) { --i: 3; } .nf-in > :nth-child(5) { --i: 4; }
  .nf-l { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); width: 100%; padding: 15px 0; font: 600 clamp(30px, 8.6vw, 42px)/1.1 var(--font-d); letter-spacing: -.025em; color: #fff; text-align: left; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .12); cursor: default; }
  .nf-acc { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nf-prod { border-bottom: 0; }
  .nf-pm { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); transition: background .3s, border-color .3s; }
  .nf-pm::before, .nf-pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 2px; background: #fff; transition: transform .45s cubic-bezier(.76, 0, .24, 1), background .3s; }
  .nf-pm::after { transform: rotate(90deg); }
  .nf-prod[aria-expanded="true"] .nf-pm { background: var(--lime); border-color: var(--lime); }
  .nf-prod[aria-expanded="true"] .nf-pm::before, .nf-prod[aria-expanded="true"] .nf-pm::after { background: var(--brand); }
  .nf-prod[aria-expanded="true"] .nf-pm::after { transform: rotate(0deg); }
  .nf-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s cubic-bezier(.16, 1, .3, 1), visibility 0s .5s; }
  .nf-prod[aria-expanded="true"] + .nf-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s cubic-bezier(.16, 1, .3, 1), visibility 0s; }
  .nf-panel-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .3s; }
  .nf-prod[aria-expanded="true"] + .nf-panel .nf-panel-in { opacity: 1; transition: opacity .45s .1s; }
  .nf-panel-in > :last-child { padding-bottom: var(--s2); }
  .nf-panel .dd-group { gap: 0; padding: 0; }
  .nf-panel .dd-gh { padding: 12px 0 6px; }
  .nf-panel .dd-also { margin-top: var(--s2); padding-top: var(--s1); border-top: 1px solid rgba(255, 255, 255, .12); }
  .nf-panel-in > .dd-also { grid-column: 1 / -1; }
  .nf-panel .dd-item { align-items: center; gap: 12px; padding: 7px 0; border-radius: 12px; cursor: default; }
  .nf-panel .dd-item:hover { background: none; }
  .nf-panel .dd-item b { font: 500 17px/1.3 var(--font-d); }
  .nf-panel .dd-item small { display: none; }
  .nf-panel .dd-ic { width: 32px; height: 32px; border-radius: 10px; }
  .nf-foot { margin-top: auto; padding-top: var(--s4); display: grid; gap: var(--s2); }
  .nf-foot .dd-foot { margin: 0; cursor: default; }
  .nf-foot .btn { margin: 0; }
}
@media (min-width: 600px) and (max-width: 960px) {
  .nav-in { padding: 0 24px 0 28px; }
  .nf-in { padding-left: 28px; padding-right: 28px; }
  .nf-panel-in { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  .nf-foot { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .nav-full { clip-path: none; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
  .nav.open .nav-full { clip-path: none; opacity: 1; transition: opacity .2s, visibility 0s; }
  .nf-in > *, .nav.open .nf-in > * { transform: none; transition: opacity .2s; }
  .nm-l, .nf-pm::before, .nf-pm::after, .nf-panel, .nf-prod[aria-expanded="true"] + .nf-panel { transition: none; }
}

/* Penn only peeks from the footer logo now, a little smaller than before (B1 feedback, Nov 10) */
.foot-logo .lk { --pk: .8; }

/* Log in hovers like the other nav links (Nov 10) */
.nav-log { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-log:hover, .nav-log:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-cta { gap: var(--s1); }

/* B2: the site's old .wa-body rule (base3.css, for the drawn scenes) must not reach the Stageshow
   feature phones: its min-height and padding pushed the newest message under the app window. */
.ptf .wa-body { min-height: 0; padding: 0; gap: 0; }

/* ---------- B3 (Nov 10): Problems on phones and small tablets, one column of tight problem → fix pairs ----------
   The number sits beside the crossed-out problem; the reason is one small muted line; the fix follows
   straight under it on a short green rule, so each pair reads top to bottom in one glance. Desktop is untouched. */
@media (max-width: 860px) {
  .sec.prob .prob-head { gap: 12px; }
  .sec.prob .sec-sub { font-size: 15.5px; line-height: 1.45; }
  .prob-list { margin-top: var(--s3); }
  .prob-list li { grid-template-columns: 30px 1fr; gap: 0 10px; padding: 14px 0 16px; }
  .pb-n { grid-row: 1 / span 3; font-size: 19px; line-height: 24px; }
  .pb-was b { font-size: 17px; line-height: 24px; }
  .pb-was span { margin-top: 1px; font-size: 14px; line-height: 1.4; }
  .pb-fix { grid-column: 2; margin-top: 8px; padding: 1px 0 1px 12px; border-left: 2px solid var(--brand); gap: 0; font-size: 17.5px; line-height: 1.28; }
  .pb-fix i { display: none; }
}
@media (min-width: 600px) and (max-width: 860px) { .prob-list li { padding: 22px 0 24px; } .pb-fix { font-size: 20px; } }

/* ---------- B4 (Nov 10, approved): "Businesses we serve" on phones is a swipe row ----------
   One card in view with the next peeking, a 01 / 05 counter and dots (whoCount in site4.js). Over 600px is untouched. */
.aud-ct { display: none; }
@media (max-width: 600px) {

  #who .aud-wrap { padding-left: 0; padding-right: 0; }
  #who .bento { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #who .bento::-webkit-scrollbar { display: none; }
  #who .bcard { flex: 0 0 86%; min-height: 420px; padding: 22px; scroll-snap-align: start; }
  #who .aud-ct { display: flex; align-items: center; gap: 4px; margin-top: 14px; padding: 0 16px; font: 500 13px/1 var(--font-d); font-variant-numeric: tabular-nums; color: var(--muted); }
  #who .aud-ct-n { color: var(--ink); }
  .aud-dots { display: flex; gap: 6px; margin-left: auto; }
  .aud-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .4s cubic-bezier(.16, 1, .3, 1), background .3s; }
  .aud-dots i.on { width: 18px; background: var(--ink); }

  #who .bc-chip { left: 14px; top: 14px; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; }
  #who .bc-chip > .ic { width: 24px; height: 24px; padding: 5px; border-radius: 7px; }
  #who .bc-chip b { font-size: 12.5px; line-height: 1.3; } #who .bc-chip small { display: block; font-size: 11.5px; line-height: 1.3; }
}

/* B5 Meet Penn on phones: small Penn beside the questions (Nov 10 night) */
.ask-row { display: block; }
.penn-mini { display: none; }
@media (max-width: 900px) {
  .penn-in { gap: 0; }
  .penn-stage { display: none; }
  .penn .ask { margin-top: var(--s3); gap: 10px; }
  .ask-row { display: grid; grid-template-columns: minmax(0, max-content) 96px; justify-content: start; gap: 14px; align-items: end; }
  .ask-row .ask-chips { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ask-row .ask-chips button { padding: 8px 13px; font-size: 13.5px; line-height: 1.3; border-radius: 16px; text-align: left; }
  .penn-mini { display: grid; justify-items: center; position: relative; padding-bottom: 4px; }
  .pm-b { width: 82px; aspect-ratio: 200 / 224; position: relative; z-index: 1; }
  .pm-b svg { width: 100%; height: auto; display: block; }
  .penn-mini .penn-shadow { bottom: 0; width: 56%; height: 8px; }
  .ask-bar { height: 54px; } .ask-a { padding: 13px 16px; font-size: 15px; }
}
@media (max-width: 340px) { .ask-row { grid-template-columns: minmax(0, max-content) 80px; } .pm-b { width: 70px; } }

/* B6 billing toggle: selected fill is a full pill on every size (Nov 10 night) */
.cycle { align-items: stretch; }
.cycle button { border-radius: 999px; white-space: nowrap; }
.cy-m { display: none; }
@media (max-width: 600px) {
  .cycle button { flex: 1 1 auto; flex-direction: row; gap: 5px; padding: 9px 8px; font-size: 13.5px; border-radius: 999px; }
  .cycle .cy-w { display: none; }
  .cycle .cy-m { display: inline; }
  .cycle button em { font-size: 11.5px; padding: 2px 6px; }
}
@media (max-width: 350px) { .cycle button { padding: 9px 5px; font-size: 12.5px; gap: 3px; } .cycle button em { font-size: 10.5px; padding: 2px 5px; } }

/* B7 add-ons on phones: two-line rows instead of a squeezed 3-column table (Nov 10 night) */
@media (min-width: 601px) { .addons td:nth-child(3) { text-align: center; } }
@media (max-width: 860px) { .addons { gap: var(--s2); } }
@media (max-width: 600px) {
  .addons table, .addons tbody { display: block; }
  .addons tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 2px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .addons tr:first-child { border-top: 1px solid var(--line); }
  .addons td { padding: 0; border: 0; }
  .addons td:nth-child(1) { font-weight: 500; color: var(--ink); font-size: 15px; }
  .addons td:nth-child(2) { text-align: right; font-size: 14.5px; max-width: 190px; line-height: 1.35; }
  .addons td:nth-child(3) { grid-column: 1 / -1; text-align: left; font-size: 13px; line-height: 1.4; }
  .addons tr[data-nonote] td:nth-child(3) { display: none; }
  .addons .ao-soon td:nth-child(2) b { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; }
}

/* B9: Talk to us card, avoid a short last line */
.talk p { text-wrap: balance; max-width: 62ch; }


/* B10 Trust on phones (Nov 11): same six rows, all visible, tighter spacing only */
@media (max-width: 560px) {
  .trust-grid { margin-top: 24px; }
  .trust-item { grid-template-columns: 34px 1fr; gap: 2px 14px; padding: 16px 0 !important; }
  .trust-item .ti-ic { width: 34px; height: 34px; border-radius: 10px; }
  .trust-item .ti-ic .ic { width: 16px; height: 16px; }
  .trust-item b { font-size: 16.5px; }
  .trust-item p { font-size: 14.5px; line-height: 1.5; }
}

/* B10 FAQ on phones (Nov 11): same questions, first one open, tighter rows */
@media (max-width: 600px) {
  .faq-in { gap: 22px; }
  .faq summary { padding: 15px 0; gap: 14px; font-size: 16.5px; line-height: 1.35; }
  .faq .pm { width: 28px; height: 28px; }
  .faq .pm .ic { width: 12px; height: 12px; }
  .faq details p { padding-bottom: 18px; font-size: 15px; line-height: 1.55; }
}

/* B10 hero on phones (Nov 11): same content, less air. Buttons both full width, the three checks on one line */
@media (max-width: 600px) {
  .hero.h4 { padding-top: 100px; }
  .hero-in .lede { margin-top: 16px; }
  .hero .ctas { margin-top: 24px; width: 100%; flex-direction: column; gap: 10px; }
  .hero .ctas > .btn { width: 100%; }
  .hero .fine { margin-top: 12px; flex-wrap: nowrap; gap: 8px; padding: 7px 9px; font-size: 11.75px; letter-spacing: -0.005em; white-space: nowrap; }
  .hero .fine .ic { width: 13px; height: 13px; }
  .hero .fine li { gap: 4px; }
  .hero-shot { margin-top: 32px; }
  .hero.h4 .hero-in { padding-bottom: 64px; }
}
@media (max-width: 370px) { .hero .fine { flex-wrap: wrap; white-space: normal; justify-content: center; } }

/* B11 headline (approved Nov 11, option A "Rise"): each word fades up a little, one after another, once. */
.hero h1 .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-in > h1[data-ht="rise"] { animation: none; }
  .hero h1[data-ht="rise"] .w { animation: htRise .8s calc(.15s + var(--i) * .07s) cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes htRise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
}

/* Meet Penn question bar (Nov 11): the question is Nosa's, so her avatar, not Penn */
.ask-av { background: #EEDBB5; } .ask-av svg { display: block; width: 100%; height: 100%; margin: 0; }

/* B13 hero on laptop screens (Nov 11): the first screen must show the product. On desktops shorter than 940px
   the headline scales with the screen height and the gaps tighten, so the dashboard starts higher. */
@media (min-width: 761px) and (max-height: 940px) {
  .hero.h4 { padding-top: clamp(96px, 12.5vh, 152px); }
  .hero h1 { font-size: min(var(--h1), 9.8vh); }
  .hero-in .lede { margin-top: 16px; max-width: 68ch; font-size: clamp(16px, 2.3vh, 20px); }
  .hero .ctas { margin-top: 24px; }
  .hero .fine { margin-top: 12px; }
  .hero-shot { margin-top: clamp(28px, 4.5vh, 64px); }
}

/* B13 features on laptop screens (Nov 11): the pinned panel (heading, platform pills, list 01-06 and the scene)
   must fit under the 88px pin line from 700px tall. The scene is sized by the room left (height) and by its
   column (width), whichever is smaller, so it never runs under the list or past the bottom of the screen. */
@media (min-width: 1001px) and (min-height: 700px) {
  .fx { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); height: auto; align-items: center; }
  /* never under 560px wide: below that the scene switches to its portrait phone layout, which crops in a landscape box */
  .fx-stage:has(> .fx-scene.has-show:not([hidden])) { width: max(560px, min(100%, calc(var(--fx-room, 470px) * 640 / 470))); max-height: none; justify-self: start; }
}
@media (min-width: 1001px) and (max-width: 1199px) and (min-height: 700px) {
  .fx { grid-template-columns: minmax(560px, 1.25fr) minmax(0, 1fr); gap: var(--s4); }
}
@media (min-width: 1001px) and (min-height: 700px) and (max-height: 940px) {
  .fx-sticky { padding: 12px 0 16px; }
  .fx-wrap { gap: clamp(16px, 2.6vh, 32px); }
  .fx-head .sec-t { font-size: min(var(--h2), 5.4vh); }
  .fx-head .sec-sub { font-size: clamp(16px, 2.2vh, 18px); }
  .fx-tab { padding: clamp(10px, 1.6vh, 18px) 0; }
  .fx-tx b { font-size: clamp(17px, 2.5vh, 20px); }
  .fx-tx small { font-size: clamp(14px, 1.9vh, 15px); }
  /* room = screen - pin line - paddings - heading block - gap - a little air */
  .fx-stage:has(> .fx-scene.has-show:not([hidden])) { --fx-room: min(470px, calc(86vh - 196px)); }
}

/* B13 wide screens (Nov 11, Patrick chose "Wider"): content grows from 1240px to 1440px at 1680px+ and 1600px at 2200px+,
   with the nav bar and hero frame widening to match. Type sizes are unchanged. */
@media (min-width: 1680px) {
  :root { --wrap: 1440px; }
  .nav-in { max-width: 1280px; }
  .hero-shot { max-width: 1320px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1600px; }
  .nav-in { max-width: 1400px; }
  .hero-shot { max-width: 1460px; }
}

/* B13 general pass (Nov 11) */
/* Hero sub: same two-line measure on every desktop (it ran to 3 lines with a lone "WhatsApp chat." on tall 1920+ screens) */
@media (min-width: 761px) { .hero-in .lede { max-width: 68ch; } }
/* Add-ons on small laptops: the short heading column gives room to the table, and prices stay on one line */
@media (min-width: 861px) and (max-width: 1199px) { .addons { grid-template-columns: 1fr 3fr; gap: var(--s4); } }
@media (min-width: 601px) { .addons td:nth-child(2) { white-space: nowrap; padding-inline: 12px; } }

/* C4 early fix (Nov 11): the Accountants checks are longer ("30 days free with up to 3 clients"), so on phones they
   wrap onto two centred lines instead of running off both sides. Each check stays whole. */
@media (max-width: 760px) {
  html[data-aud="accountants"] .hero .fine { flex-wrap: wrap; white-space: normal; justify-content: center; row-gap: 5px; border-radius: 16px; }
  html[data-aud="accountants"] .hero .fine li { white-space: nowrap; }
}

/* Fix (Nov 11 night): the drawn feature scenes (Accountants page) have no Stageshow stage to size the panel, so since
   B13 their stage collapsed to 0px on desktop. Give them the same room the Stageshow scenes get. */
@media (min-width: 1001px) and (min-height: 700px) {
  .fx-stage:not(:has(> .fx-scene.has-show:not([hidden]))) { height: var(--fx-room, 470px); width: 100%; align-self: center; }
}
@media (min-width: 1001px) and (min-height: 700px) and (max-height: 940px) {
  .fx-stage:not(:has(> .fx-scene.has-show:not([hidden]))) { --fx-room: min(470px, calc(86vh - 196px)); }
}

/* C4 pricing card (Nov 12): on phones the Accountants Practice card matches a Business plan card's sizes
   (26px padding, 44px price, 14.5px list), spacing only, nothing hidden; the "Moving your whole practice over?" card tightens with it */
@media (max-width: 600px) {
  .pp { margin-top: var(--s4); border-radius: 22px; }
  .pp-l { padding: 22px 22px 24px; gap: 4px; }
  .pp-lead { margin-top: 10px; font-size: 15px; }
  .pp .plan-price b { font-size: 44px; }
  .pp-unit { font-size: 15px; }
  .pp-small { font-size: 12.5px; margin-bottom: 14px; }
  .pp-l .btn { height: 44px; }
  .pp-r { padding: 22px; gap: 20px; }
  .pp-col h4 { font-size: 15px; margin-bottom: 10px; }
  .pp-col ul { gap: 9px; }
  .pp-col li { font-size: 14.5px; line-height: 1.35; gap: 9px; }
  .pp-col li .ic { width: 18px; height: 18px; padding: 3.5px; }
  .pp-note { font-size: 13px; margin-top: 14px; }
  .pricing .talk { padding: 24px 22px; gap: 16px; }
}

/* Launch fixes (Nov 12): hold the hero entrance on first visit until the landscape and fonts are ready (hero4.js adds
   html.h-wait and removes it when they are, or after 2.5s). Same animations, they just start once there is something to see. */
html.h-wait .hero-in > *, html.h-wait .hero h1 .w { animation-play-state: paused !important; }
html.h-wait .h4-bg, html.h-wait .h4-fg { opacity: 0; }
.h4-bg, .h4-fg { transition: opacity .5s ease; }
