/* ==========================================================================
   GetXtra Script Store — design system
   Plain CSS, no build step. Light and dark themes, fluid type, mobile first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
    /*
     * Brand — a single deep navy, used sparingly.
     * Restraint is what reads as professional: one accent colour on a mostly
     * neutral page, rather than a gradient on every surface.
     */
    --brand:         #14418f;
    --brand-strong:  #0f3474;
    --brand-soft:    #eef3fa;
    --brand-border:  rgba(20, 65, 143, .22);
    /* Text that sits on top of --brand. Flips in dark mode, where the brand
       colour is light and white text on it would be unreadable. */
    --brand-on:      #ffffff;
    --accent:        #14418f;
    --accent-soft:   #eef3fa;

    /* Surfaces — cool neutral greys, no blue-violet cast */
    --surface-1:     #ffffff;
    --surface-2:     #f7f8fa;
    --surface-3:     #eef0f4;
    --surface-raised:#ffffff;
    --surface-inset: #fbfcfd;
    --bg:            var(--surface-1);
    --bg-tint:       var(--surface-2);
    --bg-dark:       #0e1621;

    /* Ink */
    --ink:           #111823;
    --ink-soft:      #475364;
    --ink-mute:      #6f7b8c;
    --ink-invert:    #ffffff;

    /* Lines */
    --line:          #e3e7ec;
    --line-soft:     #eef1f4;
    --line-strong:   #cfd6de;

    /* Semantic — desaturated so they inform without shouting */
    --green:         #106a45;
    --green-bg:      #f0f8f4;
    --green-border:  #bfe0ce;
    --amber:         #8a5a08;
    --amber-bg:      #fdf7ec;
    --amber-border:  #ecd8ac;
    --red:           #b3261e;
    --red-bg:        #fdf3f2;
    --red-border:    #edc9c6;
    --blue:          #14418f;
    --blue-bg:       #eef3fa;
    --blue-border:   #c6d5ea;
    --star:          #b8860b;

    /* Radii — tight. Big pills look consumer; small radii look like tooling. */
    --r-sm:  4px;
    --r:     6px;
    --r-lg:  8px;
    --r-xl:  12px;
    --r-pill: 999px;

    /* Elevation — borders do most of the work, shadows only hint at depth */
    --shadow-xs: 0 1px 1px rgba(17, 24, 35, .04);
    --shadow-sm: 0 1px 2px rgba(17, 24, 35, .05);
    --shadow:    0 1px 2px rgba(17, 24, 35, .04), 0 4px 12px rgba(17, 24, 35, .05);
    --shadow-lg: 0 2px 4px rgba(17, 24, 35, .05), 0 12px 32px rgba(17, 24, 35, .09);
    --shadow-brand: 0 2px 6px rgba(20, 65, 143, .18);

    /* Type */
    --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --fast: .16s var(--ease);
    --slow: .32s var(--ease);

    /* Layout */
    --header-h: 68px;
    --gutter: clamp(16px, 4vw, 26px);
    --section-y: clamp(46px, 7vw, 84px);

    color-scheme: light;
}

/* "auto" follows the OS, so let native widgets (scrollbars, date pickers) follow too. */
:root[data-theme="auto"] { color-scheme: light dark; }

/*
 * Dark theme.
 *
 * The token list is written out twice on purpose — once for the system
 * preference and once for an explicit choice. light-dark() would remove the
 * duplication, but if a visitor's browser does not support it every colour on
 * the page becomes invalid at once. For something other people ship to their
 * own customers, a few repeated lines are the cheaper trade.
 */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --brand:         #7ea8e8;
        --brand-strong:  #9dbef0;
        --brand-soft:    #142338;
        --brand-border:  rgba(126, 168, 232, .26);
        --brand-on:      #0d1117;
        --accent:        #7ea8e8;
        --accent-soft:   #142338;

        --surface-1:     #0d1117;
        --surface-2:     #131922;
        --surface-3:     #1b232e;
        --surface-raised:#151c26;
        --surface-inset: #10161e;
        --bg-dark:       #090d12;

        --ink:           #e6eaf0;
        --ink-soft:      #a8b3c1;
        --ink-mute:      #7d8899;

        --line:          #232c38;
        --line-soft:     #1a222c;
        --line-strong:   #333e4d;

        --green:         #4ec08c;
        --green-bg:      #0d2119;
        --green-border:  #1e4a35;
        --amber:         #d9a441;
        --amber-bg:      #241c0c;
        --amber-border:  #4d3c12;
        --red:           #e88b84;
        --red-bg:        #24110f;
        --red-border:    #55231f;
        --blue:          #7ea8e8;
        --blue-bg:       #142338;
        --blue-border:   #2b4468;
        --star:          #d9a441;

        --shadow-xs: 0 1px 1px rgba(0, 0, 0, .5);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .55);
        --shadow:    0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .5);
        --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .6);
        --shadow-brand: 0 2px 6px rgba(0, 0, 0, .5);

        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --brand:         #7ea8e8;
    --brand-strong:  #9dbef0;
    --brand-soft:    #142338;
    --brand-border:  rgba(126, 168, 232, .26);
    --brand-on:      #0d1117;
    --accent:        #7ea8e8;
    --accent-soft:   #142338;

    --surface-1:     #0d1117;
    --surface-2:     #131922;
    --surface-3:     #1b232e;
    --surface-raised:#151c26;
    --surface-inset: #10161e;
    --bg-dark:       #090d12;

    --ink:           #e6eaf0;
    --ink-soft:      #a8b3c1;
    --ink-mute:      #7d8899;

    --line:          #232c38;
    --line-soft:     #1a222c;
    --line-strong:   #333e4d;

    --green:         #4ec08c;
    --green-bg:      #0d2119;
    --green-border:  #1e4a35;
    --amber:         #d9a441;
    --amber-bg:      #241c0c;
    --amber-border:  #4d3c12;
    --red:           #e88b84;
    --red-bg:        #24110f;
    --red-border:    #55231f;
    --blue:          #7ea8e8;
    --blue-bg:       #142338;
    --blue-border:   #2b4468;
    --star:          #d9a441;

    --shadow-xs: 0 1px 1px rgba(0, 0, 0, .5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .55);
    --shadow:    0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .6);
    --shadow-brand: 0 2px 6px rgba(0, 0, 0, .5);

    color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface-1);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--surface-3); }

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

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.18;
    letter-spacing: -.022em;
    font-weight: 800;
    text-wrap: balance;
}
h1 { font-size: clamp(1.95rem, 1.2rem + 2.4vw, 3.15rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

code, pre, .mono { font-family: var(--mono); font-size: .9em; }
code {
    background: var(--surface-3); color: var(--ink);
    padding: .14em .42em; border-radius: 6px;
}
hr.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

::selection { background: var(--brand); color: var(--brand-on); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--brand); color: var(--brand-on); padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   3. Layout & utilities
   -------------------------------------------------------------------------- */

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; }
.container-wide { max-width: 1320px; }

.section { padding: var(--section-y) 0; }
.section-tint { background: var(--surface-2); }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 34px);
}
.section-head h2 { margin-bottom: 6px; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center > div { max-width: 640px; }

.link-more {
    font-weight: 650; font-size: .95rem; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 4px;
}
.link-more:hover { text-decoration: none; }
.link-more .icon { transition: transform var(--fast); }
.link-more:hover .icon { transform: translateX(3px); }

.muted { color: var(--ink-mute); }
.small, small { font-size: .86rem; }
.block { display: block; }
.text-right { text-align: right; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
/*
 * Hidden below the header breakpoint.
 *
 * Written as max-width rather than "none, then restore", because every element
 * using this is also a .btn — and .btn sets its own display further down the
 * file, which would win on source order and leave the element visible. Scoping
 * the rule to small screens means nothing has to be restored above them.
 */
@media (max-width: 859px) {
    .hide-mobile { display: none !important; }
}
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* --------------------------------------------------------------------------
   Icons — inline SVG from app/icons.php, inherits currentColor
   -------------------------------------------------------------------------- */

.icon {
    flex: none; display: inline-block; vertical-align: -.16em;
    stroke: currentColor; fill: none;
}
.icon.is-filled { fill: currentColor; }
.icon.is-muted { color: var(--ink-mute); }

/* Buttons, badges and list items that pair an icon with a label. */
.btn .icon, .badge .icon, .chip .icon { vertical-align: -.19em; }

.icon-text { display: inline-flex; align-items: center; gap: 7px; }

/* Feature and trust lists: the tick sits in its own column, so wrapped
   lines stay aligned with the text rather than sliding under the icon. */
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.icon-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.icon-list .icon { margin-top: .18em; color: var(--green); }
.icon-list-brand .icon { color: var(--brand); }
.icon-list-invert .icon { color: rgba(255, 255, 255, .82); }

/* Star ratings */
.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); }
.stars .star-off { color: var(--line-strong); }

/* Reveal on scroll — opt-in with data-reveal, safe without JS. */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-visible {
    opacity: 1; transform: none;
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border: 1px solid transparent; border-radius: var(--r-sm);
    font: inherit; font-weight: 650; font-size: .96rem; line-height: 1.25;
    cursor: pointer; text-align: center; text-decoration: none; white-space: nowrap;
    transition: transform var(--fast), box-shadow var(--slow), background var(--fast), border-color var(--fast), color var(--fast);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.995); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-primary {
    background: var(--brand);
    color: var(--brand-on); box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-strong); box-shadow: var(--shadow-sm); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand-border); }
.btn-outline:hover { background: var(--brand-soft); border-color: var(--brand); }

.btn-ghost { background: var(--surface-3); color: var(--ink); }
.btn-ghost:hover { background: var(--line-strong); }

