/* ============================================================
   PromptMint — Design System
   Palette: warm paper + deep pine green + mint accent + amber premium
   Type:    Space Grotesk (display) / Inter (body)
   ============================================================ */

:root {
    /* Neutrals */
    --paper:      #F6F5EF;   /* warm off-white page bg */
    --paper-2:    #FBFAF6;   /* raised surface */
    --card:       #FFFFFF;
    --ink:        #10201A;   /* near-black green ink */
    --ink-soft:   #33453D;
    --muted:      #6A7A72;
    --line:       rgba(16, 32, 26, 0.09);
    --line-2:     rgba(16, 32, 26, 0.14);

    /* Brand */
    --pine:       #0C3B2E;   /* deep dark panels */
    --pine-2:     #114A39;
    --mint:       #12B886;   /* primary accent */
    --mint-2:     #17D39B;   /* brighter accent */
    --mint-soft:  #E4F7EF;   /* tint bg */
    --mint-ink:   #0A6b4f;   /* text on light */
    --amber:      #E5A93B;   /* premium */
    --amber-soft: #FBEFD6;

    /* Effects */
    --radius:     16px;
    --radius-lg:  22px;
    --radius-sm:  10px;
    --shadow-sm:  0 1px 2px rgba(16,32,26,.06), 0 1px 3px rgba(16,32,26,.05);
    --shadow:     0 6px 22px -8px rgba(16,32,26,.18);
    --shadow-lg:  0 24px 60px -20px rgba(16,32,26,.28);
    --shadow-mint:0 18px 40px -16px rgba(18,184,134,.45);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --container: 1160px;
    --header-h: 78px;   /* floating nav: 14px top gap + 60px island + breathing room */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.ico { stroke-width: 2px; vertical-align: middle; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.site-main { flex: 1 0 auto; }

/* ---------- Header — full-width bar with its own outline; the centre nav is a raised island on top ---------- */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background: transparent;
    transition: box-shadow .28s ease;
}
/* The header bar itself: full width, flush to top/left/right, glass surface + hairline outline. */
.nav-island {
    position: relative;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 14px;
    height: 72px; padding: 0 26px;
    background: rgba(251,250,246,.85);
    backdrop-filter: saturate(1.7) blur(20px);
    -webkit-backdrop-filter: saturate(1.7) blur(20px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .28s ease, background .28s ease;
}
.site-header.scrolled .nav-island {
    background: rgba(251,250,246,.94);
    box-shadow: 0 10px 26px -18px rgba(16,32,26,.4);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; }
/* Brand gets the same soft bubble treatment as the nav links */
.nav-island .brand {
    justify-self: start; padding: 6px 12px 6px 8px; border-radius: 999px;
    transition: background .18s ease, transform .15s ease;
}
.nav-island .brand:hover { background: rgba(16,32,26,.055); transform: translateY(-1px); }
.nav-island .brand:active { transform: translateY(0); }
.brand-mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
    background: linear-gradient(140deg, var(--mint-2), var(--mint)); color: #fff;
    box-shadow: var(--shadow-mint);
}
/* logo.png — transparent icon mark, works on light or dark surfaces */
.brand-logo { flex-shrink: 0; object-fit: contain; }
.admin-login-logo { margin: 0 auto 18px; }
.brand-name { color: var(--ink); }
.auth-aside .brand-name { color: #fff; }

/* ---------- Site loader (logo2 wordmark preloader) ---------- */
#site-loader {
    position: fixed; inset: 0; z-index: 9999;
    display: grid; place-items: center;
    background: var(--paper);            /* light page bg */
    isolation: isolate;
    animation: loaderAutoHide .5s ease 3s forwards; /* fail-safe if JS never fires */
}
#site-loader::before {                   /* mint glow blooms in — no flashing */
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(120% 120% at 50% 42%, var(--mint-soft) 0%, var(--paper) 60%);
    opacity: 0;
    animation: loaderBlue 1.6s ease .1s forwards;
}
#site-loader.is-done {
    animation: none; opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .45s ease, visibility .45s ease;
}
.site-loader-inner { display: grid; justify-items: center; gap: 22px; padding: 24px; }
.loader-wordmark {
    display: block;
    width: min(300px, 64vw);
    aspect-ratio: 1536 / 369;            /* logo2.png native ratio */
    background-color: var(--mint-ink);   /* dark green wordmark */
    -webkit-mask: var(--wm) center / contain no-repeat;
            mask: var(--wm) center / contain no-repeat;
}
.loader-bar {
    position: relative; width: 128px; height: 4px; border-radius: 999px;
    background: var(--mint-soft); overflow: hidden;
}
.loader-bar::after {
    content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%;
    border-radius: 999px; background: linear-gradient(90deg, var(--mint-2), var(--mint));
    animation: loaderSlide 1.15s ease-in-out infinite;
}
@keyframes loaderBlue { to { opacity: 1; } }
@keyframes loaderSlide { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes loaderAutoHide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) {
    .loader-bar::after { animation: none; }
    #site-loader::before { animation: none; opacity: 1; }
    #site-loader { animation-delay: 1s; }
}

/* The centre nav is the floating "dynamic island" — a glass pill on its own. */
.main-nav {
    display: flex; align-items: center; gap: 2px;
    padding: 5px; border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 4px 11px -7px rgba(16,32,26,.2),
        0 1px 3px -1px rgba(16,32,26,.1);
    transition: box-shadow .28s ease, transform .28s ease;
}
.site-header.scrolled .main-nav {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 6px 15px -8px rgba(16,32,26,.26),
        0 2px 5px -2px rgba(16,32,26,.14);
}
.main-nav .nav-link {
    padding: 8px 16px; border-radius: 999px; font-size: .92rem; font-weight: 500;
    color: var(--ink-soft); transition: background .18s, color .18s;
}
.main-nav .nav-link:hover { background: rgba(16,32,26,.06); color: var(--ink); }
.main-nav .nav-link.is-active { color: var(--mint-ink); background: var(--mint-soft); }

/* Studio — the flagship destination, dressed accordingly */
.nav-studio {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    margin-left: 4px; padding: 8px 15px 8px 13px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: .92rem; letter-spacing: .005em;
    color: #EAF6F0;
    background: linear-gradient(135deg, var(--pine-2), var(--pine) 65%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 8px 18px -10px rgba(12,59,46,.6);
    overflow: hidden; isolation: isolate;
    transition: transform .15s ease, box-shadow .2s, background .2s;
}
.nav-studio .ico { color: var(--mint-2); }
.nav-studio::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(115deg, transparent 32%, rgba(23,211,155,.28) 50%, transparent 68%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}
.nav-studio:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 12px 26px -10px rgba(12,59,46,.7); }
.nav-studio:hover::after { transform: translateX(120%); }
.nav-studio.is-active { background: linear-gradient(135deg, var(--mint-2), var(--mint)); color: #fff; box-shadow: var(--shadow-mint); }
.nav-studio.is-active .ico { color: #fff; }
.nav-studio-spark {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--mint-2);
    animation: studioPing 2.4s ease-out infinite;
}
.nav-studio.is-active .nav-studio-spark { background: #fff; animation: none; }
@keyframes studioPing {
    0%        { box-shadow: 0 0 0 0 rgba(23,211,155,.55); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(23,211,155,0); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-studio-spark { animation: none; }
    .nav-studio::after { display: none; }
}

.header-cta { justify-self: end; display: flex; align-items: center; gap: 8px; }
.pill-badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px;
    background: linear-gradient(180deg, #fff 0%, var(--mint-soft) 165%);
    border: 1px solid rgba(18,184,134,.24);
    font-family: var(--font-display); font-weight: 600; font-size: .84rem; letter-spacing: -.01em;
    color: var(--mint-ink); white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 3px 10px -4px rgba(18,184,134,.4);
}
.pill-badge .ico { color: var(--mint); }
.nav-toggle {
    display: none; background: transparent; border: 1px solid transparent;
    border-radius: 999px; color: var(--ink); padding: 8px;
    transition: background .18s, border-color .18s;
}
.nav-toggle:hover { background: rgba(16,32,26,.055); border-color: var(--line); }

/* ---------- Mobile slide-in drawer (all links + auth) ---------- */
.nav-scrim {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(10,24,19,.44);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
    opacity: 0; animation: scrimIn .22s ease forwards;
}
@keyframes scrimIn { to { opacity: 1; } }
.mobile-nav {
    position: fixed; top: 0; right: 0; z-index: 100;
    display: flex; flex-direction: column;
    width: min(340px, 86vw); height: 100dvh;
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -34px 0 64px -32px rgba(16,32,26,.55);
    transform: translateX(101%); visibility: hidden;
    overflow-y: auto; overscroll-behavior: contain;
    transition: transform .34s cubic-bezier(.22,.75,.28,1), visibility 0s linear .34s;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; transition: transform .34s cubic-bezier(.22,.75,.28,1); }
body.nav-open { overflow: hidden; }

.mnav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 16px; }
.mnav-head .brand { font-size: 1.12rem; }
.mnav-close {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line); color: var(--ink);
    transition: background .16s, border-color .16s, transform .12s;
}
.mnav-close:hover { background: rgba(16,32,26,.05); border-color: var(--line-2); }
.mnav-close:active { transform: scale(.94); }

.mnav-acct {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: 15px; background: var(--card); border: 1px solid var(--line);
}
.mnav-acct .ah-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.2; }
.mnav-acct .ah-mail { font-size: .8rem; color: var(--muted); word-break: break-all; }
.mnav-plan {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 10px; padding: 11px 14px; border-radius: 13px;
    background: linear-gradient(135deg, var(--pine), var(--pine-2)); color: #DCEFE7;
}
.mnav-plan .mp-name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .92rem; }
.mnav-plan .mp-name .ico { color: var(--mint-2); }
.mnav-plan .mp-left { font-family: var(--font-display); font-weight: 700; font-size: .84rem; color: var(--mint-2); white-space: nowrap; }

