/* BulkyGen — public site stylesheet. Plain CSS, no build step, no web fonts.
   Design tokens live in :root. The legacy aliases at the end of the token block
   keep older selectors and admin.css (loaded after this file) working. */

:root {
    /* Neutral ramp (slate) */
    --c-ink:        #1c1f27;   /* headings                              */
    --c-body:       #3b414d;   /* body text on white  (~10:1)           */
    --c-muted:      #5b6472;   /* secondary text      (~5.6:1 on white) */
    --c-faint:      #868e9c;   /* meta / captions                       */
    --c-line:       #e6e8ee;   /* hairline borders                      */
    --c-line-soft:  #eef0f4;
    --c-bg:         #f4f5f8;   /* page ground                          */
    --c-surface:    #ffffff;
    --c-surface-2:  #fafbfd;

    /* Brand (indigo) */
    --c-brand:        #3f3dcf;   /* primary fills; white text ~7.6:1     */
    --c-brand-strong: #3431ad;   /* hover / active                       */
    --c-brand-text:   #3a37c2;   /* brand-coloured text on white ~7:1    */
    --c-brand-weak:   #ecebfb;   /* tinted fills (chips, callouts)       */
    --c-brand-line:   #d7d6f6;
    --c-accent:       #8a7cf3;   /* gradient partner only                */
    --c-ink-panel:    #16152f;   /* dark sections (final CTA, footer)    */
    --c-on-panel:     #c7cbe6;   /* body text on the dark panel ~8:1     */

    /* Feedback */
    --c-ok-bg:#e9f7ee;   --c-ok-fg:#186c33;   --c-ok-line:#bfe3c6;
    --c-warn-bg:#fff5e4; --c-warn-fg:#8a5a00; --c-warn-line:#f0d19b;
    --c-bad-bg:#fdecec;  --c-bad-fg:#b42318;  --c-bad-line:#f2c3bf;

    /* Radii */
    --r-1: 8px;
    --r-2: 12px;
    --r-3: 16px;
    --r-4: 22px;
    --r-pill: 999px;

    /* Elevation — soft, indigo-tinted */
    --sh-1: 0 1px 2px rgba(22,21,47,.06), 0 1px 3px rgba(22,21,47,.05);
    --sh-2: 0 8px 20px -10px rgba(22,21,47,.16), 0 3px 8px -4px rgba(22,21,47,.08);
    --sh-3: 0 28px 56px -24px rgba(22,21,47,.30), 0 10px 24px -14px rgba(22,21,47,.16);
    --sh-brand: 0 12px 26px -10px rgba(63,61,207,.42);

    --w-page: 1120px;
    --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* ---- Legacy aliases (older selectors + admin.css) ---- */
    --ink: var(--c-ink);
    --muted: var(--c-muted);
    --accent: var(--c-brand);
    --accent-hover: var(--c-brand-strong);
    --bg: var(--c-bg);
    --bg-soft: var(--c-surface-2);
    --border: var(--c-line);
    --maxw: var(--w-page);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }   /* guard the full-bleed landing bands */

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.62;
    color: var(--c-body);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--c-ink);
    line-height: 1.18;
    letter-spacing: -.018em;
    font-weight: 780;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-brand-text); text-underline-offset: 2px; }
a:hover { color: var(--c-brand-strong); }

.container {
    max-width: var(--w-page);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.muted { color: var(--c-muted); }
.lead {
    font-size: 1.14rem;
    line-height: 1.6;
    color: var(--c-body);
    max-width: 44rem;
}

img { max-width: 100%; height: auto; }

/* Full-bleed band: escape the .container column, re-inset the content */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.bleed > .bleed-inner { max-width: var(--w-page); margin: 0 auto; padding: 0 1.5rem; }

/* Accessibility */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--c-brand); color: #fff; padding: .65rem 1rem; border-radius: 0 0 var(--r-1) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }

/* =====================================================================
   Header / navigation
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(1.6) blur(12px);
    -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid var(--c-line);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 800;
    font-size: 1.12rem;
    letter-spacing: -.02em;
    color: var(--c-ink);
    text-decoration: none;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(150deg, var(--c-brand), var(--c-accent));
    box-shadow: var(--sh-brand);
}
.brand-mark svg { width: 20px; height: 20px; display: block; }
.brand-logo { display: block; height: 38px; width: auto; max-width: 220px; }
.brand-name { display: inline-block; }

.site-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.site-nav a {
    position: relative;
    padding: .5rem .7rem;
    font-size: .95rem;
    font-weight: 550;
    color: var(--c-body);
    text-decoration: none;
    border-radius: var(--r-1);
}
.site-nav a:hover { color: var(--c-ink); background: var(--c-surface-2); }
.site-nav .site-nav-sep {
    width: 1px; height: 22px; margin: 0 .4rem;
    background: var(--c-line);
}

/* `.site-nav a` (0,1,1) and `.site-nav a:hover` (0,1,2) outweigh `.btn`
   (0,1,0) / `.btn:hover` (0,1,1), so the nav CTA needs its fill AND text
   colour restated here or it renders dark-on-indigo (and white-on-white
   on hover). */
