/* Helpr design system — "Stained Glass"
   Light lilac-white canvas, royal purple + gold from the brand, and one signature element:
   an arched stained-glass window. Tokens mirror mobile/src/theme.ts */
:root {
  --canvas: #FCFAFF; --surface: #FFFFFF; --tint: #F4EEFD; --tint-2: #EFE7FC;
  --ink: #1E1530; --ink-2: #3A2F4D; --muted: #6E6680; --line: #ECE6F4; --line-2: #DED4EC;
  --royal: #4B2785; --royal-2: #5E36A3; --deep: #2E1460; --plum: #2A1650;
  --gold: #D9AC48; --gold-2: #F3D78A; --gold-soft: #FFF4D6; --gold-ink: #7A5410;
  --success: #237A52; --success-soft: #E6F4EC; --error: #B42318; --error-soft: #FCEBE9; --warn: #8A5A00; --warn-soft: #FFF3D6;
  --brand: var(--royal);
  --r-xl: 32px; --r-lg: 24px; --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(30,21,48,.04), 0 8px 24px -12px rgba(46,20,96,.16);
  --shadow-lg: 0 2px 4px rgba(30,21,48,.04), 0 24px 48px -20px rgba(46,20,96,.28);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(.22,.8,.24,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.62 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--deep); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .45em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
::selection { background: var(--gold-2); color: var(--ink); }

/* ---------- floating pill header */
.site-header { position: sticky; top: 12px; z-index: 40; padding: 0 12px; }
.site-header .bar { display: flex; align-items: center; gap: 14px; min-height: 64px; max-width: 1200px; margin: 12px auto 0; padding: 0 10px 0 22px;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); transition: box-shadow .3s; }
.site-header.scrolled .bar { box-shadow: var(--shadow-lg); }
.brand img { height: 32px; width: auto; display: block; }
.nav { display: flex; gap: 2px; align-items: center; flex: 1; }
.nav a:not(.btn) { color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .94rem; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav a.on { background: var(--tint); color: var(--royal); text-decoration: none; }
.nav .spacer { flex: 1; }
.nav .link-btn { font-size: .94rem; color: var(--ink-2); padding: 8px 12px; }
.bell { position: relative; } .bell .dot { position: absolute; top: 2px; right: 4px; background: var(--error); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; line-height: 16px; }
.menu-btn { display: none; background: var(--tint); border: 0; border-radius: 999px; padding: 9px 16px; font: 700 .9rem var(--font); cursor: pointer; color: var(--royal); }
@media (max-width: 980px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 84px; left: 12px; right: 12px; background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; animation: drop .28s var(--ease); } .nav .spacer { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.test-banner { background: var(--gold-soft); color: var(--gold-ink); text-align: center; font-size: .8rem; font-weight: 700; padding: 6px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid transparent; border-radius: 999px;
  padding: 12px 22px; font: 700 .95rem var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--royal); color: #fff; box-shadow: 0 10px 20px -12px rgba(75,39,133,.9); }
.btn-primary:hover { background: var(--deep); color: #fff; box-shadow: 0 14px 26px -12px rgba(75,39,133,.9); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 20px -12px rgba(217,172,72,1); }
.btn-gold:hover { background: #E3B955; color: var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--royal); }
.btn-ghost:hover { border-color: var(--royal); color: var(--deep); background: var(--tint); }
.btn-ghost.on-dark { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-google:hover { border-color: var(--ink-2); color: var(--ink); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn-sm { padding: 7px 15px; font-size: .85rem; } .btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--royal); font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- layout */
.section { padding: 64px 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 44px 0; } }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 52ch; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 56ch; }

/* ---------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tint { background: var(--tint); border-color: transparent; box-shadow: none; }
.card.gold { background: var(--gold-soft); border-color: transparent; box-shadow: none; }
.card h3 { margin-bottom: .35em; }
.card-link { display: block; color: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.card-link:hover { text-decoration: none; color: inherit; transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.church-card { padding: 0; overflow: hidden; }
.church-card .cover { height: 132px; background-color: var(--royal); background-size: cover; background-position: center;
  background-image: linear-gradient(135deg, rgba(75,39,133,.0), rgba(46,20,96,.35)), var(--glass); }
.church-card > .row:first-of-type { padding: 0 20px; margin-top: -28px; align-items: flex-end; flex-wrap: nowrap; }
.church-card > .row:last-child { padding: 0 20px; margin: 12px 0 20px; }
.church-card .avatar { width: 58px; height: 58px; border: 3px solid #fff; box-shadow: var(--shadow); }
.church-card h3 { margin-top: 32px !important; }
.avatar { width: 48px; height: 48px; border-radius: 16px; object-fit: cover; background: var(--tint-2); display: inline-flex; align-items: center; justify-content: center;
  color: var(--royal); font-weight: 800; flex-shrink: 0; font-family: var(--display); }
.avatar.lg { width: 96px; height: 96px; border-radius: 28px; font-size: 1.8rem; border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.stat { font-family: var(--display); font-size: 2rem; color: var(--ink); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }

/* tiny stained-glass texture for covers (same palette as the window) */
:root { --glass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' viewBox='0 0 160 120'%3E%3Cg stroke='%23FCFAFF' stroke-width='2'%3E%3Cpolygon points='0,0 60,0 30,50' fill='%234B2785'/%3E%3Cpolygon points='60,0 30,50 95,40' fill='%235E36A3'/%3E%3Cpolygon points='60,0 160,0 95,40' fill='%2335165F'/%3E%3Cpolygon points='160,0 95,40 160,70' fill='%236B3FB8'/%3E%3Cpolygon points='0,0 30,50 0,90' fill='%232A1650'/%3E%3Cpolygon points='30,50 95,40 70,95' fill='%23D9AC48'/%3E%3Cpolygon points='95,40 160,70 70,95' fill='%238E66D9'/%3E%3Cpolygon points='0,90 30,50 70,95' fill='%234B2785'/%3E%3Cpolygon points='0,90 70,95 0,120' fill='%2335165F'/%3E%3Cpolygon points='70,95 160,70 160,120' fill='%235E36A3'/%3E%3Cpolygon points='0,120 70,95 160,120' fill='%23F3D78A'/%3E%3C/g%3E%3C/svg%3E"); }

/* ---------- signature: the stained-glass window */
.window { position: relative; width: 100%; max-width: 420px; justify-self: center; }
.window .mosaic { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(46,20,96,.25)); }
.window .mosaic polygon { opacity: 0; transform-box: fill-box; transform-origin: center; animation: tile-in .9s var(--ease) forwards; animation-delay: var(--d); }
.window .mosaic .sweep { animation: sweep 7s 2.2s ease-in-out infinite; }
.window .mark { position: absolute; left: 50%; top: 47%; width: 34%; transform: translate(-50%,-50%); padding: 6%; background: #FCFAFF; border-radius: 26%;
  box-shadow: 0 20px 40px -14px rgba(30,21,48,.5), 0 0 0 6px rgba(252,250,255,.55); opacity: 0; animation: mark-in .9s 1.3s var(--ease) forwards; }
.window .mark img { display: block; width: 100%; height: auto; }
.window .caption { position: absolute; left: 8%; right: 8%; bottom: 6%; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-radius: 18px;
  padding: 12px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); opacity: 0; animation: rise .8s 1.7s var(--ease) forwards; }
.window .caption .tickmark { width: 36px; height: 36px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.window.sm { max-width: 260px; }
@keyframes tile-in { from { opacity: 0; transform: scale(.6) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes mark-in { from { opacity: 0; transform: translate(-50%,-40%) scale(.85); } to { opacity: 1; transform: translate(-50%,-50%); } }
@keyframes sweep { 0% { transform: rotate(18deg) translateX(0); } 55%, 100% { transform: rotate(18deg) translateX(1100px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- hero */
.hero { padding: 56px 0 72px; }
.hero .container { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: .98; letter-spacing: -.04em; margin-bottom: .35em; max-width: 12ch; }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px 6px 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 22px; box-shadow: var(--shadow); }
.hero .kicker b { background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .proof { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero .proof div { min-width: 0; } .hero .proof strong { display: block; font: 700 1.6rem var(--display); letter-spacing: -.03em; color: var(--royal); }
.hero .proof span { font-size: .88rem; color: var(--muted); }
.intro > * { opacity: 0; animation: rise .8s var(--ease) forwards; }
.intro > *:nth-child(1) { animation-delay: .05s; } .intro > *:nth-child(2) { animation-delay: .15s; } .intro > *:nth-child(3) { animation-delay: .25s; }
.intro > *:nth-child(4) { animation-delay: .35s; } .intro > *:nth-child(5) { animation-delay: .45s; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero .window { max-width: 250px; order: -1; } .hero .window .caption { display: none; } .hero { padding-top: 28px; } }

/* journey — a real sequence, so it's numbered */
.journey { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; counter-reset: step; }
.journey .step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; overflow: hidden; }
.journey .step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--tint); color: var(--royal); font: 700 1.1rem var(--display); margin-bottom: 18px; }
.journey .step:nth-child(2)::before { background: var(--gold-soft); color: var(--gold-ink); }
.journey .step:nth-child(3)::before { background: var(--success-soft); color: var(--success); }
@media (max-width: 820px) { .journey { grid-template-columns: 1fr; } }

/* bento feature grid */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 4; } .bento .half { grid-column: span 3; }
@media (max-width: 900px) { .bento > *, .bento .wide, .bento .half { grid-column: span 6; } }
.feature-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; background: var(--tint); }

.panel-royal { background: linear-gradient(140deg, var(--royal-2), var(--royal) 45%, var(--deep)); color: #fff; border-radius: var(--r-xl); padding: 48px; position: relative; overflow: hidden; }
.panel-royal::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 220px; background: var(--glass); background-size: 160px 120px;
  opacity: .22; border-radius: 0 0 100px 100px; transform: rotate(-8deg); }
.panel-royal h2, .panel-royal h3 { color: #fff; } .panel-royal p { color: rgba(255,255,255,.85); }
.panel-royal > * { position: relative; z-index: 1; }
@media (max-width: 640px) { .panel-royal { padding: 28px; } }

/* ---------- church page */
.church-hero { height: 240px; border-radius: 0 0 var(--r-xl) var(--r-xl); background-color: var(--royal); background-size: cover; background-position: center;
  background-image: var(--glass); background-repeat: repeat; }
.church-hero.has-cover { background-repeat: no-repeat; }
.church-head { margin-top: -60px; position: relative; z-index: 2; }

/* ---------- auth */
.auth { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 40px; align-items: start; padding: 40px 0 72px; }
.auth .side { padding: 20px; position: sticky; top: 110px; }
.auth .side h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 14ch; }
.auth .panel { display: flex; justify-content: center; }
.auth .panel .card { width: 100%; max-width: 480px; padding: 34px; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; padding-top: 16px; } .auth .side { display: none; } }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.type-pick label { position: relative; display: block; margin: 0; cursor: pointer; }
.type-pick input { position: absolute; opacity: 0; }
.type-pick .opt { display: block; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 16px; height: 100%; background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s var(--ease); }
.type-pick .opt:hover { border-color: var(--royal); }
.type-pick .opt strong { display: block; color: var(--ink); font-size: 1.02rem; margin-top: 8px; }
.type-pick .opt span { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; line-height: 1.4; margin-top: 4px; }
.type-pick .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); display: grid; place-items: center; font-size: 1.2rem; }
.type-pick input:checked + .opt { border-color: var(--royal); background: var(--tint); box-shadow: 0 0 0 4px rgba(75,39,133,.12); transform: translateY(-2px); }
.type-pick input:checked + .opt .ico { background: var(--royal); }
.type-pick input:focus-visible + .opt { outline: 3px solid var(--gold); }
.method { display: grid; gap: 10px; }
.reveal-form { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.reveal-form > div { overflow: hidden; }
.reveal-form.open { grid-template-rows: 1fr; }
.steps-dots { display: flex; gap: 6px; margin-bottom: 18px; } .steps-dots i { height: 6px; width: 22px; border-radius: 99px; background: var(--line-2); }
.steps-dots i.on { background: var(--royal); width: 36px; }

/* ---------- forms */
.form-field { margin-bottom: 15px; }
label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: #CBBEDF; }
.input:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 4px rgba(75,39,133,.12); }
input[type=color].input { height: 48px; padding: 4px; }
.check { width: 18px; height: 18px; accent-color: var(--royal); vertical-align: middle; margin-right: 6px; }
.check-row label { display: inline; font-weight: 600; }
.help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--error); font-size: .85rem; }
.amount-input { font-size: 2rem !important; font-weight: 700; font-family: var(--display); letter-spacing: -.03em; }