.mnav-links { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.mnav-link {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 14px; border-radius: 13px;
    font-size: 1rem; font-weight: 500; color: var(--ink-soft);
    transition: background .15s, color .15s;
}
.mnav-link .ico { color: var(--muted); flex: none; transition: color .15s; }
.mnav-link:hover { background: rgba(16,32,26,.05); color: var(--ink); }
.mnav-link:hover .ico { color: var(--mint-ink); }
.mnav-link.is-active { background: var(--mint-soft); color: var(--mint-ink); }
.mnav-link.is-active .ico { color: var(--mint-ink); }

.mnav-studio {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 12px; padding: 14px 16px; border-radius: 15px;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .005em;
    color: #EAF6F0; background: linear-gradient(135deg, var(--pine-2), var(--pine) 65%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 12px 26px -14px rgba(12,59,46,.7);
}
.mnav-studio .ico { color: var(--mint-2); }
.mnav-studio.is-active { background: linear-gradient(135deg, var(--mint-2), var(--mint)); color: #fff; }
.mnav-studio.is-active .ico { color: #fff; }

.mnav-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; }
.mnav-foot .btn { width: 100%; }
.mnav-signout { color: #b0452f; justify-content: center; }
.mnav-signout .ico { color: currentColor; }

/* ---------- Account dropdown (floating nav) ---------- */
.acct-menu { justify-self: end; }
.acct-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 10px 4px 4px; border-radius: 999px;
    background: rgba(255,255,255,.55); border: 1px solid var(--line);
    transition: background .18s, border-color .18s, box-shadow .2s, transform .15s;
}
.acct-trigger:hover { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.acct-menu[open] > .acct-trigger { background: #fff; border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.acct-avatar {
    display: grid; place-items: center; flex: none;
    width: 34px; height: 34px; border-radius: 50%;
    font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .02em;
    color: #fff; background: linear-gradient(140deg, var(--mint-2), var(--mint));
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
}
.acct-avatar.free { background: linear-gradient(140deg, #8FA69C, #66786F); }
.acct-avatar.lapsed { background: linear-gradient(140deg, var(--amber), #cf8f24); }
.acct-avatar.lg { width: 44px; height: 44px; font-size: 1.02rem; }
.acct-mini { display: flex; flex-direction: column; line-height: 1.05; text-align: right; }
.acct-mini .am-left { font-family: var(--font-display); font-weight: 700; font-size: .84rem; color: var(--ink); }
.acct-mini .am-sub { font-size: .68rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.acct-caret { color: var(--muted); transition: transform .2s ease; }
.acct-menu[open] .acct-caret { transform: rotate(180deg); }

/* Popover — same mechanics as the admin menu-details, ported for the public nav */
.menu-details { position: relative; }
.menu-details > summary { list-style: none; cursor: pointer; }
.menu-details > summary::-webkit-details-marker { display: none; }
.menu-pop {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; width: 288px;
    background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; padding: 8px;
    box-shadow: 0 28px 64px -20px rgba(16,32,26,.42), 0 6px 18px -10px rgba(16,32,26,.24);
    text-align: left; transform-origin: top right;
    animation: menuPop .17s cubic-bezier(.2,.7,.3,1.05);
}
@keyframes menuPop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.menu-details.drop-up .menu-pop { top: auto; bottom: calc(100% + 10px); transform-origin: bottom right; animation-name: menuPopUp; }
@keyframes menuPopUp { from { opacity: 0; transform: translateY(6px) scale(.97); } }

/* Account popover contents */
.acct-pop .acct-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.acct-pop .acct-head .ah-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.2; }
.acct-pop .acct-head .ah-mail { font-size: .8rem; color: var(--muted); word-break: break-all; }
.acct-plan {
    margin: 0 4px 8px; padding: 12px 14px; border-radius: 14px;
    background: linear-gradient(135deg, var(--pine), var(--pine-2));
    color: #DCEFE7;
}
.acct-plan .ap-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-plan .ap-name { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; color: #fff; font-size: .94rem; }
.acct-plan .ap-name .ico { color: var(--mint-2); }
.acct-plan .ap-left { font-family: var(--font-display); font-weight: 700; font-size: .86rem; color: var(--mint-2); }
.acct-plan .ap-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; margin-top: 10px; }
.acct-plan .ap-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mint-2), var(--mint)); }
.acct-plan .ap-meta { font-size: .74rem; color: #A9C9BD; margin-top: 8px; }
.menu-item {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 10px 12px; border-radius: 12px; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
    background: transparent; border: none; text-align: left;
    transition: background .15s, color .15s;
}
.menu-item .ico { color: var(--muted); flex: none; transition: color .15s; }
.menu-item:hover { background: rgba(16,32,26,.05); color: var(--ink); }
.menu-item:hover .ico { color: var(--mint-ink); }
.menu-item.danger:hover { background: rgba(194,91,75,.09); color: #b0452f; }
.menu-item.danger:hover .ico { color: #b0452f; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 8px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .2s, background .2s, border-color .2s, color .2s;
    white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 15px; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; }

.btn-primary { background: linear-gradient(135deg, var(--mint-2), var(--mint)); color: #fff; box-shadow: var(--shadow-mint); }
.btn-primary:hover { box-shadow: 0 22px 46px -14px rgba(18,184,134,.6); transform: translateY(-1px); }
.btn-dark { background: var(--pine); color: #EAF6F0; }
.btn-dark:hover { background: var(--pine-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(16,32,26,.045); border-color: var(--line-2); }
.btn-soft { background: var(--mint-soft); color: var(--mint-ink); }
.btn-soft:hover { background: #d6f2e6; }
.btn-white { background: #fff; color: var(--pine); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Header auth buttons (Sign in / Start free) ---------- */
.header-cta .btn-sm { padding: 9px 17px; font-weight: 650; letter-spacing: -0.01em; }

/* "Sign in" — a proper frosted secondary that pairs with the primary */
.header-cta .btn-ghost {
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.header-cta .btn-ghost:hover {
    color: var(--ink);
    background: #fff;
    border-color: var(--line-2);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* "Start free" — crisper shadow for the compact header, inner highlight + sheen */
.header-cta .btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 18px -8px rgba(18, 184, 134, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.header-cta .btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left .55s ease;
    pointer-events: none;
}
.header-cta .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(18, 184, 134, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.header-cta .btn-primary:hover::before { left: 130%; }

/* ---------- Badges / chips ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font-size: .76rem; font-weight: 600; letter-spacing: .01em;
    background: var(--mint-soft); color: var(--mint-ink);
}
.chip-amber { background: var(--amber-soft); color: #9a6a10; }
.chip-line { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .14em; color: var(--mint-ink);
}
.eyebrow::before { content:''; width: 22px; height: 2px; background: var(--mint); border-radius: 2px; }

/* ---------- Flash ---------- */
.flash-wrap { margin-top: 18px; display: grid; gap: 10px; }
.flash {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 12px;
    font-size: .92rem; font-weight: 500; border: 1px solid var(--line);
}
.flash .ico { flex-shrink: 0; }
.flash-success { background: var(--mint-soft); color: var(--mint-ink); border-color: rgba(18,184,134,.25); }
.flash-error { background: #FCEBEA; color: #A6301F; border-color: #f3cfca; }
.flash-info { background: #EAF1FB; color: #245090; border-color: #d3e2f6; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 62px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 .grad {
    position: relative; display: inline-block; isolation: isolate;
    background: linear-gradient(120deg, var(--mint), var(--pine) 55%, var(--mint-2));
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gradInk 8s ease-in-out infinite alternate;
}
.hero-lede { font-size: 1.04rem; color: var(--ink-soft); max-width: 38ch; margin-top: 14px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 22px; color: var(--muted); font-size: .88rem; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.avatars { display: flex; }
.avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -8px; background: linear-gradient(135deg,var(--mint-2),var(--pine)); display:grid; place-items:center; color:#fff; font-size:.7rem; font-weight:700; font-family:var(--font-display); transition: margin-left .25s ease; }
.avatars span:first-child { margin-left: 0; }
.avatars:hover span:not(:first-child) { margin-left: 2px; }

/* layered backdrop: pine wash + masked dot grid + drifting mint aurora */
.hero-bg {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(560px 420px at -6% 108%, rgba(12,59,46,.13), transparent 62%);
}
.hero-bg::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(16,32,26,.85) 1px, transparent 1.4px);
    background-size: 24px 24px;
    opacity: .10;
    -webkit-mask-image: radial-gradient(72% 95% at 76% 36%, #000 0%, transparent 68%);
            mask-image: radial-gradient(72% 95% at 76% 36%, #000 0%, transparent 68%);
}
.hero-bg::after {
    content: ''; position: absolute; top: -190px; right: -150px; width: 660px; height: 660px;
    background:
        radial-gradient(circle at 32% 32%, rgba(23,211,155,.30), transparent 56%),
        radial-gradient(circle at 68% 62%, rgba(229,169,59,.15), transparent 52%);
    filter: blur(10px);
    animation: heroDrift 16s ease-in-out infinite alternate;
}

/* Hero visual card stack */
.hero-visual { position: relative; }
/* deck card peeking out behind the mock */
.hero-visual::before {
    content: ''; position: absolute; inset: 14px -12px -16px 24px;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    border: 1px solid var(--line);
    transform: rotate(2.4deg);
}
/* slow-orbiting dashed ring peeking from the top-right corner */
.hero-visual::after {
    content: ''; position: absolute; top: -38px; right: -26px; width: 118px; height: 118px;
    border: 1.5px dashed rgba(18,184,134,.55); border-radius: 50%;
    animation: heroSpin 28s linear infinite;
}
.mock-card {
    position: relative; z-index: 1;
    border: 1px solid transparent; border-radius: var(--radius-lg);
    background:
        linear-gradient(var(--card), var(--card)) padding-box,
        linear-gradient(150deg, rgba(23,211,155,.55), rgba(16,32,26,.10) 38%, rgba(16,32,26,.10) 62%, rgba(229,169,59,.45)) border-box;
    box-shadow: var(--shadow-lg); padding: 22px;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.mock-card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 32px 70px -24px rgba(16,32,26,.35), 0 20px 44px -18px rgba(18,184,134,.35);
}
.mock-card .mc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mc-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mint-ink); }
.mc-dots { margin-left: auto; display: flex; gap: 5px; }
.mc-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display:block; }
.mc-dots i:nth-child(1) { background: var(--mint); }
.mc-dots i:nth-child(2) { background: var(--amber); }
.mock-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.mock-body { font-size: .9rem; color: var(--ink-soft); }
.mock-body .var { background: var(--mint-soft); color: var(--mint-ink); padding: 1px 7px; border-radius: 6px; font-weight: 600; font-size: .85em; }
.mock-foot { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* staggered entrance */
.hero-copy > * { animation: heroRise .65s cubic-bezier(.22,1,.36,1) backwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .14s; }
.hero-copy > :nth-child(3) { animation-delay: .23s; }
.hero-copy > :nth-child(4) { animation-delay: .32s; }
.hero-visual { animation: heroRise .75s cubic-bezier(.22,1,.36,1) .3s backwards; }

@keyframes gradInk   { to { background-position: 100% 0; } }
@keyframes heroDrift { to { transform: translate3d(-46px, 34px, 0) scale(1.08) rotate(8deg); } }
@keyframes heroSpin  { to { transform: rotate(360deg); } }
@keyframes heroRise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
    .hero h1 .grad, .hero-bg::after,
    .hero-visual, .hero-visual::after, .hero-copy > * { animation: none; }
}

/* ============ Infinite brand strip · seamless dual-row marquee ============ */
.strip {
    margin-top: 44px;
    padding: 26px 0 28px;
    border-block: 1px solid var(--line);
    background:
        radial-gradient(130% 150% at 50% 0%, var(--mint-soft) 0%, transparent 52%),
        var(--paper-2);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}
.strip-row {
    position: relative;
    overflow: hidden;
    /* breathing room so the chip hover-lift + shadow isn't clipped by
       overflow/mask; negative margin cancels it out visually */
    padding-block: 8px;
    margin-block: -8px;
    /* soft-fade both edges so chips melt away instead of hard-clipping */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip-row:hover { z-index: 2; }
.strip-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: strip-slide var(--dur, 42s) linear infinite;
}
.strip-reverse .strip-track { animation-direction: reverse; }
.strip-row:hover .strip-track { animation-play-state: paused; }
.strip-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;   /* keeps the gap identical across the group seam */
    flex: none;
}
@keyframes strip-slide { to { transform: translateX(-50%); } }

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: none;
    padding: 8px 15px 8px 8px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink-soft);
    white-space: nowrap;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.chip-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--mint-soft);
    color: var(--mint-ink);
    flex: none;
    transition: background .18s ease, color .18s ease;
}
.chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px; height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0;
}
.chip:hover { z-index: 3; }
.chip-cat:hover {
    transform: translateY(-2px);
    border-color: var(--mint);
    color: var(--ink);
    box-shadow: var(--shadow-mint);
}
.chip-cat:hover .chip-ico { background: var(--mint); color: #fff; }

.chip-tool { background: var(--paper); color: var(--ink-soft); padding: 8px 16px 8px 9px; }
.chip-tool .chip-ico { width: 24px; height: 24px; border-radius: 7px; background: transparent; color: var(--ink); }
.chip-tool:hover { transform: translateY(-2px); border-color: var(--pine); box-shadow: var(--shadow); }

.strip-note {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
    letter-spacing: .01em;
    margin-top: 2px;
}
.strip-note .ico { color: var(--mint); }

@media (prefers-reduced-motion: reduce) {
    .strip-track { animation: none; }
    .strip-row { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scrollbar-width: none; }
    .strip-row::-webkit-scrollbar { display: none; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 76px 0; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); margin-bottom: 16px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
    position: relative;
    padding: 26px 26px 30px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.step::before { /* mint sweep along the top edge on hover */
    content: '';
    position: absolute; top: -1px; left: 14px; right: 14px; height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--mint), var(--mint-2));
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(18,184,134,.35); }
.step:hover::before { transform: scaleX(1); }
.step:not(:last-child)::after { /* dashed connector bridging the grid gap */
    content: '';
    position: absolute; top: 49px; right: -23px; width: 24px; height: 2px;
    background: linear-gradient(90deg, var(--mint) 55%, transparent 0) 0 0 / 7px 2px repeat-x;
    opacity: .6;
}
.step-ico {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--pine); color: var(--mint-2);
    margin-bottom: 18px;
    box-shadow: 0 10px 20px -10px rgba(12,59,46,.5);
    transition: transform .22s;
}
.step:hover .step-ico { transform: rotate(-6deg) scale(1.04); }
.step-num {
    position: absolute; top: 22px; right: 24px;
    font-family: var(--font-display); font-weight: 700;
    font-size: 4.2rem; line-height: .8; letter-spacing: -.05em;
    color: var(--mint-soft);
    -webkit-text-stroke: 1.5px rgba(18,184,134,.35);
    pointer-events: none; user-select: none;
    transition: -webkit-text-stroke-color .25s;
}
.step:hover .step-num { -webkit-text-stroke-color: var(--mint); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-tile {
    display: flex; align-items: center; gap: 15px; padding: 20px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--line); transition: transform .18s, box-shadow .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cat-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--pine); color: var(--mint-2); flex-shrink: 0; }
.cat-tile h3 { font-size: 1.06rem; margin-bottom: 3px; }
.cat-tile p { font-size: .84rem; color: var(--muted); }
.cat-tile .cat-count { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--muted); }

/* ============================================================
   FORMS / AUTH
   ============================================================ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
/* Auth pages already fill the screen — drop the footer's top gap so it sits flush, no cream band */
body:has(.auth-wrap) .site-footer { margin-top: 0; }
.auth-aside { background: var(--pine); color: #DCEFE7; padding: 56px 52px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::after { content:''; position:absolute; top:-120px; right:-120px; width:360px; height:360px; background: radial-gradient(circle, rgba(23,211,155,.3), transparent 62%); }
.auth-aside h2 { color: #fff; font-size: 2rem; max-width: 16ch; position: relative; }
.auth-aside p { color: #A9C9BD; margin-top: 16px; max-width: 34ch; position: relative; }
.auth-quotes { position: relative; display: grid; gap: 14px; }
.auth-quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px; font-size: .92rem; }
.auth-quote .ico { color: var(--mint-2); margin-bottom: 6px; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.input, .textarea, .select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 11px;
    background: var(--card); font-family: inherit; font-size: .96rem; color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(18,184,134,.14); }
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.input-group { position: relative; }
.input-group .ico-left { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-group .input { padding-left: 42px; }
.field-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-alt { text-align: center; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.auth-alt a { color: var(--mint-ink); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
.divider::before, .divider::after { content:''; flex:1; height:1px; background: var(--line); }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; }
.field-label-row label { margin-bottom: 0; }
.field-link { font-size: .82rem; font-weight: 600; color: var(--mint-ink); }
.otp-boxes { display: flex; gap: 10px; }
.otp-box {
    width: 100%; max-width: 56px; height: 62px; text-align: center;
    font-size: 1.55rem; font-weight: 700; color: var(--ink); caret-color: var(--mint);
    border: 1px solid var(--line-2); border-radius: 12px; background: var(--card);
    transition: border-color .18s, box-shadow .18s, transform .12s;
}
.otp-box:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(18,184,134,.14); transform: translateY(-2px); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--mint-ink); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.otp-resend { margin: 0; }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--muted); font-size: 1.05rem; margin-top: 12px; max-width: 60ch; }

/* Search box */
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box .ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; padding: 13px 16px 13px 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); font-size: .95rem; }
.search-box input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 4px rgba(18,184,134,.14); }

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

/* Sidebar */
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.meta-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.meta-row:last-child { border-bottom: none; }
.meta-row .ico { color: var(--mint); }
.meta-row .m-label { color: var(--muted); }
.meta-row .m-val { margin-left: auto; font-weight: 600; }

/* ============================================================
   MINTED OUTPUT (build result)
   ============================================================ */
.canvas-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--mint-soft); color: var(--mint-ink); font-size: .82rem; font-weight: 600; }
.canvas-output { background: var(--pine); color: #E7F4EE; border-radius: 14px; padding: 18px; font-size: .9rem; line-height: 1.7; white-space: pre-wrap; max-height: 320px; overflow: auto; font-family: 'Space Grotesk', var(--font-body); }
.canvas-output .var { background: rgba(23,211,155,.18); color: #7DF0C8; padding: 1px 7px; border-radius: 6px; font-weight: 600; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
    position: relative; display: flex; flex-direction: column; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { background: var(--pine); color: #DCEFE7; border-color: var(--pine); box-shadow: var(--shadow-lg); }
.price-card.featured h3, .price-card.featured .price-amt { color: #fff; }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,var(--amber),#d89321); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-tagline { font-size: .9rem; color: var(--muted); margin-bottom: 22px; min-height: 40px; }
.price-card.featured .price-tagline { color: #A9C9BD; }
.price-amt { font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: -.03em; line-height: 1; }
.price-amt .cur { font-size: 1.5rem; vertical-align: top; }
.price-per { color: var(--muted); font-size: .9rem; margin-top: 6px; margin-bottom: 24px; }
.price-card.featured .price-per { color: #A9C9BD; }
.price-features { list-style: none; padding: 0; display: grid; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.price-features .ico { color: var(--mint); flex-shrink: 0; margin-top: 2px; }
.price-card.featured .price-features .ico { color: var(--mint-2); }
.price-free { border-style: dashed; }

/* Pricing page — the three paid plans sit together on one raised shelf,
   featured plan pops out of it; the free tier is its own dashed strip below */
.plan-shelf { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius-lg) + 4px); box-shadow: var(--shadow); }
.plan-shelf .price-card { border: 0; border-radius: 0; background: transparent; padding: 36px 30px; }
.plan-shelf .price-card:hover { transform: none; box-shadow: none; }
.plan-shelf .price-card + .price-card { border-left: 1px solid var(--line); }
.plan-shelf .price-card.featured { background: var(--pine); border-radius: calc(var(--radius-lg) + 4px); margin: -22px -1px; padding: 46px 32px; box-shadow: var(--shadow-lg); z-index: 1; }
.plan-shelf .price-card.featured + .price-card { border-left: 0; }
.plan-shelf .price-card.featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Billing toggle — one segmented control flips all cards monthly<->yearly */
.bill-toggle { display: flex; width: max-content; margin: 40px auto 0; padding: 5px; gap: 4px; background: var(--mint-soft); border: 1px solid var(--line); border-radius: 999px; }
/* Clear the featured card's raised "Most popular" badge sitting just below */
.bill-toggle + .plan-shelf { margin-top: 64px; }
.bill-toggle + .pricing-grid { margin-top: 38px; }
.bt-opt { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 22px; border-radius: 999px; transition: background .2s, color .2s, box-shadow .2s; }
.bt-opt:hover { color: var(--ink); }
.bt-opt.is-active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.bt-save { font-size: .66rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--mint-2), var(--mint)); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }

/* Monthly/yearly variant blocks — only the toggled one is shown */
.bill-view { display: none; }
.plan-shelf.show-monthly .bill-monthly, .pricing-grid.show-monthly .bill-monthly,
.plan-shelf.show-yearly .bill-yearly,  .pricing-grid.show-yearly .bill-yearly { display: block; }
/* Spec rows are icon+text — reveal them as flex, not block */
.plan-shelf.show-monthly .plan-specs li.bill-monthly, .pricing-grid.show-monthly .plan-specs li.bill-monthly,
.plan-shelf.show-yearly .plan-specs li.bill-yearly,  .pricing-grid.show-yearly .plan-specs li.bill-yearly { display: flex; }
.price-amt .per-unit { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.price-card.featured .price-amt .per-unit { color: #A9C9BD; }
.price-cta { margin-top: auto; }

/* Plan specs — the two headline differentiators (mints + builder access) */
.plan-specs { list-style: none; padding: 14px 16px; margin: 0 0 22px; display: grid; gap: 9px; background: var(--mint-soft); border-radius: var(--radius-sm); }
.plan-specs li { align-items: center; gap: 9px; font-size: .92rem; font-weight: 650; color: var(--ink); }
.plan-specs > li:not(.bill-view) { display: flex; }
.plan-specs .ico { color: var(--mint-ink); flex-shrink: 0; }
.price-card.featured .plan-specs { background: rgba(255,255,255,.08); }
.price-card.featured .plan-specs li { color: #fff; }
.price-card.featured .plan-specs .ico { color: var(--mint-2); }

.free-strip { display: flex; align-items: center; gap: 28px; margin-top: 30px; padding: 24px 30px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-lg); }
.free-strip .fs-head { min-width: 190px; }
.free-strip .fs-head h3 { display: flex; align-items: center; gap: 9px; font-size: 1.18rem; }
.free-strip .fs-head h3 .ico { color: var(--mint); }
.free-strip .fs-head p { font-size: .88rem; color: var(--muted); margin-top: 3px; }
.free-strip .fs-price { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1; }
.free-strip .fs-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--muted); margin-top: 5px; letter-spacing: 0; }
.free-strip .fs-feats { display: flex; flex-wrap: wrap; gap: 9px 20px; flex: 1; justify-content: center; }
.free-strip .fs-feats span { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink-soft); }
.free-strip .fs-feats .ico { color: var(--mint); flex-shrink: 0; }
.free-strip .btn { flex-shrink: 0; }

/* CTA band */
.cta-band { background: var(--pine); color: #DCEFE7; border-radius: var(--radius-lg); padding: 54px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:''; position: absolute; bottom: -140px; right: -80px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(23,211,155,.25), transparent 64%); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); position: relative; }
.cta-band p { color: #A9C9BD; margin-top: 14px; font-size: 1.06rem; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ============================================================
   ACCOUNT
   ============================================================ */
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 28px; margin-top: 10px; align-items: start; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card .s-label { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-card .s-val { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin-top: 6px; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 22px; }
.progress { height: 8px; background: rgba(16,32,26,.08); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg,var(--mint-2),var(--mint)); border-radius: 999px; }
.plan-banner { background: var(--pine); color: #DCEFE7; border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 18px; }
.plan-banner .pb-ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--mint-2); }
.plan-banner h3 { color: #fff; }
.plan-banner p { color: #A9C9BD; font-size: .9rem; }
.plan-banner .pb-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(18,184,134,.22); color: var(--mint-2); font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.plan-banner .plan-period { font-family: var(--font-body); font-weight: 600; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: #A9C9BD; border: 1px solid rgba(255,255,255,.22); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

.data-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-weight: 600; }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.data-table tr:last-child td { border-bottom: none; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .ico { color: var(--line-2); margin: 0 auto 14px; }

/* status dots */
.s-dot { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .85rem; }
.s-dot::before { content:''; width: 8px; height: 8px; border-radius: 50%; }
.s-dot.ok::before { background: var(--mint); }
.s-dot.warn::before { background: var(--amber); }
.s-dot.off::before { background: #c25b4b; }

/* invoice download link (billing history) */
.inv-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; color: var(--mint-ink); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; transition: background .18s, border-color .18s, transform .12s; }
.inv-link:hover { background: var(--mint-soft); border-color: var(--mint); transform: translateY(-1px); }
.inv-link .ico { color: currentColor; }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; margin-top: 20px; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.summary-line.total { border-bottom: none; border-top: 2px solid var(--line-2); margin-top: 6px; padding-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.demo-note { background: var(--amber-soft); color: #8a5f0f; border-radius: 12px; padding: 13px 16px; font-size: .86rem; margin-top: 16px; display: flex; gap: 10px; }
.demo-note .ico { flex-shrink: 0; color: #b7842a; }
.autobill-note { background: var(--mint-soft); color: var(--mint-ink); border-radius: 12px; padding: 13px 16px; font-size: .84rem; margin-top: 16px; display: flex; gap: 10px; line-height: 1.45; }
.autobill-note .ico { flex-shrink: 0; margin-top: 1px; }

/* checkout mobile number (country code + local number) */
.phone-field { margin: 18px 0 4px; }
.phone-row { display: flex; gap: 8px; }
.phone-row .phone-cc { flex: 0 0 138px; min-width: 0; }
.phone-row .input { flex: 1; min-width: 0; }
.phone-err { color: #c25b4b; font-size: .82rem; font-weight: 600; margin: 7px 0 0; }

/* copy toast */
.toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: .9rem;
    display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ico { color: var(--mint-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { flex-shrink: 0; position: relative; margin-top: 72px; padding-top: 60px; color: #CFE3DA; border-top: 1px solid rgba(18,184,134,.28); background: radial-gradient(85% 130% at 88% -10%, rgba(18,184,134,.20), transparent 55%), radial-gradient(70% 120% at 6% 0%, rgba(18,184,134,.10), transparent 50%), var(--pine); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--mint) 30%, var(--amber) 70%, transparent); opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr)); gap: 40px 30px; padding-bottom: 44px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: rgba(207,227,218,.6); font-size: .92rem; margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.footer-support { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; font-size: .88rem; font-weight: 500; color: #EAFFF6; background: rgba(18,184,134,.14); border: 1px solid rgba(18,184,134,.32); border-radius: 999px; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.footer-support:hover { background: rgba(18,184,134,.24); border-color: rgba(18,184,134,.55); transform: translateY(-1px); }
.footer-support .ico { color: var(--mint); }
.footer-col h4 { font-family: var(--font-display); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .13em; color: #fff; margin-bottom: 12px; }
.footer-col a { position: relative; display: block; width: fit-content; max-width: 100%; color: rgba(207,227,218,.72); font-size: .92rem; padding: 5px 0; transition: color .16s ease, transform .16s ease; }
.footer-col a::before { content: ""; position: absolute; left: -13px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); opacity: 0; transform: translateY(-50%) scale(.3); transition: opacity .16s ease, transform .16s ease; }
.footer-col a:hover { color: #fff; transform: translateX(5px); }
.footer-col a:hover::before { opacity: 1; transform: translateY(-50%) scale(1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); color: rgba(207,227,218,.55); font-size: .84rem; flex-wrap: wrap; gap: 10px 18px; }
.footer-made { color: var(--mint); font-weight: 500; }

@media (max-width: 960px) {
    .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 20px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 12px; } .justify-between { justify-content: space-between; }
.grid { display: grid; }
.muted { color: var(--muted); }
.hide { display: none !important; }

/* ============================================================
   GOOGLE BUTTON
   ============================================================ */
.btn-google { background: #fff; color: var(--ink); border: 1px solid var(--line-2); gap: 10px; }
.btn-google:hover { background: #fff; border-color: var(--muted); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.g-logo { flex-shrink: 0; }

/* ============================================================
   SCENE BUILDER SHOWCASE (landing)
   ============================================================ */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.showcase-stack { display: grid; gap: 10px; }
.stack-demo-row {
    display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm);
    animation: floatIn .5s ease both; animation-delay: calc(var(--i) * 80ms);
}
.sdr-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--mint-soft); color: var(--mint-ink); display: grid; place-items: center; flex-shrink: 0; }
.sdr-layer { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 92px; }
.sdr-opt { font-family: var(--font-display); font-weight: 600; font-size: 1rem; flex: 1; }
.stack-demo-row .ico { color: var(--mint); }
.stack-demo-out {
    display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--pine); color: #EAF6F0;
    border-radius: 14px; padding: 15px; font-weight: 600; margin-top: 4px; box-shadow: var(--shadow);
    animation: floatIn .5s ease both; animation-delay: 480ms;
}
.stack-demo-out .ico { color: var(--mint-2); }
@keyframes floatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   OPTION CARDS (wizard selects)
   ============================================================ */
.opt-card {
    position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; cursor: pointer;
    border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--paper-2); transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt-card:hover { border-color: var(--mint); background: var(--card); }
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: all .15s; margin-top: 1px; }
.opt-card.is-checked { border-color: var(--mint); background: var(--mint-soft); box-shadow: 0 0 0 3px rgba(18,184,134,.12); }
.opt-card.is-checked .opt-check { background: var(--mint); border-color: var(--mint); color: #fff; }
.opt-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.opt-desc { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* Build result */
.build-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); margin-bottom: 26px; }
.br-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.br-head h2 { font-size: 1.5rem; }
.br-layers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ============================================================
   ACCENTS (per-builder colour themes)
   ============================================================ */
.acc-mint   { --acc:#12B886; --acc-soft:#E4F7EF; --acc-ink:#0A6B4F; }
.acc-amber  { --acc:#E0982A; --acc-soft:#FBEFD6; --acc-ink:#8A5F0F; }
.acc-rose   { --acc:#E0568B; --acc-soft:#FCE4EE; --acc-ink:#A02458; }
.acc-blue   { --acc:#3B82C4; --acc-soft:#E4EEF9; --acc-ink:#245090; }
.acc-violet { --acc:#7C5CE0; --acc-soft:#EEE8FC; --acc-ink:#4C33A0; }

/* ============================================================
   WIZARD
   ============================================================ */
.wizard-wrap { --acc:var(--mint); --acc-soft:var(--mint-soft); --acc-ink:var(--mint-ink); padding-bottom: 60px; }
.wizard-head { display: flex; align-items: center; gap: 15px; margin: 6px 0 20px; }
.wz-ico {
    width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
    background: linear-gradient(145deg, var(--acc-soft), color-mix(in srgb, var(--acc-soft) 60%, var(--card)));
    color: var(--acc-ink); flex-shrink: 0;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent);
}
.wizard-head h1 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
.wizard-head p.muted { margin-top: 2px; max-width: 52ch; }
.wizard-head .pill-badge {
    margin-left: auto; flex-shrink: 0; align-self: flex-start;
    background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc) 26%, transparent); color: var(--acc-ink);
}
.wizard-head .pill-badge .ico { color: var(--acc); }

.wizard-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.wz-bar {
    flex: 1; height: 10px; background: rgba(16,32,26,.07); border-radius: 999px; overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(16,32,26,.06);
}
.wz-bar span {
    display: block; height: 100%; min-width: 12px; border-radius: 999px;
    background: linear-gradient(90deg, var(--acc), var(--acc, var(--mint-2)));
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--acc) 78%, var(--mint-2)), var(--acc));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 30%, transparent), 0 2px 10px -2px color-mix(in srgb, var(--acc) 65%, transparent);
    transition: width .4s cubic-bezier(.4,0,.2,1);
}
.wz-count {
    font-size: .78rem; font-weight: 700; color: var(--acc-ink); white-space: nowrap;
    background: var(--acc-soft); padding: 5px 11px; border-radius: 999px; letter-spacing: -.01em;
}

.wizard-card {
    position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.wizard-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 55%, var(--mint-2)));
}
.wz-step { animation: floatIn .28s ease both; }
.wz-step.wz-shake { animation: shake .4s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }
.wz-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.wz-step-ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(145deg, var(--acc-soft), color-mix(in srgb, var(--acc-soft) 55%, var(--card)));
    color: var(--acc-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 20%, transparent);
}
.wz-step-head h2 { font-size: 1.4rem; }
.wz-step-head p { color: var(--muted); font-size: .92rem; margin-top: 3px; }
.wz-opt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-2); padding: 3px 8px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }

.wz-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 12px; }
.wizard-wrap .opt-card.is-checked { border-color: var(--acc); background: var(--acc-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 15%, transparent); }
.wizard-wrap .opt-card.is-checked .opt-check { background: var(--acc); border-color: var(--acc); }
.wizard-wrap .opt-card:hover { border-color: var(--acc); }
.wz-input { max-width: 100%; }
input.wz-input { padding: 15px 17px; font-size: 1.02rem; border-radius: 13px; }
input.wz-input::placeholder, .wz-input::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }

.wz-review { display: grid; gap: 8px; }
.wz-rev-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 15px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 11px; font-size: .92rem; }
.wz-rev-row span { color: var(--muted); }
.wz-rev-row b { color: var(--ink); text-align: right; }

.wizard-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.wizard-nav .btn-dark, .wizard-nav .btn-primary { margin-left: auto; }
.wizard-nav #wzBack { margin-left: 0; }

/* accent the generate button per builder */
.wizard-wrap .btn-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 80%, white), var(--acc)); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--acc) 60%, transparent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .nav-island { gap: 10px; }
    .main-nav .nav-link { padding: 8px 11px; font-size: .88rem; }
    .nav-studio { padding: 8px 12px 8px 11px; font-size: .88rem; }
    .header-cta .pill-badge span { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 460px; }
    .checkout-grid, .account-grid, .showcase-grid { grid-template-columns: 1fr; }
    .side-card, .summary-card { position: static; }
    .admin-cols { grid-template-columns: 1fr !important; }
    .feature-grid, .steps, .cat-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
    .step:not(:last-child)::after { display: none; }
    .plan-shelf { grid-template-columns: 1fr; }
    .plan-shelf .price-card + .price-card { border-left: 0; border-top: 1px solid var(--line); }
    .plan-shelf .price-card.featured { margin: 0 -14px; border-radius: var(--radius-lg); }
    .plan-shelf .price-card.featured + .price-card { border-top: 0; }
    .free-strip { flex-wrap: wrap; }
    .free-strip .fs-feats { justify-content: flex-start; flex-basis: 100%; order: 3; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
}
@media (max-width: 720px) {
    /* Mobile bar collapses to brand + hamburger; everything else lives in the drawer */
    .nav-island { grid-template-columns: 1fr auto; padding: 0 16px; height: 64px; }
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-cta > .btn,
    .header-cta > .acct-menu { display: none; }
    .feature-grid, .steps, .cat-grid, .pricing-grid, .form-row, .stat-row { grid-template-columns: 1fr; }
    /* Account metrics: compact label <-> value rows, not tall half-empty cards */
    .stat-row { gap: 10px; margin-bottom: 16px; }
    .stat-row .stat-card {
        display: flex; align-items: center; justify-content: space-between; gap: 16px;
        padding: 14px 18px;
    }
    .stat-row .stat-card .s-label { margin: 0; }
    .stat-row .stat-card .s-val { margin: 0; font-size: 1.55rem; line-height: 1; }
    .plan-shelf .price-card.featured { margin: 0 -8px; }
    .free-strip { flex-direction: column; align-items: stretch; gap: 16px; padding: 24px; text-align: left; }
    .free-strip .fs-head { min-width: 0; }
    .free-strip .fs-feats { order: 0; }
    .cta-band { padding: 36px 24px; }
    .section { padding: 54px 0; }
}

