/*
 * GRAMAVIC K MART storefront.
 *
 * Palette (brand colours):
 *   charcoal #171717   white #FFFFFF   turquoise #42B8A8   light grey #F5F6F5   grey #666666
 *
 * Contrast notes: turquoise on white is only about 2.4:1, so turquoise is never used for text on white.
 * It is used as a button or accent colour with charcoal text on it (about 7.4:1), and as text on charcoal.
 * Grey #666666 on white or light grey passes AA for normal text.
 *
 * Font: no web font is bundled, so a system font stack is used. The brand feel comes from heavy, tightly set type.
 * Logo files: ../brand/ (see README, section 34). Motion: durations of 120-200ms for interactions, longer only for
 * entrances; everything is switched off for visitors who ask for reduced motion (end of this file).
 */

:root {
    --charcoal: #171717;
    --white: #ffffff;
    --turquoise: #42b8a8;
    --turquoise-dark: #36a091;
    --light: #f5f6f5;
    --grey: #666666;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 4.25rem;
    --radius: 14px;
    --radius-sm: 10px;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    interpolate-size: allow-keywords;

    /* Theme roles. Components use these, never the fixed colours above, so both themes are complete designs.
       The light theme is the default; the dark values are applied by the device preference (until the visitor
       chooses) or by data-theme="dark" on the html element (the visitor's choice, remembered in a cookie). */
    --bg: #ffffff;
    --bg-alt: #f5f6f5;
    --surface: #ffffff;
    --text: #171717;
    --muted: #666666;
    --line: #dfe2df;
    --focus: #171717;
    --deep: #171717;
    --link-hover: #1d6f64;
    --icon-bg: #171717;
    --icon-fg: #42b8a8;
    --header-bg: rgba(255, 255, 255, .94);
    --header-shadow: rgba(23, 23, 23, .06);
    --panel-shadow: rgba(23, 23, 23, .1);
    --shadow-sm: 0 1px 2px rgba(23, 23, 23, .06), 0 2px 8px rgba(23, 23, 23, .05);
    --shadow-md: 0 2px 4px rgba(23, 23, 23, .06), 0 16px 40px rgba(23, 23, 23, .12);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #111312;
        --bg-alt: #181b1a;
        --surface: #1f2322;
        --text: #f0f2f1;
        --muted: #a8b0ac;
        --line: #343a38;
        --focus: #f0f2f1;
        --deep: #0a0b0b;
        --link-hover: #5fd0c0;
        --icon-bg: rgba(66, 184, 168, .16);
        --icon-fg: #42b8a8;
        --header-bg: rgba(17, 19, 18, .92);
        --header-shadow: rgba(0, 0, 0, .5);
        --panel-shadow: rgba(0, 0, 0, .5);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
        --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .55);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #111312;
    --bg-alt: #181b1a;
    --surface: #1f2322;
    --text: #f0f2f1;
    --muted: #a8b0ac;
    --line: #343a38;
    --focus: #f0f2f1;
    --deep: #0a0b0b;
    --link-hover: #5fd0c0;
    --icon-bg: rgba(66, 184, 168, .16);
    --icon-fg: #42b8a8;
    --header-bg: rgba(17, 19, 18, .92);
    --header-shadow: rgba(0, 0, 0, .5);
    --panel-shadow: rgba(0, 0, 0, .5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

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

h1, h2 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
h3 { letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

/* Keyboard focus is always visible. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; left: var(--gutter); top: -4rem; z-index: 300;
    padding: .75rem 1rem; background: var(--charcoal); color: var(--white); border-radius: 0 0 8px 8px;
    text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3rem; padding: 0 1.5rem; border: 2px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
    transition: transform 120ms var(--ease), background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, box-shadow 180ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--turquoise); color: var(--charcoal); box-shadow: 0 1px 0 rgba(23, 23, 23, .18); }
.btn-primary:hover { background: var(--turquoise-dark); box-shadow: 0 6px 18px rgba(54, 160, 145, .35); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); box-shadow: none; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: var(--text); color: var(--bg); }

/* ---------- Header ---------- */
.announcement { background: var(--deep); color: var(--white); text-align: center; font-size: .95rem; }
.announcement p { margin: 0; padding: .6rem var(--gutter); }

.site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px var(--header-shadow); }
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: .25rem 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem 0; text-decoration: none; }
.brand::before {
    content: ""; flex: none; width: 3.2rem; height: 2.94rem;
    background: url("../brand/logo-emblem-sm.png") center / contain no-repeat;
    transition: transform 200ms var(--ease);
}
.brand:hover::before { transform: rotate(-4deg) scale(1.05); }
:root[data-theme="dark"] .brand::before, :root[data-theme="dark"] .intro-emblem { background-color: #f0f2f1; background-origin: content-box; padding: .2rem; border-radius: 12px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand::before, :root:not([data-theme="light"]) .intro-emblem { background-color: #f0f2f1; background-origin: content-box; padding: .2rem; border-radius: 12px; }
}
.brand-name { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; font-size: 1.02rem; line-height: 1.05; }

