/* ===========================================================================
   Folirama website. The design is the app's own workbench: a green cutting
   mat, white sheets, a yellow binding thread, and Archivo with Newsreader
   italic folios (both bundled, nothing from a CDN).

   THEMING: every colour is a token of the palette blocks right below. No
   component, page or rule further down spells a colour out. A new theme is a
   new block here plus one line in SiteTheme.cs.
   =========================================================================== */

@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-var.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo-var-ext.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Newsreader";
    src: url("fonts/newsreader-italic.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

/* ---------- Palette: Paper (light), also the daytime face of Auto ---------- */
:root,
:root[data-site-theme="paper"],
:root[data-site-theme="auto"] {
    color-scheme: light;
    --bg: #eaf0ec;
    --surface: #ffffff;
    --surface-2: #f4f8f5;
    --ink: #15312a;
    --ink-soft: #4d655b;
    --rule: #c4d1c9;
    --focus: #0f6e5c;
    --mat: #0f4a40;
    --mat-deep: #0a3a32;
    --mat-line: #2a6a5c;
    --mat-tick: #7fb8a6;
    --mat-ink: #e6f3ec;
    --mat-ink-soft: #a9cfc2;
    --paper: #ffffff;
    --paper-ink: #15312a;
    --paper-ink-soft: #52695f;
    --paper-line: #c9d5ce;
    --paper-edge: #d5ddd9;
    --thread: #f6b81a;
    --thread-hover: #ffc93d;
    --thread-ink: #1d2a14;
    --danger: #b3261a;
    --danger-soft: #fbe9e6;
    --ok: #17654c;
    --ok-soft: #e3f3ec;
    --info-soft: #eef3d9;
    --shadow: #04211c2e;
    --shadow-strong: #04211c55;
    --header-bg: #eaf0ecdd;
    /* the logo: the app icon's own colours, the same in every theme */
    --logo-tile-hi: #1b7a64;
    --logo-tile-lo: #0f4a40;
    --logo-sun-hi: #ffd25a;
    --logo-back: #8cc2b0;
    --logo-mid: #d6eae1;
    --logo-fold: #bfd3c9;
    /* swatches of the theme picker: the face of each palette */
    --sw-paper: #ffffff;
    --sw-paper-edge: #0f4a40;
    --sw-mat: #0f4a40;
    --sw-mat-edge: #f6b81a;
    --sw-graphite: #1e2421;
    --sw-graphite-edge: #f6b81a;
}

/* ---------- Palette: Mat (the app's green), also the night face of Auto ---------- */
:root[data-site-theme="mat"] {
    color-scheme: dark;
    --bg: #0a3a32;
    --surface: #0f4a40;
    --surface-2: #12503f;
    --ink: #e6f3ec;
    --ink-soft: #a9cfc2;
    --rule: #2a6a5c;
    --focus: #ffc93d;
    --mat: #072c26;
    --mat-deep: #052520;
    --mat-line: #1c5a4d;
    --mat-tick: #5e9c89;
    --paper-line: #c9d5ce;
    --danger: #ffb7a8;
    --danger-soft: #4a2a22;
    --ok: #9ee6c4;
    --ok-soft: #164c3c;
    --info-soft: #24503d;
    --shadow: #0000004d;
    --shadow-strong: #00000080;
    --header-bg: #0a3a32e6;
}
@media (prefers-color-scheme: dark) {
    :root[data-site-theme="auto"] {
        color-scheme: dark;
        --bg: #0a3a32;
        --surface: #0f4a40;
        --surface-2: #12503f;
        --ink: #e6f3ec;
        --ink-soft: #a9cfc2;
        --rule: #2a6a5c;
        --focus: #ffc93d;
        --mat: #072c26;
        --mat-deep: #052520;
        --mat-line: #1c5a4d;
        --mat-tick: #5e9c89;
        --danger: #ffb7a8;
        --danger-soft: #4a2a22;
        --ok: #9ee6c4;
        --ok-soft: #164c3c;
        --info-soft: #24503d;
        --shadow: #0000004d;
        --shadow-strong: #00000080;
        --header-bg: #0a3a32e6;
    }
}

/* ---------- Palette: Graphite (neutral dark) ---------- */
:root[data-site-theme="graphite"] {
    color-scheme: dark;
    --bg: #151917;
    --surface: #1e2421;
    --surface-2: #242b28;
    --ink: #eef1ef;
    --ink-soft: #a5b0ab;
    --rule: #343d39;
    --focus: #ffc93d;
    --mat: #0f4a40;
    --mat-deep: #0a3a32;
    --danger: #ff9e8c;
    --danger-soft: #3b2420;
    --ok: #8fdcb8;
    --ok-soft: #1d3a2f;
    --info-soft: #2d3524;
    --shadow: #00000066;
    --shadow-strong: #00000099;
    --header-bg: #151917e6;
}

/* ---------- Telerik mapped onto the palette ---------- */
:root {
    --kendo-font-family: var(--font-ui);
    --kendo-color-primary: var(--thread);
    --kendo-color-primary-hover: var(--thread-hover);
    --kendo-color-primary-active: var(--thread-hover);
    --kendo-color-primary-emphasis: var(--thread);
    --kendo-color-on-primary: var(--thread-ink);
    --kendo-color-surface: var(--surface-2);
    --kendo-color-surface-alt: var(--surface);
    --kendo-color-app-surface: var(--surface);
    --kendo-color-on-app-surface: var(--ink);
    --kendo-color-base: var(--surface);
    --kendo-color-base-hover: var(--surface-2);
    --kendo-color-base-active: var(--surface-2);
    --kendo-color-on-base: var(--ink);
    --kendo-color-border: var(--rule);
    --kendo-color-subtle: var(--ink-soft);
    --kendo-color-error: var(--danger);

    --font-ui: "Archivo", "Segoe UI", system-ui, sans-serif;
    --font-folio: "Newsreader", Georgia, "Times New Roman", serif;
    --wrap: 72rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --radius: 12px;
    --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ===========================================================================
   Base
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 1.0625rem;
    line-height: 1.6;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 760; }
h3 { font-size: 1.15rem; font-weight: 680; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
/* FocusOnNavigate focuses the h1 for screen readers; no ring for that programmatic focus */
h1:focus, h1:focus-visible { outline: none; }

.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem 1rem; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: .5rem; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ===========================================================================
   Buttons (plain links and Telerik buttons share them)
   =========================================================================== */
.btn, .btn.k-button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.75rem; padding: .6rem 1.25rem;
    border-radius: 999px; border: 1.5px solid transparent;
    font: 650 1rem/1.2 var(--font-ui); letter-spacing: .005em;
    text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .12s;
    background-image: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary, .btn.k-button.btn-primary { background: var(--thread); color: var(--thread-ink); border-color: var(--thread); }
.btn-primary:hover, .btn.k-button.btn-primary:hover { background: var(--thread-hover); border-color: var(--thread-hover); }
.btn-ghost, .btn.k-button.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-ghost:hover, .btn.k-button.btn-ghost:hover { background: var(--surface-2); }
.btn-danger, .btn.k-button.btn-danger { background: var(--danger); color: var(--surface); border-color: var(--danger); }
.btn-sm { min-height: 2.25rem; padding: .35rem 1rem; font-size: .92rem; }
.btn-lg { min-height: 3.25rem; padding: .8rem 1.6rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.k-disabled { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.link-btn[disabled] { opacity: .6; cursor: default; }

/* ===========================================================================
   Header
   =========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 1rem;
    padding: .7rem var(--gutter);
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}
.brand { text-decoration: none; display: inline-flex; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.logo-mark { flex: none; display: block; }
.logo-word { font-weight: 800; font-size: 1.32rem; letter-spacing: -0.035em; line-height: 1; }
.logo-i { position: relative; display: inline-block; }
.logo-i::after {
    content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: .22em; height: .22em; border-radius: 50%; background: var(--thread);
}
.lg-tile-hi { stop-color: var(--logo-tile-hi); }
.lg-tile-lo { stop-color: var(--logo-tile-lo); }
.lg-sun-hi { stop-color: var(--logo-sun-hi); }
.lg-sun-lo { stop-color: var(--thread); }
.lm-rim { fill: none; stroke: var(--mat-tick); stroke-opacity: .35; }
.lm-back { fill: var(--logo-back); }
.lm-mid { fill: var(--logo-mid); }
.lm-sheet { fill: var(--paper); }
.lm-fold { fill: var(--logo-fold); }
.lm-lines { fill: none; stroke: var(--logo-mid); stroke-width: 1.8; stroke-linecap: round; }
.site-footer .logo { color: var(--mat-ink); }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.header-link { text-decoration: none; font-weight: 560; font-size: .98rem; color: var(--ink-soft); }
.header-link:hover { color: var(--ink); }
.header-pickers { display: flex; gap: .4rem; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; margin-left: auto; width: 2.6rem; height: 2.6rem; cursor: pointer; border-radius: 8px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 1.3rem; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Pickers (language, theme): details/summary, works without a circuit */
.picker { position: relative; }
.picker summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
    min-height: 2.25rem; padding: 0 .7rem; border-radius: 999px; border: 1px solid var(--rule);
    font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.picker summary::-webkit-details-marker { display: none; }
.picker[open] summary, .picker summary:hover { color: var(--ink); border-color: var(--ink-soft); }
.picker-menu {
    position: absolute; right: 0; top: calc(100% + .4rem); min-width: 11rem; z-index: 50;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 10px;
    box-shadow: 0 12px 30px var(--shadow); padding: .35rem; display: grid;
}
.picker-title { font-size: .8rem; color: var(--ink-soft); padding: .35rem .6rem .25rem; }
.picker-item { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 7px; text-decoration: none; font-size: .95rem; }
.picker-item:hover { background: var(--surface-2); }
.picker-item.active { font-weight: 700; background: var(--surface-2); }
.swatch { width: 1rem; height: 1rem; border-radius: 50%; display: inline-block; border: 2px solid; flex: none; }
.swatch.paper { background: var(--sw-paper); border-color: var(--sw-paper-edge); }
.swatch.mat { background: var(--sw-mat); border-color: var(--sw-mat-edge); }
.swatch.graphite { background: var(--sw-graphite); border-color: var(--sw-graphite-edge); }
.swatch.auto { background: linear-gradient(135deg, var(--sw-paper) 50%, var(--sw-mat) 50%); border-color: var(--sw-paper-edge); }

/* ===========================================================================
   Hero: text on the left, the mat on the right
   =========================================================================== */
.hero {
    max-width: var(--wrap); margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-title {
    font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 850; line-height: 1.0; letter-spacing: -0.035em;
    margin-bottom: .45em; max-width: 12ch;
}
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--ink-soft); max-width: 34rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1rem; }
.hero-fine { font-family: var(--font-folio); font-style: italic; color: var(--ink-soft); font-size: 1.02rem; }

/* The mat */
.mat {
    position: relative; margin: 0; aspect-ratio: 5 / 4.3; border-radius: 18px; overflow: hidden;
    background: var(--mat);
    box-shadow: 0 30px 60px -28px var(--shadow-strong), inset 0 0 0 1px var(--mat-line);
}
.mat-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--mat-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--mat-line) 1px, transparent 1px),
        linear-gradient(var(--mat-tick) 1px, transparent 1px),
        linear-gradient(90deg, var(--mat-tick) 1px, transparent 1px);
    background-size: 2rem 2rem, 2rem 2rem, 10rem 10rem, 10rem 10rem;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
    opacity: .55;
}
.mat-sheets { position: absolute; inset: 0; }

