/* =========================================================
   ECOAADAT — DESIGN SYSTEM

   Layout concept: a passbook. Every figure is a ledger
   entry, so the page is built from hairline rules, tabular
   numerals and one accent reserved for verified state.
   Serif numerals carry the hierarchy; the interface face
   stays quiet around them.
   ========================================================= */

:root {
    color-scheme: light;

    /* surfaces */
    --bg: #f5f7f4;
    --surface: #ffffff;
    --surface-2: #edf1ec;
    --surface-3: #e3e9e2;

    /* ink */
    --ink: #121715;
    --ink-2: #4a534e;
    --ink-3: #7b847e;

    /* rules */
    --line: #dbe1db;
    --line-2: #c6cec7;

    /* accent: viridian, reserved for verified and primary */
    --accent: #0b6e4f;
    --accent-hover: #095c42;
    --accent-ink: #ffffff;
    --accent-soft: #e1f0e8;
    --accent-soft-2: #c9e5d6;

    /* coins: brass, amounts only */
    --coin: #8f6420;
    --coin-soft: #f5ecd9;

    /* state */
    --warn: #a96d14;
    --warn-soft: #f8edd8;
    --danger: #b13838;
    --danger-soft: #f8e4e4;
    --info: #3a5f8a;
    --info-soft: #e3ecf6;

    /* inverse panel, for the auth side and the home hero */
    --inverse-bg: #121715;
    --inverse-fg: #f1f4f1;
    --inverse-fg-2: #a9b3ac;
    --inverse-line: #2a332e;
    --inverse-accent: #5ed49f;

    /* colour that means something: one hue per category and
       per kind of coin entry */
    --accent-2: #35b37a;
    --cat-water: #2a6fd6;
    --cat-water-soft: #e3edfb;
    --cat-energy: #c9830a;
    --cat-energy-soft: #fbf0d4;
    --cat-waste: #c4553a;
    --cat-waste-soft: #fbe6e0;
    --cat-transport: #5a4ccc;
    --cat-transport-soft: #e9e6fa;
    --cat-food: #cf4a7c;
    --cat-food-soft: #fbe4ee;
    --cat-tree: #0b6e4f;
    --cat-tree-soft: #e1f0e8;
    --cat-bag: #8a4fbf;
    --cat-bag-soft: #f1e6fa;
    --cat-leaf: #15867f;
    --cat-leaf-soft: #dcf3f0;
    --flame: #e0702a;
    --flame-soft: #fde9dc;
    --wash-a: rgba(11, 110, 79, 0.13);
    --wash-b: rgba(224, 112, 42, 0.11);
    --cta-a: #0d4a36;
    --cta-b: #121715;
    --shadow-hover: 0 14px 32px -18px rgba(18, 23, 21, 0.4);

    /* type */
    --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
    --font-ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* shape */
    --r-s: 4px;
    --r-m: 8px;
    --r-l: 12px;

    /* chevron for selects */
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a534e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    --shadow-pop: 0 20px 50px -20px rgba(18, 23, 21, 0.35), 0 2px 6px rgba(18, 23, 21, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;

        --bg: #0e1210;
        --surface: #141a17;
        --surface-2: #1b221e;
        --surface-3: #232b27;

        --ink: #edf0ec;
        --ink-2: #a8b1aa;
        --ink-3: #727b75;

        --line: #242c28;
        --line-2: #323b36;

        --accent: #4fcb94;
        --accent-hover: #67d8a5;
        --accent-ink: #06130c;
        --accent-soft: #15362a;
        --accent-soft-2: #1d4a39;

        --coin: #d8a84c;
        --coin-soft: #352a12;

        --warn: #d9a24c;
        --warn-soft: #382c12;
        --danger: #e07373;
        --danger-soft: #3d1e1e;
        --info: #8cb2dc;
        --info-soft: #1b2a3a;

        --inverse-bg: #1b221e;
        --inverse-fg: #edf0ec;
        --inverse-fg-2: #a8b1aa;
        --inverse-line: #323b36;
        --inverse-accent: #4fcb94;

        --accent-2: #7be0b0;
        --cat-water: #7fb0ff;
        --cat-water-soft: #172540;
        --cat-energy: #f0b64a;
        --cat-energy-soft: #3a2d10;
        --cat-waste: #f08f74;
        --cat-waste-soft: #3f2119;
        --cat-transport: #a89dff;
        --cat-transport-soft: #241f48;
        --cat-food: #f287b0;
        --cat-food-soft: #3f1b2b;
        --cat-tree: #4fcb94;
        --cat-tree-soft: #15362a;
        --cat-bag: #c594f2;
        --cat-bag-soft: #2f1d45;
        --cat-leaf: #5fd0c6;
        --cat-leaf-soft: #133632;
        --flame: #ff8f4d;
        --flame-soft: #40261a;
        --wash-a: rgba(79, 203, 148, 0.16);
        --wash-b: rgba(255, 143, 77, 0.1);
        --cta-a: #164a37;
        --cta-b: #1b221e;
        --shadow-hover: 0 14px 32px -16px rgba(0, 0, 0, 0.7);

        --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b1aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

        --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0e1210;
    --surface: #141a17;
    --surface-2: #1b221e;
    --surface-3: #232b27;

    --ink: #edf0ec;
    --ink-2: #a8b1aa;
    --ink-3: #727b75;

    --line: #242c28;
    --line-2: #323b36;

    --accent: #4fcb94;
    --accent-hover: #67d8a5;
    --accent-ink: #06130c;
    --accent-soft: #15362a;
    --accent-soft-2: #1d4a39;

    --coin: #d8a84c;
    --coin-soft: #352a12;

    --warn: #d9a24c;
    --warn-soft: #382c12;
    --danger: #e07373;
    --danger-soft: #3d1e1e;
    --info: #8cb2dc;
    --info-soft: #1b2a3a;

    --inverse-bg: #1b221e;
    --inverse-fg: #edf0ec;
    --inverse-fg-2: #a8b1aa;
    --inverse-line: #323b36;
    --inverse-accent: #4fcb94;

    --accent-2: #7be0b0;
    --cat-water: #7fb0ff;
    --cat-water-soft: #172540;
    --cat-energy: #f0b64a;
    --cat-energy-soft: #3a2d10;
    --cat-waste: #f08f74;
    --cat-waste-soft: #3f2119;
    --cat-transport: #a89dff;
    --cat-transport-soft: #241f48;
    --cat-food: #f287b0;
    --cat-food-soft: #3f1b2b;
    --cat-tree: #4fcb94;
    --cat-tree-soft: #15362a;
    --cat-bag: #c594f2;
    --cat-bag-soft: #2f1d45;
    --cat-leaf: #5fd0c6;
    --cat-leaf-soft: #133632;
    --flame: #ff8f4d;
    --flame-soft: #40261a;
    --wash-a: rgba(79, 203, 148, 0.16);
    --wash-b: rgba(255, 143, 77, 0.1);
    --cta-a: #164a37;
    --cta-b: #1b221e;
    --shadow-hover: 0 14px 32px -16px rgba(0, 0, 0, 0.7);

    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b1aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");

    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   1. RESET AND BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

[hidden] {
    display: none !important;
}

img,
svg,
video {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

::selection {
    background: var(--accent-soft-2);
    color: var(--ink);
}

.ico {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    vertical-align: -0.18em;
}

[data-icon] {
    display: inline-flex;
    line-height: 0;
}

.reveal {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* =========================================================
   2. TYPE
   ========================================================= */

.display {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1;
}

.display em {
    font-style: italic;
}

.num {
    font-family: var(--font-display);
    font-weight: 400;
    font-variant-numeric: lining-nums tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.92em;
}

.eyebrow,
.eco-eyebrow,
.section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.lede {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 58ch;
    text-wrap: pretty;
}

.muted {
    color: var(--ink-2);
}

.faint {
    color: var(--ink-3);
}

.small {
    font-size: 13px;
}

.text-link {
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.text-link:hover {
    border-bottom-color: currentColor;
}


/* =========================================================
   3. LAYOUT
   ========================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.container-narrow {
    max-width: 760px;
}

.page {
    padding-block: 40px 80px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1;
    letter-spacing: -0.015em;
}

.page-head p {
    color: var(--ink-2);
    margin-top: 12px;
    max-width: 56ch;
    text-wrap: pretty;
}

.page-head-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
    align-items: start;
}

.split > * {
    min-width: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

.section {
    padding-block: 72px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 36px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.02;
}

.section-head p {
    margin-top: 14px;
    color: var(--ink-2);
    font-size: 16px;
    text-wrap: pretty;
}


/* =========================================================
   4. APP BAR, NAVIGATION, FOOTER
   ========================================================= */

.app-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.app-bar-inner {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: nowrap;
}

.brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--accent);
    color: var(--accent-ink);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1;
    padding-bottom: 2px;
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-left: 12px;
    border-left: 1px solid var(--line-2);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: var(--r-s);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
    color: var(--ink);
    background: var(--surface-2);
}

.nav-link.active {
    color: var(--ink);
    background: var(--surface-2);
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-balance,
.eco-coin-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 10px 0 9px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    background: var(--surface);
    white-space: nowrap;
}

.header-balance .ico,
.eco-coin-chip .ico,
.eco-coin-face .ico {
    width: 15px;
    height: 15px;
    color: var(--coin);
}

.eco-coin-face {
    display: inline-flex;
    line-height: 0;
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: background-color 0.15s ease;
}

.header-user:hover {
    background: var(--surface-2);
}

.header-user-avatar,
.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    flex: 0 0 auto;
}

.login-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    padding: 8px 10px;
}

.login-link:hover {
    color: var(--ink);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--r-s);
    border: 1px solid var(--line-2);
    color: var(--ink);
    place-items: center;
    margin-left: auto;
}