.btn-danger { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: var(--r); }
.btn-sm { padding: 8px 14px; font-size: .88rem; }
.btn-xs { padding: 5px 10px; font-size: .8rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn-block + .btn-block { margin-top: 9px; }

.btn-arrow { transition: transform var(--fast); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Icon buttons in the header */
.icon-btn {
    display: inline-grid; place-items: center; position: relative;
    width: 40px; height: 40px; flex: none;
    background: transparent; color: var(--ink-soft);
    border: 1px solid transparent; border-radius: var(--r-sm);
    cursor: pointer; transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn svg {
    width: 20px; height: 20px; fill: none;
    stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.icon-badge {
    position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px;
    display: grid; place-items: center; padding: 0 4px;
    background: var(--brand); color: var(--brand-on);
    border-radius: var(--r-pill); font-size: .68rem; font-weight: 800;
}
.icon-badge[hidden] { display: none; }

/* Theme toggle shows one icon at a time */
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: none; }
    :root:not([data-theme="light"]) .icon-moon { display: block; }
}

/* --------------------------------------------------------------------------
   5. Badges, chips, status
   -------------------------------------------------------------------------- */

.badge {
    display: inline-block; padding: 3px 9px; border-radius: var(--r-pill);
    font-size: .71rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
    background: var(--surface-3); color: var(--ink-soft);
}
.badge-accent { background: var(--brand); color: var(--brand-on); }
.badge-warning { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-save   { background: var(--green-bg); color: var(--green); }
.badge-soft   { background: var(--brand-soft); color: var(--brand); }
.badge-danger { background: var(--red-bg); color: var(--red); }

.pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 15px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
    color: #fff; font-size: .84rem; font-weight: 600; margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.chip {
    display: inline-block; padding: 5px 11px; border-radius: 8px;
    background: var(--surface-3); color: var(--ink-soft); font-size: .8rem; font-weight: 600;
}
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: var(--r-pill);
    background: var(--surface-1); border: 1px solid var(--line);
    color: var(--ink-soft); font-size: .9rem; font-weight: 600;
}
.chip-link:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.chip-link.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-on); }
.chip-count { opacity: .65; font-size: .8rem; }

.eyebrow {
    display: inline-block; font-size: .76rem; font-weight: 750; letter-spacing: .08em;
    text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}

.status {
    display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
    font-size: .75rem; font-weight: 700; text-transform: capitalize; white-space: nowrap;
}
.status-paid, .status-active   { background: var(--green-bg); color: var(--green); }
.status-pending               { background: var(--amber-bg); color: var(--amber); }
.status-failed, .status-revoked, .status-cancelled { background: var(--red-bg); color: var(--red); }
.status-refunded, .status-expired { background: var(--surface-3); color: var(--ink-soft); }

.rating { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); }
.rating:hover { text-decoration: none; }
.rating-stars { color: var(--star); display: inline-flex; gap: 1px; }
.rating-value { font-weight: 700; color: var(--ink); }
.dot, .meta-dot { color: var(--line-strong); }
.icon.is-yes { color: var(--green); }
.icon.is-no  { color: var(--ink-mute); opacity: .55; }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 90;
    background: color-mix(in srgb, var(--surface-1) 88%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--slow);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid; place-items: center; width: 38px; height: 38px; flex: none;
    border-radius: var(--r-sm); background: var(--brand);
    color: var(--brand-on); font-weight: 800; font-size: .92rem; letter-spacing: -.02em;
    box-shadow: var(--shadow-brand);
}
.brand-text strong { display: block; font-size: 1rem; line-height: 1.2; letter-spacing: -.02em; }
.brand-text small { display: block; font-size: .73rem; color: var(--ink-mute); }
/* Uploaded logo (Settings → Branding). The dark variant swaps in with the theme. */
.brand-logo { display: block; height: 38px; width: auto; max-width: 220px; object-fit: contain; background: none; }
.brand-logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo-light { display: none; }
:root[data-theme="dark"] .brand-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand-logo-light { display: none; }
    :root:not([data-theme="light"]) .brand-logo-dark { display: block; }
}
.brand-footer .brand-logo { height: 34px; }
@media (max-width: 420px) { .brand-logo { max-width: 160px; } }

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

.nav-toggle {
    display: grid; gap: 4px; padding: 10px; flex: none;
    background: var(--surface-3); border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--fast), opacity var(--fast); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface-1); border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 20px; box-shadow: var(--shadow-lg);
}
.site-nav > a {
    padding: 12px 4px; color: var(--ink-soft); font-weight: 600;
    border-bottom: 1px solid var(--line-soft);
}
.site-nav > a:hover, .site-nav > a.is-active { color: var(--brand); text-decoration: none; }
.nav-mobile-actions { display: flex; gap: 9px; margin-top: 14px; }
.nav-mobile-actions .btn { flex: 1; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    width: 100%; text-align: left; padding: 12px 4px;
    background: none; border: 0; border-bottom: 1px solid var(--line-soft);
    font: inherit; font-weight: 600; color: var(--ink-soft); cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}
.chevron {
    width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px); transition: transform var(--fast);
}
.nav-dropdown.is-open .chevron { transform: rotate(225deg) translateY(-2px); }
.nav-dropdown-menu { display: none; padding: 4px 0 8px 14px; }
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 9px 0; color: var(--ink-soft); font-size: .94rem; }

@media (min-width: 1000px) {
    .nav-toggle { display: none; }
    .site-nav {
        display: flex !important; flex-direction: row; align-items: center; gap: 24px;
        margin-left: 14px; position: static; padding: 0; box-shadow: none; border: 0; background: none;
    }
    .site-nav > a { padding: 6px 0; border: 0; font-size: .95rem; position: relative; }
    .site-nav > a::after {
        content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
        background: var(--brand); border-radius: 2px; transition: right var(--fast);
    }
    .site-nav > a:hover::after, .site-nav > a.is-active::after { right: 0; }
    .nav-mobile-actions { display: none; }
    .nav-dropdown-toggle { width: auto; padding: 6px 0; border: 0; }
    .nav-dropdown-menu {
        position: absolute; top: calc(100% + 14px); left: -16px; min-width: 240px;
        background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r);
        box-shadow: var(--shadow-lg); padding: 8px; z-index: 20;
    }
    .nav-dropdown-menu a { padding: 10px 12px; border-radius: 8px; }
    .nav-dropdown-menu a:hover { background: var(--surface-2); text-decoration: none; }
}

/* --------------------------------------------------------------------------
   7. Search overlay
   -------------------------------------------------------------------------- */

.search-overlay {
    position: fixed; inset: 0; z-index: 120;
    background: color-mix(in srgb, var(--bg-dark) 55%, transparent);
    backdrop-filter: blur(6px);
    padding: clamp(60px, 12vh, 130px) var(--gutter) 20px;
    overflow-y: auto;
}
.search-overlay[hidden] { display: none; }

.search-panel {
    max-width: 660px; margin: 0 auto;
    background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: searchIn .22s var(--ease);
}
@keyframes searchIn { from { opacity: 0; transform: translateY(-10px) scale(.99); } }

.search-form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink-mute); stroke-width: 1.9; stroke-linecap: round; }
.search-form input {
    flex: 1; border: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); padding: 6px 0;
}
.search-form input:focus { outline: none; }

.search-results { max-height: min(60vh, 460px); overflow-y: auto; padding: 8px; }
.search-hint { padding: 22px 14px; margin: 0; color: var(--ink-mute); text-align: center; font-size: .92rem; }

.search-group-label {
    font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-mute); padding: 12px 12px 6px;
}
.search-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border-radius: var(--r-sm); color: var(--ink);
}
.search-item:hover, .search-item:focus-visible { background: var(--surface-2); text-decoration: none; }
.search-item img, .search-item .search-thumb {
    width: 52px; height: 34px; border-radius: 7px; object-fit: cover; flex: none;
    background: var(--brand-soft); display: grid; place-items: center; color: var(--brand); font-weight: 800;
}
.search-item-body { flex: 1; min-width: 0; }
.search-item-title { display: block; font-weight: 650; font-size: .95rem; }
.search-item-sub { display: block; font-size: .82rem; color: var(--ink-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-item-price { font-weight: 800; font-size: .92rem; flex: none; }
.search-all { display: block; padding: 12px; text-align: center; font-weight: 650; border-top: 1px solid var(--line-soft); }

/* --------------------------------------------------------------------------
   8. Flash messages
   -------------------------------------------------------------------------- */

.flash-wrap { padding-top: 18px; }
.flash {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 16px; border-radius: var(--r); margin-bottom: 10px;
    font-size: .95rem; border: 1px solid; box-shadow: var(--shadow-xs);
    animation: flashIn .3s var(--ease);
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } }
.flash-success { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.flash-error   { background: var(--red-bg);   border-color: var(--red-border);   color: var(--red); }
.flash-warning { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.flash-info    { background: var(--blue-bg);  border-color: var(--blue-border);  color: var(--blue); }
.flash a { color: inherit; text-decoration: underline; }
.flash-text { flex: 1; }
.flash-close {
    background: none; border: 0; font-size: 1.3rem; line-height: 1;
    cursor: pointer; color: inherit; opacity: .55; padding: 0 2px;
}
.flash-close:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative; overflow: hidden; color: #fff;
    padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
    background: #0e1621;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hero::after {
    /* A faint engineering grid. Quieter than a gradient and it does not date. */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(1000px 500px at 78% 0%, #000 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(1000px 500px at 78% 0%, #000 0%, transparent 78%);
}
.hero-inner { display: grid; gap: clamp(30px, 5vw, 54px); position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero-sub { font-size: clamp(1rem, .96rem + .35vw, 1.14rem); color: rgba(255, 255, 255, .88); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-checks li { color: rgba(255, 255, 255, .9); font-size: .96rem; }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--r); padding: 20px 18px; text-align: center;
    backdrop-filter: blur(8px);
}
.stat-card strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; }
.stat-card span { font-size: .79rem; color: rgba(255, 255, 255, .78); }

@media (min-width: 940px) {
    .hero-inner { grid-template-columns: 1.35fr .65fr; align-items: center; }
}

/* --------------------------------------------------------------------------
   10. Cards: featured, scripts, categories
   -------------------------------------------------------------------------- */

.featured-list { display: grid; gap: 20px; }
.featured-card {
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform var(--slow), box-shadow var(--slow), border-color var(--slow);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-border); }
.featured-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.featured-card:hover .featured-media img { transform: scale(1.04); }
.featured-media .badge { position: absolute; top: 12px; left: 12px; }
.featured-placeholder {
    display: grid; place-items: center; height: 100%;
    background: var(--surface-3);
}
.featured-placeholder span { font-size: 2.4rem; font-weight: 800; color: var(--brand); opacity: .55; }
.featured-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.featured-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.featured-body h3 a { color: var(--ink); }
.featured-body > p { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.featured-footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.featured-actions { display: flex; gap: 8px; }

@media (min-width: 760px) { .featured-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .featured-list { grid-template-columns: repeat(3, 1fr); } }

.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-mrp { color: var(--ink-mute); text-decoration: line-through; font-size: .9rem; }
.price-now { font-size: 1.26rem; font-weight: 800; color: var(--ink); letter-spacing: -.025em; }
.price-now-lg { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; margin: 6px 0; }

.category-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }
.category-card {
    position: relative; background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r); padding: 24px 20px; color: var(--ink);
    display: flex; flex-direction: column; gap: 7px; overflow: hidden;
    transition: border-color var(--fast), transform var(--slow), box-shadow var(--slow);
}
.category-card::before {
    content: ''; position: absolute; inset: 0;
    background: var(--brand-soft);
    opacity: 0; transition: opacity var(--slow);
}
.category-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card:hover::before { opacity: 1; }
.category-card > * { position: relative; }
.category-icon { display: block; font-size: 1.5rem; line-height: 1; color: var(--brand); margin-bottom: 2px; }
.category-icon .icon { display: block; }
.category-card small { color: var(--ink-mute); }
.category-count { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--brand); }