.sheet {
    position: absolute; width: 30%; aspect-ratio: 210 / 297;
    background: var(--paper); border-radius: 3px;
    box-shadow: 0 10px 22px -8px var(--shadow-strong), 0 0 0 1px var(--paper-edge);
    padding: 9% 9% 0; display: flex; flex-direction: column; gap: 6%;
    overflow: hidden; z-index: calc(1 + var(--i));
    transition:
        left .95s var(--ease-out) calc(var(--i) * 90ms),
        top .95s var(--ease-out) calc(var(--i) * 90ms),
        width .95s var(--ease-out) calc(var(--i) * 90ms),
        transform .95s var(--ease-out) calc(var(--i) * 90ms);
}
.sheet i, .sheet b { display: block; height: 3.2%; min-height: 3px; background: var(--paper-line); border-radius: 2px; flex: none; }
.sheet b { height: 6%; width: 60%; background: var(--mat-line); }
.sheet i.short { width: 62%; }
.sheet .box { flex: none; height: 22%; border: 1.5px solid var(--paper-line); border-radius: 2px; }
.folio {
    position: absolute; left: 0; right: 0; bottom: 4%; text-align: center;
    font-family: var(--font-folio); font-style: italic; font-size: clamp(.58rem, 1vw, .78rem); color: var(--ink-soft);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6%;
}
/* the photo: a picture printed edge to edge */
.s-photo { padding: 0; gap: 0; }
.ph-sky { position: absolute; inset: 0 0 34% 0; background: var(--mat-tick); }
.ph-hill { position: absolute; left: -10%; right: -10%; bottom: 14%; height: 40%; background: var(--mat-line); border-radius: 50% 50% 0 0; }
.ph-sun { position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--thread); top: 16%; right: 18%; }
.s-photo .folio { background: var(--paper); bottom: 0; padding-block: 3%; }

