/* PPA HOME Gate Plan: the Homelyn kit rebuilt for gate automation. A near-black page (#101010) with violet accents, light
   regular-weight Space Grotesk headings, thin violet outlined pills with an arrow for every action, image frames with a notched
   corner, a HUD frame with angled notches around the planner showcase, segmented progress bars, vertical letters beside
   pictures, a tile row with one violet card and a rounded dark footer bar. Plus Jakarta Sans for text. */
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-Variable.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #101010; --bg2: #171717; --bg3: #1f1f22; --card: #1a1a1d; --wh: #f4f4f6; --mute: #a5a5ad; --faint: #6f6f78; --line: rgba(255, 255, 255, .14); --line2: rgba(255, 255, 255, .32);
  --vi: #3c1458; --vi2: #5b2386; --vi3: #b48ae6; --peri: #9dacff; --cream: #fbf0cb; --lime: #e3f59b; --warn: #ff9d8a; --ok: #9be3b8;
  --head: "Space Grotesk", "Segoe UI", system-ui, sans-serif; --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 44px); --ease: cubic-bezier(.2, .7, .2, 1); --r: 22px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--wh); font: 400 16px/1.65 var(--sans); overflow-wrap: break-word; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--wh); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, .h3 { margin: 0 0 .5em; font-family: var(--head); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 5.6vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; }
h3, .h3 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; font-weight: 500; }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: #d6d6dc; max-width: 62ch; }
.small { font-size: 14px; color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mail { overflow-wrap: anywhere; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); position: relative; }
.wrap.narrow { max-width: 860px; }
.wrap > *, .two > *, .grid > *, .pl > *, .pl-main > *, .pl-side > *, .panel > *, .tiles > *, .hero-grid > *, .split > *, .feat > *, .stat > *, .cta-box > * { min-width: 0; }
.sec { padding: clamp(56px, 8vw, 110px) 0; position: relative; overflow-x: clip; }
.sec.tight { padding: clamp(24px, 4vw, 52px) 0; }
.ic { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 80; background: var(--wh); color: var(--bg); padding: 12px 18px; border-radius: 12px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--vi3); outline-offset: 3px; }
.kicker { font: 600 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
html:not(.js) .js-only { display: none; }

/* buttons: the kit's thin violet outlined pills with a small arrow; .solid fills them */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 14px 10px 20px; border: 1.5px solid var(--vi3); border-radius: 999px; background: transparent;
  color: var(--wh); text-decoration: none; font: 600 14px/1.2 var(--sans); cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease); }
.btn .ar { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line2); transition: transform .3s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--vi); border-color: var(--vi3); }
.btn:hover .ar { transform: rotate(-45deg); }
.btn.solid { background: var(--vi2); border-color: var(--vi2); }
.btn.solid:hover, .btn.solid:focus-visible { background: var(--vi); }
.btn.ghost { border-color: var(--line2); }
.btn.wide { width: 100%; justify-content: space-between; }
.circle { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #000; border: 1px solid var(--line2); color: var(--wh); text-decoration: none; transition: transform .3s var(--ease), background .3s; }
.circle:hover, .circle:focus-visible { transform: rotate(-45deg); background: var(--vi); }

/* header: a row of small outlined pills, as in the kit */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(16, 16, 16, .86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hd.scrolled { border-color: var(--line); }
.hd-in { max-width: 1240px; margin: 0 auto; padding: 12px var(--gut); display: flex; align-items: center; gap: 14px; }
.brand { font: 600 19px/1 var(--head); letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.hd-nav { display: flex; gap: 8px; margin-left: 18px; }
.hd-nav a { padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--mute); transition: color .2s, border-color .2s; }
.hd-nav a:hover, .hd-nav a[aria-current="page"] { color: var(--wh); border-color: var(--vi3); }
.hd-act { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hd-cta { padding: 9px 16px; border-radius: 999px; background: #3a3a40; text-decoration: none; font-size: 14px; white-space: nowrap; }
.hd-cta:hover { background: var(--vi2); }
.mm { position: relative; }
.mm summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); }
.mm summary::-webkit-details-marker { display: none; }
.mm-panel { position: absolute; right: 0; top: 54px; width: min(92vw, 720px); background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.mm-panel a { display: block; padding: 6px 0; color: var(--mute); text-decoration: none; }
.mm-panel a:hover, .mm-panel a[aria-current="page"] { color: var(--wh); }
.mm-h { font: 600 12px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--vi3); margin: 0 0 6px; }
@media (max-width: 980px) { .hd-nav { display: none; } }
@media (max-width: 520px) { .hd-cta { display: none; } }

/* the kit's notched picture frame: a rounded rectangle whose bottom-right corner steps in diagonally */
.notch { position: relative; border-radius: var(--r); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 72%, 84% 72%, 72% 100%, 0 100%); background: var(--bg3); }
.notch img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.notch:hover img { transform: scale(1.04); }
.notch.tl { clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%, 0 26%, 16% 26%); }
.notch.top { clip-path: polygon(0 0, 60% 0, 66% 8%, 100% 8%, 100% 100%, 0 100%); }
.tab-top { position: relative; padding-top: 10px; }
.tab-top::before { content: ""; position: absolute; top: 0; right: 12%; width: 30%; height: 20px; background: var(--vi); border-radius: 10px 10px 0 0; }