.menu-toggle .ico {
    width: 18px;
    height: 18px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 8px 0 12px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a,
.mobile-nav button {
    display: block;
    padding: 12px max(20px, env(safe-area-inset-left, 0px));
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    text-align: left;
    width: 100%;
}

.mobile-nav a.active,
.mobile-nav a:hover {
    color: var(--ink);
    background: var(--surface-2);
}

.mobile-nav .mobile-nav-divider {
    border-top: 1px solid var(--line);
    margin: 8px 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 40px 44px;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-brand-block p {
    color: var(--ink-3);
    font-size: 13px;
    margin-top: 10px;
    max-width: 36ch;
}

.footer-links {
    display: flex;
    gap: 4px 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: var(--ink-2);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--ink);
    border-bottom-color: var(--line-2);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
}


/* =========================================================
   5. BUTTONS
   ========================================================= */

.eco-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border-radius: var(--r-s);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    user-select: none;
}

.eco-button:active,
.button:active {
    transform: translateY(1px);
}

.eco-button:disabled,
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.eco-button .ico,
.button .ico {
    width: 16px;
    height: 16px;
}

.eco-button-primary,
.button-primary,
.button-accent {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}

.eco-button-primary:hover:not(:disabled),
.button-primary:hover:not(:disabled),
.button-accent:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.eco-button-secondary,
.button-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
}

.eco-button-secondary:hover:not(:disabled),
.button-secondary:hover:not(:disabled) {
    border-color: var(--ink-3);
    background: var(--surface);
}

.eco-button-soft {
    background: var(--surface-2);
    color: var(--ink);
    border-color: var(--surface-2);
}

.eco-button-soft:hover:not(:disabled) {
    background: var(--surface-3);
    border-color: var(--surface-3);
}

.eco-button-ink {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.eco-button-ink:hover:not(:disabled) {
    opacity: 0.9;
}

.eco-button-gold {
    background: transparent;
    color: var(--coin);
    border-color: var(--coin);
}

.eco-button-gold:hover:not(:disabled) {
    background: var(--coin-soft);
}

.eco-button-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--line-2);
}

.eco-button-danger:hover:not(:disabled) {
    background: var(--danger-soft);
    border-color: var(--danger);
}

.eco-button-small,
.button-small {
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.eco-button-large {
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
}

.eco-button-block {
    width: 100%;
}

.eco-button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}


/* =========================================================
   6. FORMS
   ========================================================= */

.form-field,
.feedback-field,
.challenge-form-group,
.eco-file-field,
.verify-coin-field,
.verify-note-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-field + .form-field,
.feedback-field + .feedback-field,
.challenge-form-group + .challenge-form-group {
    margin-top: 18px;
}

label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}

label span,
label small {
    font-weight: 400;
    color: var(--ink-3);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line-2);
    border-radius: var(--r-s);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--ink-3);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select {
    background-image: var(--chevron);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    padding-right: 36px;
}

input[type="date"] {
    font-family: var(--font-mono);
    font-size: 14px;
}

input[type="number"] {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.field-hint {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-row > * {
    margin-top: 0 !important;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-2);
    cursor: pointer;
    line-height: 1.5;
}

.check input {
    margin-top: 3px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 64px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    padding: 0 10px;
    border-radius: var(--r-s);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-2);
}

.password-toggle:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.form-message,
.auth-message,
.track-message,
.feedback-status,
.verify-gate-message {
    font-size: 13.5px;
    line-height: 1.5;
    border-radius: var(--r-s);
    min-height: 0;
}

.form-message:not(:empty),
.auth-message:not(:empty),
.track-message:not(:empty),
.feedback-status:not(:empty),
.verify-gate-message:not(:empty) {
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--ink-2);
    margin-top: 14px;
}

.form-message.error:not(:empty),
.auth-message.error:not(:empty),
.track-message.error:not(:empty),
.feedback-status.error:not(:empty),
.verify-gate-message.error:not(:empty) {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: transparent;
}

.form-message.success:not(:empty),
.auth-message.success:not(:empty),
.track-message.success:not(:empty),
.feedback-status.success:not(:empty) {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: transparent;
}


/* =========================================================
   7. BADGES, STAMPS, NOTICES
   ========================================================= */

.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid transparent;
}

.eco-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

.eco-badge-approved,
.eco-badge-verified {
    color: var(--accent);
    background: var(--accent-soft);
}

.eco-badge-pending {
    color: var(--warn);
    background: var(--warn-soft);
}

.eco-badge-info {
    color: var(--info);
    background: var(--info-soft);
}

.eco-badge-rejected {
    color: var(--danger);
    background: var(--danger-soft);
}

.eco-badge-unclaimed {
    color: var(--ink-3);
    background: var(--surface-2);
}

.stamp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1.5px solid var(--accent);
    border-radius: 3px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px var(--surface), inset 0 0 0 2px var(--accent);
    transform: rotate(-2deg);
}

.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface-2);
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.55;
}

.notice .ico {
    width: 18px;
    height: 18px;
    color: var(--ink-3);
    margin-top: 2px;
}

.notice strong {
    color: var(--ink);
    font-weight: 500;
}


/* =========================================================
   8. PANELS AND FIGURES
   ========================================================= */

.panel,
.eco-panel,
.dashboard-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 24px;
    min-width: 0;
}

.panel-head,
.eco-panel-head,
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h2,
.eco-panel-head h2,
.panel-heading h2,
.panel h3.panel-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.panel-head .eyebrow,
.eco-panel-head .eyebrow,
.panel-heading .section-eyebrow {
    margin-bottom: 6px;
}

.panel-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.panel-link:hover {
    color: var(--accent);
}

.panel-note,
.eco-panel-note,
.panel-description {
    font-size: 13.5px;
    color: var(--ink-2);
    margin-bottom: 16px;
    max-width: 60ch;
}

.panel-inverse {
    background: var(--inverse-bg);
    color: var(--inverse-fg);
    border-color: var(--inverse-line);
}

.panel-inverse .eyebrow {
    color: var(--inverse-fg-2);
}

/* A row of figures separated by hairlines rather than
   boxed cards. */
.figures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface);
    overflow: hidden;
}

.figure {
    padding: 20px 22px 18px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.figure + .figure {
    border-left: 1px solid var(--line);
}

.figure-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.figure-value {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.figure-value strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums tabular-nums;
}

.figure-unit {
    font-size: 13px;
    color: var(--ink-3);
}

.figure-note {
    font-size: 12.5px;
    color: var(--ink-2);
    line-height: 1.45;
}

.figure-coin .figure-value strong {
    color: var(--coin);
}

.figure-accent .figure-value strong {
    color: var(--accent);
}


/* =========================================================
   9. STREAK COMPONENTS
   ========================================================= */

.eco-streak-reward {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 24px;
}

.eco-streak-reward-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.eco-streak-reward-top h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.05;
    margin-bottom: 8px;
}

.eco-streak-reward-top p {
    color: var(--ink-2);
    font-size: 14px;
    max-width: 44ch;
}

.eco-ring {
    --eco-ring-value: 0;
    width: 116px;
    height: 116px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--eco-ring-value) * 1%), var(--surface-3) 0);
    display: grid;
    place-items: center;
    position: relative;
}

.eco-ring::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--surface);
}

.eco-ring-label {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.eco-ring-label strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums tabular-nums;
}

.eco-ring-label span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 5px;
}

/* seven day strip, shared by the dashboard and the home page */
.eco-streak-week,
.streak-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 20px;
}

.eco-streak-week-day,
.streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.eco-streak-week-day > span,
.streak-day > span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--ink-3);
}

.eco-streak-dot,
.streak-dot {
    width: 100%;
    height: 38px;
    border-radius: var(--r-s);
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    font-size: 13px;
    color: var(--ink-3);
}

.eco-streak-dot.done,
.streak-dot.filled {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.eco-streak-dot.today,
.streak-dot.is-today {
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink);
}

.eco-streak-dot.future {
    background: transparent;
    border-style: dashed;
}

/* milestones, laid out like ledger lines */
.eco-milestones {
    border-top: 1px solid var(--line);
}

.eco-milestone {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-2);
}

.eco-milestone-tick {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
}

.eco-milestone.earned {
    color: var(--ink);
}

.eco-milestone.earned .eco-milestone-tick {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
}

.eco-milestone-coins {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--coin);
}

.eco-milestone.earned .eco-milestone-coins {
    color: var(--accent);
}


/* =========================================================
   10. CALENDAR
   ========================================================= */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.calendar-header h3 {
    font-size: 15px;
    font-weight: 500;
}

.calendar-arrow {
    width: 32px;
    height: 32px;
    border-radius: var(--r-s);
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    color: var(--ink-2);
}

.calendar-arrow:hover {
    background: var(--surface-2);
    color: var(--ink);
}

.calendar-arrow .ico {
    width: 16px;
    height: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-day-name {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    padding-bottom: 6px;
}

.calendar-date {
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--r-s);
    font-family: var(--font-mono);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: var(--ink-2);
    border: 1px solid transparent;
}

.calendar-date.empty {
    visibility: hidden;
}

.calendar-date.recorded {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
}

.calendar-date.today {
    border-color: var(--ink);
    color: var(--ink);
}

.calendar-date.today.recorded {
    color: var(--accent);
}

.calendar-legend {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--ink-3);
    align-items: center;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.recorded-dot {
    background: var(--accent-soft);
    border: 1px solid var(--accent-soft-2);
}

.legend-dot.today-dot {
    border: 1px solid var(--ink);
}


/* =========================================================
   11. LEDGER ROWS AND LISTS
   ========================================================= */