.script-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.script-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow-xs);
    transition: transform var(--slow), box-shadow var(--slow), border-color var(--slow);
}
.script-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-border); }
.script-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.script-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.script-card:hover .script-card-media img { transform: scale(1.05); }
.script-card-placeholder {
    display: grid; place-items: center; height: 100%; font-size: 2rem; font-weight: 800;
    color: var(--brand); opacity: .5; background: var(--surface-3);
}
.script-card-badge { position: absolute; top: 12px; left: 12px; }
.script-card-save  { position: absolute; bottom: 12px; left: 12px; }
.script-card-body { padding: 18px 18px 12px; flex: 1; }
.script-card-category {
    font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute);
}
.script-card-title { font-size: 1.06rem; margin: 7px 0; letter-spacing: -.02em; }
.script-card-title a { color: var(--ink); }
.script-card-tagline { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.script-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-top: 14px; font-size: .84rem; color: var(--ink-mute);
}
.script-card-version { font-family: var(--mono); font-size: .78rem; }
.script-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-top: 1px solid var(--line-soft); background: var(--surface-inset);
}

/* Wishlist heart */
.wish-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: grid; place-items: center; width: 36px; height: 36px;
    background: color-mix(in srgb, var(--surface-1) 82%, transparent);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line); border-radius: var(--r-pill);
    cursor: pointer; color: var(--ink-mute);
    transition: color var(--fast), transform var(--fast), border-color var(--fast);
}
.wish-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wish-btn:hover { color: var(--red); border-color: var(--red-border); transform: scale(1.08); }
.wish-btn.is-saved { color: var(--red); border-color: var(--red-border); }
.wish-btn.is-saved svg { fill: var(--red); }
.wish-btn.is-pulsing { animation: pop .34s var(--ease); }
@keyframes pop { 40% { transform: scale(1.28); } }

.wish-inline.is-saved { color: var(--red); }
.wish-inline svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wish-inline.is-saved svg { fill: var(--red); }

/* --------------------------------------------------------------------------
   11. Home page sections
   -------------------------------------------------------------------------- */

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step {
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r);
    padding: 26px 22px; box-shadow: var(--shadow-xs);
}
.step-no {
    display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
    border-radius: var(--r-sm); background: var(--brand);
    color: var(--brand-on); font-weight: 800;
}
.step p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

.why-grid { display: grid; gap: 32px; }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 62ch; }
.why-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); margin-top: 28px; }
.why-item { display: flex; gap: 14px; }
.why-item > span { font-size: 1.5rem; line-height: 1.2; flex: none; }
.why-item strong { display: block; margin-bottom: 3px; }
.why-item p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.testimonial-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.testimonial {
    margin: 0; background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-xs);
}
.testimonial blockquote { margin: 10px 0 16px; font-size: .96rem; color: var(--ink-soft); }
.testimonial figcaption strong { display: block; font-size: .95rem; }
.testimonial figcaption small { color: var(--ink-mute); }

.faq-list { display: grid; gap: 10px; }
.faq {
    background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r); overflow: hidden; transition: border-color var(--fast);
}
.faq[open] { border-color: var(--brand-border); }
.faq summary {
    padding: 17px 20px; font-weight: 650; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+'; font-size: 1.4rem; color: var(--brand); line-height: 1; flex: none;
    transition: transform var(--fast);
}
.faq[open] summary::after { content: '−'; }
.faq[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-answer { padding: 16px 20px 20px; color: var(--ink-soft); font-size: .95rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.cta-band {
    background: var(--bg-dark);
    color: #fff; padding: clamp(40px, 6vw, 60px) 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .76); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .42); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* --------------------------------------------------------------------------
   12. Footer & floating action
   -------------------------------------------------------------------------- */

.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .66); padding: clamp(40px, 6vw, 60px) 0 26px; font-size: .93rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer-about { max-width: 340px; }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer .brand-text strong { color: #fff; }
.footer-trust {
    list-style: none; padding: 0; margin: 16px 0 0;
    display: grid; gap: 7px; font-size: .84rem; color: rgba(255, 255, 255, .56);
}
.footer-trust li { display: flex; align-items: center; gap: 8px; }
.footer-trust .icon { color: rgba(255, 255, 255, .4); }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-socials { display: flex; gap: 14px; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom {
    margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    font-size: .82rem; color: rgba(255, 255, 255, .44);
}
.footer-bottom p { margin: 0; }
.footer-dev a { font-weight: 600; }


/* --------------------------------------------------------------------------
   13. Page head & breadcrumbs
   -------------------------------------------------------------------------- */

.page-head {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 44px) 0 clamp(24px, 3vw, 34px);
}
.page-head-compact { padding: 26px 0 22px; }
.page-head h1 { margin-bottom: 10px; }
.page-head-sub { color: var(--ink-soft); margin: 0; max-width: 76ch; }

.breadcrumb {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    font-size: .85rem; color: var(--ink-mute); margin-bottom: 14px;
}
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--line-strong); }
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .9rem; font-weight: 600; margin-bottom: 10px;
}
.back-link:hover { text-decoration: none; }
.back-link .icon { transition: transform var(--fast); }
.back-link:hover .icon { transform: translateX(-3px); }

/* --------------------------------------------------------------------------
   14. Cards, forms, notices, tables
   -------------------------------------------------------------------------- */

.card {
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(20px, 3vw, 26px); box-shadow: var(--shadow-xs); margin-bottom: 20px;
}
.card:last-child { margin-bottom: 0; }
.card h2 { font-size: 1.22rem; }
.card-sub { color: var(--ink-soft); font-size: .93rem; margin-top: -4px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head h2 { margin: 0; }
.info-card { background: var(--surface-2); }
.trust-card { background: var(--green-bg); border-color: var(--green-border); }

.field { display: block; margin-bottom: 17px; }
.field-label { display: block; font-size: .87rem; font-weight: 650; margin-bottom: 7px; color: var(--ink); }
.field-hint { display: block; margin-top: 6px; color: var(--ink-mute); font-size: .82rem; }
.field-error { display: block; margin-top: 6px; color: var(--red); font-size: .84rem; font-weight: 600; }

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password],
input[type=number], input[type=search], input[type=date], input[type=datetime-local],
select, textarea {
    width: 100%; padding: 12px 14px; font: inherit; font-size: .96rem; color: var(--ink);
    background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    transition: border-color var(--fast), box-shadow var(--fast);
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
input:disabled, textarea:disabled { background: var(--surface-3); color: var(--ink-mute); }
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
textarea.mono { font-family: var(--mono); font-size: .88rem; }
input[type=file] { padding: 10px; background: var(--surface-2); }

.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }

.checkbox-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 15px; cursor: pointer; }
.checkbox-row input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--brand); }
.checkbox-row strong { display: block; font-size: .95rem; }
.checkbox-row small { display: block; color: var(--ink-mute); }
.terms-row { padding: 15px; background: var(--surface-2); border-radius: var(--r); font-size: .9rem; }

.form-note { font-size: .84rem; color: var(--ink-mute); margin: 13px 0 0; }
.details-toggle { margin-bottom: 14px; }
.details-toggle summary { cursor: pointer; font-weight: 650; font-size: .92rem; color: var(--brand); padding: 7px 0; }
.details-toggle[open] summary { margin-bottom: 12px; }

.notice { padding: 15px 17px; border-radius: var(--r); border: 1px solid; margin-bottom: 18px; font-size: .93rem; }
.notice-info    { background: var(--blue-bg);  border-color: var(--blue-border);  color: var(--blue); }
.notice-warning { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber); }
.notice-error   { background: var(--red-bg);   border-color: var(--red-border);   color: var(--red); }
.notice-success { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }
.notice a { color: inherit; text-decoration: underline; }
.notice p:last-child { margin-bottom: 0; }
.notice code { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }

.code-block {
    background: #0d1020; color: #d7dcf5; padding: 15px 17px; border-radius: var(--r);
    overflow-x: auto; font-size: .86rem; line-height: 1.6; margin: 0 0 14px;
}
.code-block.small { font-size: .8rem; }
/* Prose in a code block (changelogs): wrapped to the box, never wider than the screen. */
.code-block.wrap { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 13px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-mute); font-weight: 750; background: var(--surface-2); white-space: nowrap;
}
.table tbody tr:hover { background: var(--surface-inset); }
.table-sm th, .table-sm td { padding: 9px 8px; font-size: .89rem; }

.feature-list, .check-list, .req-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.feature-list li, .check-list li { padding-left: 28px; position: relative; color: var(--ink-soft); }
/* A drawn tick, not the ✓ character: plenty of fonts (and some phones) have no
   glyph for it and show an empty box instead. */
.feature-list li::before, .check-list li::before {
    content: ''; position: absolute; left: 0; top: .3em; width: 17px; height: 17px;
    background-color: var(--green);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.req-list li { padding-left: 0; }

.fact-list { display: grid; gap: 0; margin: 0 0 16px; }
.fact-list > div {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.fact-list > div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--ink-mute); font-size: .88rem; }
.fact-list dd { margin: 0; text-align: right; font-size: .92rem; font-weight: 600; }
.fact-list-wide dd { font-weight: 500; }

.empty-state { text-align: center; padding: clamp(40px, 6vw, 60px) 20px; }
.empty-state-icon { display: block; margin-bottom: 14px; color: var(--ink-mute); opacity: .65; }
.empty-state-icon .icon { display: inline-block; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); }
.empty-state-sm { padding: 36px 16px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.page-link {
    min-width: 38px; padding: 8px 12px; border-radius: var(--r-sm); text-align: center;
    background: var(--surface-3); color: var(--ink); font-weight: 650; font-size: .9rem;
}
.page-link:hover { background: var(--surface-3); border-color: var(--line-strong); text-decoration: none; }
.page-link .icon { vertical-align: -.2em; }
.page-link.is-active { background: var(--brand); color: var(--brand-on); }
.page-gap { color: var(--ink-mute); padding: 0 4px; }
.pagination-info { margin-right: auto; color: var(--ink-mute); font-size: .86rem; }

/* --------------------------------------------------------------------------
   15. Catalogue
   -------------------------------------------------------------------------- */

.catalogue-layout { display: grid; gap: 28px; }
.filter-block {
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r);
    padding: 20px; margin-bottom: 16px;
}
.filter-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); margin-bottom: 14px; }
.filter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.filter-list a {
    display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px;
    border-radius: var(--r-sm); color: var(--ink-soft); font-size: .93rem;
}
.filter-list a:hover { background: var(--surface-2); text-decoration: none; }
.filter-list a.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.filter-list .count { color: var(--ink-mute); font-size: .82rem; }
.help-block { background: var(--brand-soft); border-color: var(--brand-border); }
.help-block p { font-size: .9rem; color: var(--ink-soft); }
.catalogue-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.catalogue-bar p { margin: 0; }

@media (min-width: 980px) {
    .catalogue-layout { grid-template-columns: 272px 1fr; align-items: start; }
    .catalogue-sidebar { position: sticky; top: calc(var(--header-h) + 18px); }
}

/* --------------------------------------------------------------------------
   16. Product page
   -------------------------------------------------------------------------- */

.product-hero {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line); padding: 24px 0 clamp(32px, 5vw, 48px);
}
.product-hero-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
.product-hero-main { min-width: 0; }
.product-hero h1 { margin: 10px 0 10px; }
.product-tagline { font-size: 1.06rem; color: var(--ink-soft); }
.product-meta-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: .89rem; color: var(--ink-soft); margin-bottom: 24px;
}

/*
 * Screenshot slider — a 16:9 browser-window frame, no scrollbar anywhere.
 * Each slide image is a pre-cut WebP (App\Services\ImageVariant): desktop
 * full-page captures fill the frame from the top, phone captures stand upright
 * in the middle, and wide or square shots sit whole on a blurred copy of
 * themselves. Autoplays every 5 s; pauses on hover, focus, when the tab is
 * hidden and while the lightbox is open.
 */