/* segmented progress bar and vertical letters */
.seg { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line2); border-radius: 4px; }
.seg i { width: 7px; height: 14px; background: #d9d9de; }
.seg i.off { background: transparent; border: 1px solid var(--line); }
.vert { writing-mode: vertical-rl; text-orientation: upright; font: 600 13px/1 var(--head); letter-spacing: .3em; color: var(--mute); }

/* hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.hero h1 { max-width: 13ch; }
.hero .lead { max-width: 40ch; }
.hero-pics { display: grid; grid-template-columns: 1fr .62fr; gap: 14px; align-items: end; }
.hero-pics .big { aspect-ratio: 4 / 4.4; }
.hero-pics .side { display: grid; gap: 14px; }
.hero-pics .side .notch { aspect-ratio: 1; }
.hero-row { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hero-mini { display: grid; grid-template-columns: repeat(2, 120px); gap: 10px; margin-top: 28px; }
.hero-mini .notch { aspect-ratio: 1.4; border-radius: 14px; clip-path: none; }
.hero-mini p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; color: var(--mute); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-pics { grid-template-columns: 1fr; } .hero-pics .side { grid-template-columns: 1fr 1fr; } }

/* numbered feature list beside a picture */
.feat { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feat ol { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.feat li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; gap: 10px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.feat li::before { content: counter(f, decimal-leading-zero); font: 500 14px/1 var(--head); color: var(--vi3); width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 50%; display: grid; place-items: center; }
.feat li b { display: block; font: 500 19px/1.3 var(--head); }
.feat li span { color: var(--mute); font-size: 15px; }
.feat .notch { aspect-ratio: 16 / 11; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; } }

/* the HUD frame: a large picture in a thin outline with angled notches along its top edge and a round button in the middle */
.hud { background: var(--bg2); border-radius: 30px; padding: clamp(14px, 2vw, 22px); }
.hud-frame { position: relative; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 26px; padding: 12px; clip-path: polygon(0 0, 22% 0, 25% 18px, 70% 18px, 73% 0, 100% 0, 100% 100%, 0 100%); }
.hud-frame .pic { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 7.5; background: var(--bg3); }
.hud-frame .pic img { width: 100%; height: 100%; object-fit: cover; }
.hud-frame .circle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; font-size: 13px; text-align: center; line-height: 1.1; }
.hud-frame .circle:hover { transform: translate(-50%, -50%) rotate(-6deg); }
.hud-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; padding: 18px 8px 4px; }
.hud-foot p { margin: 0; color: var(--mute); font-size: 14px; }
.hud-foot h3 { margin: 4px 0 0; }
@media (max-width: 700px) { .hud-foot { grid-template-columns: 1fr; } .hud-frame .pic { aspect-ratio: 4 / 3; } }

