/* One Tap Hats — static stylesheet (no build step).
   Dark, wide, premium, streamlined. Monochrome. */
:root {
    --bg: #0a0a0b;
    --surface: #111113;
    --surface-2: #17171b;
    --border: rgba(255,255,255,.10);
    --border-strong: rgba(255,255,255,.22);
    --text: #e9e9ec;
    --muted: #9a9aa3;
    --ink: #ffffff;
    --brand: #ffffff;
    --brand-2: #ffffff;
    --accent: #ffc83d;        /* gold highlight */
    --accent-soft: rgba(255,200,61,.14);
    --danger: #ff7a7a;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --maxw: 1440px;
    --maxw-wide: 1680px;
    --shadow: 0 30px 90px rgba(0,0,0,.55);
    --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Syne", "Manrope", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3.5rem); }
.container--wide { max-width: var(--maxw-wide); }
.container--narrow { max-width: 820px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,10,11,.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { max-width: 100%; padding: 0 clamp(1.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; }
.brand { justify-self: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .14em; color: var(--ink); text-transform: uppercase; white-space: nowrap; }
.brand--stacked { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.05; }
.brand-tag { font-family: var(--font-body); font-weight: 600; font-size: .5rem; letter-spacing: .26em; color: var(--muted); }
@media (max-width: 640px){ .brand-tag { font-size: .46rem; letter-spacing: .2em; } }
.nav { display: flex; gap: 2.2rem; align-items: center; }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; }
.nav a { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; transition: color .2s ease; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px){
    .site-header .container { height: 64px; padding: 0 1.25rem; }
    .brand { font-size: .92rem; letter-spacing: .18em; }
    .nav { gap: 1.1rem; }
    .nav a { font-size: .7rem; letter-spacing: .08em; }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.25rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .78rem;
    letter-spacing: .08em; text-transform: uppercase; font-family: var(--font-body);
    border: 1px solid transparent; cursor: pointer; transition: .25s ease; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.btn-primary:hover { background: #e2e2e6; border-color: #e2e2e6; color: #0a0a0b; transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.btn-lg { padding: .72rem 1.6rem; font-size: .8rem; }
.btn-sm { padding: .42rem .85rem; font-size: .72rem; }

/* Sections */
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-divider { border-top: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; display: block; }
.hl { color: var(--accent); }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); letter-spacing: -.015em; line-height: 1.1; margin: 0 0 1rem; font-weight: 700; }
h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 3rem); margin: 0 0 .6rem; }
.section-sub { color: var(--muted); margin: 0 0 2.5rem; font-size: 1.05rem; max-width: 60ch; }

/* ---- HERO (compact, centered, background image) ---- */
.hero { position: relative; min-height: 54vh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: #0a0a0b url('/images/hero.png') center top / cover no-repeat; filter: brightness(.82) contrast(1.02); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.5) 0%, rgba(10,10,11,.62) 45%, rgba(10,10,11,.92) 100%); }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(3.5rem, 8vw, 6rem); text-align: center; }
.hero__copy { max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.03em; margin: .8rem 0 1.1rem; }
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.18rem); color: #cfcfd6; max-width: 52ch; margin: 0 auto 1.8rem; line-height: 1.55; }
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; }

/* ---- Statement / lede ---- */
.statement { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); font-weight: 700; max-width: 22ch; }
.statement em { font-style: normal; color: var(--muted); }
.lede-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px){ .lede-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }

/* ---- Showcase (the single product) ---- */
.showcase { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px){ .showcase { grid-template-columns: 1fr 1fr; } }
.showcase__media { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1; background: var(--surface-2); }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.92); }
.showcase__price { font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.showcase__price span { color: var(--muted); font-size: .95rem; font-weight: 500; }

/* Feature list */
.features { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.features li { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 0; border-top: 1px solid var(--border); color: var(--text); }
.features li:last-child { border-bottom: 1px solid var(--border); }
.features .tick { flex: 0 0 auto; width: 20px; height: 20px; margin-top: .15rem; }
.features .tick svg { width: 20px; height: 20px; stroke: var(--ink); }

/* ---- Steps ---- */
.steps { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 800px){ .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 1px solid var(--border-strong); padding-top: 1.3rem; }
.step .num { font-size: .8rem; color: var(--muted); letter-spacing: .15em; font-weight: 700; }
.step h3 { font-size: 1.25rem; margin: .6rem 0 .5rem; }
.step p { color: var(--muted); margin: 0; }

/* ---- Use cases (point it anywhere) ---- */
.usecases { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px){ .usecases { grid-template-columns: repeat(3, 1fr); } }
.usecase { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.5rem; transition: .25s ease; background: var(--surface); }
.usecase:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.usecase h4 { font-size: 1.05rem; margin: 0 0 .3rem; }
.usecase p { color: var(--muted); margin: 0; font-size: .9rem; }

/* ---- Full-bleed image band / CTA ---- */
.band { position: relative; overflow: hidden; }
.band__media { position: absolute; inset: 0; background: #0a0a0b url('/images/band.jpg') center / cover no-repeat; filter: grayscale(1) brightness(.55); }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,11,.6), rgba(10,10,11,.85)); }
.band__inner { position: relative; z-index: 1; text-align: center; padding-block: clamp(5rem, 10vw, 8rem); }
.band h2 { font-size: clamp(2rem, 4vw, 3.4rem); }

/* ---- Stat row ---- */
.statline { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); }
.statline .s .n { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.statline .s .l { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }

/* ---- Testimonials ---- */
.testimonials { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px){ .testimonials { grid-template-columns: repeat(3, 1fr); } }
.quote { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; background: var(--surface); }
.quote p { font-size: 1rem; color: var(--text); margin: 0 0 1.1rem; line-height: 1.55; }
.quote .who { color: var(--muted); font-size: .82rem; letter-spacing: .02em; }
.quote .who strong { color: var(--ink); font-weight: 600; }

/* ---- Star rating ---- */
.stars { display: inline-flex; gap: 3px; color: var(--accent); margin-bottom: .9rem; }
.stars svg { width: 16px; height: 16px; }

/* ---- Social buttons + follow strip ---- */
.socials { display: inline-flex; gap: .65rem; align-items: center; }
.social-btn {
    width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; color: var(--text);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }
.follow { text-align: center; }
.follow .handle { color: var(--muted); margin: 0 0 1.4rem; }

/* ---- Simple CTA ---- */
.cta-simple { text-align: center; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-simple .container { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---- What it does (clean icon cards) ---- */
.dogrid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 820px){ .dogrid { grid-template-columns: repeat(3, 1fr); } }
.dofeature {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: clamp(1.8rem, 3vw, 2.6rem); background: var(--surface);
    transition: border-color .25s ease, transform .25s ease;
}
.dofeature:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.dofeature .ico {
    width: 56px; height: 56px; border: 1px solid var(--border-strong); border-radius: 16px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.dofeature .ico svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.dofeature .step-n { font-size: .72rem; letter-spacing: .18em; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.dofeature h3 { font-size: 1.2rem; margin: .5rem 0 .5rem; }
.dofeature p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.55; }

/* ---- Gallery ---- */
.gallery { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px){ .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery .g { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.88); transition: filter .35s ease, transform .5s var(--gno-ease, ease); }
.gallery .g:hover img { filter: grayscale(0) brightness(1); transform: scale(1.05); }

/* ---- Order wizard (step process) ---- */
.order-wrap { max-width: 680px; margin: 0 auto; }
.order-head { text-align: center; margin-bottom: 2rem; }
.steps-bar { display: flex; gap: .5rem; margin: 0 0 .7rem; }
.steps-bar .sb { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-2); transition: background .3s ease; }
.steps-bar .sb.done, .steps-bar .sb.active { background: var(--accent); }
.step-counter { color: var(--muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.6rem; }
.wstep { display: none; }
.wstep.active { display: block; animation: wfade .3s ease; }
@keyframes wfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wstep h2 { font-size: 1.45rem; margin: 0 0 .3rem; }
.wstep .lead-sm { color: var(--muted); margin: 0 0 1.4rem; }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.review-line { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.review-line .k { color: var(--muted); }
.review-line .v { color: var(--ink); text-align: right; }

/* ---- Testimonial slider (swipeable) ---- */
.tslider { position: relative; max-width: 760px; margin: 0 auto; }
.tslider-track { position: relative; display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tslider-track::-webkit-scrollbar { display: none; }
.tslider .quote { flex: 0 0 100%; scroll-snap-align: center; text-align: center; padding: clamp(1.8rem, 4vw, 2.6rem); }
.tslider .quote p { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.6; }
.tslider .stars { justify-content: center; }
.tslider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg); color: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2;
    font-size: 1.4rem; line-height: 1; transition: border-color .2s, color .2s;
}
.tslider-arrow:hover { border-color: var(--accent); color: var(--accent); }
.tslider-arrow.prev { left: -12px; }
.tslider-arrow.next { right: -12px; }
.tslider-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.tslider-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: var(--border-strong); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.tslider-dots button.active { background: var(--accent); width: 24px; }
@media (max-width: 620px){ .tslider-arrow { display: none; } }

/* ---- Mobile nav (hamburger) ---- */
.nav-toggle { position: absolute; left: -9999px; opacity: 0; }
.burger { display: none; justify-self: start; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; margin: -6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); display: block; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
.nav-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 720px){
    .burger { display: flex; }
    .nav-left {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
        background: var(--bg); border-bottom: 1px solid var(--border); padding: 1.2rem 1.25rem; gap: 1.1rem;
        transform: translateY(-130%); opacity: 0; visibility: hidden;
        transition: transform .35s ease, opacity .3s ease, visibility .3s ease; z-index: -1;
    }
    .nav-toggle:checked ~ .nav-left { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-left a { font-size: .95rem; letter-spacing: .05em; }
}

/* ---- Responsive: footer + spacing ---- */
@media (max-width: 680px){
    .site-footer .container { flex-direction: column; text-align: center; gap: 1.2rem; }
    .hero { min-height: 60vh; }
    .wizard-nav { flex-wrap: wrap; }
}

/* Grid + cards */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ .grid-2 { grid-template-columns: 1fr; } }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.6rem; transition: .25s ease;
}
.card.hover:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }

/* Product card (shop) */
.product-card .thumb {
    aspect-ratio: 1/1; border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden;
    background: var(--surface-2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.92); }
.product-card .thumb .mono { font-weight: 800; font-size: 2rem; letter-spacing: .08em; color: rgba(255,255,255,.18); text-transform: uppercase; }
.product-card h3 { margin: .2rem 0 .3rem; font-size: 1.15rem; }
.product-card .price { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.product-card .desc { color: var(--muted); font-size: .9rem; min-height: 2.6em; }

/* Forms */
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .9rem; }
.input, .textarea, select.input {
    width: 100%; padding: .8rem .95rem; background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: 12px; font-size: 1rem; font-family: inherit;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.input::placeholder { color: var(--muted); }
.hint { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.error { color: var(--danger); font-size: .85rem; margin-top: .3rem; }

/* Panels / auth */
.panel { max-width: 460px; margin: 5rem auto; }
.panel .card { padding: 2.2rem; }
.panel h1 { margin-top: 0; font-size: 1.6rem; }

/* Alerts */
.alert { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; border: 1px solid var(--border-strong); font-size: .92rem; background: var(--surface-2); color: var(--text); }
.alert-success { background: rgba(255,255,255,.05); border-color: var(--border-strong); color: var(--ink); }
.alert-error { background: rgba(255,122,122,.08); border-color: rgba(255,122,122,.4); color: var(--danger); }
.alert-info { background: rgba(255,255,255,.05); border-color: var(--border-strong); color: var(--text); }

/* Tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .85rem .7rem; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.table code { background: var(--surface-2); padding: .15rem .4rem; border-radius: 6px; }

/* Badges */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 700; border: 1px solid var(--border-strong); text-transform: uppercase; letter-spacing: .04em; }
.badge-green { background: var(--ink); color: #0a0a0b; border-color: var(--ink); }
.badge-orange { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.badge-muted { background: var(--surface-2); color: var(--muted); border-color: var(--border); }

/* Stats (portal) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* Portal layout */
.portal { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.portal-side { background: var(--surface); border-right: 1px solid var(--border); padding: 1.4rem 1rem; }
.portal-side .brand { margin-bottom: 1.6rem; padding: 0 .6rem; }
.portal-nav a { display: block; padding: .65rem .8rem; border-radius: 10px; color: var(--muted); font-weight: 600; margin-bottom: .25rem; }
.portal-nav a:hover, .portal-nav a.active { background: var(--surface-2); color: var(--ink); }
.portal-main { padding: 2rem; }
.portal-topbar { display:flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
@media (max-width: 800px){ .portal { grid-template-columns: 1fr; } .portal-side { display:none; } }

/* Paywall overlay */
.locked { position: relative; }
.locked .veil {
    position: absolute; inset: 0; background: rgba(10,10,11,.72); backdrop-filter: blur(3px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem;
    border-radius: var(--radius); text-align: center; padding: 1.5rem;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; color: var(--muted); margin-top: 0; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

.muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mb-2{margin-bottom:1rem}
.flex{display:flex}.between{justify-content:space-between}.gap{gap:1rem}.items-center{align-items:center}.wrap{flex-wrap:wrap}

/* ---- Portal polish: compact, colorful, icon-driven ---- */
:root{
    --c-blue:#5b9dff;   --c-blue-soft:rgba(91,157,255,.14);
    --c-green:#4ade80;  --c-green-soft:rgba(74,222,128,.14);
    --c-purple:#a78bfa; --c-purple-soft:rgba(167,139,250,.14);
    --c-amber:#ffc83d;  --c-amber-soft:rgba(255,200,61,.14);
    --c-pink:#f472b6;   --c-pink-soft:rgba(244,114,182,.14);
    --c-cyan:#38bdf8;   --c-cyan-soft:rgba(56,189,248,.14);
}

/* Tighter shell */
.portal-main { padding: 1.4rem 1.6rem; }
.portal-topbar { margin-bottom: 1.1rem; }
.portal-topbar h1 { font-size: 1.45rem; }
.portal-side .brand { margin-bottom: 1.2rem; }

/* Nav with icons */
.portal-nav a { display:flex; align-items:center; gap:.6rem; padding:.5rem .7rem; font-size:.88rem; margin-bottom:.15rem; }
.portal-nav a svg { width:18px; height:18px; flex:0 0 auto; opacity:.7; transition:opacity .15s ease; }
.portal-nav a:hover svg { opacity:1; }
.portal-nav a.active svg { opacity:1; color:var(--accent); }

/* Compact, colorful stat cards */
.stat-grid { gap:.7rem; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); }
.stat { display:flex; align-items:center; gap:.7rem; padding:.85rem .95rem; }
.stat .ico { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; flex:0 0 auto; }
.stat .ico svg { width:18px; height:18px; }
.stat .label { font-size:.68rem; text-transform:uppercase; letter-spacing:.07em; margin-bottom:.1rem; }
.stat .value { font-size:1.4rem; line-height:1.05; }

/* Colour tints (icon chips, badges, accents) */
.tint-blue{background:var(--c-blue-soft);color:var(--c-blue)}
.tint-green{background:var(--c-green-soft);color:var(--c-green)}
.tint-purple{background:var(--c-purple-soft);color:var(--c-purple)}
.tint-amber{background:var(--c-amber-soft);color:var(--c-amber)}
.tint-pink{background:var(--c-pink-soft);color:var(--c-pink)}
.tint-cyan{background:var(--c-cyan-soft);color:var(--c-cyan)}

/* Card headings a touch smaller in the portal */
.portal-main .card h3 { font-size:1rem; }
.card-head { display:flex; align-items:center; gap:.55rem; }
.card-head svg { width:18px; height:18px; flex:0 0 auto; }

/* ---- Page builder (front-end rendered blocks) ---- */
/* Text/content blocks sit in a readable centered column; section blocks
   (hero, showcase, features, cta) render full-bleed with their own container. */
.pb-contain { max-width: 860px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2rem); }
.page-built { padding-top: 2.5rem; padding-bottom: 4rem; }
.page-built__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; margin: 0 0 1.5rem; }
.pb-heading { font-family: var(--font-display); letter-spacing: -.01em; margin: 1.6rem 0 .8rem; }
h1.pb-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2.pb-heading { font-size: clamp(1.4rem, 3vw, 2rem); }
h3.pb-heading { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.pb-text { line-height: 1.8; margin: 0 0 1.2rem; color: var(--text); }
.pb-text a { color: var(--accent); text-decoration: underline; }
.pb-image { margin: 1.5rem 0; }
.pb-image img { width: 100%; border-radius: var(--radius); }
.pb-image--normal { max-width: 560px; }
.pb-image--wide { max-width: 720px; }
.pb-image--full { max-width: none; }
.pb-imagetext { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin: 2rem 0; }
.pb-imagetext--right { direction: rtl; }
.pb-imagetext--right > * { direction: ltr; }
.pb-imagetext img { width: 100%; border-radius: var(--radius); }
.pb-imagetext__body h3 { font-family: var(--font-display); margin: 0 0 .6rem; }
.pb-button { margin: 1.5rem 0; }
.pb-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 1.5rem 0; line-height: 1.8; }
.pb-spacer { width: 100%; }
@media (max-width: 720px) {
    .pb-imagetext, .pb-columns { grid-template-columns: 1fr; }
}

/* Impersonation banner (admin viewing a customer account) */
.impersonate-bar {
    display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap;
    background:linear-gradient(90deg, var(--c-purple-soft), var(--accent-soft));
    border:1px solid var(--c-purple); color:var(--text);
    padding:.6rem .9rem; border-radius:12px; margin-bottom:1rem; font-size:.88rem;
}
.impersonate-bar .btn { background:var(--c-purple); color:#0a0a0b; border:none; font-weight:700; }

/* ---- Scroll animations (GSAP-driven; visible if JS off / reduced motion) ---- */
.gsap-ready .reveal,
.gsap-ready .reveal-item,
.gsap-ready .hero__copy > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-item, .hero__copy > * { opacity: 1 !important; transform: none !important; }
}