.product-gallery { min-width: 0; }
.shot-slider {
    position: relative; isolation: isolate; overflow: hidden;
    padding: 16px 16px 56px;
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: radial-gradient(120% 80% at 50% 0%, #1b2d57 0%, #0b1220 70%);
    box-shadow: var(--shadow);
    outline: none;
}
.shot-slider:focus-visible { box-shadow: 0 0 0 3px var(--brand-border), var(--shadow); }
.shot-backdrop { position: absolute; inset: -40px; z-index: -1; opacity: .55; }
.shot-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(38px) saturate(1.4); transform: scale(1.1); transition: opacity .5s var(--ease); }
.shot-frame {
    position: relative; width: 100%; overflow: hidden;
    border-radius: 12px; background: #0b1220;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 24px 50px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.3);
}
.shot-frame-bar {
    display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px;
    background: linear-gradient(#222c3d, #182132); border-bottom: 1px solid rgba(255,255,255,.06);
}
.shot-frame-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.shot-frame-bar i:nth-child(2) { background: #febc2e; }
.shot-frame-bar i:nth-child(3) { background: #28c840; }
.shot-frame-url {
    flex: 0 1 auto; min-width: 0; max-width: 60%; margin-left: 10px; padding: 0 10px; height: 17px; line-height: 17px;
    border-radius: 9px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.62);
    font-size: .68rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.shot-viewport {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    background: #0b1220; touch-action: pan-y;
    user-select: none; -webkit-user-select: none; cursor: grab;
}
.shot-viewport.is-dragging { cursor: grabbing; }
.shot-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.shot-viewport.is-dragging .shot-track { transition: none; }
.shot-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; overflow: hidden; }
.shot-img { position: relative; display: block; width: 100%; height: 100%; background: none; pointer-events: none; -webkit-user-drag: none; }
.shot-cover .shot-img   { object-fit: cover; object-position: top center; }
.shot-contain .shot-img { object-fit: contain; object-position: center; }
/* A phone capture: its first screen, standing upright in the middle of the frame. */
.shot-mobile { display: flex; align-items: center; justify-content: center; }
.shot-mobile .shot-img {
    width: auto; height: 90%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top center;
    border: 5px solid #111827; border-radius: 20px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.5);
}
.shot-fill { position: absolute; inset: 0; pointer-events: none; -webkit-user-drag: none; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.7); transform: scale(1.15); background: none; }

.shot-progress { position: absolute; left: 14px; right: 14px; top: 10px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; z-index: 2; }
.shot-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left center; will-change: transform; }
.shot-counter, .shot-zoom {
    position: absolute; z-index: 2; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff;
    background: rgba(8, 13, 25, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.shot-counter { left: 12px; letter-spacing: .02em; }
.shot-zoom { right: 12px; border: 0; cursor: pointer; font-family: inherit; }
.shot-zoom:hover { background: rgba(8, 13, 25, .85); }

/* Vertically centred on the screenshot (frame bar above, controls below). */
.shot-nav {
    position: absolute; top: calc(50% - 6px); z-index: 3; transform: translateY(-50%);
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
    color: #0b1220; background: rgba(255,255,255,.9); cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,.35); transition: transform var(--fast), background var(--fast), opacity var(--fast);
}
.shot-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.shot-nav:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.shot-prev { left: 26px; }
.shot-next { right: 26px; }
@media (hover: hover) {
    .shot-nav { opacity: .0; }
    .shot-slider:hover .shot-nav, .shot-slider:focus-within .shot-nav { opacity: 1; }
}

.shot-controls { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 3; }
.shot-play { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); cursor: pointer; }
.shot-play:hover { background: rgba(255,255,255,.28); }
.shot-play .i-play, .shot-slider.is-paused .shot-play .i-pause { display: none; }
.shot-slider.is-paused .shot-play .i-play { display: block; }
.shot-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 70%; }
.shot-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.4); cursor: pointer; transition: width var(--slow), background var(--fast); }
.shot-dot:hover { background: rgba(255,255,255,.75); }
.shot-dot.is-active { width: 22px; background: #fff; }

.shot-thumbs { display: flex; gap: 8px; margin-top: 12px; padding: 2px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.shot-thumbs::-webkit-scrollbar { display: none; }
.shot-thumb {
    flex: none; width: 96px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden;
    border: 2px solid transparent; border-radius: 8px; background: var(--surface-3); cursor: pointer;
    opacity: .6; transition: opacity var(--fast), border-color var(--fast), transform var(--fast);
}
.shot-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-thumb:hover { opacity: 1; transform: translateY(-2px); }
.shot-thumb.is-active { opacity: 1; border-color: var(--brand); }
.shot-empty {
    display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 16 / 9; text-align: center;
    border: 1px dashed var(--line-strong); border-radius: var(--r-xl); background: var(--surface-2); color: var(--brand);
}
.shot-empty span { color: var(--ink-mute); font-size: .88rem; }

@media (max-width: 640px) {
    .shot-slider { padding: 10px 10px 50px; border-radius: var(--r-lg); }
    .shot-frame { border-radius: 9px; }
    .shot-frame-bar { height: 22px; padding: 0 9px; gap: 5px; }
    .shot-frame-bar i { width: 8px; height: 8px; }
    .shot-frame-url { height: 14px; line-height: 14px; font-size: .62rem; }
    .shot-nav { top: calc(50% - 9px); width: 36px; height: 36px; }
    .shot-prev { left: 16px; }
    .shot-next { right: 16px; }
    .shot-counter, .shot-zoom { bottom: 8px; padding: 4px 9px; font-size: .7rem; }
    .shot-thumb { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
    .shot-track { transition-duration: .01s; }
}

.lightbox { width: min(1100px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--r-lg); background: #0b1220; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(2, 6, 23, .86); backdrop-filter: blur(3px); }
.lightbox-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #0b1220; }
.lightbox-count { flex: 1; font-size: .85rem; opacity: .8; }
.lightbox-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; font-size: 1.2rem; color: #fff; background: rgba(255,255,255,.1); cursor: pointer; }
.lightbox-btn:hover { background: rgba(255,255,255,.2); }
/* Full-page shots can be very tall: they scroll, but without a visible bar. */
.lightbox-stage { max-height: calc(94vh - 58px); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.lightbox-stage::-webkit-scrollbar { display: none; }
.lightbox-stage img { display: block; width: 100%; height: auto; background: none; }

.buy-box {
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-xl);
    padding: 24px; box-shadow: var(--shadow);
}
.buy-price { padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }
.buy-price-note { font-size: .84rem; color: var(--ink-mute); margin: 0; }
.buy-form { margin-bottom: 12px; }
.buy-secondary { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.buy-secondary .btn { width: 100%; }
.buy-features {
    list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line-soft);
    display: grid; gap: 8px; font-size: .89rem; color: var(--ink-soft);
}
.buy-trust { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .84rem; color: var(--ink-mute); }
.buy-trust p { margin: 0 0 5px; }

.license-options { display: grid; gap: 10px; margin-bottom: 18px; }
.license-option { display: block; cursor: pointer; position: relative; }
.license-option input { position: absolute; opacity: 0; }
.license-option-body {
    display: block; padding: 14px 16px; border: 1.5px solid var(--line);
    border-radius: var(--r); transition: border-color var(--fast), background var(--fast);
}
.license-option input:checked + .license-option-body { border-color: var(--brand); background: var(--brand-soft); }
.license-option input:focus-visible + .license-option-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.license-option strong { display: block; font-size: .95rem; }
.license-option small { display: block; color: var(--ink-mute); font-size: .84rem; }
.license-price { display: block; margin-top: 6px; font-weight: 800; color: var(--brand); }

.product-body-grid { display: grid; gap: 32px; }
.content-block { margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 20px); }
.content-block h2 { font-size: 1.4rem; margin-bottom: 16px; }
.callout {
    background: var(--brand-soft); border-left: 4px solid var(--brand);
    padding: 18px 20px; border-radius: var(--r); margin-bottom: 32px;
    font-size: 1rem; color: var(--ink-soft);
}
.prose h2 { margin-top: 34px; }
.prose h3 { margin-top: 26px; font-size: 1.12rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.15em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.legal-prose h3 { margin-top: 30px; }

.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.changelog { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.changelog-item { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.changelog-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.changelog-body { color: var(--ink-soft); font-size: .92rem; overflow-wrap: anywhere; }

.license-table table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.license-table th, .license-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.license-table th:not(:first-child), .license-table td:not(:first-child) { text-align: center; width: 110px; }
.license-table thead th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

.side-card {
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r);
    padding: 22px; margin-bottom: 16px;
}
.side-card h3 { font-size: 1rem; margin-bottom: 13px; }
.side-card-help { background: var(--surface-2); }
.side-card-help p { font-size: .9rem; color: var(--ink-soft); }
.side-card-product { border-color: var(--brand-border); }
.side-product-img { width: 100%; border-radius: var(--r-sm); margin-bottom: 12px; }

.mobile-buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px var(--gutter); background: color-mix(in srgb, var(--surface-1) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(16, 20, 40, .1);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}
.mobile-buy-price { font-size: 1.18rem; font-weight: 800; }

@media (min-width: 940px) {
    .product-hero-grid { grid-template-columns: minmax(0, 1fr) 356px; align-items: start; }
    .buy-box { position: sticky; top: calc(var(--header-h) + 18px); }
    .product-body-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
    .product-side { position: sticky; top: calc(var(--header-h) + 18px); }
    .mobile-buy-bar { display: none; }
}
@media (max-width: 939px) { body { padding-bottom: 76px; } }

/* --------------------------------------------------------------------------
   17. Reviews
   -------------------------------------------------------------------------- */

.review-empty {
    background: var(--surface-2); border: 1px dashed var(--line-strong);
    border-radius: var(--r); padding: 22px;
}
.review-empty p:last-child { margin-bottom: 0; }

.review-summary {
    display: grid; gap: 22px; align-items: center;
    background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 24px; margin-bottom: 22px;
}
.review-score { text-align: center; }
.review-score strong { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.review-score .stars { justify-content: center; margin: 6px 0 2px; }
.review-score small { display: block; color: var(--ink-mute); margin-top: 4px; }
.review-bars { display: grid; gap: 7px; }
.review-bar { display: grid; grid-template-columns: 30px 1fr 28px; gap: 10px; align-items: center; font-size: .84rem; }
.review-bar-label { color: var(--ink-mute); display: inline-flex; align-items: center; gap: 3px; }
.review-bar-track { height: 8px; background: var(--surface-3); border-radius: var(--r-pill); overflow: hidden; }
.review-bar-fill { display: block; height: 100%; background: var(--star); border-radius: var(--r-pill); }
.review-bar-count { color: var(--ink-mute); text-align: right; }

@media (min-width: 620px) { .review-summary { grid-template-columns: 160px 1fr; } }

.review-list { display: grid; gap: 16px; }
.review-item {
    background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r); padding: 20px; scroll-margin-top: calc(var(--header-h) + 20px);
}
.review-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.review-head .badge { margin-left: 6px; }
.review-title { font-size: 1.02rem; margin: 0 0 8px; }
.review-body { color: var(--ink-soft); margin: 0 0 12px; }
.review-foot { display: flex; align-items: center; gap: 14px; font-size: .84rem; color: var(--ink-mute); }
.review-helpful {
    background: none; border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 5px 12px; font: inherit; font-size: .82rem; color: var(--ink-soft); cursor: pointer;
}
.review-helpful:hover { border-color: var(--brand); color: var(--brand); }
.review-helpful.is-voted { border-color: var(--green-border); color: var(--green); cursor: default; }
.review-reply {
    margin-top: 14px; padding: 14px 16px; background: var(--surface-2);
    border-left: 3px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .92rem;
}
.review-reply p { margin: 6px 0 0; color: var(--ink-soft); }

.review-form-wrap { margin-top: 26px; }
.review-form { background: var(--surface-2); border-radius: var(--r); padding: 20px; }
.rating-input { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.rating-input legend { margin-bottom: 8px; }
.rating-input-star { position: relative; cursor: pointer; }
.rating-input-star input { position: absolute; opacity: 0; }
.rating-input-star span {
    display: inline-block; padding: 7px 12px; border: 1px solid var(--line);
    border-radius: var(--r-pill); font-size: .86rem; color: var(--star); background: var(--surface-1);
}
.rating-input-star input:checked + span { border-color: var(--star); background: var(--amber-bg); font-weight: 700; }

/* --------------------------------------------------------------------------
   18. Blog
   -------------------------------------------------------------------------- */

.post-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card {
    display: flex; flex-direction: column; background: var(--surface-raised);
    border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow-xs); transition: transform var(--slow), box-shadow var(--slow), border-color var(--slow);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-border); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-placeholder { display: grid; place-items: center; height: 100%; background: var(--surface-3); color: var(--ink-mute); }
.post-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: .8rem; color: var(--ink-mute); margin-bottom: 10px;
}
.post-card-category { font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.post-card-title { font-size: 1.1rem; margin: 0 0 8px; letter-spacing: -.02em; }
.post-card-title a { color: var(--ink); }
.post-card-excerpt { color: var(--ink-soft); font-size: .92rem; flex: 1; margin-bottom: 14px; }
.post-card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: .9rem; }
.post-card-link:hover { text-decoration: none; }
.post-card-link .icon { transition: transform var(--fast); }
.post-card-link:hover .icon { transform: translateX(3px); }

.post-hero {
    display: grid; gap: 0; background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r-xl); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-sm);
}
.post-hero-media { display: block; background: var(--surface-3); aspect-ratio: 16 / 9; overflow: hidden; }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-placeholder { display: grid; place-items: center; height: 100%; background: var(--surface-3); color: var(--ink-mute); }
.post-hero-body { padding: clamp(22px, 3vw, 34px); align-self: center; }
.post-hero-body h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 12px; }
.post-hero-body h2 a { color: var(--ink); }
.post-hero-body p { color: var(--ink-soft); }

@media (min-width: 880px) { .post-hero { grid-template-columns: 1.15fr 1fr; } .post-hero-media { aspect-ratio: auto; height: 100%; } }

.post-header { padding: clamp(26px, 4vw, 44px) 0 22px; }
.post-header h1 { margin-bottom: 14px; }
.post-lede { font-size: clamp(1.02rem, 1rem + .3vw, 1.16rem); color: var(--ink-soft); }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.post-avatar {
    display: grid; place-items: center; width: 42px; height: 42px; flex: none;
    border-radius: 50%; background: var(--brand);
    color: var(--brand-on); font-weight: 800;
}
.post-byline strong { display: block; font-size: .94rem; }
.post-byline small { color: var(--ink-mute); font-size: .84rem; }

.post-cover { margin: 0 0 clamp(24px, 4vw, 40px); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; }

.post-layout { display: grid; gap: 34px; padding-bottom: var(--section-y); }
.post-body { max-width: 72ch; font-size: 1.03rem; }
.post-body h2 { scroll-margin-top: calc(var(--header-h) + 20px); }
.post-body > *:first-child { margin-top: 0; }

.post-toc {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
    padding: 18px 22px; margin: 0 0 28px;
}
.post-toc strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 7px; }
.post-toc a { color: var(--ink-soft); font-size: .93rem; }
.post-toc a:hover { color: var(--brand); }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 0; }
.post-share {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem;
}
.post-share span:first-child { color: var(--ink-mute); }