/* ============================================================
   STUDIO — app shell (build.php)
   Dark pine sidebar + paper canvas. The logged-in workspace.
   ============================================================ */
:root { --side-w: 272px; --topbar-h: 64px; }

.studio-body { display: block; }
.studio-shell { min-height: 100vh; }

/* ---------- Sidebar ---------- */
.studio-side {
    position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 80;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, var(--pine) 0%, #0A3227 100%);
    color: #DCEFE7;
    padding: 20px 14px 16px;
    overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent;
}
.studio-side::-webkit-scrollbar { width: 8px; }
.studio-side::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; }

.ss-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.ss-brand .brand { gap: 9px; font-size: 1.06rem; }
.ss-brand .brand-name { color: #fff; }
.ss-tag {
    margin-left: auto; font-size: .64rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
    color: var(--mint-2); background: rgba(18,184,134,.15); border: 1px solid rgba(23,211,155,.35);
    padding: 3px 9px; border-radius: 999px;
}

.ss-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.ss-sep { height: 1px; background: rgba(255,255,255,.09); margin: 12px 10px; flex-shrink: 0; }
.ss-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px;
    font-size: .91rem; font-weight: 500; color: #C4DBD1;
    transition: background .16s, color .16s;
    --acc: var(--mint);
}
.ss-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.ss-link.is-active { background: rgba(18,184,134,.17); color: #fff; }
.ss-ico {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: rgba(255,255,255,.07); color: #9FC1B4; flex-shrink: 0;
    transition: background .16s, color .16s;
}
.ss-link:hover .ss-ico { color: #fff; }
.ss-link.is-active .ss-ico { background: var(--mint); color: #fff; }
.ss-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-left: auto; opacity: 0; transition: opacity .16s; flex-shrink: 0; }
.ss-link:hover .ss-dot, .ss-link.is-active .ss-dot { opacity: 1; }
/* Locked builder — visible but gated to a higher plan */
.ss-link.is-locked { color: #7F988D; }
.ss-link.is-locked .ss-ico { background: rgba(255,255,255,.04); color: #6E877C; }
.ss-link.is-locked .ss-name { opacity: .8; }
.ss-lock { margin-left: auto; color: #7F988D; display: inline-flex; flex-shrink: 0; transition: color .16s; }
.ss-link.is-locked:hover { color: #DCEFE7; background: rgba(229,169,59,.12); }
.ss-link.is-locked:hover .ss-lock { color: var(--amber); }

/* Sidebar foot: balance + user */
.ss-foot { display: grid; gap: 10px; padding-top: 18px; }
.ss-balance { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 10px 12px; }
.ssb-row { display: flex; align-items: center; gap: 7px; }
.ssb-row .ico { color: var(--mint-2); flex-shrink: 0; }
.ssb-label { font-size: .64rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #8FB4A6; }
.ssb-val { margin-left: auto; font-size: .84rem; font-weight: 600; color: #fff; white-space: nowrap; }
.ssb-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 9px; }
.ssb-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint-2), var(--mint)); border-radius: 999px; }
.ssb-up { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: .76rem; font-weight: 600; color: var(--mint-2); transition: color .16s; }
.ssb-up:hover { color: #fff; }

.ss-user { display: flex; align-items: center; gap: 6px; }
.ssu-main { flex: 1; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; transition: background .16s; min-width: 0; }
.ssu-main:hover { background: rgba(255,255,255,.06); }
.ssu-avatar {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(135deg, var(--mint-2), var(--mint)); color: #fff;
    font-family: var(--font-display); font-weight: 700;
}
.ssu-meta { display: grid; min-width: 0; }
.ssu-name { font-weight: 600; font-size: .9rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.ssu-plan { font-size: .74rem; color: #8FB4A6; }
.ssu-out { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #9FC1B4; transition: background .16s, color .16s; flex-shrink: 0; }
.ssu-out:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Main column ---------- */
.studio-main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.studio-topbar {
    position: sticky; top: 0; z-index: 60; height: var(--topbar-h);
    display: flex; align-items: center; gap: 14px; padding: 0 28px;
    background: rgba(246,245,239,.86); backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.ss-toggle { display: none; background: none; border: none; color: var(--ink); padding: 6px; border-radius: 9px; }
.ss-toggle:hover { background: rgba(16,32,26,.05); }
.st-crumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); min-width: 0; }
.st-crumb a { color: var(--muted); transition: color .16s; }
.st-crumb a:hover { color: var(--ink); }
.st-crumb .ico { color: var(--line-2); flex-shrink: 0; }
.st-crumb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.studio-flash { padding: 18px 28px 0; display: grid; gap: 10px; max-width: 1120px; margin-inline: auto; width: 100%; }
.studio-content { width: 100%; max-width: 1120px; margin-inline: auto; padding: 28px 28px 80px; flex: 1; }

/* ---------- Overview: hero band ---------- */
.ov-hero {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 26px;
    background: var(--pine); border-radius: var(--radius-lg); padding: 34px 36px;
    color: #DCEFE7; box-shadow: var(--shadow);
}
.ov-hero::after {
    content: ''; position: absolute; bottom: -160px; right: -100px; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(23,211,155,.28), transparent 62%); pointer-events: none;
}
.ovh-copy { position: relative; flex: 1; min-width: 0; }
.ov-hi { font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--mint-2); }
.ov-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-top: 8px; }
.ov-hero p { color: #A9C9BD; margin-top: 10px; max-width: 46ch; font-size: .98rem; }

.ov-fig { position: relative; z-index: 1; display: grid; gap: 5px; justify-items: end; text-align: right; flex-shrink: 0; }
.ovf-label { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8FB4A6; }
.ovf-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.9rem, 5.6vw, 3.8rem); line-height: 1; letter-spacing: -.03em; color: #fff; }
.ovf-delta { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: #A9C9BD; }
.ovf-delta.is-up { color: var(--mint-2); }

/* ---------- Overview: stat tiles ---------- */
.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.ov-stat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.ovst-ico { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); }
.ovst-val { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; letter-spacing: -.02em; line-height: 1.15; }
.ovst-plan { font-size: 1.25rem; padding-top: 7px; }
.ovst-label { color: var(--muted); font-size: .82rem; margin-top: 3px; }
.ovst-bar { height: 5px; background: rgba(16,32,26,.08); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.ovst-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--mint-2), var(--mint)); border-radius: 999px; }
.ovst-delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.ovst-delta.is-up { color: var(--mint-ink); }
.ovst-delta.is-down { color: #8A5F0F; }

/* ---------- Overview: activity chart + records ---------- */
.ov-duo { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-top: 16px; align-items: start; }
.ov-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.ovp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ovp-head h2 { font-size: 1.12rem; }
.ovp-head p { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.ovp-kpi { font-weight: 700; font-size: .84rem; color: var(--mint-ink); background: var(--mint-soft); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }

.cv-empty { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: .85rem; color: var(--muted); }
.cv-empty .ico { color: var(--mint); flex-shrink: 0; }

.cv-plot { position: relative; height: 190px; margin-top: 22px; }
.cv-gridline { position: absolute; left: 34px; right: 0; height: 1px; background: rgba(16,32,26,.07); }
.cv-gridline:last-child { background: rgba(16,32,26,.14); }
.cv-gridline span { position: absolute; left: -34px; top: -0.55em; width: 24px; text-align: right; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1; }
.cv-cols { position: absolute; inset: 0 0 0 34px; display: grid; grid-template-columns: repeat(14, 1fr); align-items: end; }
.cv-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: 9px; outline: none; }
.cv-col:hover, .cv-col:focus-visible { background: rgba(18,184,134,.07); }
.cv-bar { display: block; width: min(58%, 22px); background: #6FCFAA; border-radius: 4px 4px 0 0; transition: background .16s; }
.cv-col:hover .cv-bar, .cv-col:focus-visible .cv-bar, .cv-col.is-today .cv-bar { background: var(--mint); }
.cv-bar.cv-zero, .cv-col.is-today .cv-bar.cv-zero { height: 3px; background: rgba(16,32,26,.10); border-radius: 999px; }
.cv-col:hover .cv-bar.cv-zero, .cv-col:focus-visible .cv-bar.cv-zero { background: rgba(16,32,26,.22); }

.cv-tip {
    position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) translateY(3px);
    display: grid; gap: 1px; justify-items: center; text-align: center;
    background: var(--pine); color: #fff; border-radius: 9px; padding: 7px 11px;
    white-space: nowrap; opacity: 0; pointer-events: none; z-index: 5;
    transition: opacity .14s, transform .14s; box-shadow: var(--shadow);
}
.cv-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--pine); }
.cv-tip b { font-size: .84rem; font-weight: 700; }
.cv-tip i { font-style: normal; font-size: .72rem; color: #A9C9BD; }
.cv-col:hover .cv-tip, .cv-col:focus-visible .cv-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.cv-x { display: grid; grid-template-columns: repeat(14, 1fr); margin-left: 34px; margin-top: 8px; }
.cv-x span { text-align: center; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-x span.is-today { color: var(--mint-ink); font-weight: 700; }

.cv-table { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cv-table summary { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; list-style: none; }
.cv-table summary::-webkit-details-marker { display: none; }
.cv-table summary:hover { color: var(--ink); }
.cv-table table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .82rem; }
.cv-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cv-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cv-table td:last-child, .cv-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.ins-list { list-style: none; margin: 14px 0 0; padding: 0; }
.ins-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ins-list li:first-child { border-top: 0; }
.ins-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-ink); flex-shrink: 0; }
.ins-meta { display: grid; min-width: 0; }
.ins-meta b { font-size: .88rem; font-weight: 600; color: var(--ink); }
.ins-meta i { font-style: normal; font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-val { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); white-space: nowrap; }
.ins-val-sm { font-size: .88rem; }

/* ---------- Wizard inside the shell ---------- */
.studio-content .wizard-wrap { max-width: 880px; margin-inline: auto; padding-bottom: 20px; }
.wz-back-link {
    display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600;
    color: var(--muted); transition: color .16s;
}
.wz-back-link:hover { color: var(--ink); }
.wz-back-link .ico { transition: transform .16s; }
.wz-back-link:hover .ico { transform: translateX(-3px); }

/* ---------- Studio responsive ---------- */
@media (max-width: 960px) {
    .studio-side { width: min(300px, 85vw); transform: translateX(-100%); transition: transform .25s ease; }
    .studio-side.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .studio-main { margin-left: 0; }
    .ss-toggle { display: inline-flex; }
    .studio-scrim { position: fixed; inset: 0; z-index: 75; background: rgba(16,32,26,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
    .studio-scrim.show { opacity: 1; pointer-events: auto; }
    .ov-hero { flex-direction: column; align-items: stretch; padding: 28px; }
    .ov-fig { justify-items: start; text-align: left; }
    .ov-stats { grid-template-columns: 1fr 1fr; }
    .ov-duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .studio-topbar { padding: 0 16px; }
    .studio-flash { padding: 16px 16px 0; }
    .studio-content { padding: 20px 16px 70px; }
    .ov-stats { grid-template-columns: 1fr; }
    .st-site { display: none; }
    .wizard-head { gap: 12px 13px; margin-bottom: 18px; flex-wrap: wrap; }
    .wizard-head .wz-ico { width: 44px; height: 44px; border-radius: 13px; }
    .wizard-head > div:not(.wz-ico) { flex: 1 1 60%; min-width: 0; }
    .wizard-head .pill-badge { margin-left: 0; margin-top: -4px; order: 3; flex: 0 0 auto; padding: 5px 10px; font-size: .74rem; }
    .wizard-head h1 { font-size: 1.4rem; }
    .wizard-head p.muted { font-size: .88rem; }
    .wizard-card { padding: 24px 18px; }
    .wz-step-head { margin-bottom: 18px; gap: 12px; }
    .wz-step-head h2 { font-size: 1.24rem; }
    .cv-plot { height: 160px; }
    .cv-x span:not(.is-today):nth-child(even) { visibility: hidden; }
}

/* ============================================================
   LANDING · ABOUT (what is PromptMint)
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.about-lede { color: var(--ink-soft); font-size: 1.06rem; margin-top: 16px; max-width: 54ch; }
.about-checks { list-style: none; margin: 28px 0 6px; padding: 0; display: grid; gap: 17px; }
.about-checks li { display: flex; align-items: flex-start; gap: 14px; }
.ac-ico {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: var(--mint-soft); color: var(--mint-ink); flex-shrink: 0; margin-top: 2px;
}
.about-checks b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.about-checks li div span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

.about-media { position: relative; }
.about-media::before {
    content: ''; position: absolute; inset: 30px -18px -18px 30px; z-index: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--mint-soft), rgba(18,184,134,.18));
    border: 1px solid rgba(18,184,134,.2);
}
.about-media img {
    position: relative; z-index: 1; width: 100%; border-radius: var(--radius-lg);
    border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-lg);
}

/* ============================================================
   LANDING · LIVE STAT BAND
   ============================================================ */
.stat-section { padding-top: 0; }
.stat-band {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--pine); border-radius: var(--radius-lg);
    padding: 40px 22px; box-shadow: var(--shadow-lg);
}
.stat-band::after {
    content: ''; position: absolute; top: -150px; right: -90px; width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(23,211,155,.26), transparent 64%); pointer-events: none;
}
.sb-item { position: relative; text-align: center; padding: 4px 18px; }
.sb-item + .sb-item { border-left: 1px solid rgba(255,255,255,.1); }
.sb-num {
    font-family: var(--font-display); font-weight: 700; color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.1rem); letter-spacing: -.03em; line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.sb-label { color: #A9C9BD; font-size: .88rem; margin-top: 7px; }

/* ============================================================
   LANDING · BEFORE / AFTER COMPARISON
   ============================================================ */
.ba-frame {
    position: relative; isolation: isolate; max-width: 940px; margin-inline: auto;
    aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-lg);
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; z-index: 2;
    transform: translateX(-50%); background: #fff; pointer-events: none;
    box-shadow: 0 0 0 1px rgba(16,32,26,.12), 0 0 18px rgba(16,32,26,.28);
}
.ba-grip {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; color: var(--pine); box-shadow: var(--shadow-lg);
    transition: box-shadow .18s;
}
.ba-frame:focus-within .ba-grip { box-shadow: var(--shadow-lg), 0 0 0 4px rgba(18,184,134,.4); }
.ba-range {
    position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
    opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
    touch-action: pan-y; background: transparent;
}
.ba-tag {
    position: absolute; top: 16px; z-index: 2; pointer-events: none;
    padding: 6px 13px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 700; font-size: .72rem;
    letter-spacing: .11em; text-transform: uppercase;
}
.ba-tag-before { left: 16px; background: rgba(255,255,255,.94); color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.ba-tag-after { right: 16px; background: var(--pine); color: var(--mint-2); box-shadow: var(--shadow); }

.ba-captions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 940px; margin: 22px auto 0; }
.ba-cap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 20px; }
.ba-cap b { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.ba-cap b .ico { color: var(--muted); flex-shrink: 0; }
.ba-cap span { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.ba-cap-after { background: var(--mint-soft); border-color: rgba(18,184,134,.32); }
.ba-cap-after b .ico { color: var(--mint-ink); }

@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 46px; }
    .about-media { max-width: 560px; }
    .stat-band { grid-template-columns: 1fr 1fr; row-gap: 28px; padding: 32px 10px; }
    .sb-item + .sb-item { border-left: 0; }
    .sb-item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 720px) {
    .ba-captions { grid-template-columns: 1fr; }
    .ba-grip { width: 40px; height: 40px; }
    .sb-label { font-size: .8rem; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
    display: grid; grid-template-columns: .92fr 1.08fr; gap: 26px;
    align-items: stretch; max-width: 1020px; margin: 34px auto 10px;
}

.contact-aside {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    background: linear-gradient(150deg, var(--pine) 0%, #14563f 100%);
    border-radius: var(--radius-lg); padding: 34px 30px; color: #fff;
    box-shadow: var(--shadow-lg);
}
.contact-aside .ca-glow {
    position: absolute; top: -120px; right: -80px; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(23,211,155,.3), transparent 65%); pointer-events: none;
}
.contact-aside h2 { font-size: 1.65rem; color: #fff; position: relative; }
.ca-lede { color: #A9C9BD; font-size: .95rem; margin-top: 10px; position: relative; }

.contact-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; position: relative; }
.contact-points .cp-item {
    display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px;
    padding: 13px 15px; border-radius: 14px;
    background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
    transition: background .16s ease, border-color .16s ease;
}
.contact-points .cp-item:hover { background: rgba(255,255,255,.07); border-color: rgba(23,211,155,.3); }
.cp-ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; background: rgba(23,211,155,.16); color: var(--mint-2);
}
.cp-body { min-width: 0; }
.cp-title { display: block; font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.3; color: #fff; }
.cp-sub { display: block; color: #A9C9BD; font-size: .87rem; line-height: 1.35; margin-top: 3px; }
.cp-sub a { color: var(--mint-2); font-weight: 600; }
.cp-sub a:hover { text-decoration: underline; }

.ca-foot {
    margin-top: auto; padding-top: 24px; position: relative;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.12); font-size: .87rem; color: #A9C9BD;
}
.ca-foot a {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
    padding: 7px 13px; border-radius: 999px; transition: background .16s, border-color .16s;
}
.ca-foot a:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }
.ca-foot a .ico { color: var(--mint-2); }

.contact-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px 30px 26px; box-shadow: var(--shadow);
}
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Topic radio pills */
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-pill input { position: absolute; opacity: 0; pointer-events: none; }
.topic-pill span {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
    color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line-2);
    transition: all .15s;
}
.topic-pill span .ico { color: var(--muted); transition: color .15s; }
.topic-pill:hover span { border-color: var(--mint); color: var(--mint-ink); }
.topic-pill:hover span .ico { color: var(--mint-ink); }
.topic-pill input:checked + span { background: var(--pine); border-color: var(--pine); color: #fff; }
.topic-pill input:checked + span .ico { color: var(--mint-2); }
.topic-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(18,184,134,.2); }

