: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); }
.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; }
.notification-dropdown { display: flex; align-items: center; }
.notification-bell { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); transition: .2s var(--ease); }
.notification-bell:hover, .notification-bell:focus { color: var(--mint-300); border-color: rgba(140,231,191,.45); background: rgba(69,213,154,.1); }
.notification-dot { position: absolute; right: 8px; top: 8px; width: 9px; height: 9px; border: 2px solid var(--civic-950); border-radius: 50%; background: var(--mint-500); }
.notification-menu { width: min(360px, calc(100vw - 2rem)); padding: .6rem; border: 1px solid rgba(10,41,58,.1); border-radius: 18px; background: var(--paper); box-shadow: 0 22px 55px rgba(0,0,0,.22); }
.notification-menu-head { display: flex; align-items: baseline; justify-content: space-between; padding: .7rem .8rem .9rem; color: var(--civic-950); }
.notification-menu-head small { color: #6a7f79; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.notification-item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .7rem; padding: .8rem; border-radius: 14px; color: var(--ink); text-decoration: none; }
.notification-item + .notification-item { margin-top: .25rem; }
.notification-item:hover { color: var(--ink); background: #eef7f2; }
.notification-item > i { color: #14704b; margin-top: .1rem; }
.notification-item span { display: grid; font-size: .82rem; line-height: 1.35; }
.notification-item small { color: #657a75; font-size: .72rem; margin-top: .15rem; }
.notification-error > i { color: var(--danger); }
.notification-success > i { color: #14704b; }
.notification-warning > i { color: #9a6500; }
.notification-empty { padding: 1.2rem .8rem; color: #71847f; font-size: .82rem; text-align: center; }
.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); }
.pricing-actions { display: grid; gap: .55rem; margin-top: 1.1rem; }
.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; }
.btn-danger-civic { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 14px; background: #b42332; color: #fff; padding: .82rem 1.1rem; font-weight: 850; box-shadow: 0 14px 28px rgba(180,35,50,.18); transition: .25s var(--ease); }
.btn-danger-civic:hover, .btn-danger-civic:focus { background: #8f1d2b; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px rgba(180,35,50,.24); }
.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; }
.home-return-button { width: min(100%, 280px); }
.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; }
.verify-result-icon { width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto; border-radius: 28px; font-size: 2.4rem; }
.verify-result-icon.is-ok { background: #ddf7eb; color: #14704b; }
.verify-result-icon.is-error { background: #fae4e6; color: var(--danger); }
.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; }
.footer-credit { color: var(--mint-300); font-weight: 800; }
.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(4, 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; }
}

/* Attivix brand refresh */
body { background: #061b27; }
.civic-nav { background: rgba(5, 20, 29, .78); border-bottom: 1px solid rgba(69,213,154,.12); box-shadow: 0 10px 35px rgba(0,0,0,.16); }
.brand-logo { display: block; object-fit: contain; filter: drop-shadow(0 0 18px rgba(43,221,174,.16)); }
.brand-logo-nav { width: 180px; height: auto; object-fit: contain; object-position: center; filter: drop-shadow(0 0 18px rgba(43,221,174,.22)); }
.brand-logo-footer { width: 132px; max-height: 54px; object-position: center; padding: .2rem .45rem; border-radius: 14px; background: transparent; }
.brand-logo-light { filter: drop-shadow(0 0 18px rgba(43,221,174,.18)); }
.navbar .nav-link { color: rgba(238,250,246,.68); font-weight: 700; transition: color .2s var(--ease), transform .2s var(--ease); }
.navbar .nav-link:hover { color: var(--mint-300); transform: translateY(-1px); }
.btn-light.btn-sm { border: 0; border-radius: 999px; font-weight: 800; }

.civic-hero { position: relative; overflow: hidden; min-height: calc(100vh - 72px); display: flex; align-items: center; background: radial-gradient(circle at 77% 46%, rgba(36,229,178,.22), transparent 25%), radial-gradient(circle at 12% 10%, rgba(34,92,119,.42), transparent 30%), linear-gradient(135deg, #061a26 0%, #0a2634 48%, #06141d 100%); color: #fff; }
.civic-hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(circle at 55% 40%, #000, transparent 75%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(22px); opacity: .75; animation: floatGlow 10s var(--ease) infinite alternate; }
.hero-orb-a { width: 280px; height: 280px; right: 11%; top: 23%; background: rgba(43,221,174,.22); }
.hero-orb-b { width: 220px; height: 220px; left: 7%; bottom: 8%; background: rgba(10,47,68,.72); animation-delay: -4s; }
.hero-wordmark { width: min(330px, 82vw); margin-bottom: 1.5rem; filter: drop-shadow(0 20px 45px rgba(0,0,0,.28)); }
.civic-hero h1 { letter-spacing: -.065em; line-height: .94; }
.civic-hero h1 span { color: var(--mint-500); text-shadow: 0 0 34px rgba(69,213,154,.28); }
.civic-hero .lead { color: rgba(239,250,246,.64) !important; max-width: 680px; }
.hero-brand-stage { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-brand-stage > img { width: min(520px, 92vw); border-radius: 44px; transform: rotate(-2deg); animation: brandBreath 5.8s var(--ease) infinite alternate; }
.hero-brand-card { position: absolute; right: 0; bottom: 58px; width: min(315px, 82vw); padding: 1.2rem; border: 1px solid rgba(151,245,213,.18); border-radius: 22px; background: rgba(5,24,34,.72); color: #fff; backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.hero-brand-card span { color: var(--mint-300); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-brand-card strong { display: block; margin: .35rem 0; font-size: 1.3rem; letter-spacing: -.03em; }
.hero-brand-card small { color: rgba(255,255,255,.58); line-height: 1.5; }

.feature-card, .price-card, .panel, .form-panel, .verify-card, .auth-card, .auth-panel, .stat-card, .content-card { border: 1px solid rgba(8,39,53,.08); background: rgba(251,252,247,.96); box-shadow: 0 18px 50px rgba(4,23,34,.08); transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease); }
.feature-card:hover, .price-card:hover, .stat-card:hover { transform: translateY(-4px); border-color: rgba(69,213,154,.38); box-shadow: 0 24px 65px rgba(4,23,34,.14); }
.feature-card > i { color: var(--mint-500); filter: drop-shadow(0 0 18px rgba(69,213,154,.22)); }
.public-page .text-center h1,
.public-page .text-center h2,
.public-page .public-title,
.public-page .leaderboard-heading h1,
.public-page .points-summary h1,
.public-page .points-guide h1 { color: #fff; text-shadow: 0 10px 34px rgba(0,0,0,.18); }
.public-page .text-center .fw-bold,
.civic-hero + .container h2 { color: #eefaf6; }
.public-page .public-lead,
.public-page .text-secondary { color: rgba(238,250,246,.68) !important; }
.civic-hero + .container { color: #eefaf6; }
.civic-hero + .container .feature-card { color: var(--ink); }
.civic-hero + .container .feature-card h3 { color: #17212b; }
.civic-hero + .container .feature-card p { color: #4f6268; }
.price-card { position: relative; padding-top: 1.75rem; }
.price-card h3 { margin-top: 0; }
.price-card.featured { border: 1px solid rgba(69,213,154,.45); box-shadow: 0 22px 60px rgba(16,199,151,.12); }
.plan-stamp { position: absolute; top: .85rem; right: .85rem; z-index: 2; display: inline-flex; align-items: center; justify-content: center; padding: .32rem .58rem; border: 1px solid rgba(6,27,39,.12); border-radius: 999px; background: linear-gradient(135deg, #52e6b6, #20c997); color: #061b27; font-size: .65rem; font-weight: 950; letter-spacing: .06em; text-transform: uppercase; transform: rotate(3deg); box-shadow: 0 10px 20px rgba(32,201,151,.22); pointer-events: none; }
.plan-stamp::before { content: ""; position: absolute; inset: 3px; border: 1px dashed rgba(6,27,39,.28); border-radius: inherit; }

.site-footer { background: #05141d; color: rgba(255,255,255,.72); border-top: 1px solid rgba(69,213,154,.12); }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand strong { display: block; color: #fff; }
.footer-brand small { color: rgba(255,255,255,.48); }
.site-footer p { margin: 0; color: rgba(255,255,255,.52); text-align: right; font-size: .82rem; }
.footer-credit { color: var(--mint-300); }
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; font-size: .78rem; }
.footer-links a, .footer-links button { color: rgba(255,255,255,.58); border: 0; background: transparent; padding: 0; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: var(--mint-300); }

.legal-page { min-height: calc(100vh - 72px); }
.legal-hero { max-width: 880px; margin-bottom: 2rem; }
.legal-hero h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.06em; margin: .8rem 0; }
.legal-hero p { color: rgba(255,255,255,.62); max-width: 690px; font-size: 1.05rem; line-height: 1.7; }
.legal-card { max-width: 940px; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 28px 70px rgba(0,0,0,.18); }
.legal-card h2 { margin-top: 1.7rem; color: var(--civic-950); font-size: 1.25rem; letter-spacing: -.02em; }
.legal-card p, .legal-card li { color: #5e736f; line-height: 1.72; }
.legal-updated { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; background: #e8f7f1; color: #14704b !important; font-size: .76rem; font-weight: 800; }
.danger-zone-card { border: 1px solid rgba(180,35,50,.16); }
.danger-zone-card h2 { color: #8f1d2b; }
.privacy-dashboard-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; }
.privacy-dashboard-panel p { margin: .35rem 0 0; color: #6d817c; max-width: 760px; }
.privacy-dashboard-actions { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: flex-end; }

.cookie-banner { position: fixed; left: 50%; bottom: 1.2rem; z-index: 1090; width: min(980px, calc(100vw - 2rem)); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid rgba(151,245,213,.18); border-radius: 24px; background: rgba(5,20,29,.92); color: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.32); backdrop-filter: blur(18px); transform: translateX(-50%); }
.cookie-banner[hidden], .cookie-preferences[hidden] { display: none !important; }
.cookie-banner p { margin: .2rem 0 .35rem; color: rgba(255,255,255,.62); font-size: .84rem; line-height: 1.45; }
.cookie-banner a { color: var(--mint-300); font-weight: 800; font-size: .8rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-cookie-ghost { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; background: rgba(255,255,255,.06); font-weight: 800; }
.btn-cookie-ghost:hover { border-color: rgba(140,231,191,.46); color: var(--mint-300); background: rgba(69,213,154,.08); }
.cookie-preferences { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 1rem; background: rgba(2,10,15,.62); backdrop-filter: blur(10px); }
.cookie-panel-card { width: min(640px, 100%); padding: 1.2rem; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 34px 90px rgba(0,0,0,.34); }
.cookie-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .5rem .4rem 1rem; }
.cookie-panel-head h2 { margin: .2rem 0 0; color: var(--civic-950); font-size: 2rem; letter-spacing: -.05em; }
.cookie-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #e9f4ef; color: var(--civic-900); }
.cookie-choice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid #dce9e4; border-radius: 18px; margin-top: .65rem; background: #fff; }
.cookie-choice strong, .cookie-choice small { display: block; }
.cookie-choice small { margin-top: .2rem; color: #6e827d; font-size: .78rem; }
.cookie-choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--mint-500); flex: none; }
.required-chip { padding: .34rem .55rem; border-radius: 999px; background: #e7f7f0; color: #14704b; font-size: .68rem; font-weight: 900; white-space: nowrap; }

@keyframes floatGlow {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18px, -22px, 0) scale(1.06); }
}
@keyframes brandBreath {
  from { transform: translateY(0) rotate(-2deg) scale(1); filter: drop-shadow(0 0 24px rgba(43,221,174,.16)); }
  to { transform: translateY(-10px) rotate(1deg) scale(1.015); filter: drop-shadow(0 0 38px rgba(43,221,174,.28)); }
}

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

@media (max-width: 991px) {
  .hero-brand-stage { min-height: 360px; }
  .hero-brand-card { right: 1rem; bottom: 20px; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
  .privacy-dashboard-panel { grid-template-columns: 1fr; }
  .privacy-dashboard-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .brand-logo-nav { width: 106px; height: 36px; }
  .site-footer .container { align-items: flex-start; flex-direction: column; }
  .site-footer p { text-align: left; }
  .cookie-choice { align-items: flex-start; flex-direction: column; }
}

/* Motion system and clean floating header */
.civic-nav {
  padding: .72rem 0;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  z-index: 1080;
  transition: padding .28s var(--ease), transform .28s var(--ease);
}
.civic-nav .container {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(151,245,213,.14);
  border-radius: 999px;
  background: rgba(4,18,27,.68);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  transition: background .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), transform .28s var(--ease);
}
.civic-nav .container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  clip-path: inset(0 round 999px);
  opacity: .45;
  background: linear-gradient(110deg, transparent 0%, rgba(69,213,154,.13) 32%, transparent 58%);
  transform: translateX(-75%);
  animation: navSheen 7s ease-in-out infinite;
}
.civic-nav.nav-scrolled {
  padding: .42rem 0;
}
.civic-nav.nav-scrolled .container {
  border-color: rgba(151,245,213,.24);
  background: rgba(4,18,27,.88);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  transform: translateY(1px);
}
.civic-nav a,
.civic-nav button {
  position: relative;
  z-index: 1;
}
.civic-nav .navbar-collapse,
.civic-nav .navbar-nav,
.notification-dropdown {
  overflow: visible;
}
.notification-dropdown {
  position: relative;
  z-index: 1090;
}
.notification-menu {
  z-index: 1100;
  margin-top: .7rem !important;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: .5rem;
  right: .5rem;
  bottom: .24rem;
  height: 2px;
  border-radius: 999px;
  background: var(--mint-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}
.navbar .nav-link {
  position: relative;
}
.navbar .nav-link:hover::after,
.navbar .nav-link:focus::after {
  transform: scaleX(1);
}
.brand-logo-nav {
  transition: transform .28s var(--ease), filter .28s var(--ease);
}
.brand-logo-nav:hover {
  transform: translateY(-1px) scale(1.025);
  filter: drop-shadow(0 0 26px rgba(43,221,174,.32));
}

.civic-hero {
  padding-top: clamp(6rem, 12vh, 9rem) !important;
}
.hero-copy-wrap {
  position: relative;
  isolation: isolate;
}
.hero-copy-wrap > * { position: relative; z-index: 2; }
.hero-welcome {
  display: block;
  margin: .35rem 0 .45rem;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -.025em;
}
.hero-symbol-backdrop {
  position: absolute;
  z-index: 1;
  left: clamp(-2.6rem, -2vw, -.8rem);
  top: clamp(-1.2rem, -1vw, .2rem);
  width: clamp(360px, 32vw, 520px);
  max-width: none;
  opacity: .34;
  transform: none;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero-symbol-backdrop picture,
.hero-symbol-backdrop img {
  display: block;
}
.hero-symbol-backdrop img {
  width: 100%;
  height: auto;
  filter: saturate(1.1) drop-shadow(0 0 42px rgba(43,221,174,.22)) drop-shadow(0 24px 58px rgba(0,0,0,.28));
  animation: heroBackdropDrift 8s ease-in-out infinite;
}
.hero-card-stage {
  min-height: 470px;
  isolation: isolate;
}
.hero-card-stage .hero-brand-card {
  position: relative;
  z-index: 2;
  right: auto;
  bottom: auto;
  width: min(100%, 430px);
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 18%, rgba(69,213,154,.22), transparent 32%),
    linear-gradient(145deg, rgba(6,31,45,.88), rgba(4,18,27,.72));
  box-shadow: 0 34px 90px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  animation: welcomeCardFloat 6.4s ease-in-out infinite;
}
.hero-card-stage .hero-brand-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(151,245,213,.12);
  border-radius: 23px;
  pointer-events: none;
}
.hero-card-stage .hero-brand-card::after {
  content: "";
  position: absolute;
  right: 1.4rem;
  top: 1.4rem;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(69,213,154,.9), rgba(18,207,162,.45));
  box-shadow: 0 0 35px rgba(69,213,154,.26);
  opacity: .72;
}
.hero-card-stage .hero-brand-card strong {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
  max-width: 340px;
}
.hero-card-stage .hero-brand-card small {
  margin-top: .75rem;
  max-width: 320px;
  font-size: .9rem;
}
.hero-card-stage .hero-welcome {
  color: var(--mint-300);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(.985);
  transition:
    opacity .72s var(--ease),
    transform .72s var(--ease),
    box-shadow .24s var(--ease),
    border-color .24s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.feature-card,
.price-card,
.app-panel,
.stat-card,
.legal-card,
.partner-card,
.portfolio-dashboard-banner,
.invitation-card,
.rule-card {
  transform-style: preserve-3d;
}
.feature-card:hover,
.price-card:hover,
.app-panel:hover,
.stat-card:hover,
.partner-card:hover,
.rule-card:hover {
  transform: translateY(-6px);
}
.record-row,
.org-card,
.point-entry,
.leader-row-rich {
  transition: transform .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.record-row:hover,
.org-card:hover,
.point-entry:hover,
.leader-row-rich:hover {
  transform: translateX(4px);
}
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.72);
  font-weight: 750;
}
.pagination-link {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: .55rem .9rem;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.06);
}
.pagination-link:hover,
.pagination-link:focus {
  color: var(--mint-300);
  border-color: rgba(69,213,154,.4);
}

@keyframes navSheen {
  0%, 45% { transform: translateX(-80%); }
  70%, 100% { transform: translateX(120%); }
}
@keyframes heroBackdropDrift {
  from { transform: translate3d(-8px, 10px, 0) rotate(-4deg) scale(1); }
  to { transform: translate3d(18px, -18px, 0) rotate(2deg) scale(1.055); }
}
@keyframes welcomeCardFloat {
  0% { transform: translate3d(0, 0, 0) rotate(.6deg); }
  25% { transform: translate3d(8px, -8px, 0) rotate(-.25deg); }
  50% { transform: translate3d(0, -15px, 0) rotate(-.55deg); }
  75% { transform: translate3d(-7px, -7px, 0) rotate(.15deg); }
  100% { transform: translate3d(0, 0, 0) rotate(.6deg); }
}

@media (max-width: 991px) {
  .civic-nav .container { border-radius: 24px; }
  .navbar-collapse { padding: .85rem 0 .35rem; }
  .navbar .nav-link::after { left: 0; right: auto; width: 34px; }
  .hero-card-stage { min-height: auto; }
  .hero-symbol-backdrop {
    left: -2.2rem;
    top: .4rem;
    right: auto;
    bottom: auto;
    width: min(330px, 78vw);
    opacity: .22;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .civic-nav .container::before { animation: none !important; }
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile polish: centered, app-ready landing layout */
@media (max-width: 991px) {
  .civic-nav {
    padding: .55rem .75rem;
  }
  .civic-nav .container {
    max-width: calc(100vw - 1.5rem);
    border-radius: 26px;
    padding-left: .85rem;
    padding-right: .85rem;
  }
  .navbar-brand {
    max-width: 58vw;
  }
  .brand-logo-nav {
    width: clamp(118px, 28vw, 160px);
    max-height: 42px;
  }
  .navbar-collapse {
    text-align: center;
  }
  .navbar-nav {
    align-items: center;
    gap: .15rem;
    padding-top: .65rem;
  }
  .notification-dropdown {
    justify-content: center;
    margin-top: .45rem;
  }
  .civic-hero {
    min-height: auto;
    padding-top: clamp(2.25rem, 8vw, 4rem) !important;
    padding-bottom: clamp(3rem, 10vw, 5rem) !important;
    text-align: center;
  }
  .civic-hero .container {
    max-width: 760px;
  }
  .civic-hero .row {
    justify-content: center;
    gap: clamp(2.3rem, 6vw, 3.6rem) !important;
  }
  .hero-copy-wrap {
    max-width: 680px;
    margin-inline: auto;
    display: grid;
    justify-items: center;
    text-align: center;
  }
  .hero-copy-wrap .lead {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-copy-wrap .d-flex {
    justify-content: center;
  }
  .hero-symbol-backdrop {
    left: 50%;
    top: 1.15rem;
    width: clamp(300px, 66vw, 470px);
    opacity: .24;
    transform: translateX(-50%);
  }
  .hero-card-stage {
    min-height: auto;
    width: min(100%, 520px);
    margin-inline: auto;
    display: grid;
    place-items: center;
  }
  .hero-card-stage .hero-brand-card {
    width: min(100%, 430px);
    min-height: 255px;
    margin-inline: auto;
    text-align: left;
  }
  .civic-hero + .container {
    max-width: 760px;
    text-align: center;
  }
  .civic-hero + .container .row {
    justify-content: center;
  }
  .civic-hero + .container .feature-card {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
  }
  .legal-strip .container {
    max-width: 760px;
    justify-content: center;
    text-align: left;
  }
  .page-heading {
    min-height: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .page-heading > div {
    width: 100%;
  }
  .page-heading p,
  .public-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .heading-actions {
    justify-content: center;
  }
  .content-grid,
  .stat-grid,
  .portfolio-control-grid,
  .public-portfolio-columns,
  .public-portfolio-intro,
  .portfolio-mini-stats,
  .portfolio-explainer,
  .public-portfolio-stats {
    grid-template-columns: 1fr;
  }
  .app-panel,
  .content-card,
  .stat-card,
  .legal-card,
  .portfolio-empty-card,
  .portfolio-preview-card,
  .public-portfolio-card {
    width: min(100%, 680px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  body {
    overflow-x: hidden;
  }
  .civic-nav {
    padding-inline: .55rem;
  }
  .civic-nav .container {
    max-width: calc(100vw - 1.1rem);
    border-radius: 22px;
  }
  .civic-hero {
    padding-top: 2.25rem !important;
    padding-bottom: 3.25rem !important;
  }
  .civic-hero .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
  .civic-hero h1 {
    font-size: clamp(3.05rem, 15vw, 4.6rem);
    line-height: .94;
    max-width: 9.6em;
    margin-left: auto;
    margin-right: auto;
  }
  .civic-hero .lead {
    font-size: clamp(1rem, 4.2vw, 1.18rem);
    line-height: 1.55;
  }
  .hero-copy-wrap .d-flex {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: .75rem !important;
  }
  .hero-copy-wrap .btn {
    width: min(100%, 360px);
    margin-inline: auto;
  }
  .hero-symbol-backdrop {
    top: 1.35rem;
    width: min(390px, 92vw);
    opacity: .2;
  }
  .hero-card-stage .hero-brand-card {
    width: min(100%, 360px);
    min-height: 235px;
    padding: 1.45rem;
    border-radius: 26px;
    text-align: center;
    align-items: center;
  }
  .hero-card-stage .hero-brand-card::after {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    right: 1rem;
    top: 1rem;
    opacity: .55;
  }
  .hero-card-stage .hero-brand-card strong {
    font-size: clamp(2rem, 11vw, 2.55rem);
    max-width: 270px;
  }
  .hero-card-stage .hero-brand-card small {
    max-width: 260px;
  }
  .legal-strip .container {
    align-items: flex-start;
    flex-direction: row;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    text-align: left;
  }
  .page-heading {
    padding: 1.6rem 0 1.35rem;
  }
  .page-heading h1,
  .public-title {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
    text-align: center;
  }
  .page-heading p,
  .public-lead {
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
  }
  .heading-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .heading-actions .btn,
  .app-panel .btn,
  .content-card .btn,
  .privacy-dashboard-actions .btn {
    width: min(100%, 360px);
    margin-left: auto;
    margin-right: auto;
  }
  .app-panel,
  .content-card,
  .legal-card,
  .stat-card {
    border-radius: 22px;
    padding: 1.15rem;
  }
  .panel-heading,
  .points-summary,
  .leaderboard-heading,
  .portfolio-preview-footer,
  .public-portfolio-hero,
  .privacy-dashboard-panel {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
  .record-row,
  .person-row,
  .activity-row,
  .leader-row {
    align-items: flex-start;
  }
  .record-value {
    text-align: left;
    margin-left: 0;
  }
  .cookie-banner {
    width: calc(100vw - 1.2rem);
    bottom: .6rem;
    border-radius: 20px;
  }
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-actions .btn {
    width: 100%;
  }
  .dashboard-page .page-atmosphere {
    height: clamp(410px, 104vw, 455px);
  }
  .dashboard-page > .container {
    padding-top: 1.05rem !important;
  }
  .dashboard-page .page-heading {
    position: relative;
    z-index: 2;
    margin-bottom: clamp(1.65rem, 5vw, 2.25rem);
    padding-bottom: 0;
  }
  .dashboard-page .page-heading h1 {
    font-size: clamp(2.65rem, 12vw, 3.45rem);
    margin-top: .35rem;
    margin-bottom: .55rem;
  }
  .dashboard-page .page-heading p {
    max-width: 310px;
  }
  .dashboard-page .heading-actions {
    width: min(100%, 360px);
    gap: .65rem;
    margin-top: 1.55rem;
    margin-left: auto;
    margin-right: auto;
  }
  .dashboard-page .heading-actions .btn {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 850;
  }
  .dashboard-page .heading-actions .btn-ghost-light {
    border-color: rgba(255,255,255,.32);
    background: rgba(255,255,255,.08);
    color: #f5fffb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  }
  .dashboard-page .heading-actions .btn-ghost-light:hover,
  .dashboard-page .heading-actions .btn-ghost-light:focus {
    border-color: rgba(140,231,191,.72);
    background: rgba(69,213,154,.13);
    color: #fff;
  }
  .dashboard-page .stat-grid {
    position: relative;
    z-index: 2;
    gap: 1.05rem;
    margin-top: clamp(1.7rem, 5vw, 2.25rem);
  }
  .dashboard-page .stat-card {
    min-height: 122px;
    padding: 1.25rem 1rem 1rem;
    justify-content: center;
    text-align: left;
  }
  .dashboard-page .stat-card span {
    max-width: calc(100% - 58px);
    font-size: .72rem;
  }
  .dashboard-page .stat-card strong {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }
  .dashboard-page .stat-card strong.rank {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }
  .dashboard-page .stat-card > i {
    right: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
  }
  .leaderboard-page .leaderboard-heading {
    margin-bottom: 1.65rem;
    padding-bottom: .4rem;
  }
  .leaderboard-page .leaderboard-heading .btn {
    width: min(100%, 330px);
    margin-left: auto;
    margin-right: auto;
  }
  .leaderboard-page .leaderboard-panel {
    margin-top: 1.25rem;
  }
}

@media (max-width: 420px) {
  .brand-logo-nav {
    width: 112px;
  }
  .civic-hero h1 {
    font-size: clamp(2.7rem, 14vw, 3.35rem);
    letter-spacing: -.055em;
  }
  .eyebrow {
    font-size: .68rem;
    letter-spacing: .1em;
  }
  .hero-symbol-backdrop {
    top: 1.8rem;
    width: min(330px, 96vw);
  }
  .hero-card-stage .hero-brand-card {
    width: min(100%, 330px);
    min-height: 220px;
  }
  .hero-card-stage .hero-welcome {
    font-size: 1.15rem;
  }
  .civic-nav .container {
    padding-left: .7rem;
    padding-right: .7rem;
  }
  .notification-menu {
    width: calc(100vw - 1rem);
  }
  .app-panel,
  .content-card,
  .legal-card,
  .stat-card,
  .feature-card {
    padding: 1rem;
  }
  .panel-heading h2 {
    font-size: 1.12rem;
  }
  .dashboard-page .page-atmosphere {
    height: 420px;
  }
  .dashboard-page .page-heading h1 {
    font-size: clamp(2.35rem, 13vw, 3rem);
  }
  .dashboard-page .stat-grid {
    margin-top: 1.85rem;
  }
  .dashboard-page .stat-card {
    min-height: 122px;
    border-radius: 22px;
  }
  .leaderboard-page .leaderboard-heading {
    margin-bottom: 2rem;
  }
  .leaderboard-page .leaderboard-panel {
    margin-top: 1.55rem;
  }
}