.eco-ledger {
    border-top: 1px solid var(--line);
}

.eco-ledger-row,
.claims-row,
.recent-activity-item,
.issued-coupon {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.eco-ledger-icon,
.claims-row-icon,
.recent-activity-icon,
.issued-coupon-icon,
.activity-item-icon,
.coupon-card-icon,
.official-card-icon,
.verify-rate-icon,
.earn-rate-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-s);
    border: 1px solid var(--line);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    flex: 0 0 auto;
}

.eco-ledger-icon .ico,
.claims-row-icon .ico,
.recent-activity-icon .ico,
.issued-coupon-icon .ico,
.activity-item-icon .ico,
.verify-rate-icon .ico,
.earn-rate-icon .ico {
    width: 17px;
    height: 17px;
}

.eco-ledger-main,
.claims-row-main,
.recent-activity-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eco-ledger-main strong,
.claims-row-main strong,
.recent-activity-details h3 {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eco-ledger-main span,
.claims-row-main span,
.recent-activity-details p {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.45;
}

.claims-row-main em {
    font-style: normal;
    font-size: 12.5px;
    color: var(--ink-2);
    padding-left: 8px;
    border-left: 2px solid var(--line-2);
    margin-top: 2px;
}

.recent-activity-details .eco-badge {
    align-self: flex-start;
    margin-top: 4px;
}

.eco-ledger-amount {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

.eco-ledger-amount.plus {
    color: var(--accent);
}

.eco-ledger-amount.minus {
    color: var(--ink-2);
}

.recent-activity-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    white-space: nowrap;
}

.recent-activity-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}

.claims-summary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.claims-list {
    border-top: 1px solid var(--line);
}

.claims-list:empty {
    border-top: 0;
}

/* empty states */
.eco-empty,
.activity-empty,
.activity-no-results {
    padding: 32px 20px;
    text-align: center;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-m);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.eco-empty-icon,
.activity-empty > span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--ink-3);
    margin-bottom: 4px;
}

.eco-empty-icon .ico,
.activity-empty > span .ico {
    width: 18px;
    height: 18px;
}

.eco-empty h3,
.activity-empty h3 {
    font-size: 15px;
    font-weight: 500;
}

.eco-empty p,
.activity-empty p,
.activity-no-results p {
    font-size: 13.5px;
    color: var(--ink-2);
    max-width: 44ch;
}

.eco-empty .eco-button,
.activity-empty .button {
    margin-top: 8px;
}


/* =========================================================
   12. ACTIVITY HISTORY
   ========================================================= */

.activity-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px 200px;
    gap: 12px;
    margin-bottom: 24px;
}

.activity-controls > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.activity-date-group + .activity-date-group {
    margin-top: 28px;
}

.activity-date-heading {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.activity-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.activity-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-item-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.activity-item-top h3 {
    font-size: 15px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.activity-category-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.activity-item-content > p {
    font-size: 13.5px;
    color: var(--ink-2);
    max-width: 70ch;
}

.activity-reviewer-note {
    font-size: 13px;
    color: var(--ink-2);
    padding: 8px 12px;
    border-left: 2px solid var(--accent);
    background: var(--surface-2);
    border-radius: 0 var(--r-s) var(--r-s) 0;
}

.activity-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.activity-item-meta > span:not(.eco-badge) {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
}

.activity-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}


/* =========================================================
   13. WALLET, STORE, COUPONS
   ========================================================= */

.wallet-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: end;
    padding: 36px 0 32px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
}

.wallet-balance {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 12px 0 10px;
}

.wallet-balance > span:first-child {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(72px, 10vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-variant-numeric: lining-nums tabular-nums;
}

.wallet-balance-unit {
    font-size: 15px;
    color: var(--ink-3);
}

.wallet-message {
    color: var(--ink-2);
    max-width: 48ch;
    margin-bottom: 22px;
    text-wrap: pretty;
}

.wallet-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface);
    overflow: hidden;
}

.wallet-figures > div {
    padding: 18px 20px;
    min-width: 0;
}

.wallet-figures > div + div {
    border-left: 1px solid var(--line);
}

.wallet-figures strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums tabular-nums;
    margin-bottom: 8px;
}

.wallet-figures span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* the two earning routes */
.earn-routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.earn-route {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.earn-route-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.earn-route-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-s);
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
}

.earn-route-icon .ico {
    width: 19px;
    height: 19px;
}

.earn-route-head .eyebrow {
    margin-bottom: 3px;
}

.earn-route-head h3 {
    font-size: 19px;
    font-weight: 500;
}

.earn-route > p {
    font-size: 14px;
    color: var(--ink-2);
}

.earn-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.earn-steps li {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.earn-steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
}

.earn-rate-list,
.earn-milestone-list,
.verify-rates {
    border-top: 1px solid var(--line);
}

.earn-rate,
.earn-milestone,
.verify-rate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-2);
}

.earn-rate {
    grid-template-columns: 24px minmax(0, 1fr) auto;
}

.verify-rate {
    grid-template-columns: 36px minmax(0, 1fr) auto;
}

.earn-rate > span:first-child {
    display: inline-flex;
    color: var(--ink-3);
}

.earn-rate > span:first-child .ico {
    width: 16px;
    height: 16px;
}

.earn-rate strong,
.earn-milestone strong,
.verify-rate strong {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--coin);
}

.earn-milestone.reached {
    color: var(--ink);
}

.earn-milestone.reached strong {
    color: var(--accent);
}

.earn-streak-now,
.earn-footnote {
    font-size: 12.5px;
    color: var(--ink-3);
    margin-top: 10px;
}

/* store */
.coupon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.coupon-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    transition: border-color 0.15s ease;
}

.coupon-card:hover {
    border-color: var(--line-2);
}

.coupon-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
}

.coupon-card-icon .ico {
    width: 19px;
    height: 19px;
}

.coupon-card h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.coupon-card p {
    font-size: 13px;
    color: var(--ink-2);
    flex: 1;
}

.coupon-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
}

.coupon-card-locked {
    background: transparent;
}

.coupon-card-locked .coupon-card-icon,
.coupon-card-locked h3 {
    color: var(--ink-3);
}

.issued-coupons {
    border-top: 1px solid var(--line);
}

.issued-coupon-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.issued-coupon-main strong {
    font-size: 14.5px;
    font-weight: 500;
}

.issued-coupon-code {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.issued-coupon-meta {
    font-size: 12.5px;
    color: var(--ink-3);
}

.issued-coupon.used,
.issued-coupon.expired {
    opacity: 0.6;
}

.issued-coupon.used .issued-coupon-code,
.issued-coupon.expired .issued-coupon-code {
    color: var(--ink-3);
    text-decoration: line-through;
}

.coupon-code-big {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-align: center;
    padding: 18px;
    border: 1px dashed var(--accent);
    border-radius: var(--r-s);
    margin: 14px 0;
}


/* =========================================================
   14. CHALLENGES
   ========================================================= */

.challenge-featured,
.joined-challenges-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.official-card,
.saved-challenge-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.official-card-head,
.saved-challenge-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.official-card-icon {
    width: 40px;
    height: 40px;
}

.official-card-icon .ico {
    width: 19px;
    height: 19px;
}

.official-card h3,
.saved-challenge-card h3 {
    font-size: 17px;
    font-weight: 500;
}

.official-card p,
.saved-challenge-card > p {
    font-size: 13.5px;
    color: var(--ink-2);
    flex: 1;
}

.official-card-meta,
.saved-challenge-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
}

.official-card-meta span,
.saved-challenge-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.official-card-meta .ico,
.saved-challenge-meta .ico {
    width: 14px;
    height: 14px;
}

.official-card .eco-button {
    align-self: flex-start;
    margin-top: 4px;
}

.saved-challenge-category {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.saved-challenge-status {
    font-size: 12px;
    color: var(--ink-2);
}

.challenge-complete .saved-challenge-status {
    color: var(--accent);
}

.challenge-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.challenge-progress-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
}

.challenge-progress-label strong {
    color: var(--ink);
    font-weight: 500;
}

.challenge-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--surface-3);
    overflow: hidden;
}

.challenge-progress-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.challenge-card-actions {
    margin-top: 4px;
}

.create-challenge-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 28px;
}

.challenge-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
}

.challenge-form-row .challenge-form-group {
    margin-top: 0;
}

.challenge-visibility-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.challenge-visibility-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-s);
    cursor: pointer;
    font-weight: 400;
}

.challenge-visibility-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.challenge-visibility-option input {
    margin-top: 3px;
}

.challenge-visibility-option strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
}

.challenge-visibility-option small {
    font-size: 12.5px;
    color: var(--ink-2);
}


/* =========================================================
   15. RECORD AN ACTION
   ========================================================= */

.eco-claim {
    border: 1px solid var(--line-2);
    border-radius: var(--r-m);
    margin-top: 24px;
    overflow: hidden;
}

.eco-claim-toggle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 400;
    background: var(--surface-2);
}

.eco-claim-toggle input {
    margin-top: 4px;
}

.eco-claim-toggle strong {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 3px;
}

.eco-claim-toggle > span > span {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.5;
}

.eco-claim-body {
    padding: 20px 18px 22px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eco-claim-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-s);
    font-size: 13.5px;
    color: var(--ink-2);
}

.eco-claim-rate strong {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 500;
    color: var(--coin);
}

.eco-file-drop {
    position: relative;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-m);
    padding: 26px 18px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.eco-file-drop:hover,
.eco-file-drop.dragging {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.eco-file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.eco-file-drop-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    margin-bottom: 4px;
}

.eco-file-drop-icon .ico {
    width: 18px;
    height: 18px;
}