.site-nav a.nav-cta {
    margin-left: .35rem;
    padding: .44rem .95rem;
    color: #fff;
    font-weight: 650;
    background: var(--c-brand);
}
.site-nav a.nav-cta:hover {
    color: #fff;
    background: var(--c-brand-strong);
}

.inline-form { display: inline; margin: 0; }
.linklike {
    background: none; border: 0; padding: .5rem .7rem;
    color: var(--c-body); font: inherit; font-weight: 550; cursor: pointer;
    border-radius: var(--r-1);
}
.linklike:hover { color: var(--c-ink); background: var(--c-surface-2); }
.linklike-danger {
    background: none; border: 0; padding: 0;
    color: var(--c-bad-fg); font: inherit; cursor: pointer; text-decoration: underline;
}

/* Mobile menu toggle — hidden until the nav collapses */
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid var(--c-line);
    border-radius: var(--r-1);
    background: var(--c-surface);
    cursor: pointer;
    padding: 0;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 18px; height: 2px;
    margin: 0 auto;
    background: var(--c-ink);
    border-radius: 2px;
    transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { content: ""; position: absolute; top: -6px; left: 0; }
.nav-toggle-bar::after  { content: ""; position: absolute; top:  6px; left: 0; }
.site-header.is-open .nav-toggle-bar { background: transparent; }
.site-header.is-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle-bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .62rem 1.15rem;
    border: 1px solid var(--c-brand);
    border-radius: var(--r-1);
    background: var(--c-brand);
    color: #fff;
    font-size: .96rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--c-brand-strong); border-color: var(--c-brand-strong); color: #fff; box-shadow: var(--sh-brand); }
.btn:active { transform: translateY(1px); }

.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; border-radius: var(--r-2); }
.btn-sm, .btn-small { padding: .38rem .75rem; font-size: .84rem; gap: .35rem; }

.btn-ghost {
    background: var(--c-surface);
    color: var(--c-brand-text);
    border-color: var(--c-brand-line);
}
.btn-ghost:hover { background: var(--c-brand-weak); border-color: var(--c-brand-line); color: var(--c-brand-strong); box-shadow: none; }

.btn-plain {
    background: var(--c-surface);
    color: var(--c-body);
    border-color: var(--c-line);
}
.btn-plain:hover { background: var(--c-surface-2); border-color: var(--c-muted); color: var(--c-ink); box-shadow: none; }

.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* =====================================================================
   Flash / status banner
   ===================================================================== */
.flash {
    margin: 1.5rem 0 0;
    padding: .85rem 1.1rem;
    border: 1px solid var(--c-ok-line);
    background: var(--c-ok-bg);
    color: var(--c-ok-fg);
    border-radius: var(--r-2);
    font-weight: 500;
}
.flash-detail { display: block; margin-top: .35rem; font-size: .9rem; color: var(--c-muted); }
.flash-warn { border-color: var(--c-warn-line); background: var(--c-warn-bg); color: var(--c-warn-fg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero-band {
    background:
        radial-gradient(48rem 26rem at 82% -12%, rgba(63,61,207,.13), transparent 62%),
        radial-gradient(38rem 22rem at 8% 8%, rgba(138,124,243,.10), transparent 60%),
        linear-gradient(180deg, #fbfbff 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-line);
}
.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
    padding: 4.5rem 0 4.75rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 1.15rem;
    padding: .3rem .8rem;
    border-radius: var(--r-pill);
    background: var(--c-brand-weak);
    border: 1px solid var(--c-brand-line);
    color: var(--c-brand-text);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2.25rem, 4.8vw, 3.4rem);
    line-height: 1.05;
    font-weight: 820;
    margin: 0 0 1.15rem;
}
.hero-sub {
    font-size: 1.16rem;
    line-height: 1.62;
    color: var(--c-body);
    max-width: 34rem;
    margin: 0 0 1.9rem;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0 0 1.15rem;
    flex-wrap: wrap;
}
.hero-note {
    color: var(--c-muted);
    font-size: .9rem;
    margin: 0;
    max-width: 30rem;
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    margin: 1.9rem 0 0;
    padding: 0;
    list-style: none;
}
.hero-trust li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 550;
    color: var(--c-muted);
}
.hero-trust li::before {
    content: "";
    width: 9px; height: 9px;
    flex: none;
    border-radius: 3px;
    background: var(--c-brand);
    box-shadow: 0 0 0 4px var(--c-brand-weak);
}

/* Hero figure — a framed screenshot with floating chips */
.hero-figure { position: relative; }
.hero-shot {
    position: relative;
    border-radius: var(--r-4);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    box-shadow: var(--sh-3);
    padding: .5rem;
}
.hero-shot::before {
    content: "";
    display: block;
    width: 8px; height: 8px;
    margin: .3rem 0 .55rem .5rem;
    border-radius: 50%;
    background: var(--c-line);
    box-shadow: 14px 0 0 var(--c-line), 28px 0 0 var(--c-line);
}
.hero-shot img, .hero-shot svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--r-3);
    border: 1px solid var(--c-line-soft);
}

/* Hero mockup animation (views/web/partials/hero-workflow.php) — a looping
   "map columns -> generate -> done" cycle, ~4s, continuous. Independent of
   the global prefers-reduced-motion rule below, which already collapses
   every duration here to near-zero, freezing the loop on one frame. */