@media (min-width: 980px) {
    .post-layout { grid-template-columns: minmax(0, 1fr) 320px; }
    .post-side { position: sticky; top: calc(var(--header-h) + 18px); align-self: start; }
}

/* --------------------------------------------------------------------------
   19. Checkout, payment, order
   -------------------------------------------------------------------------- */

.checkout-head { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 26px 0; }
.checkout-steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: .86rem; color: var(--ink-mute); margin-top: 8px; }
.checkout-steps span { padding: 5px 13px; border-radius: var(--r-pill); background: var(--surface-1); border: 1px solid var(--line); }
.checkout-steps .is-done { color: var(--green); border-color: var(--green-border); background: var(--green-bg); }
.checkout-steps .is-current { color: var(--brand-on); border-color: var(--brand); background: var(--brand); font-weight: 650; }

.checkout-layout { display: grid; gap: 26px; }
.summary-product { display: flex; gap: 13px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.summary-product img, .summary-thumb-placeholder {
    width: 64px; height: 46px; border-radius: 9px; object-fit: cover; flex: none;
    background: var(--brand-soft); display: grid; place-items: center; font-weight: 800; color: var(--brand);
}
.summary-product strong { display: block; font-size: .95rem; line-height: 1.35; }
.summary-product small { color: var(--ink-mute); }

.summary-lines { margin: 0 0 16px; display: grid; gap: 0; }
.summary-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .94rem; }
.summary-lines dt { color: var(--ink-soft); }
.summary-lines dd { margin: 0; font-weight: 600; }
.summary-lines .is-discount dd { color: var(--green); }
.summary-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 13px !important; }
.summary-total dt { font-weight: 800; color: var(--ink) !important; }
.summary-total dd { font-weight: 800; font-size: 1.24rem; }

.coupon-form { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.summary-addon { padding: 13px 0; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.summary-includes { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line-soft); display: grid; gap: 7px; font-size: .87rem; color: var(--ink-soft); }

.pay-option { display: block; cursor: pointer; position: relative; margin-bottom: 11px; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option-body {
    display: block; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r);
    transition: border-color var(--fast), background var(--fast);
}
.pay-option input:checked + .pay-option-body { border-color: var(--brand); background: var(--brand-soft); }
.pay-option input:focus-visible + .pay-option-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-option strong { display: block; margin-bottom: 4px; }
.pay-option small { color: var(--ink-soft); font-size: .87rem; }

@media (min-width: 980px) {
    .checkout-layout { grid-template-columns: minmax(0, 1fr) 366px; align-items: start; }
    .checkout-summary { position: sticky; top: calc(var(--header-h) + 18px); }
}

.pay-section { padding: clamp(40px, 6vw, 60px) 0; }
/* ---- Payment hand-off page ---- */
.pay-wrap { max-width: 520px; margin: 0 auto; }
.pay-card { text-align: center; }
.pay-title { font-size: 1.5rem; margin: 4px 0 10px; }

.pay-head {
    display: grid; gap: 3px; padding-bottom: 18px; margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.pay-amount { font-size: 2.1rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.pay-order { font-size: .82rem; color: var(--ink-mute); }
.pay-product { font-size: .93rem; color: var(--ink-soft); font-weight: 600; }

.qr-holder {
    display: grid; place-items: center; margin: 6px auto 18px;
    padding: 14px; width: fit-content;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.qr-holder svg, .qr-holder img { display: block; width: 260px; height: 260px; }

.pay-status {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 16px; border-radius: var(--r); background: var(--surface-2);
    margin-bottom: 16px; font-size: .92rem; color: var(--ink-soft);
}
.pay-status.is-ok  { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.pay-status.is-bad { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-border); }

.spinner {
    flex: none; width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid var(--line-strong); border-top-color: var(--brand);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pay-mobile-link { margin-top: 4px; }
.pay-notes { text-align: left; margin: 20px auto 0; max-width: 400px; font-size: .87rem; }
.pay-notes .icon { color: var(--ink-mute); }
.pay-back { margin: 20px 0 0; font-size: .89rem; }
.pay-secure { margin-top: 16px; }
.pay-help { margin-top: 18px; font-size: .89rem; display: flex; gap: 8px; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none; border-top-color: var(--line-strong); }
}

.order-hero { padding: clamp(38px, 5vw, 52px) 0 36px; text-align: center; color: #fff; }
.order-hero.is-paid { background: var(--green); }
.order-hero.is-pending { background: var(--amber); }
.order-hero h1 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.order-hero p { margin: 0; color: rgba(255, 255, 255, .9); }
.order-hero-icon { display: block; margin-bottom: 12px; color: rgba(255, 255, 255, .92); }

.delivery-card h2 { font-size: 1.16rem; }
.delivery-meta { font-size: .87rem; color: var(--ink-mute); margin: 12px 0; }
.delivery-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.license-key-box {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #0d1020; border-radius: var(--r); padding: 15px 17px; margin-bottom: 12px;
}
.license-key-box code {
    background: none; color: #7dd3fc; font-size: 1.02rem; letter-spacing: 1.5px;
    padding: 0; word-break: break-all; flex: 1;
}
.license-key-box .btn { flex: none; }

.next-steps { padding-left: 1.3em; display: grid; gap: 9px; color: var(--ink-soft); }
.pay-manual { text-align: center; }
.pay-amount { font-size: 1.1rem; }

/* --------------------------------------------------------------------------
   20. Auth & account
   -------------------------------------------------------------------------- */

.auth-section { padding: clamp(38px, 5vw, 56px) 0 var(--section-y); }
.auth-layout { display: grid; gap: 32px; }
.auth-card h1 { font-size: 1.55rem; }
.auth-links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: .92rem; display: flex; gap: 8px; flex-wrap: wrap; }
.auth-aside h2 { font-size: 1.16rem; }
.auth-aside { padding-top: 6px; }
@media (min-width: 940px) { .auth-layout { grid-template-columns: 1fr .8fr; align-items: start; } }

.account-nav {
    display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px;
    background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r); padding: 6px;
    scrollbar-width: none;
}
.account-nav::-webkit-scrollbar { display: none; }
.account-nav a { padding: 10px 16px; border-radius: var(--r-sm); color: var(--ink-soft); font-size: .93rem; font-weight: 600; white-space: nowrap; }
.account-nav a:hover { background: var(--surface-2); text-decoration: none; }
.account-nav a.is-active { background: var(--brand); color: var(--brand-on); }
.account-nav-logout-form { margin: 0 0 0 auto; }
.account-nav-logout { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: var(--r-sm); background: none; font: inherit; font-size: .93rem; font-weight: 600; color: var(--red) !important; cursor: pointer; }
.account-nav-logout:hover { background: var(--red-bg); }
.inline-form { display: inline; margin: 0; }

.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); margin-bottom: 24px; }
.stat-box { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat-box.is-warning { background: var(--amber-bg); border-color: var(--amber-border); }
.stat-box-label { display: block; font-size: .78rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.stat-box strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }

.purchase-list { display: grid; gap: 14px; }
.purchase-card { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; align-items: center; margin: 0; }
.purchase-main { display: flex; gap: 15px; align-items: flex-start; flex: 1; min-width: 240px; }
.purchase-thumb { width: 80px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.purchase-thumb-placeholder { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.purchase-info h2 { font-size: 1.04rem; margin-bottom: 5px; }
.purchase-info h2 a { color: var(--ink); }
.purchase-meta { font-size: .85rem; color: var(--ink-mute); margin: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.purchase-license { margin: 9px 0 0; font-size: .87rem; }
.purchase-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.order-detail-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .order-detail-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

.license-card { margin-bottom: 16px; }
.license-card-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.license-card-head h2 { font-size: 1.12rem; margin: 0; }
.license-sub { font-size: .84rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin: 22px 0 11px; }
.domain-list { list-style: none; padding: 0; display: grid; gap: 7px; }
.domain-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; background: var(--surface-2); border-radius: var(--r-sm); font-size: .91rem; }

.profile-grid { display: grid; gap: 20px; }
@media (min-width: 940px) { .profile-grid { grid-template-columns: repeat(2, 1fr); align-items: start; } }

.contact-layout { display: grid; gap: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 13px; }
.contact-list li .icon { flex: none; margin-top: .15em; color: var(--brand); }
.contact-list strong { display: block; font-size: .94rem; }
.contact-list small { display: block; color: var(--ink-mute); font-size: .82rem; line-height: 1.5; margin-top: 2px; }
@media (min-width: 980px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }

/* Enquiry category picker — a radio card grid rather than a <select>, because
   the response time for each is part of the choice. */
.enquiry-types { border: 0; padding: 0; margin: 0 0 4px; display: grid; gap: 9px; }
@media (min-width: 620px) { .enquiry-types { grid-template-columns: repeat(2, 1fr); } }

.enquiry-type { position: relative; display: block; cursor: pointer; }
.enquiry-type input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: pointer;
}
.enquiry-type-body {
    display: block; height: 100%;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--surface-1); transition: border-color var(--fast), background var(--fast);
}
.enquiry-type-body strong { display: block; font-size: .93rem; font-weight: 650; }
.enquiry-type-body small { display: block; color: var(--ink-mute); font-size: .81rem; line-height: 1.45; margin-top: 3px; }
.enquiry-type-body em {
    display: block; margin-top: 6px; font-style: normal;
    font-size: .75rem; font-weight: 650; color: var(--brand);
}
.enquiry-type:hover .enquiry-type-body { border-color: var(--line-strong); }
.enquiry-type input:checked + .enquiry-type-body {
    border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand);
}
.enquiry-type input:focus-visible + .enquiry-type-body { outline: 2px solid var(--brand); outline-offset: 2px; }

.contact-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.contact-links a {
    display: flex; align-items: center; gap: 9px; padding: 8px 0;
    font-size: .9rem; font-weight: 600; color: var(--ink-soft);
}
.contact-links a:hover { color: var(--brand); text-decoration: none; }
.contact-links .icon { color: var(--ink-mute); flex: none; }
.contact-links a:hover .icon { color: var(--brand); }

.contact-address { display: grid; gap: 4px; font-style: normal; font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }
.contact-address strong { color: var(--ink); }

.license-result { border-width: 2px; }
.license-result.is-valid { border-color: var(--green-border); background: var(--green-bg); }
.license-result.is-invalid { border-color: var(--red-border); background: var(--red-bg); }
.license-result-head { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px; }
.license-result-head h2 { font-size: 1.22rem; margin-bottom: 4px; }
.license-result-head p { margin: 0; }
.license-result-icon { flex: none; line-height: 1; }
.license-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: .91rem; }
.license-help ul { padding-left: 1.2em; }

