/* Public pages (home, pricing, policies, account): dealt palette "stone and blueprint", IBM Plex Sans + Mono, triptych hero.
   One section per screen at 1440x900; equal edges on a 1280px, 12-column grid. Loaded after style.css on body.pub only. */
.pub {
  --bg: #dfdedb; --surface: #d3d2ce; --panel: #ebeae7; --card-bg: #f7f6f3; --ink-p: #26251e; --muted-p: #5a5850; --line-p: #c9c7c1;
  --accent: #2456d6; --accent-ink: #ffffff; --inv-bg: #26251e; --inv-surface: #313029; --inv-ink: #dfdedb; --inv-muted: #a3a29d;
  --display: "IBM Plex Sans", system-ui, sans-serif; --monof: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --gut: 80px; --nav: 72px; --padt: 120px; --padb: 64px; --col-gap: 24px;
  --h1: clamp(40px, 1.143vw + 35.54px, 52px); --h2: clamp(30px, 2.5vw + 12px, 48px); --h3: 22px; --lead: 20px;
  --brand: #2456d6; --ink: var(--ink-p); --muted: var(--muted-p); --card: var(--card-bg); --line: var(--line-p);
  background: var(--bg); color: var(--ink-p); font-family: var(--display); color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  .pub { --bg: #1e1d19; --surface: #26251f; --panel: #2c2b25; --card-bg: #2a2924; --ink-p: #e9e7e0; --muted-p: #aeaca4; --line-p: #3a3932;
    --accent: #7ea2ff; --accent-ink: #13161f; --inv-bg: #0f0f0d; --inv-surface: #1b1b18; --brand: #7ea2ff; color-scheme: dark; }
}
@media (max-width: 1023px) { .pub { --gut: 48px; --padt: 112px; } }
@media (max-width: 639px) { .pub { --gut: 24px; --padt: 96px; --padb: 48px; --col-gap: 12px; --nav: 64px; } }
.pub h1, .pub h2, .pub h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.025em; }
.pub .mono, .pub .money, .pub code { font-family: var(--monof); }
.pub a { color: var(--accent); }
html:has(body.pub) { scroll-padding-top: 0; scroll-behavior: auto; }

/* grid + edges */
.pub .wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; max-width: none; padding: 0; }
.pub .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-12 { grid-column: 1 / -1; }
.span-6.start-4 { grid-column: 4 / span 6; } .span-3.start-10 { grid-column: 10 / span 3; } .span-7.start-6 { grid-column: 6 / span 7; } .span-6.start-7 { grid-column: 7 / span 6; } .span-5.start-8 { grid-column: 8 / span 5; }

/* header */
.pnav { position: fixed; inset: 0 0 auto 0; height: var(--nav); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.pnav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.pnav .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-p); text-decoration: none; font-size: 17px; font-weight: 500; margin-right: auto; }
.pnav .brand b { font-weight: 600; }
.pnav nav { display: flex; gap: 4px; }
.pnav nav a { color: var(--ink-p); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-size: 15px; position: relative; }
.pnav nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.pnav nav a:hover::after, .pnav nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 639px) { .pnav nav a.hide-s { display: none; } .pnav .wrap { gap: 8px; } .pnav .brand span { display: none; } }

/* buttons: one primary, one secondary; step on hover, press on click */
.pub .btn { border-radius: 10px; font-family: var(--display); font-weight: 500; min-height: 48px; padding: 0 22px; transition: transform .15s ease, background-color .15s, box-shadow .15s, border-color .15s; }
.pub .btn:hover { transform: translateY(-1px); }
.pub .btn:active { transform: translateY(0) scale(.98); }
.pub .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.pub .btn.primary:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent); filter: none; }
.pub .btn.second { background: transparent; border: 1px solid color-mix(in srgb, var(--ink-p) 30%, transparent); color: var(--ink-p); }
.pub .btn.second:hover { border-color: var(--ink-p); }