.eco-file-drop strong {
    font-size: 14px;
    font-weight: 500;
}

.eco-file-drop small {
    font-size: 12.5px;
    color: var(--ink-3);
    max-width: 36ch;
}

.eco-evidence-preview {
    position: relative;
    border-radius: var(--r-m);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.eco-evidence-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.eco-evidence-remove {
    position: absolute;
    right: 10px;
    bottom: 10px;
    height: 32px;
    padding: 0 12px;
    border-radius: var(--r-s);
    background: var(--surface);
    border: 1px solid var(--line-2);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink);
}

.eco-declaration {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-2);
    line-height: 1.5;
    cursor: pointer;
}

.eco-declaration input {
    margin-top: 3px;
}

.rate-card-list {
    border-top: 1px solid var(--line);
}

.rate-card-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--ink-2);
}

.rate-card-row .ico {
    width: 16px;
    height: 16px;
    color: var(--ink-3);
}

.rate-card-row strong {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 500;
    color: var(--coin);
}

.side-figure {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 8px;
}

.side-figure strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums tabular-nums;
}

.side-figure span {
    font-size: 13px;
    color: var(--ink-3);
}


/* =========================================================
   16. AUTH
   ========================================================= */

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.auth-visual {
    background: var(--inverse-bg);
    color: var(--inverse-fg);
    padding: 36px max(32px, env(safe-area-inset-left, 0px)) 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    overflow: hidden;
}

.auth-visual .brand {
    color: var(--inverse-fg);
}

.auth-visual h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(40px, 4.6vw, 60px);
    line-height: 0.98;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}

.auth-visual h1 em {
    font-style: italic;
    color: var(--inverse-accent);
}

.auth-visual p {
    color: var(--inverse-fg-2);
    max-width: 40ch;
    font-size: 15px;
}

.auth-ledger {
    border: 1px solid var(--inverse-line);
    border-radius: var(--r-m);
    overflow: hidden;
    font-size: 13px;
}

.auth-ledger-head {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--inverse-line);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--inverse-fg-2);
}

.auth-ledger-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--inverse-line);
    align-items: center;
}

.auth-ledger-row:last-child {
    border-bottom: 0;
}

.auth-ledger-row > span:first-child {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--inverse-fg-2);
}

.auth-ledger-row > span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-ledger-row strong {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--inverse-accent);
}

.auth-ledger-row strong.minus {
    color: var(--inverse-fg-2);
}

.auth-form-side {
    padding: 28px max(32px, env(safe-area-inset-right, 0px)) 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.auth-top {
    display: flex;
    justify-content: flex-end;
}

.back-home {
    font-size: 13.5px;
    color: var(--ink-2);
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.back-home:hover {
    color: var(--ink);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.auth-heading h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 10px;
}

.auth-heading p {
    color: var(--ink-2);
    font-size: 14.5px;
}

.auth-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--r-s);
    background: var(--surface-2);
    margin: 26px 0 24px;
}

.auth-tab {
    height: 34px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
}

.auth-tab.active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(18, 23, 21, 0.08);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13.5px;
}

.auth-options a {
    color: var(--ink-2);
}

.auth-options a:hover {
    color: var(--ink);
}

.auth-submit {
    margin-top: 22px;
}

.auth-footnote {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--ink-3);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-footnote a {
    color: var(--ink-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   17. VERIFY CONSOLE
   ========================================================= */

.verify-gate {
    min-height: calc(100vh - 64px - 90px);
    display: grid;
    place-items: center;
    padding-block: 40px;
}

.verify-gate-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    padding: 36px 32px 28px;
}

.verify-gate-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-s);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    margin-bottom: 20px;
}

.verify-gate-icon .ico {
    width: 20px;
    height: 20px;
}

.verify-gate-card h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 10px;
}

.verify-gate-card > p {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 22px;
}

.verify-gate-card form .eco-button {
    margin-top: 16px;
}

.verify-gate-hint {
    margin-top: 20px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.verify-gate-card .text-link {
    margin-top: 16px;
    font-size: 13px;
}

.verify-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.verify-intro h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1;
}

.verify-intro p {
    color: var(--ink-2);
    margin-top: 10px;
    max-width: 52ch;
}

.verify-stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface);
    overflow: hidden;
}

.verify-stat {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}

.verify-stat + .verify-stat {
    border-left: 1px solid var(--line);
}

.verify-stat strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 30px;
    line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
}

.verify-stat span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.verify-stat-pending strong {
    color: var(--warn);
}

.verify-stat-approved strong {
    color: var(--accent);
}

.verify-stat-rejected strong {
    color: var(--danger);
}

.verify-stat-coins strong {
    color: var(--coin);
}

.verify-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.verify-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--line);
}

.verify-tab {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.verify-tab:hover {
    color: var(--ink);
}

.verify-tab.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.verify-search {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 300px;
    max-width: 100%;
}

.verify-queue {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.verify-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    overflow: hidden;
}

.verify-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.verify-card-who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.verify-card-who > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.verify-card-who strong {
    font-size: 14px;
    font-weight: 500;
}

.verify-card-who span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verify-card-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    flex: 0 0 auto;
}

.verify-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    padding: 20px;
}

.verify-card-detail h3 {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 8px;
}

.verify-card-detail > p {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 16px;
    max-width: 60ch;
}

.verify-meta {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 6px 14px;
    font-size: 13.5px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.verify-meta dt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding-top: 3px;
}

.verify-meta dd {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.verify-card-evidence figure {
    border: 1px solid var(--line);
    border-radius: var(--r-s);
    overflow: hidden;
    background: var(--surface-2);
}

.verify-card-evidence img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
}

.verify-card-evidence figcaption {
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    border-top: 1px solid var(--line);
}

.verify-no-evidence {
    border: 1px dashed var(--line-2);
    border-radius: var(--r-s);
    padding: 28px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--ink-3);
}

.verify-no-evidence .ico {
    width: 22px;
    height: 22px;
}

.verify-no-evidence strong {
    color: var(--ink);
    font-weight: 500;
    font-size: 14px;
}

.verify-no-evidence small {
    font-size: 12.5px;
}

.verify-full-evidence {
    width: 100%;
    border-radius: var(--r-s);
}

.verify-recorded-note {
    margin: 0 20px 16px;
    padding: 10px 14px;
    border-left: 2px solid var(--line-2);
    background: var(--surface-2);
    font-size: 13.5px;
    color: var(--ink-2);
}

.verify-decision {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
    align-items: end;
}

.verify-decision-buttons {
    grid-column: 1 / -1;
}

.verify-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
}

.verify-rate-card {
    margin-top: 8px;
}


/* =========================================================
   18. HOME
   ========================================================= */

.hero {
    padding-block: 72px 64px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(48px, 7vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 14px 0 24px;
}

.hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-proof {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-proof .ico {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

/* the passbook: a live specimen of the product */
.passbook {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--r-l);
    overflow: hidden;
    box-shadow: var(--shadow-pop);
    font-size: 13.5px;
    position: relative;
}

.passbook-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.passbook-head strong {
    font-size: 13px;
    font-weight: 500;
}

.passbook-head span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.passbook-balance {
    padding: 22px 18px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    border-bottom: 1px solid var(--line);
}

.passbook-balance .figure-label {
    margin-bottom: 8px;
    display: block;
}

.passbook-balance strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 56px;
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-variant-numeric: lining-nums tabular-nums;
}

.passbook-balance .stamp {
    margin-bottom: 4px;
}

.passbook-rows {
    display: flex;
    flex-direction: column;
}

.passbook-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 18px;
    border-bottom: 1px solid var(--line);
}

.passbook-row:last-child {
    border-bottom: 0;
}

.passbook-row > span:first-child {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-3);
}

.passbook-row > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.passbook-row > div strong {
    font-weight: 500;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.passbook-row > div small {
    font-size: 11.5px;
    color: var(--ink-3);
}

.passbook-row > strong {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 14px;
    color: var(--accent);
}

.passbook-row > strong.minus {
    color: var(--ink-2);
}

.passbook-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
}

/* the four step process, a real sequence */
.process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-step {
    padding: 28px 24px 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.process-step + .process-step {
    border-left: 1px solid var(--line);
    padding-left: 24px;
}

.process-step > span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ink-3);
}

.process-step .ico {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.process-step h3 {
    font-size: 18px;
    font-weight: 500;
}

.process-step p {
    font-size: 14px;
    color: var(--ink-2);
}

/* the two routes on the home page */
.routes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.route {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.route h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 30px;
    line-height: 1;
}

.route > p {
    font-size: 14.5px;
    color: var(--ink-2);
}

.route-table {
    border-top: 1px solid var(--line);
    margin-top: 6px;
}

.route-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--ink-2);
    align-items: center;
}

.route-table-row span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.route-table-row .ico {
    width: 15px;
    height: 15px;
    color: var(--ink-3);
}

.route-table-row strong {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--coin);
}

/* live streak band */
.streak-band {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    align-items: center;
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
}

.streak-band-figure {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.streak-band-figure strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 96px;
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-variant-numeric: lining-nums tabular-nums;
}

.streak-band-figure span {
    font-size: 15px;
    color: var(--ink-3);
}

.streak-band p {
    color: var(--ink-2);
    max-width: 40ch;
    margin-bottom: 20px;
}

.streak-week-card {
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 18px 18px 14px;
    background: var(--bg);
}

.streak-week-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 14px;
    font-size: 13.5px;
}

.streak-week-header strong {
    font-weight: 500;
}

.streak-week-header span {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-3);
}

.streak-week-card .streak-days {
    margin-bottom: 12px;
}

.streak-week-note {
    font-size: 12.5px;
    color: var(--ink-3);
}