.page-cta { margin-top: 36px; padding: 24px; background: var(--surface-2); border-radius: var(--r); text-align: center; }
.page-cta p { margin: 0 0 12px; font-weight: 600; }

/* --------------------------------------------------------------------------
   21. Error & offline pages
   -------------------------------------------------------------------------- */

.error-page { display: grid; place-items: center; min-height: 100vh; background: var(--surface-2); padding: 24px; }
.error-wrap { text-align: center; max-width: 540px; }
.error-code {
    display: block; line-height: 1; font-weight: 800; color: var(--ink-mute);
    font-size: clamp(3.4rem, 8vw, 5rem); letter-spacing: -.04em; opacity: .45;
}
.error-mark { display: block; margin-bottom: 6px; color: var(--brand); opacity: .8; }
.error-wrap h1 { margin: 8px 0 14px; }
.error-wrap p { color: var(--ink-soft); }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* --------------------------------------------------------------------------
   22. Toasts & scroll lock (driven by app.js)
   -------------------------------------------------------------------------- */

.toast-stack {
    position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%);
    display: flex; flex-direction: column-reverse; gap: 8px;
    width: min(400px, calc(100vw - 32px)); pointer-events: none;
}

.toast {
    display: block; padding: 12px 16px; border-radius: var(--r);
    background: var(--ink); color: var(--surface-1);
    font-size: .92rem; font-weight: 600; text-align: center;
    box-shadow: var(--shadow-lg); border: 1px solid transparent;
    animation: toastIn .26s var(--ease);
}
.toast-error   { background: var(--red);   color: #fff; }
.toast-success { background: var(--green); color: #fff; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity .24s var(--ease), transform .24s var(--ease); }

@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* Body scroll lock while the mobile nav or the search panel is open. */
body.is-search-open, body.is-nav-open { overflow: hidden; }

@media (min-width: 900px) {
    body.is-nav-open { overflow: visible; }
}

.search-results.is-loading { opacity: .55; }
.search-item-all { justify-content: space-between; font-weight: 700; color: var(--brand); }

.coupon-feedback { display: block; margin-top: 6px; font-size: .85rem; color: var(--ink-mute); min-height: 1.2em; }
.coupon-feedback.is-ok { color: var(--green); font-weight: 650; }
.coupon-feedback.is-bad { color: var(--red); font-weight: 650; }
.field-counter { font-size: .78rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.field-counter.is-over { color: var(--amber); font-weight: 700; }

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

/* --------------------------------------------------------------------------
   23. Print
   -------------------------------------------------------------------------- */

@media print {
    .site-header, .site-footer, .mobile-buy-bar,
    .account-nav, .flash-wrap, .search-overlay, .post-share { display: none !important; }
    body { padding: 0; background: #fff; color: #000; }
    .card, .admin-card { box-shadow: none; border-color: #ddd; }
}


/* --------------------------------------------------------------------------
   Two-step sign-in
   -------------------------------------------------------------------------- */

/* Six digits, widely spaced: this gets typed from a phone screen under mild
   stress, so it has to be obvious which character you are on. */
.two-factor-code {
    font-family: var(--mono);
    font-size: 1.35rem;
    letter-spacing: .28em;
    text-align: center;
    /* Room for six characters plus the trailing letter-space, which counts
       towards the width and clipped the last digit at a tighter max-width. */
    max-width: 14ch;
}

.text-danger { color: var(--red); font-weight: 600; }

/* ==========================================================================
   Share bar
   ========================================================================== */
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.share-label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn {
    display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0;
    border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); color: var(--ink-soft);
    cursor: pointer; transition: transform var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
}
.share-btn:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.share-whatsapp:hover { background: #25d366; }
.share-telegram:hover { background: #229ed9; }
.share-facebook:hover { background: #1877f2; }
.share-x:hover        { background: #000; }
.share-linkedin:hover { background: #0a66c2; }
.share-copy:hover, .share-native:hover { background: var(--brand); }
.share-native[hidden] { display: none; }

/* ==========================================================================
   Theme 3 — modern storefront
   Colours, fonts and corners come from Settings → Appearance: Theme::head()
   prints --brand, --brand-2, --btn-grad, --hero-*, --font, --font-display and
   --r-* right after this file. The values below are only the fallbacks.
   ========================================================================== */

:root {
    --font-display: var(--font);
    --brand-2: var(--brand);
    --brand-rgb: 20, 65, 143;
    --brand-2-rgb: 37, 99, 235;
    --btn-rgb: 20, 65, 143;
    --brand-grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    /* Fixed and deep on purpose: white text must stay readable in dark mode too. */
    --btn-grad: linear-gradient(135deg, #14418f 0%, #2563eb 100%);
    --hero-1: #0b1026;
    --hero-2: #1e2a6e;
    --hero-deep: #070a19;
    --r-btn: var(--r);
    --accent-warm: #f5b301;
    --ring: 0 0 0 4px rgba(var(--brand-rgb), .16);
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow:    0 2px 4px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .07);
    --shadow-lg: 0 6px 14px rgba(15, 23, 42, .06), 0 28px 56px rgba(15, 23, 42, .12);
    --header-h: 70px;
}

/* ---- Type --------------------------------------------------------------- */

body {
    font-family: var(--font);
    letter-spacing: -.006em;
    font-optical-sizing: auto;
    font-kerning: normal;
}

h1, h2, h3, h4,
.brand-text strong, .price-now, .price-now-lg, .stat-card strong, .spotlight-price strong,
.buy-price, .review-score strong, .step-no, .pay-amount, .error-code {
    font-family: var(--font-display);
}
h1, h2 { font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.45rem); }
h3 { font-weight: 750; letter-spacing: -.022em; line-height: 1.3; }
h4 { letter-spacing: -.015em; }

.lead, .hero-sub, .page-head-sub, .product-tagline, .post-lede {
    font-size: clamp(1.02rem, .98rem + .3vw, 1.16rem);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%;
    padding: 5px 12px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand);
    font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
}

a { text-underline-offset: 3px; }
::selection { background: rgba(var(--brand-rgb), .22); color: inherit; }

.section-head h2 { margin-bottom: 8px; }
.section-head p { font-size: 1.02rem; }
.section-head-center { text-align: center; }
.section-head-center p { margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------------- */

.btn { border-radius: var(--r-btn); font-weight: 650; letter-spacing: -.01em; }
.btn-lg { padding: 15px 28px; font-size: 1.03rem; border-radius: var(--r-btn); }
.btn-sm { border-radius: var(--r-btn); }

.btn-primary {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--btn-grad); color: #fff; border: 0;
    box-shadow: 0 6px 18px rgba(var(--btn-rgb), .30), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .26) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover {
    background: var(--btn-grad); color: #fff; transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(var(--btn-rgb), .36), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--brand); border: 1px solid var(--brand-border); }
.btn-outline:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--line-strong); }

.btn-glass {
    background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .26);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.badge { letter-spacing: .05em; }
.badge-accent { background: var(--btn-grad); color: #fff; box-shadow: 0 4px 12px rgba(var(--btn-rgb), .28); }
.chip { border-radius: 999px; }

/* ---- Header -------------------------------------------------------------- */

.site-header {
    background: color-mix(in srgb, var(--surface-1) 78%, transparent);
    backdrop-filter: saturate(1.8) blur(16px);
    -webkit-backdrop-filter: saturate(1.8) blur(16px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header.is-stuck { box-shadow: 0 8px 30px rgba(15, 23, 42, .08); }

.brand-mark {
    background: var(--btn-grad); color: #fff;
    border-radius: calc(var(--r) - 2px);
    box-shadow: 0 6px 16px rgba(var(--btn-rgb), .32), inset 0 1px 0 rgba(255, 255, 255, .25);
    font-family: var(--font-display);
}
.brand-text strong { font-weight: 800; letter-spacing: -.025em; }

.icon-btn { border-radius: 999px; }
.icon-btn:hover { background: var(--surface-2); }

@media (min-width: 1000px) {
    .site-nav { gap: 2px; margin-left: 18px; }
    .site-nav > a, .nav-dropdown-toggle {
        padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: .94rem; color: var(--ink-soft);
        transition: background var(--fast), color var(--fast);
    }
    .site-nav > a::after { display: none; }
    .site-nav > a:hover, .nav-dropdown-toggle:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
    .site-nav > a.is-active { background: var(--brand-soft); color: var(--brand); }
    .nav-dropdown-menu { border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-lg); }
    .nav-dropdown-menu a { border-radius: var(--r-sm); }
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
    background:
        radial-gradient(1100px 560px at 88% -12%, rgba(var(--brand-2-rgb), .42), transparent 62%),
        radial-gradient(900px 520px at -8% 112%, rgba(var(--brand-rgb), .36), transparent 60%),
        linear-gradient(155deg, var(--hero-deep) 0%, var(--hero-1) 45%, var(--hero-2) 100%);
    padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px);
    border-bottom: 0;
}
.hero::after {
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
    background-size: 26px 26px;
    mask-image: radial-gradient(900px 520px at 75% 10%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(900px 520px at 75% 10%, #000 0%, transparent 75%);
}
.hero h1 { font-size: clamp(2.3rem, 1.25rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.04em; margin-bottom: 20px; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 {
        background: linear-gradient(180deg, #ffffff 0%, #ffffff 52%, rgba(var(--brand-2-rgb), 1) 150%);
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
}
.hero-sub { color: rgba(255, 255, 255, .8); max-width: 58ch; }
.hero .pill {
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); font-weight: 600; letter-spacing: .005em;
}
.hero .pill .icon { color: var(--accent-warm); }
.hero .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .04); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); color: #fff; }
.hero-checks { gap: 11px; }
.hero-checks li { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .88); }
.hero-checks .icon {
    flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%;
    background: rgba(74, 222, 128, .16); color: #4ade80; stroke-width: 3;
}

.hero-spotlight {
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-xl); padding: 12px;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.spotlight-media {
    position: relative; display: block; border-radius: calc(var(--r-xl) - 6px); overflow: hidden;
    aspect-ratio: 16 / 10; background: rgba(255, 255, 255, .06);
}
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); background: none; }
.spotlight-media:hover img { transform: scale(1.035); }
.spotlight-off {
    position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
    font-size: .75rem; font-weight: 800; color: #fff; background: #10b981;
    box-shadow: 0 6px 16px rgba(16, 185, 129, .4);
}
.spotlight-body { padding: 18px 8px 6px; }
.spotlight-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-warm);
}
.spotlight-title { margin: 8px 0 12px; font-size: 1.16rem; line-height: 1.35; letter-spacing: -.02em; }
.spotlight-title a { color: #fff; }
.spotlight-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.spotlight-price strong { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -.03em; }
.spotlight-price s { color: rgba(255, 255, 255, .5); }
.spotlight-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.spotlight-actions .btn { flex: 1; }
.spotlight-pay { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .7); }
@media (min-width: 940px) {
    .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .hero-spotlight { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .6s var(--ease); }
    .hero-spotlight:hover { transform: none; }
}
.stat-card { border-radius: var(--r-lg); }

/* ---- Cards --------------------------------------------------------------- */

.featured-card, .script-card, .post-card, .category-card, .step, .testimonial, .faq, .card, .side-card {
    border-radius: var(--r-lg);
}
.featured-card, .script-card, .post-card {
    border: 1px solid var(--line); background: var(--surface-raised); box-shadow: var(--shadow-sm);
    transition: transform var(--slow), box-shadow var(--slow), border-color var(--slow);
}
.featured-card:hover, .script-card:hover, .post-card:hover {
    transform: translateY(-6px); border-color: rgba(var(--brand-rgb), .32);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--brand-rgb), .12);
}
.featured-body h3, .script-card-title, .post-card-title { font-family: var(--font-display); letter-spacing: -.022em; }
.featured-body h3 a:hover, .script-card-title a:hover, .post-card-title a:hover { color: var(--brand); text-decoration: none; }
.featured-media, .script-card-media { background: var(--surface-2); }
.featured-media img, .script-card-media img { object-position: top center; }
.script-card-footer { background: transparent; }
.price-now { font-weight: 800; letter-spacing: -.03em; }
.price-mrp { font-size: .86rem; }

.category-card { padding: 22px 20px; gap: 9px; }
.category-card::before { background: linear-gradient(160deg, var(--brand-soft) 0%, transparent 80%); }
.category-card:hover { border-color: var(--brand-border); box-shadow: var(--shadow); }
.category-icon {
    display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px;
    border-radius: calc(var(--r) - 2px); background: var(--brand-soft); color: var(--brand);
    transition: background var(--slow), color var(--slow), box-shadow var(--slow);
}
.category-card:hover .category-icon { background: var(--btn-grad); color: #fff; box-shadow: 0 8px 18px rgba(var(--btn-rgb), .32); }
.category-card strong { font-family: var(--font-display); font-size: 1.04rem; letter-spacing: -.015em; }

/* ---- Home sections ------------------------------------------------------- */

.steps { position: relative; }
.step { padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform var(--slow), box-shadow var(--slow); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-no {
    width: 44px; height: 44px; margin-bottom: 16px; border-radius: calc(var(--r) - 2px);
    background: var(--btn-grad); color: #fff; font-size: 1.05rem;
    box-shadow: 0 8px 18px rgba(var(--btn-rgb), .3);
}
.why-item { gap: 16px; align-items: flex-start; }
.why-item > svg.icon {
    flex: none; width: 46px; height: 46px; padding: 11px; border-radius: calc(var(--r) - 2px);
    background: var(--brand-soft); color: var(--brand); stroke-width: 1.9;
}
.why-item strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.015em; }

.testimonial { position: relative; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.testimonial::before {
    content: '\201C'; position: absolute; top: 4px; right: 20px;
    font: 800 4.6rem/1 Georgia, 'Times New Roman', serif; color: rgba(var(--brand-rgb), .14);
}

.faq { border-radius: var(--r); }
.faq summary { font-family: var(--font-display); letter-spacing: -.01em; }
.faq summary::after {
    content: '+'; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-soft); font-size: 1.15rem; transition: transform var(--fast), background var(--fast);
}
.faq[open] summary::after { content: '+'; transform: rotate(45deg); background: var(--brand); color: var(--brand-on); }
.faq[open] { box-shadow: var(--shadow-sm); }

.cta-band {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(800px 420px at 92% -10%, rgba(var(--brand-2-rgb), .45), transparent 60%),
        radial-gradient(700px 380px at 0% 120%, rgba(var(--brand-rgb), .35), transparent 60%),
        linear-gradient(135deg, var(--hero-1), var(--hero-2));
}
.cta-inner h2 { color: #fff; }

/* ---- Footer -------------------------------------------------------------- */

.site-footer { position: relative; background: var(--hero-deep); }
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-2-rgb), .7), transparent);
}
.footer-col h4 { font-family: var(--font-display); letter-spacing: .1em; }
.site-footer a { transition: color var(--fast); }