/* Where they were dropped */
.s-photo   { left: 5%;  top: 8%;  transform: rotate(-9deg); }
.s-scan    { left: 54%; top: 5%;  transform: rotate(7deg); }
.s-pdf     { left: 30%; top: 33%; transform: rotate(-3deg); }
.s-doc     { left: 63%; top: 40%; transform: rotate(10deg); }
.s-receipt { left: 9%;  top: 50%; width: 19%; transform: rotate(4deg); aspect-ratio: 1 / 2.4; }

/* Bound: one straight stack, the files now pages of one PDF */
.mat.is-bound .sheet { left: 33%; top: 9%; width: 30%; aspect-ratio: 210 / 297; transform: translate(calc(var(--i) * 7px), calc(var(--i) * -6px)) rotate(0deg); }

.thread {
    position: absolute; left: calc(33% + 2px); top: 9%; width: 4%; height: 64%;
    z-index: 10; overflow: visible; opacity: 0; transition: opacity .2s 1.1s;
}
.thread path { fill: none; stroke: var(--thread); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.mat.is-bound .thread { opacity: 1; }
.mat.is-bound .thread path { stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease-out) 1.15s; }

.mat-ticket {
    position: absolute; right: 5%; bottom: 6%; z-index: 12;
    display: grid; gap: .1rem; padding: .7rem 1rem .75rem; border-radius: 8px;
    background: var(--surface); color: var(--ink); box-shadow: 0 12px 26px -10px var(--shadow-strong);
    border-left: 4px solid var(--thread);
    opacity: 0; transform: translateY(10px); transition: opacity .5s 2s, transform .5s var(--ease-out) 2s;
}
.mat.is-bound .mat-ticket { opacity: 1; transform: none; }
.t-name { font-weight: 750; font-size: .98rem; }
.t-meta { font-family: var(--font-folio); font-style: italic; color: var(--ink-soft); font-size: .92rem; }
/* Without JS, or with reduced motion: show the finished state at once */
html:not(.js-on) .mat .sheet { left: 33%; top: 9%; width: 30%; aspect-ratio: 210 / 297; transform: translate(calc(var(--i) * 7px), calc(var(--i) * -6px)); }
html:not(.js-on) .mat .thread, html:not(.js-on) .mat .mat-ticket { opacity: 1; transform: none; }
html:not(.js-on) .mat .thread path { stroke-dashoffset: 0; }
.mat.no-motion .sheet, .mat.no-motion .thread, .mat.no-motion .thread path, .mat.no-motion .mat-ticket { transition: none !important; }