.header-tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; order: 3; }
.site-nav { order: 2; }
.header-inner .brand { order: 1; }
@media (min-width: 70rem) { .header-tools { margin-left: 1.25rem; } .site-nav { margin-left: auto; } }

/* Theme toggle: a moon in the light theme (switch to dark), a sun in the dark theme (switch to light). */
.theme-toggle { display: none; }
.js .theme-toggle {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0;
    border: 2px solid var(--text); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
    transition: transform 120ms var(--ease), background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.js .theme-toggle:hover { background: var(--text); color: var(--bg); }
.js .theme-toggle:active { transform: scale(0.94); }
.theme-icon { position: absolute; width: 1.3rem; height: 1.3rem; transition: opacity 200ms ease-out, transform 280ms var(--ease); }
.theme-icon--sun { opacity: 0; transform: rotate(-70deg) scale(.5); }
.theme-icon--moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-icon--sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-icon--moon { opacity: 0; transform: rotate(70deg) scale(.5); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon--sun { opacity: 1; transform: none; }
    :root:not([data-theme="light"]) .theme-icon--moon { opacity: 0; transform: rotate(70deg) scale(.5); }
}

/* A short, gentle cross-fade while the theme changes (added by the script for 400 ms only). */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
    transition: background-color 280ms ease, color 280ms ease, border-color 280ms ease, box-shadow 280ms ease, fill 280ms ease !important;
}

.nav-toggle { display: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.site-nav a {
    position: relative; display: inline-block; padding: .6rem 0; text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--text);
}
.site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .3rem; height: 2px; background: var(--turquoise);
    transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }

/* Without JavaScript the links simply sit under the brand. With it, screens narrower than 70rem (the seven links no
   longer fit beside the logo and the theme toggle) get a menu button. */
@media (max-width: 69.99rem) {
    .brand-name { font-size: .95rem; }
    .header-tools { margin-left: auto; }
    .brand::before { width: 2.9rem; height: 2.66rem; }
    .js .nav-toggle {
        display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .9rem;
        background: transparent; color: var(--text); border: 2px solid var(--text); border-radius: var(--radius-sm);
        font: inherit; font-weight: 700; cursor: pointer; transition: transform 120ms var(--ease), background-color 150ms ease-out, color 150ms ease-out;
    }
    .js .nav-toggle:active { transform: scale(0.97); }
    .js .nav-toggle[aria-expanded="true"] { background: var(--text); color: var(--bg); }
    .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; }
    .nav-toggle-bars::before { content: ""; position: absolute; top: -.35rem; box-shadow: 0 .7rem 0 currentColor; }
    .js .site-nav {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px var(--panel-shadow);
        padding: .25rem var(--gutter) 1rem;
        visibility: hidden; opacity: 0; transform: translateY(-.5rem);
        transition: opacity 150ms ease-out, transform 180ms var(--ease), visibility 0s linear 180ms;
    }
    .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .js .site-nav ul { flex-direction: column; gap: 0; }
    .js .site-nav li + li { border-top: 1px solid var(--line); }
    .js .site-nav a { display: block; padding: 1rem 0; min-height: 3rem; font-size: 1.05rem; }
    .js .site-nav a::after { display: none; }
    .js .site-nav a[aria-current] { color: var(--text); box-shadow: inset 3px 0 0 var(--turquoise); padding-left: .85rem; }
}