/* sections: exactly one or two screens at desktop */
.pub main > section, .pub footer.closing { box-sizing: border-box; padding: var(--padt) 0 var(--padb); }
@media (min-width: 1024px) and (min-height: 700px) {
  .pub main > section, .pub footer.closing { height: calc(var(--h, 1) * 100svh); overflow: hidden; }
  .pub main > section.flow { height: auto; min-height: 100svh; overflow: visible; }
}
@media (max-width: 1023px), (max-height: 699px) { .pub main > section, .pub footer.closing { min-height: 100svh; } }
.pub section h2 { font-size: var(--h2); line-height: 1.08; margin: 0 0 14px; max-width: 20ch; }
.pub .intro { font-size: 18px; color: var(--muted-p); max-width: 56ch; margin: 0 0 40px; line-height: 1.5; }
.pub .inv { background: var(--inv-bg); color: var(--inv-ink); --muted-p: var(--inv-muted); }
.pub .inv h2 { color: var(--inv-ink); }
.pub .alt { background: var(--panel); }

/* hero: triptych */
.hero3 { padding-top: calc(var(--nav) + 48px) !important; padding-bottom: 64px !important; }
.hero3 .grid { height: 100%; align-items: center; }
.hero3 h1 { font-size: var(--h1); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
.hero3 .lead { font-size: 16px; line-height: 24px; color: var(--muted-p); margin: 16px 0 0; max-width: 30ch; }
.hero3 .fact { margin: 20px 0 0; font-family: var(--monof); font-size: 14px; color: var(--ink-p); display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--line-p); border-radius: 8px; background: var(--card-bg); }
.hero3 .cta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.hero3 .cta .btn.primary { height: 64px; padding-inline: 28px; font-size: 20px; }
.hero3 .cta .pay-row { justify-content: flex-end; }
.collage { position: relative; height: min(716px, calc(100svh - var(--nav) - 112px)); border-radius: 18px; background: var(--surface); overflow: hidden; }
.collage .set { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.collage .set.on { opacity: 1; }
.piece { position: absolute; background: var(--card-bg); color: var(--ink-p); border-radius: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 18px 40px rgb(38 37 30 / .14); padding: 16px 18px; font-size: 14px; }
.collage .pause { position: absolute; right: 14px; bottom: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink-p); color: var(--bg); display: grid; place-items: center; cursor: pointer; }
@media (max-width: 1023px) {
  .hero3 .grid { align-content: start; row-gap: 22px; height: auto; }
  .hero3 .head { grid-column: 1 / -1; }
  .hero3 .cta { grid-column: 1 / -1; align-items: flex-start; grid-row: 2; }
  .hero3 .cta .pay-row { justify-content: flex-start; }
  .hero3 .collage-col { grid-column: 1 / -1; grid-row: 3; }
  .collage { height: 440px; }
}
@media (max-width: 639px) {
  .hero3 .cta .btn.primary { width: 100%; height: 56px; font-size: 17px; }
  .collage { height: 380px; }
  .collage .set:not(:first-child) { display: none; }
  .collage .set:first-child { opacity: 1; }
  .collage .pause { display: none; }
}