/* ===========================================================================
   Bands
   =========================================================================== */
.band { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter); }
.section-title { max-width: 22ch; }
.section-sub { color: var(--ink-soft); font-size: 1.12rem; max-width: 40rem; }
.page-head { max-width: var(--wrap); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 0; }
.page-head.narrow { max-width: 44rem; }
.page-head .btn { margin: .5rem 0 1.25rem; }

/* Steps: a real sequence, numbered with folio numerals */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.steps li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.step-n { display: block; font-family: var(--font-folio); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--mat-line); margin-bottom: .6rem; }
:root[data-site-theme="mat"] .step-n, :root[data-site-theme="graphite"] .step-n { color: var(--thread); }
@media (prefers-color-scheme: dark) { :root[data-site-theme="auto"] .step-n { color: var(--thread); } }
.steps p { color: var(--ink-soft); margin: 0; }

/* Tools: rows of a job ticket */
.band-tools { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.tools-intro { position: sticky; top: 6rem; }
.tool-rows { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.tool-row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1rem; padding: .95rem 1.25rem; }
.tool-row + .tool-row { border-top: 1px solid var(--rule); }
.tool-row dt { font-weight: 680; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.tool-row dd { margin: 0; color: var(--ink-soft); }
.tag-pro { font-size: .72rem; font-weight: 750; padding: .05rem .5rem; border-radius: 999px; background: var(--thread); color: var(--thread-ink); letter-spacing: .02em; }


/* Pricing: two job tickets with a perforated tear line */
.tickets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); margin-top: 1.75rem; max-width: 56rem; }
.ticket {
    position: relative; display: flex; flex-direction: column; gap: 1rem;
    background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2rem);
}
.ticket-pro { background: var(--mat); color: var(--mat-ink); border-color: var(--mat-line); }
.ticket-pro .ticket-note, .ticket-pro .ticket-fine, .ticket-pro .per { color: var(--mat-ink-soft); }
.ticket-pro .btn-ghost { color: var(--mat-ink); }
.ticket-pro .btn-ghost:hover { background: var(--mat-deep); }
.ticket-head { padding-bottom: 1rem; border-bottom: 2px dashed var(--rule); position: relative; }
.ticket-pro .ticket-head { border-bottom-color: var(--mat-line); }
/* the punched notches at both ends of the tear line */
.ticket-head::before, .ticket-head::after {
    content: ""; position: absolute; bottom: -.75rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--bg);
}
.ticket-head::before { left: calc(clamp(1.4rem, 3vw, 2rem) * -1 - .75rem); }
.ticket-head::after { right: calc(clamp(1.4rem, 3vw, 2rem) * -1 - .75rem); }
.ticket h2, .ticket h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
.ticket-price { margin: 0; display: flex; align-items: baseline; gap: .4rem; }
.amount { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1; }
.per { color: var(--ink-soft); }
.ticket-note { margin: .4rem 0 0; color: var(--ink-soft); }
/* Discount code at checkout: the list price struck through next to the new one. */
.ticket-price .was { font-size: 1.15rem; font-weight: 600; opacity: .75; }
.disc-note { font-weight: 600; }
.disc-row { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.disc-row .k-textbox, .disc-row .k-input { flex: 1 1 10rem; min-width: 0; }
.field-hint.ok { color: var(--ok); font-weight: 600; }
/* Credit note (refund): the rectified invoice under the number. */
.inv-credit-of { margin: .35rem 0 0; font-size: .9rem; }
.ticket-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; flex: 1; }
.ticket-list li { padding-left: 1.5rem; position: relative; }
.ticket-list li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .75rem; height: 2px; background: var(--thread); border-radius: 2px; }
.ticket-actions { display: grid; gap: .6rem; }
.ticket-actions.row { display: flex; flex-wrap: wrap; }
.ticket-fine { font-size: .86rem; color: var(--ink-soft); margin: 0; }

/* Who it is for: six kinds of office, a plain grid of titled paragraphs */
.who-list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem clamp(1.5rem, 4vw, 3rem); }
.who-list li { border-left: 3px solid var(--thread); padding-left: 1rem; }
.who-list h3 { margin-bottom: .35rem; }
.who-list p { color: var(--ink-soft); margin: 0; }

/* Why not a free tool: same ruled ticket as the tool rows */
.band-why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.why-rows { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.why-row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1rem; padding: .95rem 1.25rem; }
.why-row + .why-row { border-top: 1px solid var(--rule); }
.why-row dt { font-weight: 680; }
.why-row dd { margin: 0; color: var(--ink-soft); }