/* On very narrow screens the menu button shows only its icon (the word stays available to screen readers), so the logo,
   the theme toggle and the menu button always fit on one row. */
@media (max-width: 26rem) {
    .js .nav-toggle { width: 2.75rem; padding: 0; justify-content: center; }
    .js .nav-toggle-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .brand-name { font-size: .88rem; }
    .header-tools { gap: .45rem; }
}
@media (max-width: 22rem) {
    .brand-name { font-size: .78rem; }
    .brand::before { width: 2.5rem; height: 2.3rem; }
    .brand { gap: .45rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-alt); padding: 2.5rem 0 3.5rem; }
.hero::before {
    content: ""; position: absolute; z-index: 0; right: -14rem; top: -10rem; width: 38rem; height: 38rem; border-radius: 50%; background: var(--surface);
}
.hero::after {
    display: none; content: ""; position: absolute; z-index: 0; right: -9rem; top: -5rem; width: 32rem; height: 32rem; border-radius: 50%;
    border: 3px solid var(--turquoise); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(-24deg); opacity: .55;
}
.hero-inner { position: relative; z-index: 1; display: grid; gap: 2.25rem; }
.hero h1 { font-size: clamp(2.25rem, 8vw, 4.1rem); }
.hero-sub { margin: 1rem 0 0; font-size: clamp(1.15rem, 3.5vw, 1.45rem); line-height: 1.4; color: var(--muted); }
.hero-lead { margin: 1.25rem 0 0; max-width: 36rem; font-size: 1.15rem; font-weight: 500; }
.hero .prose { margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 0; }
.hero-actions .btn { min-height: 3.25rem; padding-inline: 1.75rem; font-size: 1.05rem; }
.hero-media { position: relative; }
.hero-media::before {
    content: ""; position: absolute; z-index: 0; right: -.8rem; bottom: -.8rem; width: 62%; height: 62%; border-radius: var(--radius); background: var(--turquoise);
}
.hero-media img { position: relative; z-index: 1; width: 100%; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); }

@media (min-width: 56rem) {
    .hero::after { display: block; }
    .hero { padding: 4.5rem 0 5.5rem; }
    .hero--with-media .hero-inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 4.5rem; }
    .hero:not(.hero--with-media) .hero-text { max-width: 44rem; }
    .hero-media::before { right: -1.25rem; bottom: -1.25rem; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: rise 640ms var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms + 60ms); }
.hero-text > :nth-child(2) { --n: 1; }
.hero-text > :nth-child(3) { --n: 2; }
.hero-text > :nth-child(4) { --n: 3; }
.hero-text > :nth-child(5) { --n: 4; }
.hero-media { animation: settle 800ms var(--ease) both; animation-delay: 200ms; }
/* While the introduction is in the page, the hero waits for it to finish. */
.intro ~ main .hero-text > *, .intro ~ main .hero-media { animation-delay: calc(var(--n, 0) * 70ms + 1.25s); }

/* ---------- Content blocks ---------- */
.block { padding: 4rem 0; }
.block--alt { background: var(--bg-alt); }
.block h2 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); }
.block h2::before { content: ""; display: block; width: 3rem; height: 4px; margin-bottom: 1rem; background: var(--turquoise); border-radius: 2px; }
.block-sub { margin: .85rem 0 0; font-size: 1.15rem; line-height: 1.45; color: var(--muted); max-width: 44rem; }
.prose { max-width: 40rem; margin-top: 1.5rem; }
.prose p:last-child { margin-bottom: 0; }

