:root {
  --blue: #123b62;
  --blue-2: #19527f;
  --green: #1f9d67;
  --ink: #17212b;
  --muted: #667481;
  --wash: #f4f7f9;
  --civic-950: #071e2c;
  --civic-900: #0a293a;
  --civic-800: #0e3b4d;
  --mint-500: #45d59a;
  --mint-300: #8ce7bf;
  --sun: #ffcb66;
  --paper: #fbfcf7;
  --surface: #fff;
  --line: #dce7e4;
  --danger: #bb3e4a;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-soft: 0 24px 70px rgba(5, 35, 49, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--wash); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
.civic-nav { background: rgba(7, 30, 44, .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(18px); }
.navbar-brand { display: flex; align-items: center; gap: .65rem; font-weight: 750; letter-spacing: -.025em; }
.navbar-brand strong { color: var(--mint-500); }
.brand-symbol { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(140, 231, 191, .42); border-radius: 10px; background: rgba(69, 213, 154, .12); color: var(--mint-300); font-size: 1.35rem; line-height: 1; }
.btn-nav-cta { background: var(--mint-500); color: var(--civic-950); border: 0; border-radius: 999px; padding: .48rem .9rem; font-weight: 750; }
.btn-nav-cta:hover { background: var(--mint-300); color: var(--civic-950); transform: translateY(-1px); }
.hero { background: linear-gradient(120deg, #eef6f4, #f8fbfd); }
.hero h1 span { color: var(--blue-2); }
.eyebrow { font-size: .75rem; letter-spacing: .12em; font-weight: 800; color: var(--green); }
.hero-card, .feature-card, .price-card, .panel, .form-panel, .verify-card, .auth-card { background: #fff; border: 1px solid #dfe7ec; border-radius: 20px; padding: 1.5rem; }
.hero-card { padding: 2rem; max-width: 420px; margin: auto; transform: rotate(1deg); }
.avatar-demo { height: 60px; width: 60px; border-radius: 50%; display: grid; place-items: center; background: #d9f4e8; color: #14704b; font-weight: 800; }
.feature-card { box-shadow: 0 8px 30px #193b5710; }
.feature-card > i { font-size: 2rem; color: var(--green); }
.feature-card h3 { font-size: 1.2rem; margin-top: 1rem; }
.legal-strip { background: #e6f3ee; color: #25493b; }
.price-card { height: 100%; }
.price-card.featured { border: 2px solid var(--green); }
.price { font-size: 1.7rem; font-weight: 800; }
.price small { font-size: .75rem; color: var(--muted); }
.auth-wrap { min-height: 75vh; display: grid; place-items: center; padding: 2rem; }
.auth-card, .form-panel, .verify-card { width: min(100%, 520px); }
form p label { display: block; font-weight: 650; margin-bottom: .35rem; }
form input, form select, form textarea { width: 100%; border: 1px solid #cbd6dd; border-radius: 10px; padding: .65rem; margin-bottom: .6rem; }
.metric { background: var(--blue); color: #fff; padding: 1.3rem; border-radius: 18px; }
.metric span { display: block; opacity: .75; font-size: .85rem; }
.metric strong { font-size: 2rem; }
.metric .rank { font-size: 1.3rem; }
.activity-row, .leader-row { display: flex; align-items: center; padding: 1rem 0; border-bottom: 1px solid #edf0f2; }
.activity-row small { display: block; color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 2.5rem; }
.empty-state i { font-size: 2rem; }
.org-pill, .offer { padding: .8rem; background: #f1f7f4; border-radius: 12px; margin-top: .7rem; }
.position { width: 34px; height: 34px; border-radius: 50%; background: #e5f3ed; display: grid; place-items: center; margin-right: 1rem; font-weight: 800; }
.digital-card { max-width: 680px; color: #fff; background: linear-gradient(145deg, #123b62, #0f2944); border-radius: 28px; padding: 2rem; box-shadow: 0 18px 50px #0e294644; }
.status-dot { color: #73e3ad; }
.qr-wrap { display: inline-block; background: #fff; padding: .6rem; border-radius: 16px; }
.qr-wrap img { width: 145px; }
.short-code { font-size: 2rem; letter-spacing: .2em; font-weight: 800; }
.partner-icon { height: 52px; width: 52px; border-radius: 14px; background: #e5f3ed; color: var(--green); display: grid; place-items: center; font-size: 1.5rem; }

/* Shared, app-ready authentication surface */
.auth-shell { position: relative; min-height: calc(100vh - 72px); overflow: hidden; background: var(--civic-950); isolation: isolate; }
.auth-atmosphere { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 20%, rgba(69, 213, 154, .12), transparent 30%), linear-gradient(135deg, var(--civic-950), #0a3040 58%, #082431); }
.auth-atmosphere::before { content: ""; position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to right, #000, transparent 72%); }
.glow { position: absolute; border-radius: 50%; filter: blur(4px); animation: drift 9s var(--ease) infinite alternate; }
.glow-one { width: 340px; height: 340px; left: -130px; bottom: -110px; background: rgba(69, 213, 154, .1); }
.glow-two { width: 260px; height: 260px; right: 12%; top: -140px; background: rgba(255, 203, 102, .08); animation-delay: -3s; }
.auth-container { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 520px); align-items: center; gap: clamp(3rem, 8vw, 8rem); padding-top: 4rem; padding-bottom: 4rem; }
.auth-container-compact { grid-template-columns: minmax(0, 1fr) minmax(420px, 500px); }
.auth-story { color: #fff; max-width: 650px; }
.auth-back { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.62); font-size: .88rem; text-decoration: none; margin-bottom: clamp(2rem, 6vh, 5rem); transition: .25s var(--ease); }
.auth-back:hover { color: var(--mint-300); transform: translateX(-3px); }
.eyebrow-light { color: var(--mint-300); }
.auth-story > .eyebrow { display: block; }
.auth-story h1 { font-size: clamp(2.75rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.055em; max-width: 850px; margin: 1rem 0 1.5rem; text-wrap: balance; }
.auth-story > p { max-width: 590px; color: rgba(255,255,255,.68); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.auth-panel { position: relative; background: rgba(251,252,247,.98); border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: clamp(1.5rem, 3.2vw, 2.75rem); }
.auth-panel::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(10,41,58,.06); border-radius: 24px; pointer-events: none; }
.auth-panel-head { position: relative; margin-bottom: 1.65rem; }
.auth-panel-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 780; letter-spacing: -.04em; margin: .7rem 0 .3rem; color: var(--civic-950); }
.auth-panel-head p { color: var(--muted); margin: 0; }
.step-chip { display: inline-flex; padding: .38rem .7rem; background: #e7f7f0; color: #14704b; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.form-grid { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.field-group { width: 100%; margin-bottom: 1rem; }
.field-half { width: calc(50% - .5rem); }
.field-group label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: #29414c; margin: 0 0 .42rem; }
.input-shell { position: relative; }
.tc-form input:not([type="checkbox"]) { width: 100%; height: 52px; padding: .78rem 1rem; border: 1px solid #cddbd7; border-radius: var(--radius-sm); background: #fff; color: var(--civic-950); outline: 0; margin: 0; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tc-form input:not([type="checkbox"])::placeholder { color: #9aaba8; }
.tc-form input:not([type="checkbox"]):hover { border-color: #9bbab0; }
.tc-form input:not([type="checkbox"]):focus { border-color: var(--mint-500); box-shadow: 0 0 0 4px rgba(69,213,154,.15); transform: translateY(-1px); }
.input-shell:has(.password-toggle) input { padding-right: 3rem; }
.password-toggle { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: #667d83; border-radius: 10px; }
.password-toggle:hover { background: #eef5f2; color: var(--civic-800); }
.field-error { color: var(--danger); font-size: .78rem; margin-top: .35rem; }
.field-help { color: #758987; font-size: .72rem; line-height: 1.45; margin-top: .38rem; }
.field-help ul { padding-left: 1rem; margin: .25rem 0 0; }
.form-alert { padding: .8rem 1rem; border-radius: 12px; background: #fff0f1; color: #8c2934; font-size: .86rem; margin-bottom: 1rem; }
.form-alert ul, .field-error ul { margin: 0; padding: 0; list-style: none; }
.consent-note { display: flex !important; align-items: flex-start; gap: .7rem; color: #657a78 !important; font-size: .76rem !important; font-weight: 500 !important; line-height: 1.5; margin: 0 0 1.25rem !important; }
.consent-note input { accent-color: var(--green); width: 17px; height: 17px; margin-top: .1rem; flex: none; }
.consent-note a, .auth-switch a { color: #116c50; font-weight: 750; text-underline-offset: 3px; }
.btn-civic { display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; background: var(--civic-900); color: #fff; padding: .82rem 1.1rem; font-weight: 750; box-shadow: 0 10px 24px rgba(7,30,44,.16); transition: .25s var(--ease); }
.btn-civic:hover, .btn-civic:focus { background: var(--civic-800); color: #fff; transform: translateY(-2px); box-shadow: 0 15px 30px rgba(7,30,44,.22); }
.btn-civic i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-500); color: var(--civic-950); transition: transform .25s var(--ease); }
.btn-civic:hover i { transform: translateX(3px) rotate(-8deg); }
.btn-civic:disabled { opacity: .75; transform: none; }
.button-loader { width: 21px; height: 21px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.auth-switch { text-align: center; color: #758987; font-size: .83rem; margin: 1.25rem 0 0; }
.orbit-card { position: relative; width: min(100%, 500px); height: 230px; margin: 2.5rem 0 1.5rem; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 28px; background: var(--mint-500); color: var(--civic-950); box-shadow: 0 0 0 12px rgba(69,213,154,.08), 0 20px 45px rgba(0,0,0,.18); z-index: 2; }
.orbit-core span { font-size: 2.4rem; line-height: .7; }
.orbit-core small { font-size: .65rem; text-transform: uppercase; font-weight: 900; letter-spacing: .14em; }
.orbit { position: absolute; inset: 50% auto auto 50%; width: 100%; height: 170px; border: 1px solid rgba(140,231,191,.15); border-radius: 50%; transform: translate(-50%, -50%) rotate(var(--angle)); }
.orbit span { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: .45rem; padding: .62rem .85rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); color: #dff8ed; font-size: .78rem; font-weight: 700; transform: rotate(calc(var(--angle) * -1)); white-space: nowrap; }
.orbit-a { --angle: -8deg; --x: 2%; --y: 55%; }
.orbit-b { --angle: 7deg; --x: 70%; --y: 8%; }
.orbit-c { --angle: 0deg; --x: 72%; --y: 72%; }
.trust-line, .signal-card { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.58); font-size: .78rem; }
.trust-line i { color: var(--mint-300); font-size: 1.15rem; }
.signal-card { display: inline-flex; margin-top: 2rem; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.05); }
.signal-card div { display: grid; }
.signal-card strong { color: #fff; font-size: .85rem; }
.signal-card small { color: rgba(255,255,255,.5); }
.signal-pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 0 rgba(69,213,154,.5); animation: pulse 2s infinite; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(30px, 20px) scale(1.08); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(69,213,154,0); } 100% { box-shadow: 0 0 0 0 rgba(69,213,154,0); } }

@media (max-width: 991px) {
  .auth-container, .auth-container-compact { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .auth-story { max-width: 720px; }
  .auth-back { margin-bottom: 2rem; }
  .auth-story h1 { font-size: clamp(2.7rem, 8vw, 4.5rem); }
  .orbit-card { display: none; }
  .trust-line { margin-top: 1.5rem; }
  .auth-panel { width: min(100%, 620px); justify-self: center; }
}

@media (max-width: 576px) {
  .hero h1 { font-size: 2.7rem; }
  .digital-card { padding: 1.2rem; }
  .qr-wrap img { width: 110px; }
  .short-code { font-size: 1.45rem; }
  .metric strong { font-size: 1.5rem; }
  .auth-container { padding: 1.4rem 1rem 2rem; }
  .auth-story h1 { font-size: 2.45rem; }
  .auth-story > p { font-size: .95rem; }
  .auth-back { display: flex; width: fit-content; margin-bottom: 1.5rem; }
  .auth-panel { padding: 1.35rem; border-radius: 24px; }
  .auth-panel::before { display: none; }
  .field-half { width: 100%; }
  .field-help { display: none; }
}

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

/* Unified product language */
.site-footer { background: var(--civic-950); color: rgba(255,255,255,.62); padding: 2rem 0; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer p { max-width: 580px; margin: 0; font-size: .78rem; text-align: right; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand div { display: grid; }
.footer-brand strong { color: #fff; }
.footer-brand small { font-size: .7rem; }
.app-page, .public-page { position: relative; min-height: calc(100vh - 72px); overflow: hidden; background: #eef3ef; }
.public-page { background: var(--civic-950); color: #fff; }
.page-atmosphere { position: absolute; inset: 0 0 auto; height: 430px; background: radial-gradient(circle at 80% 0, rgba(69,213,154,.13), transparent 30%), linear-gradient(145deg, var(--civic-950), #0b3444); }
.page-atmosphere::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(#000, transparent); }
.page-heading { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: #fff; }
.page-heading h1, .public-title { font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.05em; margin: .7rem 0; font-weight: 780; }
.page-heading p, .public-lead { color: rgba(255,255,255,.62); font-size: 1.05rem; margin: 0; max-width: 680px; }
.public-title { color: #fff; }
.heading-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.btn-mint { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; background: var(--mint-500); color: var(--civic-950); border: 0; border-radius: 999px; padding: .7rem 1.1rem; font-weight: 780; }
.btn-mint:hover { background: var(--mint-300); color: var(--civic-950); transform: translateY(-2px); }
.btn-ghost-light { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 999px; padding: .7rem 1.1rem; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.btn-ghost-light:hover { border-color: var(--mint-300); color: var(--mint-300); background: rgba(255,255,255,.1); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat-card { position: relative; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem; overflow: hidden; background: rgba(251,252,247,.98); border: 1px solid rgba(255,255,255,.72); border-radius: 24px; box-shadow: 0 14px 40px rgba(5,35,49,.1); }
.stat-card span { color: #69807c; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { color: var(--civic-950); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -.045em; }
.stat-card strong.rank { font-size: clamp(1.35rem, 2.7vw, 2rem); margin-top: .35rem; }
.stat-card > i { position: absolute; right: 1.25rem; top: 1.25rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #e3f6ee; color: #16704f; font-size: 1.2rem; }
.stat-card-link { color: inherit; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.stat-card-link:hover { color: inherit; transform: translateY(-4px); border-color: #9bd5bb; box-shadow: 0 22px 50px rgba(5,35,49,.15); }
.stat-card-link > small { color: #14704b; font-size: .72rem; font-weight: 800; margin-top: .45rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr); gap: 1rem; }
.app-panel { background: rgba(251,252,247,.98); border: 1px solid #dfe8e4; border-radius: 24px; padding: clamp(1.2rem, 2.5vw, 1.8rem); box-shadow: 0 14px 40px rgba(5,35,49,.07); color: var(--ink); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.panel-heading h2 { color: var(--civic-950); font-size: 1.25rem; font-weight: 780; margin: .15rem 0 0; letter-spacing: -.025em; }
.panel-heading a { color: #14704b; font-size: .8rem; font-weight: 750; text-decoration: none; }
.panel-kicker { color: #6f8580; font-size: .65rem; font-weight: 850; letter-spacing: .12em; }
.record-row, .person-row { display: flex; align-items: center; gap: .9rem; min-height: 69px; border-top: 1px solid #e7eeeb; }
.record-row:first-of-type, .person-row:first-child { border-top: 0; }
.record-row > div:nth-child(2), .person-main { display: grid; min-width: 0; }
.record-row small, .person-main small, .org-card small { color: #758985; font-size: .74rem; }
.record-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; background: #e2f6ed; color: #14704b; }
.record-value { display: grid; text-align: right; margin-left: auto; }
.record-value strong { color: var(--civic-950); font-size: 1.15rem; }
.person-avatar, .org-symbol { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--civic-900); color: var(--mint-300); font-weight: 850; }
.status-pill { margin-left: auto; padding: .35rem .65rem; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.status-pending { background: #fff2d8; color: #8b5b00; }
.status-accepted { background: #dff5ea; color: #126947; }
.status-rejected { background: #f5e4e5; color: #8e3039; }
.flow-list { list-style: none; padding: 0; margin: 0; }
.flow-list li { position: relative; display: flex; align-items: center; gap: .8rem; min-height: 59px; color: #70837f; }
.flow-list li::after { content: ""; position: absolute; left: 16px; top: 45px; bottom: -10px; width: 1px; background: #dbe6e2; }
.flow-list li:last-child::after { display: none; }
.flow-list li > span { width: 33px; height: 33px; flex: none; display: grid; place-items: center; border: 1px solid #ccdcd6; border-radius: 50%; background: #fff; font-weight: 800; font-size: .74rem; z-index: 1; }
.flow-list li.done > span { background: var(--mint-500); border-color: var(--mint-500); color: var(--civic-950); }
.flow-list li div { display: grid; }
.flow-list strong { color: var(--civic-950); font-size: .82rem; }
.flow-list small { font-size: .7rem; }
.invitation-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; margin-bottom: 1rem; padding: 1.25rem; border: 1px solid rgba(140,231,191,.28); border-radius: 22px; background: rgba(15,59,77,.88); color: #fff; box-shadow: 0 18px 40px rgba(5,35,49,.15); }
.invitation-card span { color: var(--mint-300); font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.invitation-card h2 { font-size: 1.05rem; margin: .2rem 0; }
.invitation-card p { color: rgba(255,255,255,.58); font-size: .78rem; margin: 0; }
.invitation-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--mint-500); color: var(--civic-950); font-size: 1.2rem; }
.invitation-actions { display: flex; gap: .5rem; }
.invitation-actions form { margin: 0; }
.organization-switcher { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; color: rgba(255,255,255,.6); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.organization-switcher a { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; letter-spacing: 0; }
.organization-switcher a:hover { background: var(--mint-500); color: var(--civic-950); }
.org-card { display: flex; align-items: center; gap: .75rem; padding: .8rem 0; border-top: 1px solid #e7eeeb; }
.org-card:first-of-type { border-top: 0; }
.org-card div { display: grid; }
.leaderboard-cta { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .85rem; border-radius: 16px; background: var(--civic-900); color: #fff; text-decoration: none; transition: .25s var(--ease); }
.leaderboard-cta:hover { color: #fff; background: var(--civic-800); transform: translateY(-2px); }
.leaderboard-cta > div { display: grid; }
.leaderboard-cta small { color: rgba(255,255,255,.55); font-size: .68rem; }
.leaderboard-cta > i { margin-left: auto; color: var(--mint-300); }
.mini-medal { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--mint-500); color: var(--civic-950); }
.empty-state.compact { padding: 1.5rem .5rem; }
.app-form-card { width: min(100%, 620px); margin: 3rem auto; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); border: 1px solid rgba(255,255,255,.7); border-radius: 30px; box-shadow: var(--shadow-soft); }
.app-form-card h1 { color: var(--civic-950); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; margin: .8rem 0 .35rem; }
.form-description { color: #6e827e; margin-bottom: 1.8rem; }
.form-back { display: flex; align-items: center; gap: .45rem; width: fit-content; margin-bottom: 1.4rem; color: #647a76; text-decoration: none; font-size: .8rem; }
.app-form select, .app-form textarea { width: 100%; padding: .78rem 1rem; border: 1px solid #cddbd7; border-radius: var(--radius-sm); background: #fff; outline: 0; margin: 0; }
.app-form select { min-height: 52px; }
.app-form textarea:focus, .app-form select:focus { border-color: var(--mint-500); box-shadow: 0 0 0 4px rgba(69,213,154,.15); }
.activity-grid { display: grid; gap: .75rem; }
.activity-card { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #e0e9e5; border-radius: 18px; background: #fff; transition: .25s var(--ease); }
.activity-card:hover { transform: translateY(-2px); border-color: #acd8c5; box-shadow: 0 12px 28px rgba(7,30,44,.08); }
.activity-date { width: 58px; height: 61px; flex: none; display: grid; place-items: center; align-content: center; border-radius: 16px; background: var(--civic-900); color: #fff; }
.activity-date strong { font-size: 1.35rem; line-height: 1; }
.activity-date span { color: var(--mint-300); font-size: .62rem; font-weight: 850; }
.activity-info { min-width: 0; }
.activity-info > span { color: #14704b; font-size: .65rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.activity-info h2 { color: var(--civic-950); font-size: 1rem; margin: .15rem 0; }
.activity-info p { color: #788b87; font-size: .75rem; margin: 0; }
.activity-arrow { margin-left: auto; color: #718580; }
.civic-hero { position: relative; overflow: hidden; background: var(--civic-950); color: #fff; }
.civic-hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px); background-size: 54px 54px; }
.civic-hero .container { position: relative; }
.civic-hero .hero h1 span, .civic-hero h1 span { color: var(--mint-500); }
.civic-hero .lead { color: rgba(255,255,255,.62) !important; }
.civic-preview { color: var(--ink); transform: rotate(1.5deg); border: 1px solid rgba(255,255,255,.55); box-shadow: 0 28px 70px rgba(0,0,0,.25) !important; }
.public-page .price-card, .public-page .feature-card, .partner-card { background: rgba(251,252,247,.98); color: var(--ink); border-color: rgba(255,255,255,.62); box-shadow: 0 18px 42px rgba(0,0,0,.12); }

/* Points, ranks and leaderboard */
.page-back { display: flex; align-items: center; gap: .45rem; width: fit-content; margin-bottom: 1.2rem; color: rgba(255,255,255,.58); font-size: .78rem; text-decoration: none; }
.page-back:hover { color: var(--mint-300); }
.points-heading { min-height: 240px; }
.points-summary { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; padding: 1.4rem 1.6rem; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(10,41,58,.9); color: #fff; box-shadow: 0 16px 36px rgba(5,35,49,.15); }
.points-summary > div:first-child { display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap; }
.points-summary span, .current-rank small { color: var(--mint-300); font-size: .65rem; font-weight: 850; letter-spacing: .1em; }
.points-summary > div:first-child strong { font-size: 2.5rem; line-height: 1; }
.points-summary > div:first-child small { color: rgba(255,255,255,.54); }
.current-rank { display: flex; align-items: center; gap: .7rem; }
.current-rank > div { display: grid; }
.rank-medal { position: relative; width: 58px; height: 65px; flex: none; display: grid; place-items: center; clip-path: polygon(50% 0, 91% 18%, 91% 68%, 50% 100%, 9% 68%, 9% 18%); font-size: 1.45rem; box-shadow: inset 0 0 0 3px rgba(255,255,255,.26); }
.medal-mint { background: linear-gradient(145deg, #a9f0d0, #39c98e); color: #073524; }
.medal-sky { background: linear-gradient(145deg, #b9e8ff, #4ca8db); color: #07354e; }
.medal-bronze { background: linear-gradient(145deg, #f1bf86, #a96635); color: #4b2410; }
.medal-silver { background: linear-gradient(145deg, #f1f5f7, #94a8b1); color: #2e4149; }
.medal-gold { background: linear-gradient(145deg, #ffe89a, #e1a51d); color: #563b00; }
.points-ledger { padding-top: 1.5rem; }
.ledger-count { color: #6f837f; font-size: .72rem; }
.point-entry { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid #e2ebe7; }
.point-entry:first-of-type { border-top: 0; }
.point-source { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; font-size: 1.1rem; }
.point-source-hours { background: #dff6ec; color: #11704b; }
.point-source-event { background: #fff0c7; color: #8a5a00; }
.point-source-training { background: #e2edff; color: #315c9a; }
.point-source-consistency { background: #eee4ff; color: #6943a2; }
.point-source-adjustment { background: #ecefed; color: #51615d; }
.point-entry-main { min-width: 0; }
.point-entry-title { display: flex; justify-content: space-between; gap: 1rem; }
.point-entry-title strong { color: var(--civic-950); }
.point-entry-title time, .point-entry-main > span, .point-entry-main > small { color: #778b87; font-size: .7rem; }
.point-formula { width: fit-content; margin-top: .35rem; padding: .38rem .55rem; border-radius: 8px; background: #eef5f2; color: #526963; font-size: .76rem; }
.point-formula strong { color: #116a4a; }
.point-amount { min-width: 64px; text-align: right; color: #13714f; font-size: 1.25rem; font-weight: 850; }
.point-amount.negative { color: #a13943; }
.guide-hero { max-width: 900px; padding: 2rem 0 3rem; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.rule-card { position: relative; min-height: 265px; display: flex; flex-direction: column; padding: 1.35rem; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(255,255,255,.07); color: #fff; backdrop-filter: blur(12px); }
.rule-icon { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 1.8rem; border-radius: 14px; background: var(--mint-500); color: var(--civic-950); font-size: 1.1rem; }
.rule-card > small { color: var(--mint-300); font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
.rule-card h2 { font-size: 1.4rem; margin: .35rem 0 .55rem; }
.rule-card p { color: rgba(255,255,255,.62); font-size: .82rem; }
.rule-equation { margin-top: auto; padding: .6rem; border-radius: 10px; background: rgba(255,255,255,.08); font-size: .78rem; }
.rolling-note { display: flex; gap: 1rem; margin: 1rem 0 4rem; padding: 1.25rem; border-radius: 18px; background: var(--mint-500); color: var(--civic-950); }
.rolling-note > i { font-size: 1.5rem; }
.rolling-note p { margin: .15rem 0 0; font-size: .78rem; opacity: .75; }
.section-heading-light { max-width: 680px; margin-bottom: 1.5rem; }
.section-heading-light h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; margin: .5rem 0; }
.section-heading-light p { color: rgba(255,255,255,.58); }
.rank-path { display: grid; gap: .8rem; padding-bottom: 2rem; }
.rank-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.2rem; padding: 1.15rem 1.3rem; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(255,255,255,.06); color: #fff; }
.rank-card-copy small { color: var(--mint-300); font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
.rank-card-copy h3 { margin: .2rem 0; font-size: 1.2rem; }
.rank-card-copy p { color: rgba(255,255,255,.55); font-size: .78rem; margin: 0; }
.leaderboard-heading { min-height: 260px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.leaderboard-heading > div { max-width: 780px; }
.leaderboard-panel { padding-top: 1rem; }
.leaderboard-labels { display: flex; justify-content: space-between; padding: .25rem 0 .75rem 82px; color: #718580; font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
.leader-row-rich { min-height: 82px; gap: 1rem; }
.podium-medal, .position-medal { position: relative; width: 53px; height: 59px; flex: none; display: grid; place-items: center; clip-path: polygon(50% 0, 92% 20%, 92% 70%, 50% 100%, 8% 70%, 8% 20%); font-size: 1.1rem; }
.podium-medal small, .position-medal small { position: absolute; right: 5px; bottom: 8px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--civic-950); color: #fff; font-size: .57rem; }
.podium-gold { background: linear-gradient(145deg, #ffe898, #d99c17); color: #6b4700; }
.podium-silver { background: linear-gradient(145deg, #f5f8fa, #91a4ad); color: #35474e; }
.podium-bronze { background: linear-gradient(145deg, #efbd82, #a96331); color: #51250c; }
.position-medal { margin-right: 0; background: #dff4eb; color: #14704b; border-radius: 0; }
.leader-person { display: grid; }
.leader-person strong { color: var(--civic-950); }
.leader-person span { color: #6f837f; font-size: .7rem; }
.leader-person span i { color: #13835b; }
.leader-points { margin-left: auto; color: var(--civic-950); font-size: 1.2rem; }
.leader-points small { color: #6d817d; font-size: .7rem; }

/* Civic portfolio */
.portfolio-heading { min-height: 250px; }
.portfolio-control-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 1rem; align-items: stretch; }
.portfolio-preview-card { min-height: 470px; overflow: hidden; border-radius: 28px; background: var(--paper); box-shadow: 0 18px 50px rgba(5,35,49,.16); }
.portfolio-preview-top { height: 62px; display: flex; align-items: center; gap: .8rem; padding: 0 1.7rem; background: var(--civic-950); color: var(--mint-300); font-size: .67rem; font-weight: 850; letter-spacing: .1em; }
.portfolio-plus { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--mint-500); color: var(--civic-950); font-size: 1.4rem; }
.portfolio-preview-body { display: flex; flex-direction: column; min-height: 408px; padding: clamp(1.5rem, 4vw, 3.2rem); }
.portfolio-preview-body h2 { color: var(--civic-950); font-size: clamp(2.2rem, 5vw, 4.2rem); letter-spacing: -.055em; margin: .6rem 0; }
.portfolio-preview-body > p { max-width: 610px; color: #677c77; line-height: 1.7; }
.portfolio-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: auto; padding-top: 2rem; }
.portfolio-mini-stats > div { display: grid; padding: 1rem; border-radius: 16px; background: #eaf4ef; }
.portfolio-mini-stats strong { color: var(--civic-950); font-size: 1.75rem; line-height: 1; }
.portfolio-mini-stats small { color: #657a75; font-size: .67rem; margin-top: .35rem; }
.portfolio-preview-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; color: #58706a; font-size: .72rem; font-weight: 750; }
.portfolio-preview-footer i { color: #13835b; }
.portfolio-actions-panel { display: flex; flex-direction: column; }
.portfolio-actions-panel h2 { color: var(--civic-950); font-size: 1.65rem; margin: .8rem 0 .3rem; }
.portfolio-actions-panel > p { color: #6b807b; font-size: .82rem; line-height: 1.55; }
.share-label { color: #334a45; font-size: .7rem; font-weight: 850; margin: 1rem 0 .4rem; }
.share-field { display: flex; align-items: center; padding: .3rem; border: 1px solid #cddbd7; border-radius: 13px; background: #fff; }
.share-field input { min-width: 0; flex: 1; border: 0; padding: .55rem; margin: 0; color: #60746f; font-size: .72rem; outline: 0; }
.share-field button { width: 36px; height: 36px; flex: none; border: 0; border-radius: 10px; background: #e5f6ee; color: #116a49; }
.share-field button.is-copied { background: var(--mint-500); color: var(--civic-950); }
.portfolio-action-stack { display: grid; gap: .6rem; margin-top: 1rem; }
.portfolio-secondary-btn { border: 1px solid #c9d9d3; color: var(--civic-900); border-radius: 14px; padding: .75rem; font-weight: 750; }
.portfolio-secondary-btn:hover { border-color: var(--mint-500); color: #116a49; background: #edf8f3; }
.portfolio-refresh-form { margin-top: auto; padding-top: 1.2rem; }
.portfolio-refresh-form button { width: 100%; border: 0; background: transparent; color: #14704b; font-size: .76rem; font-weight: 750; }
.portfolio-actions-panel > small { text-align: center; color: #82938f; font-size: .65rem; margin-top: .6rem; }
.portfolio-empty-card { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); padding: clamp(2rem, 6vw, 5rem); border-radius: 30px; background: var(--paper); box-shadow: var(--shadow-soft); }
.portfolio-empty-card h2 { color: var(--civic-950); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; margin: .8rem 0; }
.portfolio-empty-card p { color: #687d78; line-height: 1.65; max-width: 660px; }
.portfolio-empty-card form { width: fit-content; margin: 1.3rem 0; }
.portfolio-empty-card > div:last-child > small { display: block; color: #738782; font-size: .72rem; }
.portfolio-empty-visual { position: relative; min-height: 310px; }
.sheet { position: absolute; width: 210px; height: 285px; left: 50%; top: 50%; border-radius: 20px; }
.sheet-back { transform: translate(-58%, -48%) rotate(-9deg); background: #ccecdf; }
.sheet-front { display: grid; place-items: center; transform: translate(-42%, -52%) rotate(3deg); background: var(--civic-900); color: var(--mint-500); box-shadow: 0 25px 50px rgba(5,35,49,.25); font-size: 4rem; }
.sheet-front::before { content: "PORTFOLIO CIVICO"; position: absolute; left: 1.3rem; top: 1.3rem; color: var(--mint-300); font-size: .6rem; font-weight: 850; letter-spacing: .1em; }
.portfolio-explainer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.portfolio-explainer > div { padding: 1.2rem; border: 1px solid #dbe7e2; border-radius: 18px; background: rgba(251,252,247,.86); }
.portfolio-explainer span { color: #16845b; font-size: .68rem; font-weight: 850; }
.portfolio-explainer strong { display: block; color: var(--civic-950); margin: .3rem 0; }
.portfolio-explainer p { color: #728681; font-size: .75rem; margin: 0; }
.portfolio-dashboard-banner { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1.15rem 1.3rem; border-radius: 20px; background: linear-gradient(110deg, var(--civic-900), #105166); color: #fff; text-decoration: none; box-shadow: 0 16px 35px rgba(5,35,49,.12); transition: .25s var(--ease); }
.portfolio-dashboard-banner:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 22px 42px rgba(5,35,49,.18); }
.portfolio-banner-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 15px; background: var(--mint-500); color: var(--civic-950); font-size: 1.25rem; }
.portfolio-dashboard-banner > div { display: grid; }
.portfolio-dashboard-banner > div > span { color: var(--mint-300); font-size: .62rem; font-weight: 850; letter-spacing: .1em; }
.portfolio-dashboard-banner > div > strong { font-size: 1rem; }
.portfolio-dashboard-banner > div > small { color: rgba(255,255,255,.55); font-size: .72rem; }
.portfolio-dashboard-banner > i { margin-left: auto; color: var(--mint-300); }
.public-portfolio-hero { min-height: 255px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.public-portfolio-hero > div { max-width: 800px; }
.public-portfolio-hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.06em; margin: .8rem 0; }
.public-portfolio-hero p { color: rgba(255,255,255,.62); max-width: 680px; }
.verified-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .7rem; border-radius: 999px; background: rgba(69,213,154,.12); color: var(--mint-300); font-size: .67rem; font-weight: 850; letter-spacing: .08em; }
.public-portfolio-sheet { overflow: hidden; border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 70px rgba(0,0,0,.2); }
.public-portfolio-intro { display: grid; grid-template-columns: 1fr auto; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); }
.public-portfolio-intro h2 { color: var(--civic-950); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; margin: .5rem 0; }
.public-portfolio-intro p { color: #697e79; max-width: 680px; line-height: 1.7; }
.interest-line { display: flex; gap: .6rem; color: #14704b; font-size: .78rem; font-weight: 700; }
.portfolio-seal { width: 180px; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; clip-path: polygon(50% 0, 91% 18%, 91% 72%, 50% 100%, 9% 72%, 9% 18%); background: linear-gradient(145deg, #a9f0d0, #39c98e); color: var(--civic-950); text-align: center; }
.portfolio-seal i { font-size: 2.2rem; }
.portfolio-seal strong { margin-top: .5rem; }
.portfolio-seal small { font-size: .65rem; }
.public-portfolio-stats { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--civic-900); color: #fff; }
.public-portfolio-stats > div { display: grid; place-items: center; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.12); }
.public-portfolio-stats > div:last-child { border-right: 0; }
.public-portfolio-stats strong { color: var(--mint-300); font-size: 2rem; }
.public-portfolio-stats span { color: rgba(255,255,255,.6); font-size: .7rem; }
.public-portfolio-columns { display: grid; grid-template-columns: 1.5fr .7fr; gap: 2.5rem; padding: clamp(2rem, 5vw, 4rem); }
.portfolio-activity { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid #e0e9e5; }
.portfolio-activity:first-of-type { border-top: 0; }
.portfolio-activity time { color: #71847f; font-size: .7rem; text-transform: uppercase; }
.portfolio-activity > div { display: grid; }
.portfolio-activity span { color: #748782; font-size: .72rem; }
.portfolio-activity b { color: #14704b; }
.portfolio-organization { display: flex; align-items: center; gap: .7rem; padding: .75rem 0; border-top: 1px solid #e0e9e5; }
.portfolio-organization:first-of-type { border-top: 0; }
.portfolio-organization > span { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--civic-900); color: var(--mint-300); font-weight: 850; }
.portfolio-organization > div { display: grid; }
.portfolio-organization small { color: #748782; font-size: .7rem; }
.portfolio-verification { display: flex; align-items: center; gap: .8rem; padding: 1.4rem clamp(2rem, 5vw, 4rem); background: #e5f3ec; color: var(--civic-950); }
.portfolio-verification > i { color: #13835b; font-size: 1.6rem; }
.portfolio-verification > div { display: grid; }
.portfolio-verification p { margin: 0; color: #667b76; font-size: .7rem; }
.portfolio-verification > span { margin-left: auto; color: #607570; font-size: .72rem; }
.portfolio-disclaimer { max-width: 780px; margin: 1.2rem auto 0; color: rgba(255,255,255,.45); font-size: .7rem; text-align: center; }

@media (max-width: 991px) {
  .content-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-end; padding: 2rem 0; }
  .invitation-card { grid-template-columns: auto 1fr; }
  .invitation-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .rule-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-control-grid, .public-portfolio-columns { grid-template-columns: 1fr; }
  .portfolio-empty-card { grid-template-columns: 1fr; }
  .portfolio-empty-visual { min-height: 270px; }
}

@media (max-width: 700px) {
  .site-footer .container, .page-heading { align-items: flex-start; flex-direction: column; }
  .site-footer p { text-align: left; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 125px; }
  .heading-actions, .heading-actions .btn { width: 100%; }
  .invitation-card { grid-template-columns: 1fr; }
  .invitation-actions { grid-column: auto; display: grid; }
  .invitation-actions .btn { width: 100%; }
  .person-row { flex-wrap: wrap; padding: .75rem 0; }
  .status-pill { margin-left: 51px; }
  .points-summary, .leaderboard-heading { align-items: flex-start; flex-direction: column; }
  .point-entry { grid-template-columns: auto 1fr; }
  .point-amount { grid-column: 2; text-align: left; }
  .point-entry-title { display: grid; gap: .1rem; }
  .rule-grid { grid-template-columns: 1fr; }
  .rule-card { min-height: 230px; }
  .leaderboard-labels { display: none; }
  .leader-row-rich { min-height: 76px; }
  .leader-person span { max-width: 150px; }
  .portfolio-mini-stats, .portfolio-explainer, .public-portfolio-stats { grid-template-columns: 1fr; }
  .portfolio-preview-footer, .public-portfolio-hero, .portfolio-verification { align-items: flex-start; flex-direction: column; }
  .portfolio-empty-card { padding: 1.5rem; }
  .portfolio-empty-visual { min-height: 240px; transform: scale(.82); }
  .public-portfolio-intro { grid-template-columns: 1fr; }
  .portfolio-seal { width: 155px; min-height: 165px; }
  .portfolio-activity { grid-template-columns: 1fr auto; }
  .portfolio-activity time { grid-column: 1 / -1; }
  .portfolio-verification > span { margin-left: 0; }
}