/* ---- Page heads ---------------------------------------------------------- */

.page-head, .product-hero, .post-header {
    background:
        radial-gradient(900px 320px at 88% -40%, rgba(var(--brand-rgb), .13), transparent 70%),
        radial-gradient(700px 260px at 0% 130%, rgba(var(--brand-2-rgb), .08), transparent 70%),
        var(--surface-2);
}
.page-head { border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.05rem); }
.breadcrumb { font-size: .84rem; }

/* ---- Product page -------------------------------------------------------- */

.product-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem); }
.buy-box { position: relative; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.buy-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--btn-grad);
}
.buy-price { letter-spacing: -.035em; }
.license-option { border-radius: var(--r); transition: border-color var(--fast), box-shadow var(--fast), background var(--fast); }
.license-option:has(input:checked) { border-color: var(--brand); box-shadow: var(--ring); background: var(--brand-soft); }
.feature-list li::marker { color: var(--brand); }
.shot-frame { border-radius: var(--r-lg); }

/* ---- Forms --------------------------------------------------------------- */

input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password],
input[type=number], input[type=search], input[type=date], input[type=datetime-local],
select, textarea {
    border-radius: var(--r);
    background: var(--surface-raised);
    box-shadow: inset 0 1px 1px rgba(15, 23, 42, .03);
}
input[type=text]:hover, input[type=email]:hover, input[type=tel]:hover, input[type=url]:hover,
input[type=password]:hover, input[type=number]:hover, input[type=search]:hover, select:hover, textarea:hover {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line-strong));
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
input[type=file] { border-radius: var(--r); border: 1px dashed var(--line-strong); }
.field-label { letter-spacing: -.005em; }
.notice, .flash { border-radius: var(--r); }

/* ---- Checkout, auth, account --------------------------------------------- */

.checkout-steps .is-current { background: var(--btn-grad); color: #fff; border-color: transparent; }
.auth-section {
    background:
        radial-gradient(800px 380px at 90% -20%, rgba(var(--brand-rgb), .12), transparent 70%),
        radial-gradient(600px 320px at -10% 120%, rgba(var(--brand-2-rgb), .1), transparent 70%);
}
.auth-card { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.enquiry-type, .pay-option { border-radius: var(--r); }
.enquiry-type:has(input:checked), .pay-option:has(input:checked) { border-color: var(--brand); box-shadow: var(--ring); }

/* ---- Blog ---------------------------------------------------------------- */

.post-card-category { letter-spacing: .08em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); letter-spacing: -.025em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(var(--brand-rgb), .35); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote {
    margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand);
    background: var(--brand-soft); border-radius: 0 var(--r) var(--r) 0;
}
.post-toc { border-radius: var(--r-lg); }

/* ---- Sticky mobile buy bar ------------------------------------------------ */

.sticky-buy {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px;
    background: color-mix(in srgb, var(--surface-raised) 90%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform var(--slow);
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy-price { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.sticky-buy-price strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.sticky-buy-price s { font-size: .85rem; color: var(--ink-mute); }
@media (min-width: 980px) { .sticky-buy { display: none; } }

/* ---- WhatsApp chat button ------------------------------------------------- */

.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 55;
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    color: #fff; background: #25d366; box-shadow: 0 10px 24px rgba(37, 211, 102, .42);
    transition: transform var(--fast);
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
body:has(.sticky-buy.is-visible) .wa-float { bottom: 86px; }
@media (min-width: 980px) { body:has(.sticky-buy) .wa-float { bottom: 18px; } }

/* ---- Motion & print -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .hero-spotlight, .hero-spotlight:hover { transform: none !important; }
    .btn-primary::after { display: none; }
}
@media print {
    .sticky-buy, .wa-float, .share-bar, .shot-nav, .shot-controls, .shot-zoom { display: none !important; }
    .hero, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
    .hero h1 { color: #000 !important; background: none !important; }
}

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* The "design did not load" warning (views/partials/css-check.php) exists only
   for when this file fails to load, so this file hides it. */
.gx-nocss { display: none !important; }