/* rules that keep it honest */
.rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.rule-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.rule-card .mono {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.rule-card h3 {
    font-size: 17px;
    font-weight: 500;
}

.rule-card p {
    font-size: 14px;
    color: var(--ink-2);
}

/* store preview */
.store-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cta-band {
    background: var(--inverse-bg);
    color: var(--inverse-fg);
    border-radius: var(--r-l);
    padding: 56px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1;
    margin-bottom: 12px;
}

.cta-band h2 em {
    font-style: italic;
    color: var(--inverse-accent);
}

.cta-band p {
    color: var(--inverse-fg-2);
    max-width: 48ch;
}

.cta-band .eco-button-primary {
    background: var(--inverse-fg);
    color: var(--inverse-bg);
    border-color: var(--inverse-fg);
}

.cta-band .eco-button-primary:hover {
    opacity: 0.92;
    background: var(--inverse-fg);
}


/* =========================================================
   19. DASHBOARD SPECIFICS
   ========================================================= */

.dashboard-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.dashboard-welcome h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 50px);
    line-height: 1;
}

.dashboard-welcome h1 span {
    font-style: italic;
}

.dashboard-welcome p {
    margin-top: 10px;
    color: var(--ink-2);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.dashboard-grid > .stack {
    min-width: 0;
}

.streak-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.streak-summary-number {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.streak-summary-number span:first-child {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 30px;
    line-height: 1;
    color: var(--ink);
    font-variant-numeric: lining-nums tabular-nums;
}

.wallet-panel-balance {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.wallet-panel-balance strong {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--coin);
    font-variant-numeric: lining-nums tabular-nums;
}

.wallet-panel-meta {
    display: flex;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.dashboard-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    margin-top: 24px;
}

.dashboard-tools strong {
    display: block;
    font-weight: 500;
    font-size: 14.5px;
    margin-bottom: 3px;
}

.dashboard-tools p {
    font-size: 13px;
    color: var(--ink-2);
    max-width: 60ch;
}


/* =========================================================
   20. TOASTS AND MODAL
   ========================================================= */

.eco-toast-host {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(380px, calc(100vw - 32px));
}

.eco-toast {
    padding: 12px 14px 12px 16px;
    border-radius: var(--r-m);
    background: var(--ink);
    color: var(--bg);
    font-size: 13.5px;
    line-height: 1.45;
    box-shadow: var(--shadow-pop);
    border-left: 3px solid var(--accent);
    animation: toast-in 0.25s ease;
}

.eco-toast-success,
.eco-toast-coin {
    border-left-color: var(--accent);
}

.eco-toast-warn {
    border-left-color: var(--warn);
}

.eco-toast-error {
    border-left-color: var(--danger);
}

.eco-toast-info {
    border-left-color: var(--ink-3);
}

.eco-toast-out {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.eco-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 14, 12, 0.55);
    display: grid;
    place-items: center;
    padding: 20px;
    animation: fade-in 0.15s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.eco-modal {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-l);
    padding: 26px 26px 22px;
    box-shadow: var(--shadow-pop);
}

.eco-modal h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.eco-modal-body {
    font-size: 14px;
    color: var(--ink-2);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eco-modal-body .eco-file-field + .eco-file-field {
    margin-top: 0;
}

.eco-modal-body img {
    border-radius: var(--r-s);
}

.eco-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.eco-modal-cancel,
.eco-modal-confirm {
    height: 38px;
    padding: 0 16px;
    border-radius: var(--r-s);
    font-size: 14px;
    font-weight: 500;
}

.eco-modal-cancel {
    border: 1px solid var(--line-2);
    color: var(--ink);
}

.eco-modal-cancel:hover {
    background: var(--surface-2);
}

.eco-modal-confirm {
    background: var(--accent);
    color: var(--accent-ink);
}

.eco-modal-confirm:hover {
    background: var(--accent-hover);
}

.eco-modal-confirm.danger {
    background: var(--danger);
    color: #fff;
}


/* =========================================================
   21. RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
        padding-block: 48px;
    }

    .passbook {
        max-width: 520px;
    }

    .process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-step:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .process-step:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .coupon-grid,
    .store-preview,
    .rules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .split {
        grid-template-columns: minmax(0, 1fr);
    }

    .verify-card-body {
        grid-template-columns: minmax(0, 1fr) 240px;
    }
}

@media (max-width: 900px) {
    .main-nav,
    .header-user span:last-child,
    .hide-mobile {
        display: none !important;
    }

    .menu-toggle {
        display: grid;
    }

    .header-actions {
        margin-left: 0;
        gap: 8px;
    }

    .app-bar-inner {
        gap: 14px;
    }

    .header-actions .login-link {
        display: none;
    }

    .auth-page {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-visual {
        min-height: 0;
        padding: 28px max(20px, env(safe-area-inset-left, 0px)) 28px;
        gap: 28px;
    }

    .auth-visual h1 {
        font-size: 36px;
    }

    .auth-ledger {
        display: none;
    }

    .auth-form-side {
        padding: 20px max(20px, env(safe-area-inset-right, 0px)) 40px;
        gap: 24px;
    }

    .figures,
    .wallet-figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .figure:nth-child(3),
    .wallet-figures > div:nth-child(3) {
        border-left: 0;
    }

    .figure:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .wallet-figures > div:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .wallet-hero,
    .earn-routes,
    .routes,
    .streak-band,
    .challenge-featured,
    .joined-challenges-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .wallet-hero {
        gap: 24px;
        padding-top: 20px;
    }

    .verify-intro {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .verify-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .verify-stat:nth-child(3) {
        border-left: 0;
    }

    .verify-stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .verify-card-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .verify-decision {
        grid-template-columns: minmax(0, 1fr);
    }

    .activity-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-band {
        grid-template-columns: minmax(0, 1fr);
        padding: 40px 28px;
    }

    .section {
        padding-block: 52px;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14.5px;
    }

    .page {
        padding-block: 24px 56px;
    }

    .page-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 20px;
        margin-bottom: 24px;
    }

    .panel,
    .eco-panel,
    .dashboard-panel,
    .eco-streak-reward,
    .earn-route,
    .route,
    .create-challenge-card {
        padding: 18px;
    }

    .eco-streak-reward-top {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 18px;
    }

    .eco-ring {
        width: 96px;
        height: 96px;
    }

    .eco-ring-label strong {
        font-size: 32px;
    }

    .figure {
        padding: 16px;
    }

    .figure-value strong {
        font-size: 32px;
    }

    .form-row,
    .challenge-form-row,
    .challenge-visibility-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .coupon-grid,
    .store-preview,
    .rules,
    .process {
        grid-template-columns: minmax(0, 1fr);
    }

    .process-step {
        padding: 22px 0;
    }

    .process-step + .process-step {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--line);
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .dashboard-tools {
        flex-direction: column;
        align-items: flex-start;
    }

    .streak-band {
        padding: 22px;
    }

    .streak-band-figure strong {
        font-size: 72px;
    }

    .hero h1 {
        font-size: clamp(42px, 12vw, 56px);
    }

    .eco-ledger-row,
    .claims-row,
    .recent-activity-item,
    .issued-coupon {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .eco-ledger-row .eco-ledger-amount,
    .claims-row .eco-badge,
    .recent-activity-item .recent-activity-date,
    .issued-coupon > .eco-button,
    .issued-coupon > .eco-badge {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }

    .verify-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .verify-search {
        width: 100%;
    }

    .verify-tabs {
        overflow-x: auto;
        width: 100%;
    }

    .passbook-balance strong {
        font-size: 44px;
    }

    .wallet-balance > span:first-child {
        font-size: 64px;
    }

    .eco-modal {
        padding: 20px;
    }
}


/* =========================================================
   22. COLOUR AND MOTION
   Colour carries meaning: each category and each kind of
   coin entry has a hue, applied wherever its icon appears.
   Motion is limited to arrival and hover, and switches off
   under prefers-reduced-motion with everything else.
   ========================================================= */

@property --eco-ring-value {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
}

/* ---- icons carry their own hue ---- */

.ico.ico-water,
.ico.ico-notebook,
.ico.ico-file-text {
    color: var(--cat-water);
}

.ico.ico-energy,
.ico.ico-cup {
    color: var(--cat-energy);
}

.ico.ico-waste {
    color: var(--cat-waste);
}

.ico.ico-transport,
.ico.ico-printer,
.ico.ico-flag {
    color: var(--cat-transport);
}

.ico.ico-food {
    color: var(--cat-food);
}

.ico.ico-tree,
.ico.ico-verified,
.ico.ico-shield {
    color: var(--cat-tree);
}

.ico.ico-bag,
.ico.ico-ticket,
.ico.ico-camera {
    color: var(--cat-bag);
}

.ico.ico-leaf,
.ico.ico-bottle {
    color: var(--cat-leaf);
}

.ico.ico-flame {
    color: var(--flame);
}

.ico.ico-coin {
    color: var(--coin);
}

/* inside a filled control the icon keeps the control's colour */
.eco-button-primary .ico,
.button-primary .ico,
.eco-button-ink .ico,
.stamp .ico,
.eco-streak-dot .ico,
.cta-band .ico {
    color: inherit;
}

/* ---- icon tiles take the soft version of the hue ---- */

[class*="-icon"]:has(> .ico-water, > .ico-notebook, > .ico-file-text) {
    --tint: var(--cat-water-soft);
}

[class*="-icon"]:has(> .ico-energy, > .ico-cup) {
    --tint: var(--cat-energy-soft);
}

[class*="-icon"]:has(> .ico-waste) {
    --tint: var(--cat-waste-soft);
}

[class*="-icon"]:has(> .ico-transport, > .ico-printer, > .ico-flag) {
    --tint: var(--cat-transport-soft);
}

[class*="-icon"]:has(> .ico-food) {
    --tint: var(--cat-food-soft);
}

[class*="-icon"]:has(> .ico-tree, > .ico-verified, > .ico-shield) {
    --tint: var(--cat-tree-soft);
}

[class*="-icon"]:has(> .ico-bag, > .ico-ticket, > .ico-camera) {
    --tint: var(--cat-bag-soft);
}

[class*="-icon"]:has(> .ico-leaf, > .ico-bottle) {
    --tint: var(--cat-leaf-soft);
}

[class*="-icon"]:has(> .ico-flame) {
    --tint: var(--flame-soft);
}

[class*="-icon"]:has(> .ico-coin) {
    --tint: var(--coin-soft);
}

.eco-ledger-icon,
.claims-row-icon,
.recent-activity-icon,
.issued-coupon-icon,
.activity-item-icon,
.coupon-card-icon,
.official-card-icon,
.verify-rate-icon,
.earn-route-icon,
.eco-file-drop-icon,
.eco-empty-icon {
    background: var(--tint, var(--surface-2));
    border-color: transparent;
}

/* a locked coupon stays quiet */
.coupon-card-locked .ico {
    color: var(--ink-3);
}

.coupon-card-locked .coupon-card-icon {
    --tint: var(--surface-2);
}

/* the category tag on an activity row follows its icon */
.activity-item:has(.ico-water) .activity-category-tag { color: var(--cat-water); }
.activity-item:has(.ico-energy) .activity-category-tag { color: var(--cat-energy); }
.activity-item:has(.ico-waste) .activity-category-tag { color: var(--cat-waste); }
.activity-item:has(.ico-transport) .activity-category-tag { color: var(--cat-transport); }
.activity-item:has(.ico-food) .activity-category-tag { color: var(--cat-food); }
.activity-item:has(.ico-tree) .activity-category-tag { color: var(--cat-tree); }
.activity-item:has(.ico-bag) .activity-category-tag { color: var(--cat-bag); }
.activity-item:has(.ico-leaf) .activity-category-tag { color: var(--cat-leaf); }

/* ---- warmth in the big surfaces ---- */

.hero {
    position: relative;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -64px 0 0;
    pointer-events: none;
    background:
        radial-gradient(560px 420px at 78% 28%, var(--wash-a), transparent 70%),
        radial-gradient(480px 380px at 8% 90%, var(--wash-b), transparent 70%);
}

.auth-visual {
    background:
        radial-gradient(520px 420px at 90% 10%, var(--wash-a), transparent 70%),
        linear-gradient(165deg, var(--cta-a), var(--cta-b) 62%);
}

.cta-band {
    background:
        radial-gradient(480px 300px at 92% 0%, var(--wash-a), transparent 70%),
        linear-gradient(135deg, var(--cta-a), var(--cta-b) 72%);
}

.passbook-head {
    background: linear-gradient(90deg, var(--accent-soft), var(--surface-2));
}

.figure-accent {
    background: var(--accent-soft);
}

.figure-coin {
    background: var(--coin-soft);
}

.header-balance {
    background: var(--coin-soft);
    border-color: transparent;
}

.eco-claim-toggle {
    background: var(--accent-soft);
}

.rule-card:nth-child(1) .mono { color: var(--cat-water); }
.rule-card:nth-child(2) .mono { color: var(--cat-bag); }
.rule-card:nth-child(3) .mono { color: var(--cat-tree); }

/* ---- the streak itself ---- */

.eco-ring {
    background: conic-gradient(
        from 0deg,
        var(--accent) 0%,
        var(--accent-2) calc(var(--eco-ring-value) * 1%),
        var(--surface-3) 0
    );
    animation: ring-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

@keyframes ring-in {
    from {
        --eco-ring-value: 0;
    }
}

.eco-streak-dot.done,
.streak-dot.filled {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    animation: pop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

@keyframes pop {
    from {
        transform: scale(0.75);
        opacity: 0;
    }
}

.eco-streak-week-day:nth-child(2) .eco-streak-dot, .streak-day:nth-child(2) .streak-dot { animation-delay: 60ms; }
.eco-streak-week-day:nth-child(3) .eco-streak-dot, .streak-day:nth-child(3) .streak-dot { animation-delay: 120ms; }
.eco-streak-week-day:nth-child(4) .eco-streak-dot, .streak-day:nth-child(4) .streak-dot { animation-delay: 180ms; }
.eco-streak-week-day:nth-child(5) .eco-streak-dot, .streak-day:nth-child(5) .streak-dot { animation-delay: 240ms; }
.eco-streak-week-day:nth-child(6) .eco-streak-dot, .streak-day:nth-child(6) .streak-dot { animation-delay: 300ms; }
.eco-streak-week-day:nth-child(7) .eco-streak-dot, .streak-day:nth-child(7) .streak-dot { animation-delay: 360ms; }

.challenge-progress-bar span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.eco-milestone.earned .eco-milestone-tick {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
}

/* ---- arrival ---- */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
}

.figures,
.wallet-figures,
.panel,
.dashboard-panel,
.eco-streak-reward,
.earn-route,
.route,
.coupon-card,
.official-card,
.saved-challenge-card,
.rule-card,
.process-step,
.passbook,
.streak-band,
.cta-band,
.create-challenge-card,
.verify-card,
.verify-gate-card,
.auth-container {
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.stack > :nth-child(2),
.coupon-grid > :nth-child(2),
.store-preview > :nth-child(2),
.challenge-featured > :nth-child(2),
.joined-challenges-list > :nth-child(2),
.rules > :nth-child(2),
.process > :nth-child(2),
.routes > :nth-child(2),
.earn-routes > :nth-child(2),
.verify-queue > :nth-child(2) {
    animation-delay: 80ms;
}

.stack > :nth-child(3),
.coupon-grid > :nth-child(3),
.store-preview > :nth-child(3),
.challenge-featured > :nth-child(3),
.rules > :nth-child(3),
.process > :nth-child(3),
.verify-queue > :nth-child(3) {
    animation-delay: 160ms;
}

.coupon-grid > :nth-child(4),
.challenge-featured > :nth-child(4),
.process > :nth-child(4) {
    animation-delay: 240ms;
}

.coupon-grid > :nth-child(5) {
    animation-delay: 320ms;
}

.coupon-grid > :nth-child(6) {
    animation-delay: 400ms;
}

.passbook-row {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.passbook-row:nth-child(2) { animation-delay: 160ms; }
.passbook-row:nth-child(3) { animation-delay: 240ms; }
.passbook-row:nth-child(4) { animation-delay: 320ms; }
.passbook-row:nth-child(5) { animation-delay: 400ms; }

/* ---- hover ---- */

.coupon-card,
.official-card,
.rule-card,
.saved-challenge-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}

.coupon-card:not(.coupon-card-locked):hover,
.official-card:hover,
.rule-card:hover,
.saved-challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line-2);
}

.eco-button-primary:hover:not(:disabled),
.button-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -10px var(--accent);
}

.eco-button-primary:active:not(:disabled),
.button-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}


