:root {
    color-scheme: light;
    --bg: #f5f4f0;
    --surface: #ffffff;
    --surface-2: #edece7;
    --ink: #171a1f;
    --muted: #5c6570;
    --line: #e2e3e6;
    --accent: #0e5c57;
    --accent-ink: #ffffff;
    --accent-soft: #dcecea;
    --warm: #a75f16;
    --warm-soft: #f6e8d7;
    --danger: #a3241b;
    --danger-soft: #f8e2df;
    --gold: #b8863f;
    --gold-soft: #e7d3a8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(20, 30, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0f1113;
        --surface: #171a1e;
        --surface-2: #131519;
        --ink: #eef0f2;
        --muted: #9aa3ad;
        --line: #2a2f36;
        --accent: #4fb3a8;
        --accent-ink: #06201d;
        --accent-soft: #173834;
        --warm: #d69a55;
        --warm-soft: #3a2a17;
        --danger: #f08a80;
        --danger-soft: #3a1a17;
        --gold: #d8b878;
        --gold-soft: #3a2f1d;
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
}

h2 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

h3 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 1rem;
}

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

.container {
    width: min(1080px, 100% - 48px);
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px) saturate(140%);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--bg) 96%, transparent),
        color-mix(in srgb, var(--bg) 80%, transparent)
    );
    border-bottom: 0;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--gold) 55%, transparent) 18%,
        color-mix(in srgb, var(--gold) 55%, transparent) 82%,
        transparent
    );
}

.header-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100% - 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 0.18s ease;
}

.nav-login:hover {
    color: var(--gold);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.brand-word {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.24rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-word em {
    font-style: normal;
    color: var(--gold);
}

.brand-muted .logo-mark {
    opacity: 0.65;
    box-shadow: none;
}

.brand-muted .brand-word,
.brand-muted .brand-word em {
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 0.86rem;
    font-weight: 550;
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.main-nav a {
    position: relative;
    padding: 6px 0;
    transition: color 0.18s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--gold);
    opacity: 0.85;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--ink);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.nav-user {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--muted);
}

.header-actions .link-button {
    font-size: 0.82rem;
    color: var(--muted);
    transition: color 0.18s ease;
}

.header-actions .link-button:hover {
    color: var(--ink);
}

.header-actions .button-small {
    background: linear-gradient(135deg, #e3c382 0%, #bd8d45 100%);
    color: #1b1408;
    border: 1px solid color-mix(in srgb, #ffffff 30%, transparent);
    border-radius: 9px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px rgba(0, 0, 0, 0.16);
    transform: none;
}

.header-actions .button-small:hover {
    transform: translateY(-1px);
    opacity: 1;
    filter: brightness(1.04);
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

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

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-left: 16px;
    border-left: 1px solid var(--line);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.lang-switch a {
    padding: 2px 1px;
    opacity: 0.65;
}

.lang-switch a.active {
    color: var(--gold);
    opacity: 1;
    font-weight: 700;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.button:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

.button-small {
    padding: 8px 16px;
    font-size: 0.88rem;
}

.button-block {
    width: 100%;
}

.button-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

/* Hero */

.hero {
    padding: 72px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-grid > * {
    min-width: 0;
}

.badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero .lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 34rem;
}

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

/* Quote card mock */

.quote-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transform: rotate(-1deg);
    width: 100%;
    max-width: 420px;
}

.quote-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    font-size: 0.92rem;
    padding-bottom: 14px;
    flex-wrap: wrap;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.quote-card-head .pill {
    margin-left: auto;
}

.pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--warm-soft);
    color: var(--warm);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.pill-soft {
    background: var(--surface-2);
    color: var(--muted);
    margin-bottom: 10px;
}

.quote-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.quote-lines li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.tick {
    color: var(--accent);
    font-weight: 800;
}

.quote-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    font-size: 0.85rem;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 750;
    font-size: 0.85rem;
}

/* Sections */

.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--surface-2);
}

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

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.feature p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 0;
}

.steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-no {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 800;
}

.steps p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* Auth */

.auth-section {
    display: grid;
    place-items: center;
    padding: 64px 0 80px;
}

.auth-card {
    width: min(440px, 100%);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.auth-card.center {
    text-align: center;
}

.auth-card h1 {
    font-size: 1.6rem;
}

.auth-card .muted {
    margin-bottom: 22px;
}

.stack {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 650;
}

.field input,
.field select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-weight: 450;
}

.field input:focus,
.field select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

.hint {
    margin: -6px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.alert {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.87rem;
    margin-bottom: 16px;
}

.auth-alt {
    margin: 18px 0 0;
    font-size: 0.86rem;
    color: var(--muted);
    text-align: center;
}

.auth-alt a {
    color: var(--accent);
    font-weight: 650;
}

/* Dashboard */

.page-header {
    margin-bottom: 28px;
}

.page-header .muted {
    max-width: 40rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.info-card {
    display: grid;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
}

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

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.card h3 {
    margin-bottom: 6px;
}

.card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 26px 0;
    margin-top: 24px;
}

.footer-inner {
    display: grid;
    gap: 14px;
    font-size: 0.84rem;
}

.footer-top,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: var(--ink);
    font-weight: 550;
    transition: color 0.18s ease;
}

.footer-contact a:hover {
    color: var(--gold);
}

/* Misc */

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

@media (max-width: 860px) {
    .hero {
        padding-top: 48px;
    }

    .hero-grid,
    .features,
    .steps,
    .info-grid,
    .cards-3 {
        grid-template-columns: 1fr;
    }

    .quote-card {
        transform: none;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
        gap: 12px;
    }

    .header-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px 18px;
    }

    .main-nav {
        gap: 18px;
    }

    .container {
        width: min(1080px, 100% - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }

    .button:hover {
        transform: none;
    }
}

/* RFQ flows */

.narrow {
    width: min(760px, 100%);
    margin-inline: auto;
}

.page-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.back-link {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.86rem;
    color: var(--muted);
}

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

.mt {
    margin-top: 30px;
}

.small {
    font-size: 0.82rem;
}

.lede {
    font-size: 1.02rem;
    color: var(--muted);
    max-width: 46rem;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

.rfq-list {
    display: grid;
    gap: 12px;
}

.rfq-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
}

.rfq-row:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.rfq-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.rfq-title {
    font-weight: 650;
}

.rfq-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form-card {
    display: grid;
    gap: 16px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-weight: 450;
    resize: vertical;
}

.field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

.item-rows {
    display: grid;
    gap: 14px;
}

.item-row {
    display: grid;
    grid-template-columns: 2.2fr 0.7fr 0.7fr 1fr;
    gap: 10px;
    align-items: end;
}