.wf-generate-btn { animation: wf-btn-press 4s ease-in-out infinite; }
.wf-connectors path { animation: wf-flow .9s linear infinite; }
.wf-dot { transform-box: fill-box; transform-origin: center; animation: wf-dot-pulse 1.4s ease-in-out infinite; }
.wf-dot-2 { animation-delay: .18s; }
.wf-dot-3 { animation-delay: .36s; }
.wf-front-card { transform-box: fill-box; transform-origin: center; animation: wf-card-pop 4s ease-in-out infinite; }
.wf-badge { opacity: 0; transform-box: fill-box; transform-origin: center; animation: wf-badge-in 4s ease-in-out infinite; }
.wf-progress-fill { animation: wf-progress 4s ease-in-out infinite; }
.wf-status { transform-box: fill-box; }
.wf-status-busy { animation: wf-status-busy 4s ease-in-out infinite; }
.wf-status-done { opacity: 0; animation: wf-status-done 4s ease-in-out infinite; }

@keyframes wf-btn-press {
    0%, 92%, 100% { opacity: 1; }
    3%  { opacity: .55; }
    8%  { opacity: 1; }
}
@keyframes wf-flow {
    to { stroke-dashoffset: -13; }
}
@keyframes wf-dot-pulse {
    0%, 100% { opacity: .35; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.6); }
}
@keyframes wf-card-pop {
    0%, 60%   { transform: translateY(0); }
    68%       { transform: translateY(-6px); }
    78%, 100% { transform: translateY(0); }
}
@keyframes wf-badge-in {
    0%, 60%   { opacity: 0; transform: scale(.6); }
    70%       { opacity: 1; transform: scale(1.12); }
    78%, 90%  { opacity: 1; transform: scale(1); }
    98%, 100% { opacity: 0; transform: scale(.6); }
}
@keyframes wf-progress {
    0%        { width: 0; }
    62%, 88%  { width: 138px; }
    100%      { width: 0; }
}
@keyframes wf-status-busy {
    0%, 58%   { opacity: 1; }
    66%, 100% { opacity: 0; }
}
@keyframes wf-status-done {
    0%, 58%   { opacity: 0; }
    66%, 90%  { opacity: 1; }
    98%, 100% { opacity: 0; }
}
.hero-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .8rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-2);
    box-shadow: var(--sh-2);
    font-size: .82rem;
    font-weight: 650;
    color: var(--c-ink);
    white-space: nowrap;
}
.hero-chip strong { color: var(--c-brand-text); font-weight: 800; }
.hero-chip-tl { top: 1.2rem; left: -1.4rem; }
.hero-chip-br { bottom: 1.4rem; right: -1.4rem; }

/* =====================================================================
   Section rhythm
   ===================================================================== */
.features, .steps, .pricing-preview, .faq, .final-cta { padding: 4.75rem 0; }
.steps, .faq { background: var(--c-surface); border-block: 1px solid var(--c-line); }

.section-head { max-width: 44rem; margin: 0 0 2.5rem; }
.features h2, .steps h2, .pricing-preview h2, .faq h2 {
    font-size: clamp(1.7rem, 3.1vw, 2.3rem);
    font-weight: 800;
    margin: 0 0 .55rem;
}
.section-lead { color: var(--c-muted); margin: 0; max-width: 42rem; font-size: 1.05rem; }
.eyebrow-sm {
    display: block;
    margin: 0 0 .7rem;
    font-size: .74rem;
    font-weight: 750;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--c-brand-text);
}

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.feature {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.75rem;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--c-brand-line); }
.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    margin-bottom: 1rem;
    border-radius: var(--r-2);
    color: var(--c-brand-text);
    background: var(--c-brand-weak);
    border: 1px solid var(--c-brand-line);
}
.feature-icon svg { width: 22px; height: 22px; display: block; }
.feature h3 { margin: 0 0 .45rem; font-size: 1.12rem; font-weight: 720; }
.feature p { margin: 0; color: var(--c-muted); }

/* Steps */
.step-list {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    counter-reset: step;
}
.step-list li { position: relative; padding-left: 3.5rem; }
.step-n {
    position: absolute;
    left: 0; top: -.15rem;
    width: 2.6rem; height: 2.6rem;
    border-radius: var(--r-2);
    background: linear-gradient(150deg, var(--c-brand), var(--c-accent));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: var(--sh-brand);
}
.step-list li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 2.6rem; top: 1.25rem;
    width: calc(100% - 1.5rem); height: 2px;
    background: linear-gradient(90deg, var(--c-brand-line), transparent);
}
.step-list h3 { margin: .15rem 0 .4rem; font-size: 1.1rem; font-weight: 720; }
.step-list p { margin: 0; color: var(--c-muted); }

.steps-shot { margin: 3rem 0 0; }
.steps-shot img, .steps-shot svg {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--c-line);
    border-radius: var(--r-4);
    box-shadow: var(--sh-3);
    background: var(--c-surface);
}

/* Steps pipeline animation (views/web/partials/steps-pipeline.php) — three
   always-on loops, one per tile, so the diagram reads as "the app always
   working" rather than a single choreographed cycle like the hero. */