/* =========================================================
   23. FIELD GUIDE
   The outdoors direction: a photograph under a condensed
   headline, a deep forest header, paper between the bands,
   torn edges, coloured tiles, and gold for the coins.
   Palette and type are re-declared here so the earlier
   components inherit them without being rewritten.
   ========================================================= */

:root {
    --bg: #f6f3ec;
    --surface: #ffffff;
    --surface-2: #efeae0;
    --surface-3: #e4ddcf;

    --ink: #14231c;
    --ink-2: #4b5a51;
    --ink-3: #7c877f;

    --line: #e0d9cb;
    --line-2: #cbc2b0;

    --accent: #1f6b4e;
    --accent-hover: #185a41;
    --accent-ink: #ffffff;
    --accent-soft: #dff0e6;
    --accent-soft-2: #bfe2cf;
    --accent-2: #5fb27d;

    --coin: #b8862b;
    --coin-soft: #f6e9cc;

    --forest: #163b2c;
    --forest-2: #0f2b20;
    --forest-fg: #f3f0e8;
    --forest-fg-2: #b9c7bf;
    --forest-line: rgba(255, 255, 255, 0.12);
    --gold: #d9a441;
    --gold-hover: #e4b354;
    --gold-ink: #1a1405;
    --earth: #7a5230;
    --sand: #e9dcc3;
    --glass: rgba(255, 255, 255, 0.94);

    --inverse-bg: #163b2c;
    --inverse-fg: #f3f0e8;
    --inverse-fg-2: #b9c7bf;
    --inverse-line: rgba(255, 255, 255, 0.12);
    --inverse-accent: #d9a441;
    --cta-a: #1f5a42;
    --cta-b: #0f2b20;
    --wash-a: rgba(31, 107, 78, 0.14);
    --wash-b: rgba(217, 164, 65, 0.14);

    --font-display: "Bricolage Grotesque", "Barlow Condensed", "Arial Narrow", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0e1612;
        --surface: #13201a;
        --surface-2: #1a2922;
        --surface-3: #22332a;
        --ink: #eef0ea;
        --ink-2: #aab5ad;
        --ink-3: #74807a;
        --line: #243229;
        --line-2: #33463a;
        --accent: #5fcf98;
        --accent-hover: #78dba8;
        --accent-ink: #06130c;
        --accent-soft: #163a2b;
        --accent-soft-2: #1f4f3a;
        --accent-2: #8fe3b8;
        --coin: #e0b35a;
        --coin-soft: #3a2d12;
        --forest: #10261c;
        --forest-2: #0b1b14;
        --forest-fg: #eef0ea;
        --forest-fg-2: #aab5ad;
        --gold: #e6b85c;
        --gold-hover: #efc670;
        --earth: #a8794a;
        --sand: #3a3220;
        --glass: rgba(19, 32, 26, 0.92);
        --inverse-bg: #10261c;
        --inverse-fg: #eef0ea;
        --inverse-fg-2: #aab5ad;
        --inverse-accent: #e6b85c;
        --cta-a: #1a4a36;
        --cta-b: #0b1b14;
    }
}