/* Pricing switch: two radios + labels, no script (works on the static pages) */
.pricing { margin-top: 1.5rem; }
.aud-input { position: absolute; opacity: 0; pointer-events: none; }
.aud-switch { display: inline-flex; padding: .3rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); }
.aud-switch label { padding: .5rem 1.15rem; border-radius: 999px; font-weight: 650; cursor: pointer; color: var(--ink-soft); }
.aud-biz-in:checked ~ .aud-switch label[for^="aud-biz"],
.aud-me-in:checked ~ .aud-switch label[for^="aud-me"] { background: var(--mat); color: var(--mat-ink); }
.aud-biz-in:focus-visible ~ .aud-switch label[for^="aud-biz"],
.aud-me-in:focus-visible ~ .aud-switch label[for^="aud-me"] { outline: 2px solid var(--focus); outline-offset: 2px; }
.aud-panel { display: none; }
.aud-biz-in:checked ~ .aud-panel.aud-biz,
.aud-me-in:checked ~ .aud-panel.aud-me { display: block; }
.aud-note { color: var(--ink-soft); margin: 1rem 0 0; }
.aud-more { margin: 1.25rem 0 0; color: var(--ink-soft); }
.guarantee { margin: 1.5rem 0 0; font-family: var(--font-folio); font-style: italic; font-size: 1.08rem; color: var(--ink-soft); max-width: 44rem; }
.tickets.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.ticket-alt { text-align: center; font-size: .92rem; color: inherit; opacity: .85; }
.ticket-flag { margin: 0 0 .35rem; font-size: .85rem; font-weight: 700; color: var(--thread); }
.ticket-lifetime { border: 2px solid var(--thread); }
.ticket-lifetime .ticket-flag { color: var(--ink); background: var(--thread); display: inline-block; padding: .1rem .6rem; border-radius: 999px; }

/* Checkout: number of users */
.seats { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .25rem 0 .5rem; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--mat-line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 2.5rem; height: 2.4rem; border: 0; background: var(--mat-deep); color: var(--mat-ink); font: 700 1.15rem var(--font-ui); cursor: pointer; }
.stepper button[disabled] { opacity: .4; cursor: default; }
.stepper output { min-width: 2.6rem; text-align: center; font-weight: 750; font-size: 1.1rem; }

/* Account: PCs holding a license, and the Basic quota of each */
.account-pcs { display: grid; gap: .75rem; }
.account-pcs h2 { margin: 0; font-size: 1.3rem; }
.pc-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.pc-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.15rem; }
.pc-row + .pc-row { border-top: 1px solid var(--rule); }
.pc-main { display: grid; gap: .2rem; }
.pc-meta { color: var(--ink-soft); font-size: .92rem; }
.pc-confirm { display: inline-flex; gap: .5rem; flex-wrap: wrap; }
.pc-empty { color: var(--ink-soft); margin: 0; }
.quota { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--ink-soft); }
.quota-bar { width: 7rem; height: .45rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--rule); overflow: hidden; }
.quota-bar i { display: block; height: 100%; background: var(--thread); }

/* FAQ */
.faq { max-width: 48rem; margin-top: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 650; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.3rem; font-weight: 400; color: var(--ink-soft); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1rem; margin: 0; max-width: 42rem; }

.plain-list { color: var(--ink-soft); padding-left: 1.2rem; }

/* Download page: one card per system. */
.dl-grid { max-width: 44rem; margin: 0 auto; padding: 1rem var(--gutter) 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; align-items: start; }
.dl-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.4rem 1rem; }
.dl-card h2 { margin: 0 0 .75rem; font-size: 1.35rem; }
.dl-card .btn { margin: 0 0 .75rem; }
.dl-soon, .dl-how { color: var(--ink-soft); margin: 0 0 .75rem; }

/* ===========================================================================
   Forms and account
   =========================================================================== */