.sp-chev { animation: sp-chev-flow 1.2s ease-in-out infinite; }
.sp-chev-b { animation-delay: .15s; }
.sp-chev-c { animation-delay: .3s; }

.sp-drop-in { animation: sp-drop-in 2.2s ease-in-out infinite; }

.sp-link-dot { transform-box: fill-box; transform-origin: center; animation: sp-link-pulse 1.6s ease-in-out infinite; }
.sp-link-dot-2 { animation-delay: .25s; }
.sp-link-dot-3 { animation-delay: .5s; }
.sp-links { animation: sp-flow .9s linear infinite; }

.sp-page { transform-box: fill-box; transform-origin: center; animation: sp-page-pop 3.2s ease-in-out infinite; }
.sp-badge { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sp-badge-in 3.2s ease-in-out infinite; }

@keyframes sp-chev-flow {
    0%, 100% { opacity: .25; transform: translateX(0); }
    50%      { opacity: 1;   transform: translateX(6px); }
}
@keyframes sp-drop-in {
    0%   { opacity: 0; transform: translateY(-16px); }
    35%  { opacity: 1; transform: translateY(0); }
    70%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(6px); }
}
@keyframes sp-link-pulse {
    0%, 100% { opacity: .4; transform: scale(1); }
    50%      { opacity: 1;  transform: scale(1.7); }
}
@keyframes sp-flow {
    to { stroke-dashoffset: -11; }
}
@keyframes sp-page-pop {
    0%, 55%  { transform: translateY(0); }
    65%      { transform: translateY(-5px); }
    75%, 100% { transform: translateY(0); }
}
@keyframes sp-badge-in {
    0%, 55%   { opacity: 0; transform: scale(.6); }
    65%       { opacity: 1; transform: scale(1.15); }
    75%, 92%  { opacity: 1; transform: scale(1); }
    100%      { opacity: 0; transform: scale(.6); }
}

/* =====================================================================
   Pricing preview (landing) + Pricing page
   ===================================================================== */
/* Centred flex wrap, not auto-fit grid: with 5 tiers there is always a
   partial last row, and justify-content:center keeps the leftover card(s)
   centred under the row above instead of stranded on the left. */
.pp-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0 1.75rem;
}
.pp-card {
    flex: 1 1 190px;
    max-width: 220px;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.5rem 1.3rem;
    text-align: center;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.pp-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--c-brand-line); }
.pp-card h3 { margin: 0 0 .55rem; font-size: 1.02rem; font-weight: 720; }
.pp-price { font-size: 1.55rem; font-weight: 820; margin: 0; color: var(--c-ink); }
.pp-alt { display: block; font-size: .8rem; font-weight: 600; color: var(--c-muted); }
.pp-period, .pp-devices { margin: .3rem 0 0; color: var(--c-muted); font-size: .85rem; }
.pp-caps { list-style: none; margin: .9rem 0 0; padding: 0; color: var(--c-muted); font-size: .85rem; text-align: left; }
.pp-caps li { padding: .34rem 0 .34rem 1.5rem; border-top: 1px solid var(--c-line-soft); position: relative; }
.pp-caps li:first-child { border-top: 0; }
.pp-caps li::before {
    content: "";
    position: absolute; left: 0; top: .78rem;
    width: 8px; height: 8px; border-radius: 2px;
    background: var(--c-brand);
    opacity: .5;
}
.pp-highlight { margin: .9rem 0 0; font-size: .8rem; font-weight: 650; color: var(--c-brand-text); }
.pp-cta { margin-top: 1rem; }

.pricing { padding: 3rem 0 4rem; }
.pricing h1 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin: 0 0 .5rem; }
/* Same reasoning as .pp-grid — centre the partial last row instead of
   leaving a lone tier stranded on the left. */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 2.5rem;
}
.plan-card {
    /* no grow: cards keep a fixed width, wrap to 4-up, and the leftover
       tier centres at the SAME size as the row above it. */
    flex: 0 1 250px;
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.75rem;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--c-brand-line); }
.plan-name { font-size: 1.15rem; margin: 0 0 .75rem; font-weight: 740; }
.plan-price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; }
.plan-amount { font-size: 2rem; font-weight: 820; color: var(--c-ink); letter-spacing: -.02em; }
.plan-price-sep { color: var(--c-faint); font-size: 1.2rem; }
.plan-amount-alt { font-size: 1.05rem; font-weight: 650; color: var(--c-muted); }
.plan-period { margin: .15rem 0 1.25rem; color: var(--c-muted); font-size: .9rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .92rem; }
.plan-features li { padding: .5rem 0 .5rem 1.6rem; border-top: 1px solid var(--c-line-soft); position: relative; color: var(--c-body); }
.plan-features li:first-child { border-top: 0; }
.plan-features li::before {
    content: "";
    position: absolute; left: 0; top: .95rem;
    width: 9px; height: 9px;
    border-radius: 3px;
    background: var(--c-brand);
    opacity: .55;
}
.plan-cta { margin-top: auto; text-align: center; text-decoration: none; }
.plan-cta-form { margin-top: auto; }
.plan-cta-form .plan-cta { width: 100%; }
.plan-note { margin-top: 1.75rem; font-size: .88rem; }
.plan-highlight {
    margin: 0 0 1.1rem;
    padding: .7rem .85rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--c-brand-text);
    background: var(--c-brand-weak);
    border: 1px solid var(--c-brand-line);
    border-radius: var(--r-1);
}