.item-row .field {
    font-size: 0.78rem;
    min-width: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.table th {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.table tr:last-child td {
    border-bottom: 0;
}

.table.compact th,
.table.compact td {
    padding: 8px 12px;
}

.quote-block {
    margin-top: 14px;
}

.quote-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.quote-line {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.quote-line .w-price {
    min-width: 170px;
}

@media (max-width: 720px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .item-row {
        grid-template-columns: 1fr 1fr;
    }

    .rfq-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .rfq-meta {
        justify-content: flex-start;
    }
}

/* Homepage visuals */

.icon {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.hero {
    background:
        radial-gradient(900px 420px at 85% 8%, color-mix(in srgb, var(--accent-soft) 75%, transparent), transparent 70%),
        radial-gradient(700px 380px at 5% 95%, color-mix(in srgb, var(--warm-soft) 45%, transparent), transparent 70%);
}

.hero-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.hero-gear {
    position: absolute;
    top: -70px;
    right: -40px;
    width: 360px;
    height: 360px;
    color: var(--accent);
    opacity: 0.12;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    animation: spin 90s linear infinite;
    pointer-events: none;
}

.hero-art .quote-card {
    position: relative;
    z-index: 1;
}

.float-icon {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--accent);
}

.float-one {
    left: -16px;
    bottom: 34px;
    color: var(--warm);
    animation: floaty 7s ease-in-out infinite;
}

.float-two {
    top: 12px;
    right: -8px;
    animation: floaty 6s ease-in-out infinite reverse;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 46px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stat {
    display: grid;
    gap: 2px;
    padding: 18px 22px;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.stat span {
    color: var(--muted);
    font-size: 0.8rem;
}

.section-head {
    max-width: 46rem;
    margin-bottom: 28px;
}

.section-head h2 {
    margin-bottom: 0.4rem;
}

.section-head p {
    margin: 0;
}

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

.sector-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 620;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.sector-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.sector-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    flex: none;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 14px;
}

.cta-band {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 40px 44px;
    border-radius: calc(var(--radius) + 6px);
    color: #f2fffc;
    background: linear-gradient(135deg, #0e5c57 0%, #082e2b 100%);
}

.cta-copy {
    position: relative;
    z-index: 1;
    max-width: 38rem;
}

.cta-copy h2 {
    margin-bottom: 0.35rem;
}

.cta-copy p {
    margin: 0;
    opacity: 0.85;
}

.cta-gear {
    position: absolute;
    top: -70px;
    right: -30px;
    width: 260px;
    height: 260px;
    color: #f2fffc;
    opacity: 0.13;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    animation: spin 80s linear infinite;
    pointer-events: none;
}

.button-inverse {
    position: relative;
    z-index: 1;
    background: #f2fffc;
    color: #0a3b37;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes floaty {
    from {
        transform: translateY(-6px);
    }
    to {
        transform: translateY(8px);
    }
}

@media (max-width: 980px) {
    .sector-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hero-art {
        margin-top: 32px;
    }

    .hero-gear {
        width: 280px;
        height: 280px;
        right: -60px;
    }

    .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 34px;
    }

    .stat:nth-child(2n) {
        border-right: 0;
    }

    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 720px) {
    .float-icon {
        display: none;
    }

    .hero-gear {
        opacity: 0.08;
    }

    .cta-band {
        padding: 30px 26px;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-color-scheme: dark) {
    .hero {
        background:
            radial-gradient(900px 420px at 85% 8%, color-mix(in srgb, var(--accent-soft) 50%, transparent), transparent 70%),
            radial-gradient(700px 380px at 5% 95%, color-mix(in srgb, var(--warm-soft) 18%, transparent), transparent 70%);
    }

    .hero-gear {
        opacity: 0.15;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-gear,
    .float-icon,
    .cta-gear {
        animation: none;
    }

    .sector-card {
        transition: none;
    }
}

/* Firms & products */

.stat-link {
    color: inherit;
}

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

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

.firm-card {
    display: grid;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.firm-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.firm-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.firm-card-head > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.firm-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 12px 14px 12px 14px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 800;
}

.firm-card p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.firm-card > .pill {
    justify-self: start;
}

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

.product-card {
    padding: 0;
    overflow: hidden;
    display: grid;
    align-content: start;
}

.product-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface-2);
}

.product-placeholder {
    display: grid;
    place-items: center;
    color: var(--muted);
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent-soft) 60%, transparent), transparent 62%),
        var(--surface-2);
}

.product-placeholder .icon {
    width: 54px;
    height: 54px;
    opacity: 0.5;
}

.product-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.product-head strong {
    font-size: 1rem;
}

.product-body p {
    margin: 0;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.product-foot .button-small {
    padding: 7px 14px;
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .firm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .firm-grid {
        grid-template-columns: 1fr;
    }
}

/* About manifesto */

.about-section {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: start;
}

.about-copy h2 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
}

.about-copy .badge {
    margin-bottom: 14px;
}

.about-copy .lede {
    margin-bottom: 0.8rem;
}

.system-steps {
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
    border-left: 1px solid var(--line);
    display: grid;
}

.system-steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.system-steps li:first-child {
    padding-top: 0;
}

.system-steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.system-no {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    border-radius: 50%;
    color: var(--gold);
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.system-steps strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.98rem;
}

.system-steps div span {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Firm logo marquee */

.logo-marquee {
    overflow: hidden;
    margin: 4px 0 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    animation: marquee 42s linear infinite;
}

.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
}

.logo-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.logo-item img {
    height: 26px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.logo-item:hover img {
    filter: none;
    opacity: 1;
}

.logo-fallback {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Firms page */

.firms-hero {
    padding-bottom: 0;
}

.firms-hero h1 {
    margin-bottom: 0.4rem;
}

.firms-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.firms-hero .lead {
    max-width: 40rem;
    margin: 0;
}

.firms-count {
    display: grid;
    justify-items: end;
    padding-bottom: 4px;
}

.firms-count strong {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--gold);
}

.firms-count span {
    color: var(--muted);
    font-size: 0.8rem;
}

.firm-toolbar {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.firm-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 100%);
}

.firm-search-form .firm-search {
    width: 100%;
}

.firm-search-form .button {
    flex: none;
}

.firm-search {
    width: min(420px, 100%);
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

.firm-search:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
    border-color: transparent;
}

.firm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip:hover {
    color: var(--ink);
    border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}

.chip.active {
    color: var(--gold);
    border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
    background: color-mix(in srgb, var(--gold-soft) 35%, transparent);
}

.firms-section {
    padding-top: 36px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.firm-card-lg {
    padding: 20px;
    gap: 12px;
}

.firm-card-lg .firm-card-head strong {
    font-size: 1.02rem;
}

.firm-sector {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
}

.firm-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.firm-arrow {
    color: var(--muted);
    transition: transform 0.15s ease, color 0.15s ease;
}

.firm-card:hover .firm-arrow {
    transform: translateX(3px);
    color: var(--gold);
}

.firm-logo-wrap {
    display: grid;
    place-items: center;
    width: 86px;
    height: 50px;
    flex: none;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
}

.firm-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.firm-initial {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent);
}

.firm-logo-lg {
    width: 120px;
    height: 68px;
    padding: 8px;
    border-radius: 12px;
}

.firm-logo-lg .firm-logo {
    max-width: 100%;
    max-height: 100%;
}

.firm-logo-lg .firm-initial {
    font-size: 1.6rem;
}

.firm-detail-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.firm-detail-header h1 {
    margin-bottom: 0.2rem;
}

.firm-detail-header .muted {
    margin: 0;
}

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .system-steps {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .firms-hero-row {
        align-items: flex-start;
    }

    .firms-count {
        justify-items: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }
}

.dashboard-catalog {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

.dashboard-catalog h2 {
    font-size: 1.15rem;
}

@media (max-width: 860px) {
    .dashboard-catalog {
        grid-template-columns: 1fr;
    }
}

/* Catalog / product tree */

.catalog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.catalog-header h1 {
    margin-bottom: 0.35rem;
}

.catalog-header .muted {
    margin: 0;
    max-width: 40rem;
}

.catalog-search-form {
    margin: 0;
    width: min(400px, 100%);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.catalog-tree {
    display: grid;
    gap: 2px;
    margin-top: 12px;
}

.tree-section {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.tree-section:hover {
    background: var(--surface-2);
    color: var(--gold);
}

.tree-count {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
}

.tree-family {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 10px 4px 22px;
    margin-left: 4px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.catalog-main {
    min-width: 0;
}

.catalog-section {
    margin-top: 0;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 96px;
}

.catalog-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.catalog-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.catalog-section h2 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    margin: 0;
}

.catalog-family {
    margin-top: 22px;
}

.catalog-family h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
}

.catalog-card .product-image {
    aspect-ratio: 4 / 3;
}

.catalog-card .product-body {
    padding: 14px;
}

.product-grid.catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card {
    position: relative;
}

.catalog-check {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border: 1px solid var(--line);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.catalog-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.catalog-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 30;
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.catalog-bar[hidden] {
    display: none;
}

.catalog-bar-info {
    font-size: 0.9rem;
    color: var(--muted);
}

.catalog-bar-info strong {
    color: var(--ink);
    font-size: 1.05rem;
    margin-right: 4px;
}

.catalog-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 980px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
        max-height: none;
    }

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

@media (max-width: 720px) {
    .catalog-sidebar {
        display: none;
    }

    .product-grid.catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-bar-actions {
        justify-content: space-between;
    }
}

/* Offers & invitation panels */

.invite-panel {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.invite-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.invite-list,
.invite-candidates {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.invite-list li,
.invite-candidates li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.invite-list li:last-child,
.invite-candidates li:last-child {
    border-bottom: 0;
}

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

.offer-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.offer-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.offer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.offer-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    flex: none;
}

.offer-card p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    color: var(--muted);
    font-size: 0.85rem;
}

.price-line {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 10px 0 0;
}

@media (max-width: 980px) {
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }
}

/* Google sign-in and legal/pricing pages */

.button-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button-google:hover {
    background: var(--surface-2);
}

.google-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.pricing-hero {
    padding-top: 56px;
}

.pricing-header {
    max-width: 760px;
}

.pricing-header .lead {
    max-width: 680px;
    margin-top: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(20, 30, 40, 0.04);
}

.price-card-featured {
    border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
    box-shadow: 0 18px 50px color-mix(in srgb, var(--gold) 12%, transparent);
}

.price-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

.price-card h2 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    margin-bottom: 0;
}

.price-amount {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.1;
    color: var(--ink);
    margin: 4px 0 0;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 18px;
    display: grid;
    gap: 9px;
    color: var(--muted);
    font-size: 0.92rem;
}

.price-list li {
    position: relative;
    padding-left: 20px;
}

.price-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.price-card .button {
    margin-top: auto;
}

.pricing-note {
    max-width: 760px;
    margin: 26px auto 0;
    text-align: center;
}

.legal-section {
    padding-top: 56px;
}

.legal-container {
    max-width: 820px;
}

.legal-copy {
    margin-top: 28px;
    color: var(--muted);
}

.legal-copy h2 {
    color: var(--ink);
    font-size: 1.15rem;
    margin-top: 28px;
    font-family: inherit;
    letter-spacing: -0.01em;
}

.legal-copy p {
    margin-bottom: 12px;
}

.legal-copy a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 920px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Auth surface refinement */

.auth-section {
    padding: 56px 0 88px;
    background:
        radial-gradient(900px 420px at 50% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 65%);
}

.auth-card {
    position: relative;
    width: min(480px, 100%);
    padding: 36px 36px 30px;
    overflow: hidden;
    border-radius: 20px;
    border-color: color-mix(in srgb, var(--line) 82%, var(--gold) 18%);
    box-shadow:
        0 26px 70px rgba(10, 20, 30, 0.12),
        0 2px 0 color-mix(in srgb, var(--gold) 26%, transparent) inset;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.72;
}

.auth-card h1 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.95rem;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.auth-card > .muted {
    margin-bottom: 24px;
    max-width: 36ch;
}

.auth-card .stack {
    gap: 15px;
}

.field {
    gap: 7px;
    font-size: 0.82rem;
    font-weight: 650;
    letter-spacing: 0.005em;
    color: var(--ink);
}

.field input,
.field select {
    height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    border-color: color-mix(in srgb, var(--line) 72%, var(--ink) 8%);
    background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
    box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent) inset;
    font-size: 0.96rem;
    font-weight: 500;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
    color: color-mix(in srgb, var(--muted) 76%, transparent);
}