@media (min-width: 56rem) {
    .block { padding: 6rem 0; }
}

/* Product introduction: the heading on one side, the words on the other. */
@media (min-width: 56rem) {
    .block--product .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 5rem; align-items: start; }
    .block--product .container > h2, .block--product .container > .block-sub { grid-column: 1; }
    .block--product .container > .prose { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; max-width: none; }
}
.block--product .prose p { font-size: 1.1rem; }
.block--product .prose p:first-child { font-size: 1.3rem; line-height: 1.5; font-weight: 600; }

/* ---------- Benefits ---------- */
.benefit-grid, .gallery-grid, .testimonial-grid, .package-grid { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.benefit-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.benefit {
    position: relative; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    transition: transform 180ms var(--ease), box-shadow 200ms ease-out, border-color 150ms ease-out;
}
.benefit::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 3px; background: var(--turquoise); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease); }
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.benefit:hover::before { transform: scaleX(1); }
.benefit h3 { margin: 1rem 0 .4rem; font-size: 1.2rem; }
.benefit p { margin: 0; color: var(--muted); }
.benefit-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: var(--radius-sm); background: var(--icon-bg); color: var(--icon-fg); }

/* ---------- Gallery ---------- */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); grid-auto-flow: dense; }
.gallery-grid figure { margin: 0; }
.gallery-media { overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); transition: transform 420ms var(--ease); }
.gallery-grid .gallery-media:hover img { transform: scale(1.045); }
.gallery-grid img.is-zoomable { cursor: zoom-in; }
.gallery-grid .media-video { aspect-ratio: 4 / 3; border-radius: 0; }
.gallery-grid figcaption { margin-top: .6rem; font-size: .95rem; color: var(--muted); }
@media (min-width: 56rem) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Image viewer (opened from the gallery by the script) */
.viewer { width: min(96vw, 70rem); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--white); overflow: visible; }
.viewer::backdrop { background: rgba(23, 23, 23, .88); }
.viewer[open] { animation: settle 220ms var(--ease); }
.viewer-img { width: auto; max-width: 100%; max-height: 80vh; margin-inline: auto; border-radius: var(--radius-sm); background: var(--white); }
.viewer-cap { margin: .75rem 0 0; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .85); }
.viewer-btn {
    position: absolute; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%;
    background: var(--white); color: var(--charcoal); font: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer;
    transition: transform 120ms var(--ease), background-color 150ms ease-out;
}
.viewer-btn:hover { background: var(--turquoise); }
.viewer-btn:active { transform: scale(0.94); }
.viewer-btn[hidden] { display: none; }
.viewer-close { top: -1rem; right: -.25rem; }
.viewer-prev, .viewer-next { top: 40%; }
.viewer-prev { left: -.25rem; }
.viewer-next { right: -.25rem; }
.viewer :focus-visible { outline-color: var(--white); }
.viewer-btn:focus-visible { outline-color: var(--turquoise); }

/* ---------- How to use ---------- */
.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.step {
    position: relative; display: grid; gap: 1rem; padding: 1.5rem 1.25rem 1.5rem 4.5rem; counter-increment: step;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
    transition: box-shadow 200ms ease-out, border-color 150ms ease-out;
}
.step:hover { box-shadow: var(--shadow-sm); border-color: var(--turquoise); }
.step::before {
    content: counter(step); position: absolute; left: 1.1rem; top: 1.4rem; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--icon-bg); color: var(--icon-fg); font-weight: 800; font-size: 1.05rem;
}
.step h3 { margin: .35rem 0 .4rem; font-size: 1.2rem; }
.step .prose { margin-top: .5rem; }
.step-image { width: 100%; max-width: 20rem; height: auto; border-radius: var(--radius-sm); background: var(--bg-alt); }
@media (min-width: 48rem) {
    .step { grid-template-columns: 1fr 20rem; align-items: start; gap: 2rem; padding: 1.75rem 1.75rem 1.75rem 5.25rem; }
    .step::before { left: 1.5rem; top: 1.7rem; }
    .step:has(> .step-video) { grid-template-columns: 1fr 28rem; }
}