/* fragments inside pieces and cards */
.frag-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ptile { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px; flex: none; }
.frag-eyebrow { font-size: 12px; color: var(--muted-p); margin: 0; }
.frag-title { font-size: 16px; font-weight: 500; margin: 0; }
.frag-price { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0 8px; }
.frag-price small { font-size: 14px; font-weight: 400; color: var(--muted-p); }
.frag-note { background: var(--panel); border-radius: 10px; padding: 9px 11px; font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
.frag-btn { display: block; text-align: center; border-radius: 9px; padding: 10px; font-size: 14px; font-weight: 500; color: #fff; }
.frag-lines { font-family: var(--monof); font-size: 12.5px; display: grid; gap: 7px; }
.frag-lines div { display: flex; justify-content: space-between; gap: 10px; }
.frag-lines .m { color: var(--muted-p); }
.frag-lines hr { border: 0; border-top: 1px dashed var(--line-p); margin: 2px 0; }
.frag-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-p); font-size: 12.5px; background: var(--card-bg); }
.frag-chip.on { border: 2px solid var(--accent); padding: 0 10px; }
.frag-pill { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #e3efe8; color: #0b5a41; }
.frag-pill.warn { background: #fbe9cf; color: #7a4b00; }
.tear-s { height: 10px; background: radial-gradient(circle at 7px 10px, var(--surface) 5px, var(--card-bg) 5.5px) 0 0 / 14px 10px repeat-x; margin: 0 -18px -16px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-chip { height: 34px; padding: 0 10px; border-radius: 8px; background: #fff; border: 1px solid #e3e1db; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #26251e; }
.pay-chip img { height: 16px; width: auto; display: block; }
.pay-chip img.sq { height: 20px; }

/* cards (one family) */
.cards { display: grid; gap: var(--col-gap); }
.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard { background: var(--card-bg); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; color: var(--ink-p); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; border: 1px solid transparent; }
a.pcard:hover, .pcard.link:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(38 37 30 / .12); }
.pcard h3 { font-size: var(--h3); margin: 0; line-height: 1.2; }
.pcard p { margin: 0; color: var(--muted-p); font-size: 15px; line-height: 1.55; }
.pcard .visual { background: var(--panel); border-radius: 12px; padding: 16px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.inv .pcard { background: var(--inv-surface); color: var(--inv-ink); }
.inv .pcard .visual { background: #3a3931; }
.inv .pcard .visual .piece-like { background: #f7f6f3; color: #26251e; border-radius: 10px; padding: 12px; }
.prod-head { display: flex; align-items: center; gap: 14px; }
.prod-head .plat { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-p); }
.prod-head .plat img { width: 18px; height: 18px; }
.plan-rows { list-style: none; margin: 0; padding: 0; font-family: var(--monof); font-size: 14px; }
.plan-rows li { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-p); }
.plan-rows li:first-child { border-top: 0; }
.from { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 0; color: var(--ink-p) !important; }
.from small { font-size: 15px; font-weight: 400; color: var(--muted-p); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent); margin-top: auto; }
.arrow-link .ic { transition: transform .2s ease; }
a.pcard:hover .arrow-link .ic { transform: translateX(3px); }

/* pricing */
.plan-grid { display: grid; gap: var(--col-gap); grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.plan { background: var(--card-bg); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(38 37 30 / .12); }
.plan h3 { font-size: 20px; margin: 0; }
.plan .amount { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan .amount small { font-size: 15px; font-weight: 400; color: var(--muted-p); letter-spacing: 0; }
.plan .terms { font-size: 14px; color: var(--muted-p); margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li .ic { color: #0b7a55; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.prod-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.prod-bar h2 { margin: 0; }
.prod-bar .sub-t { color: var(--muted-p); font-size: 16px; margin: 0; flex-basis: 100%; }
.jump { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 34px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card-bg); color: var(--ink-p); text-decoration: none; font-size: 14px; transition: transform .15s ease; }
.jump a:hover { transform: translateY(-1px); }

/* policies */
.legal { padding-top: calc(var(--nav) + 64px) !important; }
.legal .side h1 { font-size: clamp(34px, 2.6vw + 10px, 48px); line-height: 1.08; margin: 0 0 12px; }
.legal .side .upd { color: var(--muted-p); font-size: 14px; margin: 0 0 28px; }
.legal .side nav { display: grid; gap: 2px; }
.legal .side nav a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-p); color: var(--ink-p); text-decoration: none; }
.legal .side nav a[aria-current="page"] { font-weight: 600; }
.legal .side nav a:hover .ic { transform: translateX(3px); }
.legal .side nav .ic { transition: transform .2s ease; color: var(--muted-p); }
.legal .side .seller { margin-top: 28px; font-size: 14px; color: var(--muted-p); line-height: 1.6; }
.legal article { background: var(--card-bg); border-radius: 18px; padding: 44px 48px; font-size: 17px; line-height: 1.7; }
.legal article p { margin: 0 0 18px; max-width: 64ch; }
.legal article p b { font-weight: 600; display: block; margin-bottom: 2px; }
.legal article p:last-child { margin-bottom: 0; }
@media (max-width: 1023px) { .legal .side, .legal article { grid-column: 1 / -1; } .legal article { margin-top: 28px; padding: 28px 24px; } }

/* account */
.acct .card-form { background: var(--card-bg); border-radius: 18px; padding: 32px; }
.acct .card-form h1 { font-size: 34px; margin: 0 0 8px; }
.acct .what { display: grid; gap: 14px; }
.acct .what .row-it { display: flex; gap: 14px; align-items: flex-start; background: var(--card-bg); border-radius: 14px; padding: 18px; }
.acct .what .row-it .ic { color: var(--accent); flex: none; margin-top: 2px; }
.acct .what h3 { font-size: 17px; margin: 0 0 4px; }
.acct .what p { margin: 0; color: var(--muted-p); font-size: 15px; }
.acct .tiles { margin: 18px 0 0; }
.acct .tile { background: var(--card-bg); border-color: var(--line-p); }

/* closing footer */
.closing { background: var(--inv-bg); color: var(--inv-ink); display: flex; }
.closing > .wrap { display: grid; grid-template-rows: 1fr auto; gap: 48px; }
.closing .close h2 { color: var(--inv-ink); font-size: var(--h2); max-width: 18ch; margin: 0 0 14px; }
.closing .close p { color: var(--inv-muted); font-size: 18px; max-width: 46ch; margin: 0 0 28px; }
.closing .close .btn.primary { background: var(--inv-ink); border-color: var(--inv-ink); color: var(--inv-bg); }
.closing .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); padding-top: 32px; border-top: 1px solid #3d3c35; }
.closing .cols h4 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--inv-muted); }
.closing .cols a { display: block; color: var(--inv-ink); text-decoration: none; padding: 5px 0; font-size: 15px; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.closing .cols a:hover { background-size: 100% 1px; }
.closing .cols p { margin: 0; color: var(--inv-muted); font-size: 14px; line-height: 1.6; }
.closing .legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--inv-muted); font-size: 13px; padding-top: 22px; }
@media (max-width: 1023px) { .closing .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

/* stacking */
@media (max-width: 1023px) {
  .cards.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub .grid > [class*="span-"] { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .cards.c2, .cards.c4, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .closing .cols { grid-template-columns: minmax(0, 1fr); }
  .pcard, .plan { padding: 22px; }
  .pub .btn { width: 100%; }
  .pnav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { .pub * { transition: none !important; } .collage .set { transition: none; } }
.pub a.pcard, .pub a.pcard:hover { color: var(--ink-p); }
.pub a.pcard h3 { color: var(--ink-p); }
.pub .pcard .visual { min-height: 128px; }
.pub .plan-rows { color: var(--ink-p); }
/* collage pieces read at a glance */
.collage .piece { font-size: 15px; padding: 20px 22px; }
.collage .frag-title { font-size: 17px; }
.collage .frag-price { font-size: 38px; }
.collage .frag-note { font-size: 14px; }
.collage .frag-lines { font-size: 14px; gap: 9px; }
.collage .frag-btn { padding: 12px; font-size: 15px; }
.collage .pay-chip { height: 40px; padding: 0 12px; }
.collage .pay-chip img { height: 18px; }
.collage .pay-chip img.sq { height: 24px; }
.collage .frag-chip { min-height: 34px; font-size: 14px; }
.collage .tear-s { margin: 0 -22px -20px; }
.pub .plat img { width: 18px; height: 18px; }
.prod-bar .plat { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted-p); margin-left: 6px; }
@media (max-width: 639px) {
  .collage { height: auto; padding: 14px; }
  .collage .set:first-child { position: static; display: grid; gap: 12px; }
  .collage .piece { position: static; width: auto !important; }
  .collage .set:first-child .piece:nth-child(n+3) { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) { .collage { height: 620px; } }
.pub a.tile, .pub a.tile:hover { color: var(--ink-p); }