.form-page { padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem; display: flex; justify-content: center; }
.form-card {
    width: 100%; max-width: 30rem; background: var(--surface); border: 1px solid var(--rule);
    border-radius: 16px; padding: clamp(1.4rem, 4vw, 2.25rem); box-shadow: 0 20px 40px -30px var(--shadow-strong);
}
.form-card.center { text-align: center; }
.form-card h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.form-card h2 { font-size: 1.35rem; }
.form-lead { color: var(--ink-soft); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 620; font-size: .94rem; margin-bottom: .35rem; }
.field .k-input, .field .k-picker { width: 100%; min-height: 2.75rem; font-size: 1rem; border-radius: 8px; }
.field.is-invalid:not(.is-edited) .k-input,
.field.is-invalid:not(.is-edited) .k-picker,
.field.is-invalid:not(.is-edited) .k-checkbox { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field-err { color: var(--danger); font-size: .9rem; font-weight: 560; margin: .35rem 0 0; }
.field.is-edited .field-err { opacity: .55; }
.field-hint { color: var(--ink-soft); font-size: .86rem; margin: .3rem 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 450 !important; font-size: .95rem !important; }
.check .k-checkbox { margin-top: .2rem; flex: none; }
.code-input input { letter-spacing: .35em; font-size: 1.3rem; font-weight: 700; }
.form-msg { padding: .75rem 1rem; border-radius: 8px; font-weight: 540; margin: 0 0 1.1rem; }
.form-msg.err { background: var(--danger-soft); color: var(--danger); }
.form-msg.ok { background: var(--ok-soft); color: var(--ok); }
.form-msg.info { background: var(--info-soft); color: var(--ink); }
.form-alt { text-align: center; color: var(--ink-soft); margin: 1rem 0 0; font-size: .95rem; }
.form-card .btn-block + .btn-block { margin-top: .6rem; }
.loading { display: flex; align-items: center; gap: .6rem; color: var(--ink-soft); margin: 0; }
.spinner { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--rule); border-top-color: var(--thread); animation: spin .8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.folio-big { font-family: var(--font-folio); font-style: italic; font-size: 4rem; line-height: 1; color: var(--ink-soft); margin: 0 0 .5rem; }

.form-page.wide { display: block; }
.account { max-width: 44rem; margin: 0 auto; display: grid; gap: 1.5rem; }
.account-head h1 { margin-bottom: .2rem; }
.plan-ticket .confirm { display: grid; gap: .75rem; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.account-app { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.account-app p { color: var(--ink-soft); }

/* Checkout */
.checkout { max-width: 60rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.checkout-summary h1 { font-size: 1.5rem; }
.checkout-pay { max-width: none; }
.period-switch { display: inline-flex; padding: .25rem; border-radius: 999px; background: var(--mat-deep); margin: .5rem 0 1rem; }
.period-switch button { border: 0; background: transparent; color: var(--mat-ink-soft); font: 620 .92rem var(--font-ui); padding: .45rem 1rem; border-radius: 999px; cursor: pointer; }
.period-switch button.on { background: var(--thread); color: var(--thread-ink); }
.period-switch button[disabled] { cursor: default; }
.pay-methods { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; }
.pay-methods legend { font-weight: 620; font-size: .94rem; margin-bottom: .5rem; }
.pay-method { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border: 1px solid var(--rule); border-radius: 10px; cursor: pointer; }
.pay-method.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-method input { accent-color: var(--mat); width: 1.1rem; height: 1.1rem; }
.pay-frame-wrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: var(--paper); }
.pay-frame { display: block; width: 100%; height: 640px; border: 0; background: var(--paper); }

/* Legal */
.legal { max-width: 44rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 4rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { color: var(--ink-soft); }
.legal-date { font-family: var(--font-folio); font-style: italic; }
.legal h1 + p { font-family: var(--font-folio); font-style: italic; color: var(--ink-soft); }
.legal ul { color: var(--ink-soft); padding-left: 1.25rem; display: grid; gap: .4rem; margin: 0 0 1em; }
.legal li strong, .legal p strong { color: var(--ink); }
.legal a { color: var(--ink); }
.legal-table { overflow-x: auto; margin: 0 0 1.25em; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .6rem .8rem; border-bottom: 1px solid var(--rule); }
.legal-table th { font-weight: 680; color: var(--ink); background: var(--surface-2); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table td { color: var(--ink-soft); }
.legal-prevails { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9rem; }

/* ===========================================================================
   Footer
   =========================================================================== */
.site-footer { background: var(--mat-deep); color: var(--mat-ink); margin-top: 2rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 3rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.footer-claim { color: var(--mat-ink-soft); margin-top: .8rem; max-width: 22rem; font-family: var(--font-folio); font-style: italic; font-size: 1.05rem; }
.footer-col { display: grid; gap: .5rem; align-content: start; }
.footer-col a { text-decoration: none; color: var(--mat-ink-soft); }
.footer-col a:hover { color: var(--mat-ink); text-decoration: underline; }
.footer-bar { max-width: var(--wrap); margin: 0 auto; padding: 1.25rem var(--gutter) 2rem; border-top: 1px solid var(--mat-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .88rem; color: var(--mat-ink-soft); }

/* ===========================================================================
   Blazor circuit errors: fail out loud
   =========================================================================== */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; padding: .8rem var(--gutter); background: var(--danger); color: var(--surface); font-weight: 600; }
#blazor-error-ui .reload { color: inherit; margin-left: 1rem; }
#components-reconnect-modal { display: none; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex; position: fixed; inset: 0; z-index: 999; align-items: center; justify-content: center; background: var(--shadow-strong);
}
.reconnect-card { background: var(--surface); color: var(--ink); padding: 1.5rem 1.75rem; border-radius: 14px; max-width: 22rem; }
.reconnect-trying { display: flex; align-items: center; gap: .6rem; }
.reconnect-lost { display: none; }
.components-reconnect-failed .reconnect-trying, .components-reconnect-rejected .reconnect-trying { display: none; }
.components-reconnect-failed .reconnect-lost, .components-reconnect-rejected .reconnect-lost { display: block; }

/* ===========================================================================
   Narrow screens
   =========================================================================== */
@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; }
    .hero-title { max-width: 16ch; }
    .band-tools { grid-template-columns: 1fr; }
    .band-why { grid-template-columns: 1fr; }
    .who-list { grid-template-columns: 1fr 1fr; }
    .tickets.three { grid-template-columns: 1fr 1fr; }
    .tools-intro { position: static; }
    .checkout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .nav-burger { display: inline-flex; }
    .header-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: .25rem;
        padding: .75rem var(--gutter) 1.25rem; background: var(--surface); border-bottom: 1px solid var(--rule);
        box-shadow: 0 16px 30px -18px var(--shadow-strong);
    }
    .nav-toggle:checked ~ .header-nav { display: flex; }
    .header-link { padding: .6rem 0; font-size: 1.05rem; }
    .header-pickers { padding: .5rem 0; }
    .picker-menu { left: 0; right: auto; }
    .steps { grid-template-columns: 1fr; }
    .tickets { grid-template-columns: 1fr; }
    .tool-row { grid-template-columns: 1fr; gap: .2rem; }
    .why-row { grid-template-columns: 1fr; gap: .2rem; }
    .who-list { grid-template-columns: 1fr; }
    .tickets.three { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .pay-frame { height: 720px; }
}
@media (max-width: 420px) {
    .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ===========================================================================
   Invoices: the list on /account and the A4 sheet of /invoice/{no}.
   The sheet is always paper (white, dark ink) whatever the theme, on screen
   and in print. Print keeps only the sheet (header, footer, buttons hidden).
   =========================================================================== */
.account-invoices { display: grid; gap: .75rem; }
.account-invoices h2 { margin: 0; font-size: 1.3rem; }
.inv-no { font-weight: 700; color: inherit; }
.inv-amount { font-weight: 700; font-variant-numeric: tabular-nums; }

.invoice-page { padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 4rem; display: grid; justify-items: center; gap: 1rem; }
.invoice-tools { width: 100%; max-width: 210mm; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.invoice-sheet {
    width: 100%; max-width: 210mm; min-height: 297mm; box-sizing: border-box;
    padding: clamp(1.25rem, 5vw, 18mm); background: var(--paper); color: var(--paper-ink);
    border: 1px solid var(--paper-edge); border-radius: 4px; box-shadow: 0 18px 40px -24px var(--shadow-strong);
    display: flex; flex-direction: column; gap: 1.6rem; font-size: .95rem; line-height: 1.45;
}
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap;
            padding-bottom: 1rem; border-bottom: 3px solid var(--thread); }
.inv-brand { font: 800 1.7rem/1 var(--font-ui); color: var(--mat); letter-spacing: -.01em; }
.inv-ident h1 { margin: 0 0 .4rem; font-size: 1.6rem; color: var(--paper-ink); text-align: right; }
.inv-meta { margin: 0; display: grid; gap: .15rem; }
.inv-meta div { display: flex; gap: .75rem; justify-content: flex-end; }
.inv-meta dt { color: var(--paper-ink-soft); }
.inv-meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.inv-party h2 { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--paper-ink-soft); }
.inv-party p { margin: 0; overflow-wrap: anywhere; }
.inv-table-wrap { overflow-x: auto; }
.inv-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inv-table th { text-align: left; font-size: .82rem; color: var(--paper-ink-soft); font-weight: 650; padding: .5rem .4rem; border-bottom: 1px solid var(--paper-line); }
.inv-table td { padding: .7rem .4rem; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.inv-table .num { text-align: right; white-space: nowrap; }
.inv-item { display: block; font-weight: 650; }
.inv-period { display: block; color: var(--paper-ink-soft); font-size: .88rem; }
.inv-totals { margin: 0 0 0 auto; min-width: min(100%, 18rem); display: grid; gap: .3rem; font-variant-numeric: tabular-nums; }
.inv-totals div { display: flex; justify-content: space-between; gap: 2rem; }
.inv-totals dt { color: var(--paper-ink-soft); }
.inv-totals dd { margin: 0; text-align: right; }
.inv-totals .inv-grand { border-top: 2px solid var(--paper-ink); padding-top: .4rem; font-size: 1.1rem; font-weight: 800; }
.inv-totals .inv-grand dt { color: var(--paper-ink); }
.inv-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--paper-line); color: var(--paper-ink-soft); font-size: .85rem; }
.inv-foot p { margin: 0; }
@media (max-width: 600px) {
    .inv-parties { grid-template-columns: 1fr; }
    .inv-ident h1, .inv-meta div { text-align: left; justify-content: flex-start; }
}

@page { size: A4; margin: 14mm; }
@media print {
    :root { color-scheme: light; }
    body { background: var(--paper) !important; }
    .site-header, .site-footer, .skip-link, .no-print, #blazor-error-ui, #components-reconnect-modal { display: none !important; }
    .site-main, .invoice-page { padding: 0 !important; margin: 0 !important; display: block; }
    .invoice-sheet { max-width: none; min-height: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    .inv-parties { grid-template-columns: 1fr 1fr; }
    .inv-ident h1 { text-align: right; }
    .inv-meta div { justify-content: flex-end; }
    a { color: inherit; text-decoration: none; }
}

/* ===========================================================================
   Demo video (UcVideo): 16:9 on desktop, 9:16 on a phone or portrait screen
   =========================================================================== */
.demo-video { margin: 0; }
.demo-video video {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
    border-radius: 16px; background: var(--mat-deep); object-fit: cover;
    box-shadow: 0 30px 60px -30px var(--shadow-strong), inset 0 0 0 1px var(--mat-line);
}
.demo-video video { cursor: pointer; }
.demo-video video:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; }
.demo-video.is-vertical video { aspect-ratio: 9 / 16; max-height: 82vh; width: auto; max-width: 100%; margin: 0 auto; }
.demo-video figcaption { margin-top: .6rem; color: var(--ink-soft); font-size: .9rem; text-align: center; }
.band-demo { display: grid; gap: 1.5rem; }
.band-demo .demo-video { max-width: 60rem; }

/* ===========================================================================
   Ad landing page (/go, LandingLayout)
   =========================================================================== */
.landing-header { justify-content: space-between; }
.landing-head-right { display: flex; align-items: center; gap: 1rem; }
.landing-footer { margin-top: 3rem; }
.landing-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.landing-legal a { color: var(--mat-ink-soft); text-decoration: none; }
.landing-legal a:hover { color: var(--mat-ink); text-decoration: underline; }

.lp-hero {
    max-width: var(--wrap); margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
    display: grid; gap: 1.25rem clamp(2rem, 5vw, 4rem); align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "title video" "body video";
}
.lp-title { grid-area: title; margin-bottom: 0; align-self: end; max-width: 13ch; }
.lp-video { grid-area: video; align-self: center; }
.lp-body { grid-area: body; }
.lp-points { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.lp-points li { padding-left: 1.6rem; position: relative; font-weight: 560; }
.lp-points li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .8rem; height: .45rem; border-left: 2.5px solid var(--thread); border-bottom: 2.5px solid var(--thread); transform: rotate(-45deg); }

.lp-feature-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.lp-feature-list li { border-top: 2px solid var(--ink); padding-top: 1rem; }
.lp-feature-list p { color: var(--ink-soft); margin: 0; }

.lp-final { text-align: center; display: grid; justify-items: center; gap: .5rem; }
.lp-final .section-title, .lp-final .section-sub { max-width: 36rem; }

@media (max-width: 960px) {
    .lp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "video" "body"; }
    .lp-title { max-width: 16ch; }
    .lp-feature-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .lp-feature-list { grid-template-columns: minmax(0, 1fr); }
    .landing-head-right .header-link { display: none; }
}

/* ===========================================================================
   Testers programme and testimonials (2026-11-29): /beta, /redeem, /testimonial,
   /testimonials and the UcTestimonials band. Quiet: the words, an initials badge
   in place of a photo, no stars wall. Theme tokens only.
   =========================================================================== */
.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; }