/* =====================================================================
   FAQ — two-column: sticky intro rail + CSS-only accordion
   ===================================================================== */
.faq-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 3.5rem;
    align-items: start;
}
.faq-intro { position: sticky; top: 96px; }
.faq-intro h2 { margin: 0 0 .55rem; }
.faq-intro .section-lead { font-size: 1rem; }
.faq-help {
    margin-top: 1.9rem;
    padding: 1.35rem 1.4rem;
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
}
.faq-help-q { margin: 0 0 .3rem; font-weight: 700; color: var(--c-ink); }
.faq-help-t { margin: 0 0 1rem; font-size: .9rem; color: var(--c-muted); }
.faq-help .btn { margin: 0; }

.faq-list { min-width: 0; }
.faq-item {
    border: 1px solid var(--c-line);
    border-radius: var(--r-2);
    margin-bottom: .7rem;
    background: var(--c-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item[open] { border-color: var(--c-brand-line); box-shadow: var(--sh-1); }
.faq-item summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--c-ink);
    padding: 1.1rem 1.25rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary:hover { color: var(--c-brand-text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--c-brand-line);
    background: var(--c-brand-weak) center / 12px 12px no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%233a37c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--c-line-soft); }
.faq-answer { padding: 1rem 1.25rem 1.25rem; color: var(--c-muted); }
.faq-item[open] .faq-answer { animation: faqReveal .22s ease both; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-answer :first-child { margin-top: 0; }
.faq-answer a { color: var(--c-brand-text); }

/* =====================================================================
   Final CTA panel
   ===================================================================== */
.final-cta { text-align: center; }
.final-cta-panel {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3.25rem 2.25rem;
    border-radius: var(--r-4);
    background:
        radial-gradient(38rem 20rem at 50% -30%, rgba(138,124,243,.35), transparent 65%),
        var(--c-ink-panel);
    color: #fff;
    box-shadow: var(--sh-3);
}
.final-cta-panel h2 { color: #fff; margin: 0 0 .8rem; font-size: clamp(1.6rem, 3vw, 2.15rem); }
.final-cta-panel p { max-width: 38rem; margin: 0 auto 1.6rem; color: var(--c-on-panel); }
.final-cta-panel .btn { background: #fff; color: var(--c-ink-panel); border-color: #fff; }
.final-cta-panel .btn:hover { background: var(--c-brand-weak); border-color: var(--c-brand-weak); color: var(--c-brand-strong); box-shadow: none; }

/* =====================================================================
   Forms & auth cards
   ===================================================================== */
.auth-card {
    max-width: 27rem;
    margin: 3.5rem auto;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 2rem;
    box-shadow: var(--sh-2);
}
.auth-card h1 { font-size: 1.45rem; margin: 0 0 1rem; }
.auth-alt { margin-top: 1.4rem; font-size: .92rem; color: var(--c-muted); }
/* Bare submit buttons (no wrapping <p>) need their own top gap now that
   .btn carries no default margin. */
.auth-card form > button.btn { margin-top: 1.6rem; width: 100%; }
.checkout-form > button.btn { margin-top: 1.4rem; }
.trial-cta form > button.btn { margin-top: .9rem; }
.contact-form + p { margin-top: 1.25rem; }

form label {
    display: block;
    margin: 1rem 0 .35rem;
    font-weight: 620;
    font-size: .92rem;
    color: var(--c-ink);
}
form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form input[type="url"],
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: .62rem .75rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-1);
    font: inherit;
    font-size: 1rem;
    color: var(--c-ink);
    background: var(--c-surface);
    transition: border-color .14s ease, box-shadow .14s ease;
}
form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px var(--c-brand-weak);
}
form input:disabled { background: var(--c-surface-2); color: var(--c-muted); cursor: not-allowed; }
form .hint, .hint { margin: .35rem 0 0; color: var(--c-muted); font-size: .85rem; }

.field-error {
    margin: .4rem 0 0;
    padding-left: 1.1rem;
    color: var(--c-bad-fg);
    font-size: .87rem;
}

/* =====================================================================
   Customer account area — shared header, tabs, stat tiles, panels
   (dashboard · orders · order detail · checkout)
   ===================================================================== */
.account { padding: 2.75rem 0 4.5rem; }
.account > h2 { font-size: 1.15rem; margin: 2.5rem 0 1rem; }

.account-head { margin-bottom: 1.75rem; }
.account-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 .3rem; }
.account-head-sub { margin: 0; color: var(--c-muted); font-size: .95rem; }
.account-nav {
    display: flex;
    gap: .1rem;
    margin-top: 1.35rem;
    border-bottom: 1px solid var(--c-line);
    overflow-x: auto;
}
.account-nav a {
    padding: .65rem .95rem;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--c-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.account-nav a:hover { color: var(--c-ink); }
.account-nav a.is-active { color: var(--c-brand-text); border-bottom-color: var(--c-brand); }

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 0 0 2.25rem;
}
.stat-tile {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    box-shadow: var(--sh-1);
    padding: 1.15rem 1.25rem;
}
.stat-tile dt { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--c-muted); }
.stat-tile dd { margin: .4rem 0 0; font-size: 1.6rem; font-weight: 820; letter-spacing: -.02em; line-height: 1.1; color: var(--c-ink); }
.stat-tile dd small { font-size: .9rem; font-weight: 600; color: var(--c-muted); }
.stat-tile.is-text dd { font-size: 1.1rem; font-weight: 720; }