/* ---------- giving */
.give-heading { font-family: var(--display); font-size: 1.6rem; color: var(--ink); margin-bottom: 16px; font-weight: 700; letter-spacing: -.025em; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1.5px solid var(--line-2); border-radius: 16px; padding: 16px; background: #fff; cursor: pointer; font-weight: 700; text-align: center;
  transition: all .2s var(--ease); }
.choice span:hover { border-color: var(--royal); }
.choice input:checked + span { border-color: var(--royal); background: var(--royal); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(75,39,133,.9); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- badges / alerts */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--tint); color: var(--royal); white-space: nowrap; }
.badge.success { background: var(--success-soft); color: var(--success); } .badge.error { background: var(--error-soft); color: var(--error); }
.badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.gold { background: var(--gold-soft); color: var(--gold-ink); }
.badge.neutral { background: #F0EDF4; color: var(--muted); }
.badge.success::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.alert { padding: 14px 18px; border-radius: 16px; margin-bottom: 12px; border: 1px solid; animation: rise .45s var(--ease); }
.alert.success { background: var(--success-soft); border-color: #BFE0CE; color: #17573A; }
.alert.error { background: var(--error-soft); border-color: #F3C5BF; color: #8D1B12; }
.alert.info, .alert.warning { background: var(--gold-soft); border-color: #F0DCA6; color: var(--gold-ink); }
.notice { background: var(--tint); border-radius: 16px; padding: 14px 18px; color: var(--deep); }

/* ---------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { font-size: .78rem; font-weight: 700; color: var(--muted); background: #FAF7FE; }
tbody tr { transition: background .15s; } tbody tr:hover { background: #FBF9FE; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }

/* ---------- checklists / timeline */
.steps { display: flex; flex-direction: column; gap: 4px; }
.tick { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; border: 2px solid var(--line-2); flex-shrink: 0; color: transparent; transition: all .3s; }
.tick.done { background: var(--success); border-color: var(--success); color: #fff; }
.checklist { padding: 0; margin: 0; } .checklist li { list-style: none; display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.timeline { border-left: 2px solid var(--line-2); padding-left: 18px; margin-left: 6px; }
.timeline > div { position: relative; padding-bottom: 16px; }
.timeline > div::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 4px; background: var(--gold); transform: rotate(45deg); }

/* ---------- workspace app shell */
.ws { display: grid; grid-template-columns: 264px minmax(0,1fr); gap: 24px; padding: 28px 0 64px; }
.ws-nav { position: sticky; top: 100px; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); }
.ws-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; color: var(--ink-2); font-weight: 600; font-size: .93rem; transition: background .2s, color .2s; }
.ws-nav a:hover { background: var(--tint); color: var(--royal); text-decoration: none; }
.ws-nav a.on { background: var(--brand); color: #fff; }
.ws-nav .head { padding: 12px 12px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.ws-nav .head strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.02em; margin-top: 4px; }
.ws-nav .head .brand-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--brand); transform: rotate(45deg); margin-right: 8px; }
@media (max-width: 980px) { .ws { grid-template-columns: 1fr; } .ws-nav { position: static; display: flex; overflow-x: auto; gap: 4px; } .ws-nav .head { display: none; } .ws-nav a { white-space: nowrap; } }
.ws-title { display: flex; align-items: center; gap: 16px; }
.banner { border-radius: var(--r-xl); padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--brand); }
.banner .glass-strip { position: absolute; right: 0; top: 0; bottom: 0; width: 180px; background: var(--glass); background-size: 160px 120px; opacity: .9;
  -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%); }