/* Honeypot — visually gone, still in the DOM for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-aside { padding: 28px 24px; }
    .contact-card { padding: 24px 20px; }
    .contact-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- History launchers + modal (account) ---------- */
.hist-count { font-size: .74rem; font-weight: 700; color: var(--mint-ink); background: var(--mint-soft); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }

/* Trigger buttons that open the history popups */
.hist-launch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2px; margin-bottom: 8px; }
.hist-open { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--ink);
    padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm);
    cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.hist-open:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--mint); }
.hist-open:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.hist-open-ico { color: var(--mint-ink); flex: none; }
.hist-open-label { font-weight: 600; font-family: var(--font-display); }
.hist-open-go { margin-left: auto; color: var(--muted); flex: none; transition: transform .16s ease, color .16s ease; }
.hist-open:hover .hist-open-go { color: var(--mint); transform: translate(2px, -2px); }
/* Defined here (after the base rule) so it wins on mobile — a media block
   earlier in the file loses to this later, equal-specificity declaration. */
@media (max-width: 720px) { .hist-launch { grid-template-columns: 1fr; } }

/* Native <dialog> popup */
dialog.pm-modal { border: none; padding: 0; margin: auto; color: var(--ink); background: var(--card);
    width: min(780px, calc(100vw - 32px)); max-height: min(82vh, 760px); overflow: hidden;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
dialog.pm-modal::backdrop { background: rgba(12, 59, 46, .42); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
dialog.pm-modal[open] { animation: pmModalIn .24s cubic-bezier(.2, .8, .2, 1); }
dialog.pm-modal[open]::backdrop { animation: pmFade .24s ease; }
@keyframes pmModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }
html:has(dialog.pm-modal[open]) { overflow: hidden; }
.pm-modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pm-modal-head .hist-open-ico { color: var(--mint-ink); }
.pm-modal-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.pm-modal-head .hist-count { margin-left: 2px; }
.pm-modal-close { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--muted); cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease; }
.pm-modal-close:hover { color: var(--ink); border-color: var(--line-2); background: var(--mint-soft); }
.pm-modal-body { padding: 8px 22px 22px; overflow-y: auto; max-height: calc(82vh - 74px); }
.pm-modal-body .table-scroll { margin-bottom: 0; }
/* On phones the 5-6 column history tables would need a cramped sideways scroll,
   so each row folds into a stacked label -> value card instead. */
@media (max-width: 560px) {
    .pm-modal .data-table,
    .pm-modal .data-table tbody { display: block; border: none; background: transparent; }
    .pm-modal .data-table thead {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
    }
    .pm-modal .data-table tr {
        display: block; margin-bottom: 12px; padding: 2px 2px;
        background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    }
    .pm-modal .data-table td {
        display: flex; align-items: center; justify-content: space-between; gap: 18px;
        padding: 11px 16px; border-bottom: 1px solid var(--line);
        text-align: right; font-size: .92rem;
    }
    .pm-modal .data-table tr td:last-child { border-bottom: none; }
    .pm-modal .data-table td::before {
        content: attr(data-label); flex: none; text-align: left;
        font-family: var(--font-display); font-weight: 600; font-size: .72rem;
        text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
    }
}