.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    box-shadow: var(--sh-1);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush .data-table { border: 0; border-radius: 0; margin: 0; }
.panel-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.panel-head h2 { font-size: 1.1rem; margin: 0; }
.panel-head .muted { font-size: .85rem; }

.empty-state {
    text-align: center;
    padding: 2.75rem 1.5rem;
    border: 1px dashed var(--c-line);
    border-radius: var(--r-3);
    background: var(--c-surface-2);
    color: var(--c-muted);
}
.empty-state p { margin: 0 0 1.1rem; }
.empty-state .btn { margin: 0; }

.notice { padding: .9rem 1.1rem; border-radius: var(--r-2); font-size: .92rem; background: var(--c-brand-weak); color: var(--c-brand-text); }
.notice-ok { background: var(--c-ok-bg); color: var(--c-ok-fg); }
.notice-warn { background: var(--c-warn-bg); color: var(--c-warn-fg); }
.notice-danger { background: var(--c-bad-bg); color: var(--c-bad-fg); }

.lic-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.5rem 1.6rem;
    margin: 1.1rem 0;
    box-shadow: var(--sh-1);
}
.lic-card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lic-key-wrap { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lic-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); margin: 1.5rem 0 .5rem; }
.table-wrap { overflow-x: auto; }
.lic-key {
    font-size: .9rem;
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-1);
    padding: .15rem .45rem;
    font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}
.lic-copy { vertical-align: middle; }
.copy-block-wrap { display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.pem-block {
    display: block;
    white-space: pre;
    overflow-x: auto;
    max-width: 100%;
    padding: .75rem .9rem;
    line-height: 1.4;
}
.lic-facts { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: 1rem 0 0; }
.lic-facts > div { min-width: 8rem; }
.lic-facts dt { color: var(--c-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.lic-facts dd { margin: .1rem 0 0; font-size: .95rem; color: var(--c-ink); font-weight: 600; }
.reset-form { margin-top: .9rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.trial-cta {
    margin-top: 2.25rem;
    padding: 1.5rem 1.6rem;
    background:
        radial-gradient(26rem 14rem at 100% 0%, var(--c-brand-weak), transparent 70%),
        var(--c-surface);
    border: 1px solid var(--c-brand-line);
    border-radius: var(--r-3);
}
.trial-cta h2 { margin-top: 0; }

/* =====================================================================
   Tables, badges, detail cards (orders / checkout / dashboard)
   ===================================================================== */
.badge { display: inline-block; padding: .16rem .6rem; border-radius: var(--r-pill); font-size: .74rem; font-weight: 700; letter-spacing: .01em; background: var(--c-brand-weak); color: var(--c-brand-text); text-transform: capitalize; }
.badge-ok { background: var(--c-ok-bg); color: var(--c-ok-fg); }
.badge-warn { background: var(--c-warn-bg); color: var(--c-warn-fg); }
.badge-danger { background: var(--c-bad-bg); color: var(--c-bad-fg); }

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-2);
    overflow: hidden;
    margin-top: 1rem;
}
.data-table th, .data-table td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--c-line-soft); font-size: .92rem; }
.data-table thead th {
    background: var(--c-surface-2);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-muted);
    font-weight: 700;
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table .empty { text-align: center; color: var(--c-muted); padding: 1.75rem; }
.data-table .inline-form { display: inline; }

.detail-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.75rem;
    max-width: 640px;
    box-shadow: var(--sh-1);
}
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: .55rem 1rem; margin: 0 0 1rem; }
.detail-list dt { color: var(--c-muted); font-size: .88rem; }
.detail-list dd { margin: 0; color: var(--c-ink); }
.back-link { margin: 0 0 1rem; font-size: .9rem; }

/* Checkout */
.checkout { max-width: 640px; }
.checkout-summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.15rem 1.25rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-2);
}
.checkout-amount { font-size: 1.7rem; font-weight: 820; color: var(--c-ink); }
.checkout-currency { margin: 1.25rem 0; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.checkout-currency a { text-decoration: none; border: 1px solid var(--c-line); border-radius: var(--r-1); padding: .25rem .7rem; color: var(--c-body); }
.checkout-currency a.is-current { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.checkout-form h2 { font-size: 1.05rem; margin: 1.75rem 0 .6rem; }
.panel .checkout-form > h2:first-child { margin-top: 0; }
.gateway-option { border: 1px solid var(--c-line); border-radius: var(--r-2); padding: .9rem 1.1rem; margin-bottom: .7rem; background: var(--c-surface); }
.gateway-option:has(input:checked) { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-weak); }
.checkbox-label { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.gateway-detail { margin-top: .5rem; font-size: .9rem; color: var(--c-muted); }
.account-details {
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-1);
    padding: .7rem .85rem;
    white-space: pre-wrap;
    font-size: .85rem;
    overflow-x: auto;
}
.checkout-form input[type="file"] { display: block; margin: .5rem 0; }

/* =====================================================================
   Long-form prose pages
   ===================================================================== */
.prose { max-width: 45rem; margin: 3rem auto 4rem; }
.prose h1 { font-size: clamp(1.9rem, 3.5vw, 2.4rem); margin: 0 0 .3rem; }
.prose-meta { color: var(--c-muted); font-size: .85rem; margin: 0 0 2.25rem; }
.prose h2 { font-size: 1.35rem; margin: 2.25rem 0 .6rem; }
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--c-body); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose a { color: var(--c-brand-text); }