:root[data-theme="dark"] {
    --bg: #0e1612;
    --surface: #13201a;
    --surface-2: #1a2922;
    --surface-3: #22332a;
    --ink: #eef0ea;
    --ink-2: #aab5ad;
    --ink-3: #74807a;
    --line: #243229;
    --line-2: #33463a;
    --accent: #5fcf98;
    --accent-hover: #78dba8;
    --accent-ink: #06130c;
    --accent-soft: #163a2b;
    --accent-soft-2: #1f4f3a;
    --accent-2: #8fe3b8;
    --coin: #e0b35a;
    --coin-soft: #3a2d12;
    --forest: #10261c;
    --forest-2: #0b1b14;
    --forest-fg: #eef0ea;
    --forest-fg-2: #aab5ad;
    --gold: #e6b85c;
    --gold-hover: #efc670;
    --earth: #a8794a;
    --sand: #3a3220;
    --glass: rgba(19, 32, 26, 0.92);
    --inverse-bg: #10261c;
    --inverse-fg: #eef0ea;
    --inverse-fg-2: #aab5ad;
    --inverse-accent: #e6b85c;
    --cta-a: #1a4a36;
    --cta-b: #0b1b14;
}

/* ---- paper grain, very faint ---- */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
}

/* ---- condensed display type ---- */

.display,
.num,
.hero h1,
.hero-photo h1,
.page-head h1,
.section-head h2,
.eco-streak-reward-top h2,
.eco-ring-label strong,
.figure-value strong,
.wallet-balance > span:first-child,
.wallet-figures strong,
.route h3,
.streak-band-figure strong,
.cta-band h2,
.dashboard-welcome h1,
.streak-summary-number span:first-child,
.wallet-panel-balance strong,
.auth-visual h1,
.auth-heading h2,
.verify-gate-card h1,
.verify-intro h1,
.verify-stat strong,
.passbook-balance strong,
.side-figure strong {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0;
}

.hero h1,
.hero-photo h1,
.section-head h2,
.cta-band h2,
.auth-visual h1,
.photo-band h2,
.verify-intro h1 {
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 0.92;
}

.hero h1 em,
.hero-photo h1 em,
.cta-band h2 em,
.auth-visual h1 em,
.section-head h2 em {
    font-style: normal;
    color: var(--gold);
}

.section-head h2 em {
    color: var(--accent);
}

.dashboard-welcome h1 span {
    font-style: normal;
    color: var(--accent);
}

.eyebrow-gold {
    color: var(--gold);
}

/* ---- the forest header ---- */

.app-bar {
    background: var(--forest);
    border-bottom-color: var(--forest-line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.app-bar .brand {
    color: #fff;
}

.app-bar .brand-mark {
    background: var(--gold);
    color: var(--gold-ink);
}

.app-bar .brand-tag {
    color: var(--forest-fg-2);
    border-left-color: var(--forest-line);
}

.app-bar .nav-link {
    color: rgba(255, 255, 255, 0.74);
}

.app-bar .nav-link:hover,
.app-bar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.app-bar .login-link {
    color: rgba(255, 255, 255, 0.8);
}

.app-bar .login-link:hover {
    color: #fff;
}

.app-bar .header-balance {
    background: rgba(217, 164, 65, 0.16);
    color: var(--gold);
    border-color: transparent;
}

.app-bar .header-balance .ico {
    color: var(--gold);
}

.app-bar .header-user {
    color: #fff;
}

.app-bar .header-user:hover {
    background: rgba(255, 255, 255, 0.09);
}

.app-bar .header-user-avatar {
    background: var(--gold);
    color: var(--gold-ink);
}

.app-bar .eco-button-primary {
    background: var(--gold);
    color: var(--gold-ink);
    border-color: var(--gold);
}

.app-bar .eco-button-primary:hover:not(:disabled) {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    box-shadow: none;
}

.app-bar .eco-button-secondary,
.app-bar .eco-button-soft {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
}

.app-bar .eco-button-secondary:hover:not(:disabled),
.app-bar .eco-button-soft:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

.app-bar .menu-toggle {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

/* over the hero the bar floats on the photograph */
.app-bar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(8, 24, 17, 0.62), rgba(8, 24, 17, 0));
    border-bottom: 0;
}

/* ---- full screen menu on the phone ---- */

.mobile-nav {
    background: var(--forest);
    border-top-color: var(--forest-line);
}

.mobile-nav.open {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    overflow: auto;
    padding: 24px 0 40px;
}

.mobile-nav a,
.mobile-nav button {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.82);
    padding-block: 12px;
}

.mobile-nav a.active,
.mobile-nav a:hover,
.mobile-nav button:hover {
    color: var(--gold);
    background: transparent;
}

.mobile-nav .mobile-nav-divider {
    border-top-color: var(--forest-line);
    margin: 14px 0;
}

/* ---- torn edges ---- */

.tear {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 44px;
    display: block;
    pointer-events: none;
    z-index: 2;
}

.tear-top {
    top: -1px;
}

.tear-bottom {
    bottom: -1px;
}

.tear path {
    fill: var(--bg);
}

.tear-forest path {
    fill: var(--forest);
}

.tear-surface path {
    fill: var(--surface);
}

/* ---- photographic hero ---- */

.hero-photo {
    position: relative;
    overflow: hidden;
    background: var(--forest-2);
    color: var(--forest-fg);
    padding-block: 150px 120px;
    isolation: isolate;
}

.hero-photo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
    animation: drift 26s ease-in-out infinite alternate;
    transform-origin: 60% 40%;
}

@keyframes drift {
    from {
        transform: scale(1.04) translate(0, 0);
    }
    to {
        transform: scale(1.12) translate(-1.5%, 1.5%);
    }
}

.hero-photo-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(10, 32, 23, 0.9) 0%, rgba(10, 32, 23, 0.72) 45%, rgba(10, 32, 23, 0.3) 100%),
        linear-gradient(to top, rgba(10, 32, 23, 0.85), transparent 45%);
}

.hero-photo-inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: center;
}

.hero-photo .eyebrow {
    color: var(--gold);
}

.hero-photo h1 {
    font-size: clamp(54px, 8.2vw, 112px);
    margin: 14px 0 22px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-photo h1 em {
    color: var(--gold);
}

.hero-photo .lede {
    color: rgba(255, 255, 255, 0.84);
    max-width: 52ch;
}

.hero-photo .hero-proof {
    color: rgba(255, 255, 255, 0.72);
}

.hero-photo .hero-proof .ico {
    color: var(--gold);
}

.hero-copy > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }

.eco-button-gold {
    background: var(--gold);
    color: var(--gold-ink);
    border-color: var(--gold);
}

.eco-button-gold:hover:not(:disabled) {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -12px rgba(217, 164, 65, 0.9);
}

.eco-button-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.eco-button-ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}

.passbook-glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--ink);
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 260ms backwards;
}

.passbook-glass .passbook-head {
    background: linear-gradient(90deg, var(--coin-soft), transparent);
}

/* ---- stats band ---- */

.stats-band {
    position: relative;
    background: var(--forest);
    color: var(--forest-fg);
    padding-block: 44px 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    padding: 8px 28px;
    min-width: 0;
}

.stat + .stat {
    border-left: 1px solid var(--forest-line);
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: 64px;
    line-height: 0.95;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}

.stat span {
    display: block;
    font-size: 13.5px;
    color: var(--forest-fg-2);
    max-width: 24ch;
}

/* ---- category tiles ---- */

.tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tile {
    position: relative;
    padding: 24px 22px 20px;
    border-radius: var(--r-m);
    background: var(--tile-soft, var(--surface-2));
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--tile-ink, var(--accent));
    opacity: 0.08;
}

.tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tile-ink, var(--accent));
    color: #fff;
    display: grid;
    place-items: center;
}

.tile-icon .ico {
    width: 20px;
    height: 20px;
    color: #fff;
}

.tile h3 {
    font-size: 17px;
    font-weight: 600;
}

.tile-rate {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--tile-ink, var(--accent));
    font-weight: 500;
}

.tiles > :nth-child(2) { animation-delay: 60ms; }
.tiles > :nth-child(3) { animation-delay: 120ms; }
.tiles > :nth-child(4) { animation-delay: 180ms; }
.tiles > :nth-child(5) { animation-delay: 240ms; }
.tiles > :nth-child(6) { animation-delay: 300ms; }
.tiles > :nth-child(7) { animation-delay: 360ms; }
.tiles > :nth-child(8) { animation-delay: 420ms; }

.tile-water { --tile-ink: var(--cat-water); --tile-soft: var(--cat-water-soft); }
.tile-energy { --tile-ink: var(--cat-energy); --tile-soft: var(--cat-energy-soft); }
.tile-waste { --tile-ink: var(--cat-waste); --tile-soft: var(--cat-waste-soft); }
.tile-transport { --tile-ink: var(--cat-transport); --tile-soft: var(--cat-transport-soft); }
.tile-food { --tile-ink: var(--cat-food); --tile-soft: var(--cat-food-soft); }
.tile-tree { --tile-ink: var(--cat-tree); --tile-soft: var(--cat-tree-soft); }
.tile-bag { --tile-ink: var(--cat-bag); --tile-soft: var(--cat-bag-soft); }
.tile-leaf { --tile-ink: var(--cat-leaf); --tile-soft: var(--cat-leaf-soft); }