.banner > * { position: relative; }
.kpi { position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: 16px; top: 16px; width: 10px; height: 10px; border-radius: 3px; transform: rotate(45deg); background: var(--gold); }
.code-chip { font: 700 1.35rem var(--display); letter-spacing: .2em; color: var(--royal); background: var(--tint); padding: 10px 16px; border-radius: 14px; display: inline-block; }

.thread .msg { padding: 13px 15px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 10px; }
.thread .msg.mine { background: var(--tint); border-color: transparent; } .thread .msg.internal { background: var(--warn-soft); border-color: #F0DCA6; }
.progress { height: 10px; background: var(--tint-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--royal), var(--gold)); transform-origin: left; animation: grow 1.2s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.empty { text-align: center; padding: 44px 18px; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); background: var(--surface); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
dl.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; } dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
@media (max-width: 640px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 8px; } }
details summary { cursor: pointer; font-weight: 700; color: var(--royal); }

/* ---------- footer */
.site-footer { margin-top: 56px; padding: 0 12px 12px; }
.site-footer .inner { max-width: 1224px; margin: 0 auto; background: var(--plum); color: rgba(255,255,255,.78); border-radius: var(--r-xl); padding: 48px 32px 28px; position: relative; overflow: hidden; }
.site-footer .inner::after { content: ""; position: absolute; right: 32px; bottom: 0; width: 120px; height: 150px; border-radius: 60px 60px 0 0; background: var(--glass); background-size: 160px 120px; opacity: .14; pointer-events: none; }
.site-footer .inner > * { position: relative; z-index: 1; }
.site-footer a { color: rgba(255,255,255,.88); } .site-footer a:hover { color: #fff; }
.site-footer h4 { color: var(--gold-2); font-size: .92rem; margin: 0 0 10px; font-weight: 700; }
.site-footer .logo-chip { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 14px; }

/* scroll reveal (applied by JS) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.receipt { max-width: 580px; margin: 32px auto; }
@media print { .site-header, .site-footer, .no-print, .test-banner { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .intro > *, .reveal, .window .mosaic polygon, .window .mark, .window .caption { opacity: 1 !important; transform: none !important; }
  .window .mark { transform: translate(-50%,-50%) !important; }
}