/* =====================================================================
   Download page
   ===================================================================== */
.dl { padding: 3rem 0 4rem; }
.dl .lead { max-width: 46rem; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2rem 0; }
.dl-card {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.5rem;
    box-shadow: var(--sh-1);
}
.dl-card-match { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand), var(--sh-2); }
.dl-badge { margin: 0 0 .5rem; font-size: .74rem; font-weight: 750; color: var(--c-brand-text); text-transform: uppercase; letter-spacing: .05em; }
.dl-card h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: .25rem .85rem; margin: 0 0 1rem; font-size: .9rem; }
.dl-meta dt { color: var(--c-muted); }
.dl-meta dd { margin: 0; color: var(--c-ink); }
.dl-soon { font-weight: 750; color: var(--c-muted); margin: .5rem 0; }
.dl-hash { margin: .85rem 0 0; font-size: .75rem; }
.dl-hash span { display: block; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.dl-hash code { word-break: break-all; font-size: .72rem; font-family: ui-monospace, Consolas, Menlo, monospace; }
.dl-links { color: var(--c-muted); }
.dl-req {
    margin-top: 3rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.9rem;
}
.dl-req h2 { margin-top: 0; }
.dl-req ul { padding-left: 1.2rem; color: var(--c-muted); }
.dl-links { margin-top: 1.5rem; }

/* =====================================================================
   Contact
   ===================================================================== */
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .field { margin: 0 0 1rem; }
.contact-form label { display: block; font-weight: 620; margin-bottom: .35rem; color: var(--c-ink); }
.contact-form textarea { resize: vertical; }
.contact-form button.btn { margin-top: .5rem; }

/* =====================================================================
   Site pages — shared header band, side rail, split + auth layouts
   (pricing · download · contact · legal/custom · sign-up / log-in)
   ===================================================================== */
.page-band {
    background:
        radial-gradient(44rem 22rem at 84% -25%, rgba(63,61,207,.12), transparent 62%),
        radial-gradient(30rem 18rem at 4% 0%, rgba(138,124,243,.10), transparent 60%),
        linear-gradient(180deg, #fbfbff 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-line);
}
.page-head { max-width: 48rem; padding: 3.5rem 0 2.75rem; }
.page-head.is-centered { margin-inline: auto; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 2.95rem); font-weight: 820; margin: 0 0 .75rem; }
.page-head-lead { font-size: 1.13rem; line-height: 1.6; color: var(--c-muted); margin: 0; }

.side-card {
    background: var(--c-surface-2);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    padding: 1.6rem;
}
.side-card + .side-card { margin-top: 1rem; }
.side-card h2, .side-card h3 { font-size: .98rem; margin: 0 0 .55rem; }
.side-card p { font-size: .9rem; color: var(--c-muted); margin: 0 0 .5rem; }
.side-card p:last-child { margin-bottom: 0; }
.side-card ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; color: var(--c-muted); }
.side-card li { margin: .3rem 0; }
.side-card a { font-weight: 600; }

.page-split {
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem 0 4rem;
}
.page-split-aside { position: sticky; top: 96px; }
.page-split-aside h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 .6rem; }
.page-split-aside .page-head-lead { font-size: 1rem; margin-bottom: 1.6rem; }

.form-panel {
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--r-3);
    box-shadow: var(--sh-1);
    padding: 2rem;
}
.form-panel > :first-child { margin-top: 0; }

/* Pricing extras */
.pricing-reassure {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .55rem 1.75rem; margin: 2.5rem 0 0; padding: 0; list-style: none;
}
.pricing-reassure li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 550; color: var(--c-muted); }
.pricing-reassure li::before {
    content: ""; width: 9px; height: 9px; flex: none;
    border-radius: 3px; background: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-weak);
}
.pricing-foot { margin-top: 3rem; text-align: center; }
.pricing-foot .plan-note { display: block; margin: 0 auto 1.25rem; max-width: 42rem; }

/* Legal / custom (prose) pages */
.prose-head { max-width: 45rem; margin: 0 auto; padding: 3rem 0 1.75rem; }
.prose-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); margin: 0 0 .5rem; }
.prose-head .prose-meta { margin: 0; }
.prose-head + .prose { margin-top: 0; border-top: 1px solid var(--c-line); padding-top: 2rem; }