.media-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--radius-sm); background: var(--charcoal); }
.step-video { max-width: 100%; }
.media-video p { margin: 1rem; color: var(--white); }
.media-video a { color: var(--white); }

/* ---------- Testimonials ---------- */
.testimonial-grid { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.testimonial { margin: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); height: 100%; }
.testimonial blockquote { margin: 0 0 1rem; }
.testimonial blockquote p { margin: 0 0 .75rem; }
.testimonial-photo { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; margin-bottom: .75rem; }
.testimonial figcaption { color: var(--muted); font-size: .95rem; }

/* ---------- Packages ---------- */
.package-grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: stretch; }
.package-grid > .package:only-child { max-width: 28rem; }
.package {
    position: relative; padding: 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: .5rem;
    border-top: 4px solid var(--turquoise); transition: transform 180ms var(--ease), box-shadow 200ms ease-out;
}
.package:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.package h3 { margin: 0; font-size: 1.25rem; }
.package-badge { align-self: flex-start; margin: 0; padding: .2rem .65rem; border-radius: 999px; background: var(--turquoise); color: var(--charcoal); font-size: .8rem; font-weight: 700; }
.package-details, .package-desc { margin: 0; color: var(--muted); }
.package-price { margin: .5rem 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.package-now { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.package-compare { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.25rem; max-width: 48rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    cursor: pointer; list-style: none; min-height: 3.5rem; display: flex; align-items: center; padding: 1rem 3rem 1rem 0; font-weight: 700; font-size: 1.08rem; position: relative;
    transition: color 150ms ease-out;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--link-hover); }
.faq-item summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 500; line-height: 1;
    background: var(--bg-alt); color: var(--text); transition: transform 200ms var(--ease), background-color 150ms ease-out;
}
.block--alt .faq-item summary::after { background: var(--surface); }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--turquoise); color: var(--charcoal); }
.faq-answer { padding: 0 0 1.25rem; color: var(--muted); }
.faq-item[open] .faq-answer { animation: faq-in 220ms var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@supports (interpolate-size: allow-keywords) {
    .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 240ms var(--ease), content-visibility 240ms allow-discrete; }
    .faq-item[open]::details-content { block-size: auto; }
}

/* ---------- Text that is only for screen readers ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Pricing and ordering ----------
 * The Sniper order form is not touched: only the space around it is styled. */