.field input:hover,
.field select:hover {
    border-color: color-mix(in srgb, var(--line) 42%, var(--ink) 22%);
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.auth-card .button:not(.button-google) {
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.98rem;
}

.button-google {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #d7dbe0;
    background: #ffffff;
    color: #1f2328;
    box-shadow: 0 1px 2px rgba(20, 30, 40, 0.08);
    font-size: 0.96rem;
    font-weight: 600;
}

.button-google:hover {
    background: #f7f8f9;
    border-color: #c9ced4;
    transform: none;
    opacity: 1;
}

.google-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: none;
}

.auth-divider {
    gap: 14px;
    margin: 20px 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--muted) 82%, transparent);
}

.auth-divider::before,
.auth-divider::after {
    background: color-mix(in srgb, var(--line) 78%, transparent);
}

.auth-alt {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
}

@media (max-width: 560px) {
    .auth-section {
        padding: 24px 0 48px;
    }

    .auth-card {
        padding: 26px 20px 22px;
        border-radius: 16px;
    }

    .auth-card h1 {
        font-size: 1.65rem;
    }
}

/* Public market preview */

.market-section {
    border-top: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
    background: color-mix(in srgb, var(--surface) 54%, var(--bg));
}

.market-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.market-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.market-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.market-panel-head h3 {
    margin: 0;
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.market-list {
    display: grid;
}

.market-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

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

.market-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.market-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-row .muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-row .pill {
    flex: none;
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .market-columns {
        grid-template-columns: 1fr;
    }
}

.market-page {
    padding-top: 44px;
}

.market-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.market-login-note {
    margin: -8px 0 18px;
}

.market-columns-full {
    margin-top: 22px;
    align-items: start;
}

.market-row-lg {
    padding: 16px 0;
}

.market-row-lg strong {
    font-size: 0.98rem;
}

.market-panel h2 {
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    margin: 0;
}

@media (max-width: 640px) {
    .market-actions {
        width: 100%;
    }

    .market-actions .button {
        flex: 1;
    }
}

/* AI matches */

.matches-page {
    padding-top: 44px;
}

.match-actions {
    display: flex;
    gap: 8px;
}

.notice {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.match-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.match-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.match-score {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    color: var(--accent);
    font-family: "Fraunces", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 800;
}

.match-body {
    min-width: 0;
    flex: 1;
}

.match-labels {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.match-pair {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.match-title {
    font-weight: 750;
    font-size: 1rem;
}

.match-title:hover {
    color: var(--accent);
}

.match-vs {
    color: var(--gold);
    font-weight: 800;
}

.match-seller {
    margin: 3px 0 7px;
}

.match-reason {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 75ch;
}

@media (max-width: 640px) {
    .match-card {
        padding: 14px;
        gap: 12px;
    }

    .match-score {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

.analysis-card {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.analysis-card h2 {
    margin-bottom: 4px;
}

.analysis-copy {
    white-space: pre-line;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.notifications-card {
    margin: 16px 0;
}

.dashboard-catalog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
}

.notification-list li {
    border-bottom: 1px solid var(--line);
}

.notification-list li:last-child {
    border-bottom: 0;
}

.notification-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.notification-unread strong::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
}

/* Product detail and SEO */

.product-detail-page {
    padding-top: 36px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.product-detail-media {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    aspect-ratio: 16 / 11;
}

.product-detail-media img,
.product-detail-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-copy h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.product-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0 14px;
}

@media (max-width: 820px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.product-credit {
    margin: 8px 0 0;
    font-size: 0.72rem;
}

.product-credit a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.order-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0;
}

.order-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.order-row:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.order-row-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.order-row-title {
    font-weight: 700;
}

.order-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.order-summary {
    display: grid;
    gap: 4px;
    margin-top: 18px;
}

.order-summary strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.8rem;
}

.order-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 18px;
    border-left: 2px solid var(--line);
}

.order-timeline li {
    position: relative;
    padding: 0 0 18px 18px;
}

.order-timeline li::before {
    content: "";
    position: absolute;
    left: -25px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--surface);
}

.order-timeline span {
    display: block;
    margin-top: 2px;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

@media (max-width: 640px) {
    .order-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-row-meta {
        justify-content: flex-start;
    }
}

.order-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.order-cta h2 {
    margin-bottom: 4px;
}

@media (max-width: 640px) {
    .order-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

.conversation-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.conversation-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.conversation-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.conversation-last {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60ch;
}

.conversation-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: none;
}

.message-thread {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.message-bubble {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.message-mine {
    justify-self: end;
    background: color-mix(in srgb, var(--accent) 9%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
}

.message-theirs {
    justify-self: start;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
    font-size: 0.78rem;
}

.message-bubble p {
    margin: 0;
    white-space: pre-wrap;
}

.message-form {
    display: grid;
    gap: 10px;
}

.message-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--ink);
    font: inherit;
    resize: vertical;
}

.message-form .button {
    justify-self: end;
}

.offer-items-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.offer-items-head h2 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.35rem;
    margin: 0;
}

.offer-items-list {
    display: grid;
    gap: 10px;
}

.offer-item-row {
    display: grid;
    grid-template-columns: 1.4fr 1.5fr 0.65fr 0.7fr 0.8fr auto;
    gap: 8px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.offer-item-row .field {
    gap: 4px;
}

.offer-item-row .field input,
.offer-item-row .field select {
    height: 40px;
    padding: 0 9px;
    font-size: 0.85rem;
}

.offer-item-remove {
    width: 34px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .offer-item-row {
        grid-template-columns: 1fr 1fr;
    }

    .offer-item-remove {
        justify-self: end;
    }
}

.main-nav a {
    position: relative;
    padding: 6px 2px;
}

.main-nav a.active {
    color: var(--ink);
    font-weight: 700;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
}

.bulk-invite-form {
    display: grid;
    gap: 10px;
}

.invite-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.invite-pick input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex: none;
}

.quote-summary {
    margin: -2px 0 14px;
}

.quote-shortcut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.quote-shortcut h2 {
    margin-bottom: 0.2rem;
}

.revision-card {
    margin-top: 12px;
}

.revision-card summary {
    cursor: pointer;
    font-weight: 600;
}

.revision-card .form-card {
    margin-top: 14px;
}

.bulk-invite-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.compare-title {
    font-size: 1rem;
    margin: 18px 0 8px;
}

.quote-compare th span {
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

.quote-low {
    color: var(--accent);
    font-weight: 700;
}

.quote-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.api-token-card {
    border-color: var(--accent);
}

.api-token {
    display: block;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    font-size: 0.82rem;
    word-break: break-all;
}

.api-token-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.api-token-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.api-token-list li:last-child {
    border-bottom: 0;
}

.api-token-list li > div {
    display: grid;
    gap: 2px;
}

.api-doc pre {
    overflow-x: auto;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--surface-2);
}

.api-doc ul {
    padding-left: 18px;
}

.invite-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 0.5fr) auto;
    gap: 8px;
    align-items: center;
}

.invite-filter-form select {
    min-width: 0;
}

@media (max-width: 700px) {
    .invite-filter-form {
        grid-template-columns: 1fr;
    }
}

.price-period {
    font-size: 0.55em;
    font-weight: 600;
    color: var(--muted);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--ink);
}

.check-row input {
    width: 18px;
    height: 18px;
}

.catalog-review {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.catalog-review h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.catalog-candidate-list {
    list-style: none;
    margin: 12px 0;
    padding: 0;
    max-height: 340px;
    overflow-y: auto;
    display: grid;
    gap: 6px;
}

.catalog-candidate-list li label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.catalog-candidate-list li label > span {
    display: grid;
    gap: 2px;
}

.catalog-candidate-list input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex: none;
}