/* Auth split (sign-up / log-in / reset / verify) */
.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 62rem;
    margin: 3.25rem auto 4rem;
    border: 1px solid var(--c-line);
    border-radius: var(--r-4);
    overflow: hidden;
    box-shadow: var(--sh-2);
    background: var(--c-surface);
}
.auth-aside {
    padding: 2.75rem 2.5rem;
    color: #fff;
    background:
        radial-gradient(28rem 20rem at 0% 0%, rgba(138,124,243,.42), transparent 60%),
        var(--c-ink-panel);
    display: flex;
    flex-direction: column;
}
.auth-aside .brand { color: #fff; margin-bottom: 1.6rem; }
.auth-aside .brand-name { color: #fff; }
.auth-aside h2 { color: #fff; font-size: 1.4rem; margin: 0 0 .7rem; }
.auth-aside > p { color: var(--c-on-panel); margin: 0 0 1.5rem; font-size: .95rem; }
.auth-aside ul { list-style: none; margin: auto 0 0; padding: 0; }
.auth-aside li { position: relative; padding-left: 1.6rem; margin: .7rem 0; color: #e9eaf7; font-size: .92rem; }
.auth-aside li::before {
    content: ""; position: absolute; left: 0; top: .4rem;
    width: 10px; height: 10px; border-radius: 3px; background: var(--c-accent);
}
.auth-shell .auth-card { margin: 0; border: 0; border-radius: 0; box-shadow: none; align-self: center; width: 100%; }

/* When a header band precedes the body section, drop its extra top padding. */
.page-band + .pricing,
.page-band + .dl { padding-top: 2.75rem; }

@media (max-width: 860px) {
    .page-split { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 2.25rem; }
    .page-split-aside { position: static; }
    .auth-shell { grid-template-columns: 1fr; max-width: 30rem; }
    .auth-aside { display: none; }
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
    margin-top: 5rem;
    padding: 3.5rem 0 2rem;
    background: var(--c-ink-panel);
    color: var(--c-on-panel);
    font-size: .9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand-block .brand { color: #fff; }
.footer-brand-block .brand-name { color: #fff; }
.footer-tag { margin: .7rem 0 0; font-size: .9rem; color: var(--c-on-panel); max-width: 22rem; }
.footer-grid nav h2 {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #fff;
    opacity: .7;
    margin: 0 0 .7rem;
}
.footer-grid nav a { display: block; text-decoration: none; color: var(--c-on-panel); font-size: .9rem; padding: .2rem 0; }
.footer-grid nav a:hover { color: #fff; }
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}
.footer-legal p { margin: 0; font-size: .85rem; color: var(--c-on-panel); opacity: .8; }

/* =====================================================================
   Error pages
   ===================================================================== */
.error-page { text-align: center; padding: 5rem 0; }
.error-page .error-code {
    font-size: 3.25rem;
    font-weight: 850;
    letter-spacing: -.03em;
    color: var(--c-brand-text);
    margin: 0;
}
.error-page h1 { font-size: 1.5rem; margin: .3rem 0 1rem; }
.error-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin: 1.25rem 0; }

/* =====================================================================
   Admin content editor bits reused on the public side
   ===================================================================== */
.subtabs { display: flex; gap: .25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--c-line); }
.subtabs a { padding: .55rem .95rem; text-decoration: none; color: var(--c-muted); border-bottom: 2px solid transparent; }
.subtabs a.active { color: var(--c-ink); border-bottom-color: var(--c-brand); font-weight: 600; }
.pair { border-left: 3px solid var(--c-line); padding-left: .95rem; margin: .95rem 0; }
.faq-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: 1rem; margin-bottom: .95rem; }
.faq-row-new { display: block; }
.faq-row-side { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; font-size: .85rem; }
.faq-row-actions { margin-top: .6rem; }
label.checkbox { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; font-weight: 400; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 940px) {
    .nav-toggle { display: grid; place-items: center; }
    .site-nav {
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        padding: .75rem 1.5rem 1.1rem;
        background: var(--c-surface);
        border-bottom: 1px solid var(--c-line);
        box-shadow: var(--sh-2);
        display: none;
    }
    .site-header.is-open .site-nav { display: flex; }
    .site-nav a { padding: .7rem .5rem; font-size: 1rem; }
    .site-nav .site-nav-sep { width: auto; height: 1px; margin: .35rem 0; }
    .site-nav a.nav-cta { margin: .5rem 0 0; padding: .7rem; text-align: center; }
    .inline-form { display: block; }
    .linklike { text-align: left; padding: .7rem .5rem; }

    .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 3.5rem; }
    .hero-figure { order: -1; }
    .hero-chip-tl { left: 0; }
    .hero-chip-br { right: 0; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .step-list { grid-template-columns: 1fr; gap: 1.75rem; }
    .step-list li:not(:last-child)::after { display: none; }
    .faq-layout { grid-template-columns: 1fr; gap: 1.9rem; }
    .faq-intro { position: static; }
    .faq-help { max-width: 32rem; }
    .dl-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand-block { grid-column: 1 / -1; }
    .features, .steps, .pricing-preview, .faq, .final-cta { padding: 3.5rem 0; }
}

@media (max-width: 560px) {
    .container { padding: 0 1.15rem; }
    .hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .hero-chip { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pp-card, .plan-card { flex-basis: 100%; max-width: 420px; }
    .final-cta-panel { padding: 2.25rem 1.35rem; }
    .auth-card { margin: 2rem auto; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