.block--order { background: var(--deep); color: var(--white); }
.block--order .block-sub, .block--order .prose { color: rgba(255, 255, 255, .78); }
.block--order .prose { color: rgba(255, 255, 255, .86); }
.block--order :focus-visible { outline-color: var(--white); }
.block--order a { color: var(--white); }
.order-price {
    margin: 1.75rem 0 0; max-width: 44rem; padding: 1.1rem 1.25rem; font-size: 1.05rem; line-height: 1.5;
    border-left: 4px solid var(--turquoise); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: rgba(255, 255, 255, .07);
}
.order-price strong { display: inline-block; margin-top: .15rem; font-size: 2rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--turquoise); }
.order-form { margin-top: 1.5rem; max-width: 44rem; padding: .5rem; border-radius: calc(var(--radius) + .5rem); background: var(--white); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.sniper-frame { color-scheme: light; display: block; width: 100%; min-height: 36rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.order-fallback { margin: .75rem .5rem .35rem; font-size: .95rem; color: var(--grey); }
.block--order .order-fallback a { color: var(--charcoal); font-weight: 600; }
.block--order .order-form :focus-visible { outline-color: var(--charcoal); }
.order-unavailable { margin-top: 1.5rem; max-width: 44rem; padding: 1.25rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); background: rgba(255, 255, 255, .07); }
.order-unavailable p { margin: 0; }
.order-contact { margin-top: .75rem; display: grid; gap: .35rem; }
.order-contact a { font-weight: 600; }
@media (max-width: 36rem) {
    .sniper-frame { min-height: 44rem; border-radius: 8px; }
    .order-form { padding: .25rem; border-radius: var(--radius); }
}

/* ---------- Stock message, serious-buyer notice, sales text sections, closing band ---------- */
.stock {
    display: inline-flex; align-items: center; gap: .6rem; margin: 1.5rem 0 0; padding: .6rem 1rem;
    font-weight: 700; font-size: 1.02rem; line-height: 1.35; color: var(--text);
    border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.stock-dot { flex: none; width: .65rem; height: .65rem; border-radius: 50%; background: var(--turquoise); }
.stock--low { border-color: var(--turquoise); }
.stock--low .stock-dot { box-shadow: 0 0 0 4px rgba(66, 184, 168, .25); }
.stock--out { color: var(--muted); }
.stock--out .stock-dot { background: var(--muted); }
.block--order .stock { margin-top: 1.25rem; color: var(--white); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.block--order .stock--low { border-color: var(--turquoise); }
.block--order .stock--out { color: rgba(255, 255, 255, .85); }
.block--order .stock--out .stock-dot { background: rgba(255, 255, 255, .7); }

/* A calm notice on the dark order section. Brand turquoise accent, no warning colours or icons. */
.order-notice {
    margin-top: 1.5rem; max-width: 44rem; padding: 1.25rem 1.35rem 1.1rem;
    border: 1px solid rgba(66, 184, 168, .55); border-left: 6px solid var(--turquoise);
    border-radius: var(--radius); background: rgba(66, 184, 168, .1); color: rgba(255, 255, 255, .92);
}
.order-notice h3 { margin: 0 0 .7rem; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: var(--turquoise); }
.order-notice p { margin: 0 0 .7rem; font-size: 1rem; line-height: 1.55; }
.order-notice p:last-child { margin-bottom: 0; }
.order-notice + .order-form { margin-top: 1rem; }
@media (max-width: 36rem) {
    .order-notice { padding: 1rem 1rem .9rem; }
    .stock { border-radius: var(--radius-sm); }
}

.prose--wide { max-width: 46rem; }
.prose--wide p { font-size: 1.1rem; }
.block--concerns .prose--wide p:first-child { font-size: 1.25rem; line-height: 1.5; font-weight: 600; }

.spec-list { margin: 2rem 0 0; padding: 0; max-width: 46rem; border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: .25rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 800; letter-spacing: -0.01em; }
.spec dd { margin: 0; color: var(--text); }
.block--features .prose { margin-top: 1.5rem; }
@media (max-width: 36rem) {
    .spec { grid-template-columns: 1fr; gap: .1rem; padding: .85rem 0; }
    .spec dt { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
}

.closing { padding: 3.5rem 0; text-align: center; background: var(--bg); border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
.closing p { margin: .75rem auto 0; max-width: 34rem; color: var(--muted); }
.closing .stock { margin: 1.25rem 0 0; }
.closing .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--white); border-top: 4px solid var(--turquoise); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 3rem; padding-block: 3.5rem 2.25rem; }
.footer-brand { max-width: 24rem; }
.footer-name { margin: 0; }
.footer-logo { display: block; width: min(17rem, 80vw); aspect-ratio: 1200 / 606; background: url("../brand/logo-full-light.png") left center / contain no-repeat; }
.footer-product { margin: .75rem 0 0; color: rgba(255, 255, 255, .72); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer a { display: inline-block; padding: .4rem 0; color: var(--white); text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); transition: text-decoration-color 150ms ease-out, color 150ms ease-out; }
.site-footer a:hover { color: var(--turquoise); text-decoration-color: var(--turquoise); }
.site-footer :focus-visible { outline-color: var(--white); }
.footer-tagline, .footer-text { margin: .5rem 0 0; color: inherit; opacity: .85; }
.footer-contact ul, .footer-social ul { list-style: none; margin: 0; padding: 0; }
.footer-contact ul, .footer-social ul { display: grid; gap: .1rem; }
.footer-heading { margin: 0 0 .5rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--turquoise); }
.footer-contact a, .footer-social a { color: inherit; }
.site-footer nav ul { display: grid; gap: .1rem; }
.footer-legal { padding-bottom: 2rem; }
.footer-legal p { margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; color: rgba(255, 255, 255, .72); }

/* Admin preview banner (never shown to visitors) */
.preview-banner { padding: .75rem var(--gutter); background: var(--charcoal); color: var(--white); font-size: .9rem; line-height: 1.5; }
.preview-banner p { margin: 0 0 .35rem; }
.preview-banner strong { color: var(--turquoise); }
.preview-flag { color: #ffd98a; }
.preview-banner summary { cursor: pointer; font-weight: 600; }
.preview-banner :focus-visible { outline-color: var(--white); }
.preview-banner .seo-title { margin: .5rem 0 0; color: #9ec9ff; font-size: 1.05rem; }
.preview-banner .seo-desc { margin: .15rem 0 0; color: rgba(255, 255, 255, .8); }


/* ---------- Scroll reveal ----------
 * The script marks only elements that are still below the fold, so nothing visible ever flickers. The delayed
 * animation is a safety net: if the script stops, everything appears after 3 seconds anyway. */
[data-reveal] { opacity: 0; transform: translateY(18px); animation: reveal-safety 10ms linear 3s forwards; }
[data-reveal].is-in {
    opacity: 1; transform: none; animation: none;
    transition: opacity 560ms ease-out, transform 640ms var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
}
@keyframes reveal-safety { to { opacity: 1; transform: none; } }
/* Elements that have their own hover transform need the reveal and the hover to share one transition. */
.benefit[data-reveal].is-in, .package[data-reveal].is-in { transition: opacity 560ms ease-out calc(var(--i, 0) * 70ms), transform 180ms var(--ease), box-shadow 200ms ease-out, border-color 150ms ease-out; }

/* ---------- Brand introduction ----------
 * Visible from the first paint (no flash), fades out by itself after about 1.4 seconds, and never blocks scrolling
 * or clicks once faded (visibility: hidden). The script removes it earlier when it should not play at all. */
.intro {
    position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg);
    animation: intro-out 320ms ease-in 1.2s both;
}
.intro-stage { display: grid; justify-items: center; gap: .9rem; padding: 1.5rem; text-align: center; }
.intro-emblem {
    display: block; width: min(9.5rem, 38vw); aspect-ratio: 400 / 367; background: url("../brand/logo-emblem-md.png") center / contain no-repeat;
    animation: intro-emblem 620ms var(--ease) both;
}
.intro-name {
    margin: .25rem 0 0; font-size: clamp(1.4rem, 6vw, 2.1rem); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1;
    animation: intro-name 520ms var(--ease) 380ms both;
}
.intro-tagline { margin: 0; color: var(--muted); font-size: 1rem; animation: intro-fade 420ms ease-out 700ms both; }
.intro-line { display: block; width: 4.5rem; height: 4px; border-radius: 2px; background: var(--turquoise); transform-origin: left; animation: intro-line 520ms var(--ease) 520ms both; }
.intro-skip {
    position: absolute; right: var(--gutter); bottom: 1.25rem; min-width: 3rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 150ms ease-out, transform 120ms var(--ease);
}
.intro-skip:hover { background: var(--bg-alt); }
.intro-skip:active { transform: scale(0.96); }
@keyframes intro-emblem { from { opacity: 0; transform: translateY(14px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes intro-name { from { opacity: 0; transform: translateY(10px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .intro { display: none !important; }
    .theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: none !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