/* gate type tiles: a row of dark tiles with one violet card */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile a { display: flex; flex-direction: column; height: 100%; min-height: 230px; padding: 16px; background: var(--card); border-radius: 18px; text-decoration: none; transition: background .3s var(--ease), transform .3s var(--ease); }
.tile a:hover { transform: translateY(-4px); background: #26262b; }
.tile.on a { background: var(--vi); }
.tile .ti { width: 100%; aspect-ratio: 1.3; border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.tile .ti img { width: 100%; height: 100%; object-fit: cover; }
.tile b { font: 500 17px/1.25 var(--head); }
.tile span { color: var(--mute); font-size: 13.5px; margin-top: 6px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile a { min-height: 0; } }

/* stat card with progress bars */
.stat { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.stat-card, .bars { background: var(--card); border-radius: 22px; padding: 22px; }
.stat-card .big { font: 400 clamp(44px, 5vw, 64px)/1 var(--head); }
.stat-card .big small { font-size: .4em; color: var(--mute); }
.bars .row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin-bottom: 14px; font-size: 14px; }
.bars .row .tr { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #2e2e33; overflow: hidden; }
.bars .row .tr i { display: block; height: 100%; border-radius: 3px; background: var(--wh); transform-origin: left; }
.bars .row.near .tr i { background: #f7a24b; }
html.js .bars [data-reveal] .tr i, html.js .bars[data-reveal] .tr i { transform: scaleX(0); transition: transform 1.1s var(--ease) .2s; }
html.js .bars[data-reveal].in .tr i { transform: scaleX(1); }
@media (max-width: 760px) { .stat { grid-template-columns: 1fr; } }

/* page head */
.ph { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.ph-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px); align-items: end; }
.ph:not(.ph-pic-on) .ph-grid { grid-template-columns: 1fr; }
.ph-pic .notch { aspect-ratio: 4 / 3; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--mute); }
@media (max-width: 860px) { .ph-grid { grid-template-columns: 1fr; } }

/* tables */
.tbl { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
caption { text-align: left; padding: 14px 16px 6px; font: 500 16px/1.3 var(--head); }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.grp th { background: #19191c; color: var(--vi3); font-weight: 600; }
tr.tot th, tr.tot td { font-weight: 700; background: #18181b; }
tbody tr:hover td, tbody tr:hover th { background: rgba(180, 138, 230, .05); }
@media (max-width: 640px) {
  .tbl.stack table, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td, .tbl.stack th { display: block; width: 100%; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl.stack td, .tbl.stack th { border: 0; padding: 4px 16px; white-space: normal; text-align: left; }
  .tbl.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--faint); font-size: 12.5px; }
}

/* cards, chips, notes */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { background: var(--card); border-radius: 22px; padding: 20px; }
.card.vi { background: var(--vi); }
.card h3 { margin-top: 0; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--mute); margin: 0 6px 6px 0; }
.chip.good { border-color: var(--ok); color: var(--ok); }
.chip.near { border-color: #f7a24b; color: #f7a24b; }
.chip.confirm { border-color: var(--wh); color: var(--wh); }
.chip.no { border-color: var(--warn); color: var(--warn); }
.note { border-left: 3px solid var(--vi3); padding: 10px 16px; background: #161619; border-radius: 0 14px 14px 0; color: #d0d0d6; font-size: 15px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 56px); align-items: start; }
.split.rev { grid-template-columns: 1.1fr .9fr; }
.split .notch { aspect-ratio: 4 / 3.2; }
.side-v { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
@media (max-width: 860px) { .split, .split.rev, .two { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border-radius: 20px; padding: 18px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 34px/1 var(--head); color: var(--vi3); margin-bottom: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font: 500 18px/1.35 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--vi3); font-size: 22px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--mute); }

/* CTA collage and the 404 */
.cta-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; background: var(--bg2); border-radius: 30px; padding: clamp(20px, 4vw, 44px); }
.cta-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-pics .notch { aspect-ratio: 1.1; }
@media (max-width: 760px) { .cta-box { grid-template-columns: 1fr; } }
.nf { padding: clamp(40px, 8vw, 120px) 0; }

/* the planner */
.pl { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; align-items: start; }
.pl-main, .pl-side { display: grid; gap: 14px; }
.pl-side { position: sticky; top: 84px; }
.panel { background: var(--card); border-radius: 22px; padding: 18px; }
.panel h2, .panel h3 { margin-top: 0; }
.field { display: grid; gap: 6px; margin: 0 0 12px; }
.field label, .lbl { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line2); background: #121214; color: var(--wh); }
.field textarea { min-height: 90px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.opt { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; cursor: pointer; font-size: 14px; }
.opt[aria-pressed="true"] { background: var(--vi2); border-color: var(--vi3); }
.gates-list { display: grid; gap: 10px; }
.gcard { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 18px; background: #141416; border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; }
.gcard[aria-current="true"] { border-color: var(--vi3); background: #1d1622; }
.gcard img { width: 64px; height: 50px; object-fit: cover; border-radius: 10px; }
.gcard b { display: block; font: 500 16px/1.25 var(--head); }
.gcard span { color: var(--mute); font-size: 13px; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #141416; margin-bottom: 8px; cursor: pointer; text-align: left; width: 100%; }
.mrow[aria-pressed="true"] { border-color: var(--vi3); background: #221a2b; }
.mrow b { font: 500 16px/1.3 var(--head); }
.mrow .meta { grid-column: 1 / -1; color: var(--mute); font-size: 13px; }
.xrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xrow .why { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.qty output { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: none; width: 66px; padding: 8px 0; border-radius: 14px; border: 1px solid var(--line2); background: transparent; text-align: center; cursor: pointer; line-height: 1.2; }
.day b { display: block; font: 500 20px/1.1 var(--head); }
.day[aria-pressed="true"] { background: var(--lime); color: #151a2c; border-color: var(--lime); }
.total { font: 400 clamp(30px, 3vw, 42px)/1.05 var(--head); }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.issues li { padding: 8px 12px; border-radius: 12px; background: #161619; }
.issues li.block { background: rgba(255, 157, 138, .12); color: #ffd2c9; }
.saved { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.saved li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 12px; background: #141416; font-size: 14px; }
.textout { white-space: pre-wrap; font: 400 13px/1.55 var(--sans); background: #0c0c0d; border: 1px solid var(--line); border-radius: 14px; padding: 12px; max-height: 340px; overflow: auto; }
.status { color: var(--peri); font-size: 14px; min-height: 1.4em; }
@media (max-width: 980px) { .pl { grid-template-columns: 1fr; } .pl-side { position: static; } }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* privacy: an index and sections whose layout rotates */
.pwrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.pidx { position: sticky; top: 84px; }
.pidx ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.pidx a { color: var(--mute); text-decoration: none; display: flex; gap: 10px; padding: 4px 0; }
.pidx a span { color: var(--vi3); font-family: var(--head); }
.plist { display: grid; gap: 22px; }
.policy-section { display: grid; gap: 18px; align-items: start; scroll-margin-top: 90px; }
.policy-section .ps-no { font: 400 34px/1 var(--head); color: var(--vi3); margin: 0 0 6px; }
.policy-section h2 { font-size: clamp(22px, 2.2vw, 30px); }
.policy-section p { color: #d0d0d6; }
.policy-section[data-layout="notch"] { grid-template-columns: .8fr 1.2fr; }
.policy-section[data-layout="notch"] .ps-pic { aspect-ratio: 4 / 3; }
.policy-section[data-layout="card"] { background: var(--card); border-radius: 24px; padding: 20px; grid-template-columns: 1.2fr .8fr; }
.policy-section[data-layout="card"] .ps-pic { order: 2; border-radius: 16px; overflow: hidden; }
.policy-section[data-layout="band"] { grid-template-columns: 1fr; }
.policy-section[data-layout="band"] .ps-pic { aspect-ratio: 21 / 7; border-radius: 22px; overflow: hidden; }
.policy-section[data-layout="vio"] { background: var(--vi); border-radius: 24px; padding: 20px; grid-template-columns: 140px 1fr; }
.policy-section[data-layout="vio"] .ps-pic { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.policy-section[data-layout="hud"] { border: 1.5px solid var(--line2); border-radius: 24px; padding: 18px; grid-template-columns: 1fr 1fr; }
.policy-section[data-layout="hud"] .ps-pic { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.policy-section .ps-pic img { width: 100%; height: 100%; object-fit: cover; }
.webnote { background: var(--card); border-radius: 22px; padding: 20px; }
@media (max-width: 860px) {
  .pwrap { grid-template-columns: 1fr; } .pidx { position: static; }
  .policy-section[data-layout] { grid-template-columns: 1fr; }
  .policy-section[data-layout="card"] .ps-pic { order: 0; }
  .policy-section[data-layout="vio"] .ps-pic { width: 120px; }
}

/* footer: links in columns and the kit's rounded dark bar */
.ft { padding: clamp(40px, 6vw, 80px) 0 30px; border-top: 1px solid var(--line); margin-top: 40px; }
.ft-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.ft-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; margin-bottom: 28px; }
.ft-line { font: 400 clamp(26px, 3vw, 40px)/1.1 var(--head); max-width: 18ch; margin: 0; }
.ft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-bottom: 26px; }
.ft-cols a { display: block; color: var(--mute); text-decoration: none; padding: 3px 0; font-size: 14.5px; }
.ft-cols a:hover { color: var(--wh); }
.fh { font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--vi3); margin: 0 0 8px; }
.ft-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; padding: 16px 20px; border-radius: 22px; background: var(--bg2); margin-bottom: 18px; }
.ft-bar a { color: var(--wh); text-decoration: none; font-size: 14.5px; }
.ft-contact { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 16px; font-size: 14.5px; }
.ft-contact a, .ft-contact span { display: inline-flex; gap: 8px; align-items: center; color: var(--mute); text-decoration: none; }
.ft-legal { font-size: 13px; color: var(--faint); display: grid; gap: 6px; }
.ft-legal a { color: var(--mute); }

/* motion: reveals and hover lifts, off for reduced motion; without JavaScript everything is visible */
html.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
html.js [data-reveal].in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  html.js [data-reveal] { opacity: 1; translate: none; }
  html.js .bars[data-reveal] .tr i { transform: none; }
}
