/* Aguinal-DUE website. Palette and type mirror lib/theme/theme.dart. */

@font-face { font-family: "Merriweather"; src: url("../fonts/Merriweather-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../fonts/Merriweather-Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Kaushan Script"; src: url("../fonts/KaushanScript-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("../fonts/Kalam-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f9f3e6;
  --surface: #fffcf5;
  --surface-alt: #f4eedf;
  --border: #ede4d1;
  --ink: #0b3325;
  --ink-soft: #3f4b47;
  --muted: #6b7471;
  --faint: #a9aea8;
  --green: #0b4a37;
  --green-dark: #063526;
  --green-mid: #187c4b;
  --green-bright: #2e9e66;
  --green-soft: #e3f0dd;
  --green-tint: #eff6e8;
  --red: #c8232b;
  --red-soft: #fbdad5;
  --red-tint: #feeee7;
  --gold: #e09a2a;
  --gold-bright: #f6b92b;
  --gold-soft: #fce6a6;
  --gold-tint: #fdf2d4;
  --purple: #7b5cc9;
  --purple-soft: #ede6fa;
  --blue: #2f7fd0;
  --blue-soft: #ddebfa;

  --serif: "Merriweather", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
  --hand: "Kalam", "Comic Sans MS", cursive;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 1px 2px rgba(11, 51, 37, .06), 0 2px 8px rgba(11, 51, 37, .05);
  --shadow: 0 2px 4px rgba(11, 51, 37, .05), 0 12px 32px -8px rgba(11, 51, 37, .16);
  --shadow-lg: 0 4px 10px rgba(11, 51, 37, .06), 0 30px 70px -20px rgba(11, 51, 37, .35);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
.nowrap { white-space: nowrap; }
a { color: var(--green-mid); text-underline-offset: 3px; }
a:hover { color: var(--green); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 900; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.script { font-family: var(--script); font-weight: 400; color: var(--red); letter-spacing: 0; }
.hand { font-family: var(--hand); font-weight: 700; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 0 var(--green-dark), 0 14px 28px -10px rgba(6, 53, 38, .6); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 0 var(--green-dark), 0 18px 30px -10px rgba(6, 53, 38, .6); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--green-dark), 0 6px 14px -6px rgba(6, 53, 38, .6); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 0 #8e141a, 0 14px 28px -10px rgba(142, 20, 26, .6); }
.btn-red:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--green-mid); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 22px 8px 16px;
  border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .2s var(--spring), box-shadow .2s;
  box-shadow: 0 10px 24px -12px rgba(11, 51, 37, .7);
}
.store:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 28px -12px rgba(11, 51, 37, .7); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .7rem; opacity: .75; letter-spacing: .04em; line-height: 1.1; text-transform: uppercase; font-weight: 600; }
.store strong { display: block; font-size: 1.15rem; line-height: 1.1; font-weight: 700; }
.store[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border: 1.5px dashed var(--faint); box-shadow: none; cursor: default; }
.store[aria-disabled="true"]:hover { transform: none; color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(11, 51, 37, .5); }
.nav { display: flex; align-items: center; gap: 20px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img.mark { width: 42px; height: 42px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand img.word { height: 36px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 700; font-size: .98rem; text-decoration: none; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface-alt); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.role-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border);
}
.role-toggle button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .85rem; cursor: pointer; color: var(--muted);
  transition: background .25s var(--ease), color .25s;
}
.role-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--green); box-shadow: var(--shadow-sm); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease), background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px var(--gutter) 24px; gap: 2px;
    box-shadow: 0 20px 30px -20px rgba(11, 51, 37, .4);
  }
  .menu-open .nav-links a { padding: 14px 12px; font-size: 1.1rem; }
}
@media (max-width: 420px) { .brand img.word { height: 30px; } .role-toggle button { padding: 6px 9px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 110px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(246, 185, 43, .28), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(closest-side, rgba(24, 124, 75, .14), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .script { display: block; font-size: .5em; white-space: nowrap; line-height: 1.2; transform: rotate(-3deg); transform-origin: left; margin-bottom: .1em; }
.hero h1 .due { position: relative; white-space: nowrap; }
.hero h1 .due::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em; z-index: -1;
  background: var(--gold-bright); border-radius: 4px; transform: skew(-12deg) scaleX(0); transform-origin: left;
  animation: marker 1s .6s var(--ease) forwards;
}
@keyframes marker { to { transform: skew(-12deg) scaleX(1); } }
.hero .lede { margin-bottom: 28px; }
.countdown-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; margin-bottom: 22px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: .95rem; color: var(--ink-soft);
}
.countdown-pill b { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-note { margin-top: 18px; font-size: .95rem; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 18px; height: 18px; color: var(--green-mid); }

.hero-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.hero-stage .sticker { position: absolute; z-index: 3; filter: drop-shadow(0 12px 16px rgba(11, 51, 37, .22)); will-change: transform; }
.st-parol { width: 128px; top: -2%; right: 4%; animation: sway 6s ease-in-out infinite; transform-origin: top center; }
.st-envelope { width: 150px; bottom: 16%; left: -4%; animation: bob 5s ease-in-out infinite; }
.st-coin { width: 76px; top: 18%; left: 2%; animation: bob 4s ease-in-out -1s infinite; }
.st-paid { width: 190px; bottom: 4%; right: -2%; animation: stampIn .7s 1.2s var(--spring) both; }
.st-santa { width: 92px; top: 46%; right: -4%; animation: bob 5.5s ease-in-out -2s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes stampIn { 0% { opacity: 0; transform: scale(2.4) rotate(-20deg); } 100% { opacity: 1; transform: scale(1) rotate(-12deg); } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero h1 .script { transform-origin: center; }
  .store-badges, .hero-note { justify-content: center; }
  .hero-stage { min-height: 560px; margin-top: 8px; }
}
@media (max-width: 520px) {
  .hero-stage { min-height: 500px; }
  .st-parol { width: 92px; right: 0; }
  .st-envelope { width: 92px; left: -12px; bottom: -3%; }
  .st-coin { width: 56px; left: 0; }
  .st-paid { width: 140px; right: -8px; }
  .st-santa { width: 66px; right: -8px; }
}

/* ---------- Phone mockup ---------- */
.phone {
  --pw: 300px;
  position: relative; z-index: 2; width: var(--pw);
  border-radius: 46px; padding: 11px; background: #10231c;
  box-shadow: inset 0 0 0 2px #2b3f37, inset 0 0 0 5px #0a1712, var(--shadow-lg);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #0a1712; z-index: 5; }
.phone .screen { position: relative; border-radius: 36px; overflow: hidden; background: var(--bg); }
.phone .shot { width: 100%; height: auto; }
.phone .shot[hidden] { display: none; }
.tilt { transform: perspective(1400px) rotateY(-12deg) rotateX(4deg) rotate(2deg); transition: transform .8s var(--ease); }
.tilt:hover { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) rotate(0); }
@media (max-width: 980px) { .tilt { transform: none; } }
@media (max-width: 360px) { .phone { --pw: 268px; } }

/* Progress bar (envelope checklist demo) */
.ui-bar { height: 7px; border-radius: 99px; background: #e7e4da; overflow: hidden; margin-top: 7px; }
.ui-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-mid), var(--green-bright)); }

/* ---------- Ticker ---------- */
.ticker { background: var(--green); color: var(--gold-soft); overflow: hidden; border-block: 4px solid var(--gold-bright); transform: rotate(-1.2deg); margin: -10px -20px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 22px; padding: 14px 11px; font-family: var(--serif); font-weight: 900; font-size: 1.15rem; white-space: nowrap; }
.ticker span::after { content: "✦"; color: var(--gold-bright); font-size: .9rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { max-width: 760px; margin-inline: auto; }

/* Problem / relatable */
.relate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note-card {
  position: relative; background: var(--surface); border-radius: 6px; padding: 30px 26px 32px;
  box-shadow: var(--shadow); transform: rotate(var(--r, -1.5deg));
  line-height: 32px;
  background-image: repeating-linear-gradient(transparent 0 31px, #ebe1cc 31px 32px);
  background-position: 0 30px;
  transition: transform .4s var(--spring);
}
.note-card:hover { transform: rotate(0) translateY(-6px); }
.note-card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-2deg); background: rgba(246, 185, 43, .55); border-radius: 3px; }
.note-card .hand { font-size: 1.45rem; line-height: 32px; color: var(--ink); display: block; margin-bottom: 0; }
.note-card p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; line-height: 32px; }
.note-card:nth-child(2) { --r: 1.2deg; }
.note-card:nth-child(3) { --r: -.6deg; }
.note-card .strike { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
@media (max-width: 860px) { .relate-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 34px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.step img { width: 96px; height: 80px; object-fit: contain; margin-bottom: 14px; filter: drop-shadow(0 8px 10px rgba(11, 51, 37, .15)); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 20px; right: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-tint); color: #a86b0c; font-family: var(--serif); font-weight: 900;
}
.step h3 { margin-bottom: 4px; }
.step .tl { font-family: var(--script); color: var(--red); font-size: 1.1rem; display: block; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  position: relative; grid-column: span 2; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--spring), box-shadow .3s;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tile.wide { grid-column: span 3; }
.tile.xwide { grid-column: span 4; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
.tile .tag { align-self: flex-start; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 99px; background: var(--green-soft); color: var(--green-mid); margin-bottom: 16px; }
.tile .art { margin-top: auto; padding-top: 22px; }
.tile .corner { position: absolute; right: -14px; bottom: -14px; width: 150px; transform: rotate(-8deg); transition: transform .5s var(--spring); filter: drop-shadow(0 12px 14px rgba(11, 51, 37, .2)); }
.tile:hover .corner { transform: rotate(0) scale(1.06); }
.tile.has-corner { padding-bottom: 130px; }
.tile.green { background: var(--green); border-color: var(--green-dark); color: #fff; }
.tile.green p { color: rgba(255, 255, 255, .82); }
.tile.green .tag { background: rgba(255, 255, 255, .12); color: var(--gold-soft); }
.tile.gold { background: var(--gold-tint); border-color: #f2dfac; }
.tile.gold .tag { background: #fff3cf; color: #a86b0c; }
.tile.red { background: var(--red-tint); border-color: #f6cfc5; }
.tile.red .tag { background: var(--red-soft); color: var(--red); }
@media (max-width: 1020px) { .tile, .tile.wide, .tile.xwide { grid-column: span 3; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.xwide { grid-column: auto; } }

/* Mini UI inside tiles */
.tier-list { display: grid; gap: 8px; }
.tier { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); font-weight: 700; font-size: .98rem; }
.tier .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tier .amt { margin-left: auto; font-family: var(--serif); font-weight: 900; }
.heart-meter { display: grid; gap: 6px; font-size: .98rem; }
.heart-meter div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1.5px dashed rgba(255, 255, 255, .2); }
.heart-meter b { font-family: var(--serif); }
.heart-meter .h b { color: var(--gold-bright); }
.envelope-list { display: grid; gap: 8px; }
.env { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid #f2dfac; font-weight: 700; cursor: pointer; user-select: none; transition: background .2s, border-color .2s; }
.env .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--faint); display: grid; place-items: center; flex: none; transition: all .25s var(--spring); }
.env .box svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.4); transition: all .25s var(--spring); }
.env[aria-checked="true"] { background: var(--green-tint); border-color: #cfe5c8; }
.env[aria-checked="true"] .box { background: var(--green-mid); border-color: var(--green-mid); }
.env[aria-checked="true"] .box svg { opacity: 1; transform: scale(1); }
.env[aria-checked="true"] .nm { text-decoration: line-through; color: var(--muted); }
.env .amt { margin-left: auto; font-family: var(--serif); font-weight: 900; }
.env-progress { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.env-progress .ui-bar { flex: 1; margin: 0; height: 9px; }
.door { display: flex; gap: 10px; flex-wrap: wrap; }
.door span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .95rem; }
.door span i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: .8rem; }
.door span.paid { background: var(--green-tint); border-color: #cfe5c8; color: var(--green-mid); }

.mini-receipts { display: grid; gap: 8px; margin-top: 18px; position: relative; z-index: 1; max-width: 300px; }
.mini-search { padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid #f6cfc5; color: var(--muted); font-size: .92rem; }
.mini-rc { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--surface); font-size: .92rem; font-weight: 700; }
.mini-rc small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.mini-rc b { font-family: var(--serif); color: var(--amount, var(--red)); }

/* Interactive: Bagong Pera */
.pera { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.pera-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.pera-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.pera-row:last-of-type { border-bottom: 0; }
.pera-row label { font-weight: 800; line-height: 1.2; }
.pera-row label small { display: block; font-weight: 600; color: var(--muted); font-size: .85rem; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); }
.stepper button { width: 36px; height: 40px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 800; cursor: pointer; color: var(--green); border-radius: 10px; }
.stepper button:hover { background: var(--surface-alt); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.peso-input { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg); padding-left: 10px; }
.peso-input span { font-weight: 800; color: var(--muted); }
.peso-input input { width: 74px; height: 40px; border: 0; background: transparent; font: inherit; font-weight: 800; padding: 0 8px 0 4px; color: var(--ink); -moz-appearance: textfield; }
.peso-input input::-webkit-outer-spin-button, .peso-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.peso-input:focus-within, .stepper:focus-within { border-color: var(--green-mid); }
.pera-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 18px; border-top: 2px solid var(--ink); }
.pera-total span { font-weight: 800; }
.pera-total b { font-family: var(--serif); font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.pera-out { position: relative; }
.bills { display: grid; gap: 12px; }
.bill {
  --c: #2f6fb8; display: grid; grid-template-columns: 112px 1fr auto; align-items: center; gap: 16px;
  padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  transition: opacity .3s, transform .4s var(--spring);
}
.bill.zero { opacity: .38; }
.bill-note {
  position: relative; height: 54px; border-radius: 7px; background: var(--c); color: #fff; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 1.2rem; overflow: hidden;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), 0 3px 0 color-mix(in srgb, var(--c) 70%, #000);
}
.bill-note::before { content: ""; position: absolute; inset: 7px; border: 1.5px dashed rgba(255, 255, 255, .45); border-radius: 4px; }
.bill-note::after { content: ""; position: absolute; width: 26px; height: 26px; right: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.bill-count { font-weight: 800; font-size: 1.05rem; }
.bill-count small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.bill-sub { font-family: var(--serif); font-weight: 900; font-variant-numeric: tabular-nums; }
.bill.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.04); } }
.pera-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.pera-hint { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .pera { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .bill { grid-template-columns: 84px 1fr auto; gap: 10px; } .bill-note { height: 44px; font-size: 1rem; } .pera-row { grid-template-columns: 1fr auto; } .pera-row .peso-input { grid-column: 2; } .pera-row label { grid-row: span 2; } }

/* Interactive: Spin */
.spin-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.wheel-box { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin-inline: auto; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 10px var(--gold-bright), 0 0 0 16px var(--green), var(--shadow-lg);
  transition: transform 4.6s cubic-bezier(.12, .7, .08, 1);
}
.wheel svg { width: 100%; height: 100%; display: block; }
.wheel-pin { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 46px; z-index: 3; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.wheel-hub {
  position: absolute; inset: 37%; border-radius: 50%; background: var(--surface); z-index: 2; border: 0;
  display: grid; place-items: center; cursor: pointer; font-family: var(--serif); font-weight: 900; font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--green);
  box-shadow: 0 0 0 7px var(--gold-bright), 0 10px 20px rgba(0, 0, 0, .25);
  transition: transform .2s var(--spring);
}
.wheel-hub:hover { transform: scale(1.05); }
.wheel-hub:disabled { cursor: progress; }
.lights { position: absolute; inset: -13px; border-radius: 50%; pointer-events: none; z-index: 1; }
.lights i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #fff6d5; box-shadow: 0 0 8px #ffd25e; animation: blink 1.2s infinite; }
.lights i:nth-child(even) { animation-delay: .6s; }
@keyframes blink { 50% { opacity: .35; } }
.spin-result { min-height: 170px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: center; box-shadow: var(--shadow-sm); margin-top: 24px; }
.spin-result img { width: 92px; flex: none; }
.spin-result strong { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.spin-result .amt { font-family: var(--serif); font-weight: 900; color: var(--red); font-size: 2.4rem; line-height: 1; display: block; margin: 4px 0; }
.spin-result p { margin: 0; color: var(--ink-soft); }
.spin-result.show { animation: pop .5s var(--spring); }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 900px) { .spin-wrap { grid-template-columns: 1fr; } .spin-copy { text-align: center; } .spin-copy .lede { margin-inline: auto; } }

/* Share cards / privacy */
.share { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cards-fan { position: relative; height: 720px; }
.share-card {
  position: absolute; width: 270px; border-radius: 18px; padding: 22px; box-shadow: var(--shadow-lg);
  transition: transform .6s var(--spring);
}
.share-card.receipt { left: 0; top: 0; background: #fffef8; transform: rotate(-9deg); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: #333; }
.share-card.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 14px; background: radial-gradient(circle at 7px 0, transparent 7px, #fffef8 7.5px) 0 0 / 14px 14px repeat-x; transform: rotate(180deg); }
.share-card.notice { right: 0; top: 70px; background: var(--red); color: #fff; transform: rotate(7deg); text-align: center; }
.share-card.wrapped { left: 24%; bottom: 0; width: 250px; background: #134d39; color: #fff; transform: rotate(-2deg); z-index: 2; }
.cards-fan:hover .receipt { transform: rotate(-14deg) translate(-20px, -6px); }
.cards-fan:hover .notice { transform: rotate(11deg) translate(20px, -10px); }
.cards-fan:hover .wrapped { transform: rotate(0) translateY(-10px); }
.receipt h4 { font-family: inherit; font-size: 15px; text-align: center; letter-spacing: .1em; margin: 0 0 4px; }
.receipt .ln { display: flex; justify-content: space-between; padding: 3px 0; }
.receipt hr { border: 0; border-top: 1.5px dashed #bbb; margin: 10px 0; }
.receipt .stamp { position: absolute; width: 150px; right: -14px; bottom: 30px; transform: rotate(-14deg); opacity: .92; }
.receipt .face { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.receipt .face span { width: 44px; height: 44px; border-radius: 50%; background: #e8d7bf; position: relative; overflow: hidden; flex: none; }
.receipt .face span img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(1.15); }
.notice img { width: 200px; margin: 6px auto 10px; filter: brightness(0) invert(1); }
.notice b { display: block; font-family: var(--serif); font-size: 18px; line-height: 1.25; }
.notice p { font-size: 13px; opacity: .9; margin: 10px 0 0; font-family: var(--hand); font-weight: 700; font-size: 16px; }
.wrapped small { color: var(--gold-bright); font-weight: 800; letter-spacing: .14em; font-size: 11px; }
.wrapped .big { font-family: var(--serif); font-weight: 900; font-size: 40px; line-height: 1.05; margin: 8px 0 4px; }
.wrapped p { margin: 0; font-size: 14px; opacity: .85; }
.wrapped .row { display: flex; gap: 10px; margin-top: 14px; }
.wrapped .row div { flex: 1; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px; text-align: center; }
.wrapped .row b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-soft); }
.wrapped .row span { font-size: 11px; opacity: .8; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li svg { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--green-soft); color: var(--green-mid); margin-top: 1px; }
.check-list b { display: block; }
.check-list span { color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 900px) { .share { grid-template-columns: 1fr; } .cards-fan { order: 2; height: 640px; max-width: 480px; margin-inline: auto; width: 100%; } }
@media (max-width: 480px) { .share-card { width: 224px; padding: 18px; } .share-card.wrapped { width: 224px; left: 12%; } .cards-fan { height: 600px; } .wrapped .big { font-size: 32px; } }

/* Hiding mode */
.hiding { background: var(--green-dark); color: #fff; border-radius: clamp(28px, 4vw, 48px); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.hiding::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(246, 185, 43, .22), transparent 40%), radial-gradient(circle at 10% 100%, rgba(46, 158, 102, .3), transparent 45%); pointer-events: none; }
.hiding > * { position: relative; }
.hiding h2 { color: #fff; }
.hiding .lede { color: rgba(255, 255, 255, .8); }
.hiding .eyebrow { color: var(--gold-bright); }
.hideout { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: 28px; text-align: center; cursor: pointer; transition: background .2s; width: 100%; color: inherit; font: inherit; }
.hideout:hover { background: rgba(255, 255, 255, .11); }
.hideout img { width: 170px; margin: 0 auto 10px; transition: transform .5s var(--spring); }
.hideout:hover img { transform: rotate(-6deg) scale(1.04); }
.sign { display: inline-block; background: var(--gold-bright); color: var(--green-dark); font-family: var(--serif); font-weight: 900; padding: 6px 18px; border-radius: 8px; letter-spacing: .1em; font-size: 1.05rem; box-shadow: 0 4px 0 #b5800f; margin-bottom: 12px; }
.hideout strong { display: block; font-family: var(--serif); font-size: 1.35rem; }
.hideout p { margin: 6px 0 0; color: rgba(255, 255, 255, .78); }
.hideout small { display: block; margin-top: 14px; color: var(--gold-soft); font-weight: 700; opacity: .8; }
.hideout .swap { transition: opacity .25s, transform .25s; }
.hideout.out .swap { opacity: 0; transform: translateY(8px); }
@media (max-width: 860px) { .hiding { grid-template-columns: 1fr; text-align: center; } .hiding .lede { margin-inline: auto; } }

/* Wrapped + badges strip */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.extra { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring); }
.extra:hover { transform: translateY(-5px) rotate(-.6deg); }
.extra img { width: 74px; height: 64px; object-fit: contain; margin-bottom: 12px; }
.extra h3 { font-size: 1.12rem; margin-bottom: 6px; }
.extra p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 980px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .extras { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--surface); border-block: 1px solid var(--border); }
.privacy-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.privacy-art { position: relative; display: grid; place-items: center; }
.privacy-art .blob { width: min(100%, 420px); aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: var(--green-tint); display: grid; place-items: center; animation: morph 12s ease-in-out infinite; }
.privacy-art img { width: 64%; filter: drop-shadow(0 18px 20px rgba(11, 51, 37, .18)); }
@keyframes morph { 50% { border-radius: 58% 42% 45% 55% / 42% 58% 42% 58%; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); }
.fact svg { width: 24px; height: 24px; flex: none; color: var(--green-mid); margin-top: 2px; }
.fact b { display: block; line-height: 1.25; }
.fact span { font-size: .93rem; color: var(--ink-soft); line-height: 1.4; display: block; margin-top: 2px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr; } .privacy-art { order: -1; } .privacy-art .blob { width: min(80%, 340px); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.plan { border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); position: relative; }
.plan.free { background: var(--green); color: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.plan.free .btn { align-self: flex-start; margin-top: auto; }
.plan.free h3, .plan.free .price { color: #fff; }
.plan .price { font-family: var(--serif); font-weight: 900; font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; margin: 6px 0 4px; }
.plan .price small { font-size: 1rem; font-family: var(--sans); font-weight: 700; opacity: .8; margin-left: 6px; }
.plan.free .sub { color: rgba(255, 255, 255, .78); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; }
.plan li svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--gold-bright); }
.plan.free .btn { background: var(--gold-bright); color: var(--green-dark); box-shadow: 0 6px 0 #b5800f; }
.plan.free .btn:hover { color: var(--green-dark); }
.plan .stamp-badge { position: absolute; top: 20px; right: 18px; width: 128px; transform: rotate(12deg); filter: brightness(0) invert(1); opacity: .9; }
.packs { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.pack { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--border); }
.pack:last-of-type { border-bottom: 0; }
.pack img { width: 64px; height: 58px; object-fit: contain; }
.pack b { display: block; font-size: 1.08rem; line-height: 1.25; }
.pack > div > span { color: var(--ink-soft); font-size: .95rem; display: block; line-height: 1.4; }
.pack .p { font-family: var(--serif); font-weight: 900; font-size: 1.4rem; white-space: nowrap; }
.pack .p small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 700; color: var(--muted); text-align: right; letter-spacing: .04em; text-transform: uppercase; }
.packs-note { margin-top: 16px; font-size: .92rem; color: var(--muted); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .pack { grid-template-columns: 48px 1fr; } .pack img { width: 48px; } .pack .p { grid-column: 2; } .pack .p small { text-align: left; display: inline; margin-left: 6px; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: #ddd1b6; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 800; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23187c4b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .a { padding: 0 24px 22px; color: var(--ink-soft); }
.faq .a p:last-child { margin: 0; }

/* Final CTA */
.final { padding: clamp(40px, 7vw, 90px) 0 clamp(80px, 10vw, 130px); }
.bill-cta {
  position: relative; max-width: 900px; margin-inline: auto; background: #fffef8; border-radius: 10px;
  padding: clamp(32px, 5vw, 60px); box-shadow: var(--shadow-lg); text-align: center;
  background-image: linear-gradient(var(--red) 0 8px, transparent 8px);
}
.bill-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 16px; background: radial-gradient(circle at 8px 0, transparent 8px, #fffef8 8.5px) 0 0 / 16px 16px repeat-x; transform: rotate(180deg); filter: drop-shadow(0 -4px 3px rgba(11, 51, 37, .06)); }
.bill-cta .stamp { position: absolute; width: clamp(130px, 18vw, 200px); top: -78px; right: -26px; transform: rotate(14deg); animation: stampIn .7s var(--spring) both; animation-play-state: paused; }
.bill-cta.in .stamp { animation-play-state: running; }
.bill-meta { display: flex; justify-content: center; gap: clamp(14px, 4vw, 40px); flex-wrap: wrap; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.bill-meta b { color: var(--ink); }
.bill-cta h2 { margin-bottom: 12px; }
.bill-cta .store-badges { justify-content: center; margin-top: 28px; }
@media (max-width: 560px) { .bill-cta .stamp { right: -4px; top: -64px; } .bill-cta { margin-top: 40px; } }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(255, 255, 255, .78); padding: 64px 0 36px; font-size: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 52px; width: auto; margin-bottom: 14px; padding: 8px 14px; background: var(--bg); border-radius: 14px; box-sizing: content-box; }
.foot-brand p { max-width: 34ch; }
.site-footer h4 { font-family: var(--sans); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--gold-bright); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: rgba(255, 255, 255, .6); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: clip; }
.legal-hero .sticker { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: 40px; width: clamp(110px, 16vw, 190px); transform: rotate(8deg); filter: drop-shadow(0 12px 16px rgba(11, 51, 37, .2)); }
.legal-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
.legal-hero .lede { max-width: 56ch; }
.legal-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.legal-meta span { padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) { .legal-hero .sticker { position: static; margin-bottom: 18px; width: 110px; transform: rotate(-4deg); } }

.tldr { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); margin-bottom: 48px; box-shadow: var(--shadow); }
.tldr h2 { color: #fff; font-size: 1.6rem; display: flex; align-items: center; gap: 12px; }
.tldr h2 .script { color: var(--gold-bright); font-size: 1.15em; }
.tldr ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.tldr li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .9); }
.tldr li svg { width: 22px; height: 22px; flex: none; color: var(--gold-bright); margin-top: 3px; }
@media (max-width: 700px) { .tldr ul { grid-template-columns: 1fr; } }

.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
.toc { position: sticky; top: 100px; }
.toc h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--green); border-left-color: var(--green-mid); font-weight: 800; }
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 2.4em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; font-family: var(--sans); font-weight: 800; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green-mid); }
.prose strong { color: var(--ink); }
.prose .callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--gold-tint); border: 1px solid #f2dfac; margin: 1.4em 0; }
.prose .callout img { width: 54px; height: 46px; object-fit: contain; flex: none; }
.prose .callout p { margin: 0; color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-alt); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; color: var(--ink); }
@media (max-width: 600px) {
  .table-wrap { overflow: visible; }
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .prose tr:last-child { border-bottom: 0; }
  .prose td { display: block; padding: 0; border: 0; }
  .prose td:first-child { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 6px; }
  .prose td + td { margin-top: 8px; }
  .prose td + td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}
.contact-card { margin-top: 2em; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; gap: 18px; align-items: center; }
.contact-card img { width: 80px; flex: none; }
.contact-card p { margin: 0; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; } }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost img { width: min(260px, 60vw); margin: 0 auto 18px; animation: bob 4s ease-in-out infinite; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg); transition: transform .45s var(--spring); max-width: calc(100vw - 32px); }
.toast img { width: 40px; height: 34px; object-fit: contain; }
.toast.show { transform: translate(-50%, 0); }

@media print {
  .site-header, .site-footer, .toc, .legal-hero .sticker { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .legal-layout { display: block; }
  .tldr { background: #fff; color: #000; border: 1px solid #999; box-shadow: none; }
  .tldr h2, .tldr li { color: #000; }
}