.band-testimonials { display: grid; gap: 1.25rem; }
.tm-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.tm-card {
    margin: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 1rem;
    background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: var(--radius);
    padding: clamp(1.2rem, 2.5vw, 1.6rem);
}
.tm-quote { margin: 0; flex: 1; position: relative; padding-left: 1.1rem; border-left: 3px solid var(--thread); }
.tm-quote p { margin: 0; font-family: var(--font-folio); font-style: italic; font-size: 1.16rem; line-height: 1.5; }
.tm-who { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 2px dashed var(--rule); }
.tm-badge {
    flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
    background: var(--mat); color: var(--mat-ink); font-weight: 750; font-size: .95rem; letter-spacing: .03em;
}
.tm-id { display: grid; gap: .1rem; min-width: 0; }
.tm-name { font-weight: 700; }
.tm-meta { color: var(--ink-soft); font-size: .9rem; }
.tm-disclosure { margin: 0; color: var(--ink-soft); font-size: .84rem; }
.tm-verified { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.tm-more { margin: 0; }

.beta-page {
    max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(1.5rem, 5vw, 4rem); align-items: start;
}
.beta-intro { display: grid; gap: 1rem; }
.beta-intro .hero-title { margin: 0; }
.beta-kicker { margin: 0; font-family: var(--font-folio); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.beta-deal { margin-top: .5rem; }
.beta-form { max-width: none; }
.beta-form h2 { margin-top: 0; }
@media (max-width: 900px) { .beta-page { grid-template-columns: minmax(0, 1fr); } }

.redeem-code {
    margin: .5rem 0 1rem; padding: .75rem 1rem; text-align: center; border: 2px dashed var(--rule); border-radius: 8px;
    font-weight: 800; font-size: 1.35rem; letter-spacing: .12em; font-variant-numeric: tabular-nums;
}
.promo-input input { letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }

.tf-card { max-width: 36rem; }
.tf-honest { margin: 0 0 .75rem; font-weight: 560; }
.tf-disclose { margin: 0 0 1rem; color: var(--ink-soft); font-size: .92rem; }
.tf-sub { margin: 1.5rem 0 .75rem; font-size: 1.15rem !important; }
.tf-rating { border: 0; padding: 0; margin: 0 0 1.1rem; }
.tf-rating legend { font-weight: 620; font-size: .94rem; margin-bottom: .35rem; padding: 0; }
.tf-confirm { margin-top: 1rem; }

.account-share { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.account-share p { color: var(--ink-soft); }