/* ---- process, with chapter numbers ---- */

.process-step > span:first-child {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: var(--gold);
    letter-spacing: 0;
}

/* ---- photo band ---- */

.photo-band {
    position: relative;
    overflow: hidden;
    background: var(--forest-2);
    color: var(--forest-fg);
    padding-block: 110px 100px;
    isolation: isolate;
}

.photo-band-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.photo-band-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(10, 32, 23, 0.86), rgba(10, 32, 23, 0.7));
}

.photo-band .section-head {
    max-width: 720px;
}

.photo-band .eyebrow {
    color: var(--gold);
}

.photo-band h2 {
    color: #fff;
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: clamp(36px, 4.6vw, 60px);
}

.photo-band .section-head p {
    color: rgba(255, 255, 255, 0.78);
}

.rules-glass .rule-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--forest-fg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rules-glass .rule-card h3 {
    color: #fff;
}

.rules-glass .rule-card p {
    color: rgba(255, 255, 255, 0.78);
}

.rules-glass .rule-card .mono {
    color: var(--gold) !important;
}

.rules-glass .rule-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

/* ---- store cards get a coloured head ---- */

.store-preview .coupon-card,
.coupon-grid .coupon-card {
    padding-top: 0;
    overflow: hidden;
}

.store-preview .coupon-card-icon,
.coupon-grid .coupon-card-icon {
    width: calc(100% + 44px);
    margin: 0 -22px 12px;
    height: 96px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.store-preview .coupon-card-icon .ico,
.coupon-grid .coupon-card-icon .ico {
    width: 30px;
    height: 30px;
}

/* ---- footer in the forest ---- */

.site-footer {
    background: var(--forest);
    color: var(--forest-fg);
    border-top: 0;
    margin-top: 0;
    padding-block: 56px 36px;
}

.site-footer .brand {
    color: #fff;
}

.site-footer .brand-mark {
    background: var(--gold);
    color: var(--gold-ink);
}

.site-footer .footer-brand-block p,
.site-footer .footer-links a,
.site-footer .footer-bottom {
    color: var(--forest-fg-2);
}

.site-footer .footer-links a:hover {
    color: #fff;
    border-bottom-color: var(--forest-line);
}

.site-footer .footer-bottom {
    border-top-color: var(--forest-line);
}

/* ---- auth panel on a photograph ---- */

.auth-visual {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.auth-visual-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.auth-visual-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(10, 32, 23, 0.92) 30%, rgba(10, 32, 23, 0.55));
}

.auth-visual .eyebrow {
    color: var(--gold);
}

.auth-visual h1 {
    font-size: clamp(42px, 4.8vw, 64px);
    color: #fff;
}

.auth-ledger {
    background: rgba(10, 32, 23, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-color: rgba(255, 255, 255, 0.16);
}

/* ---- responsive ---- */

@media (max-width: 1080px) {
    .hero-photo-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero-photo {
        padding-block: 130px 100px;
    }

    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 0;
    }

    .stat:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .hero-photo {
        padding-block: 110px 84px;
    }

    .hero-photo h1 {
        font-size: clamp(46px, 13vw, 64px);
    }

    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat {
        padding: 14px 0;
        border-left: 0 !important;
        border-top: 1px solid var(--forest-line);
    }

    .stat:first-child {
        border-top: 0;
    }

    .stat strong {
        font-size: 48px;
    }

    .tiles {
        grid-template-columns: minmax(0, 1fr);
    }

    .tear {
        height: 28px;
    }

    .photo-band {
        padding-block: 80px 70px;
    }
}

/* in the dark theme the tile squares are pale, so the glyph goes dark */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tile-icon .ico {
        color: var(--bg);
    }
}

:root[data-theme="dark"] .tile-icon .ico {
    color: var(--bg);
}


/* =========================================================
   24. GIFTS AND STANDINGS
   Coins only for the three verifiable actions; streaks
   unlock the surprise gifts. These are the pieces that
   show it.
   ========================================================= */

.ico.ico-bins { color: var(--cat-waste); }
.ico.ico-broom { color: var(--cat-leaf); }
.ico.ico-sprout { color: var(--cat-tree); }

[class*="-icon"]:has(> .ico-bins) { --tint: var(--cat-waste-soft); }
[class*="-icon"]:has(> .ico-broom) { --tint: var(--cat-leaf-soft); }
[class*="-icon"]:has(> .ico-sprout) { --tint: var(--cat-tree-soft); }

.activity-item:has(.ico-bins) .activity-category-tag { color: var(--cat-waste); }
.activity-item:has(.ico-broom) .activity-category-tag { color: var(--cat-leaf); }
.activity-item:has(.ico-sprout) .activity-category-tag { color: var(--cat-tree); }

.tile-bins { --tile-ink: var(--cat-waste); --tile-soft: var(--cat-waste-soft); }
.tile-broom { --tile-ink: var(--cat-leaf); --tile-soft: var(--cat-leaf-soft); }
.tile-sprout { --tile-ink: var(--cat-tree); --tile-soft: var(--cat-tree-soft); }

/* ---- the three tiles that earn, and the eight that keep the streak ---- */

.tiles-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.tiles-label::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--line);
}

.tiles-label + .tiles {
    margin-bottom: 32px;
}

.tiles-earn {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tiles-earn .tile {
    padding: 26px 24px 24px;
    gap: 16px;
}

.tiles-earn .tile h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.tile-coins {
    display: block;
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: 38px;
    line-height: 1;
    color: var(--tile-ink);
    margin-bottom: 10px;
}

.tile-coins small {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-left: 8px;
}

.tiles-earn .tile-rate {
    font-family: var(--font-ui);
    font-size: 13.5px;
    color: var(--ink-2);
    font-weight: 400;
}

.tiles-habits .tile {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.tiles-habits .tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.tiles-habits .tile h3 {
    font-size: 15px;
    margin-bottom: 2px;
}

.tiles-habits .tile-rate {
    font-family: var(--font-ui);
    font-size: 12.5px;
    color: var(--ink-3);
    font-weight: 400;
}

.tiles-habits .tile::after {
    display: none;
}

/* ---- surprise gift cards ---- */

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.reward-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 26px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.reward-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.rewards-grid > :nth-child(2) { animation-delay: 80ms; }
.rewards-grid > :nth-child(3) { animation-delay: 160ms; }

.reward-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--coin-soft);
    color: var(--coin);
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}

.reward-card-icon .ico {
    width: 22px;
    height: 22px;
    color: var(--coin);
}

.reward-card h3 {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}

.reward-card > p {
    font-size: 14px;
    color: var(--ink-2);
}

.reward-card-surprise {
    position: absolute;
    top: 18px;
    right: 18px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-ink);
    background: var(--gold);
    padding: 5px 9px;
    border-radius: 999px;
}

.reward-card-rule {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    line-height: 1.6;
}

.reward-card-rule strong {
    color: var(--accent);
    font-weight: 500;
}

.reward-card-live {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    padding: 14px;
    border-radius: var(--r-s);
    background: var(--surface-2);
    margin-top: 6px;
}

.reward-card-live strong {
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    color: var(--coin);
    text-align: right;
}

.reward-card-live span {
    font-size: 12.5px;
    color: var(--ink-2);
}

.reward-card-live .eco-badge {
    grid-column: 1 / -1;
    justify-self: start;
}

/* ---- where you stand, on the dashboard ---- */

.standing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.standing:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.standing-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.standing-title .ico {
    width: 16px;
    height: 16px;
    color: var(--coin);
}

.standing-meta {
    font-size: 13px;
    color: var(--ink-2);
    margin-top: 4px;
}

.standing-coins {
    text-align: right;
    font-family: var(--font-display);
    font-stretch: 75%;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    color: var(--coin);
    font-variant-numeric: tabular-nums;
}

.standing-coins small {
    display: block;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-top: 5px;
}

.standing-foot {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ---- standings in the reviewer console ---- */

.standings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.standings-panel .panel-heading {
    margin-bottom: 8px;
}

.standing-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.standing-row > span:first-child {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
}

.standing-row > div {
    min-width: 0;
}

.standing-row strong {
    display: block;
    font-weight: 500;
}

.standing-row small {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.standing-row .mono {
    color: var(--coin);
    font-weight: 500;
    white-space: nowrap;
}

.standing-row.is-winner {
    background: var(--coin-soft);
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: var(--r-s);
    border-bottom-color: transparent;
}

/* ---- odds and ends ---- */

.eco-milestone-prize {
    font-size: 12.5px;
    color: var(--ink-2);
    text-align: right;
    max-width: 24ch;
    line-height: 1.4;
}

.eco-milestone.earned .eco-milestone-prize {
    color: var(--accent);
}

.earn-milestone strong {
    font-family: var(--font-ui);
    font-size: 12.5px;
    font-weight: 400;
    color: var(--ink-2);
    text-align: right;
    max-width: 24ch;
}

.earn-milestone.reached strong {
    color: var(--accent);
}

.route-table-row strong.prize {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-2);
    text-align: right;
    max-width: 26ch;
}

.locate-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.locate-row input {
    flex: 1;
    min-width: 0;
}

.locate-row .eco-button {
    height: auto;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .tiles-earn,
    .rewards-grid,
    .standings-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tiles-habits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tiles-habits {
        grid-template-columns: minmax(0, 1fr);
    }

    .locate-row {
        flex-direction: column;
    }

    .standing-row {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .standing-row > .mono,
    .standing-row > .eco-badge {
        grid-column: 2;
        justify-self: start;
    }
}
