/* ============================================================================
   Flowtimer marketing site.

   One stylesheet for the landing page and its five feature pages. It is a plain
   global sheet rather than scoped .razor.css because every page shares it.

   Colour works in two tones per page, set on the .lp root:
     --accent      deep enough to carry white text, used for solid fills
     --accent-lit  light enough to read on the dark background, used for text,
                   icons, dots and borders
   One colour cannot do both jobs on a near-black page, which is why there are
   two. Every value is checked at 4.5:1 against the surface it sits on.
   ========================================================================= */

:root {
    --ink: #060b1c;
    --ink-2: #08102a;
    --panel: #0c1330;
    --line: #1d2650;
    --line-soft: #151c3d;
    --text: #eef1ff;
    --dim: #99a2c8;
    --dimmer: #6d769c;

    --accent: #4f46e5;
    --accent-lit: #818cf8;

    --sans: 'Archivo', 'Segoe UI', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --rad: 14px;
    --rad-sm: 9px;
    --shell: 1180px;
}

/* --------------------------------------------------------------- base ---- */

.lp * { box-sizing: border-box; }

.lp {
    font-family: var(--sans);
    color: var(--text);
    background: var(--ink);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body:has(.lp) {
    background: var(--ink);
    font-family: var(--sans);
}

.lp h1, .lp h2, .lp h3, .lp h4 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.lp p { margin: 0; }

/* Deliberately low specificity (one class, one element) so the per-component
   rules further down (.hdr-nav a, .ftr-col a, .prose a) still win, while the
   explicit .lp a.btn-* rules below out-rank it for buttons. */
.lp a { color: inherit; text-decoration: none; }

/* height:auto matters: the img tags carry width/height attributes for layout
   stability, and without it the intrinsic height wins over the scaled width. */
.lp img { max-width: 100%; height: auto; display: block; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.dim { color: var(--dim); }

/* ------------------------------------------------------------- header ---- */

/* A floating rounded bar rather than a full-width strip: the page background
   runs behind and past it on every side. */
.lp-hdr {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 14px 24px 0;
}

.hdr-bar {
    max-width: var(--shell);
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(10, 16, 38, 0.62);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

/* landing.js flips this as soon as the page scrolls. */
.lp-hdr.is-stuck .hdr-bar {
    background: rgba(10, 16, 38, 0.88);
    border-color: var(--line);
    box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.hdr-row {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 60px;
    padding: 0 10px 0 18px;
}

.hdr-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.hdr-brand img { height: 28px; width: auto; }

.hdr-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.hdr-nav a {
    position: relative;
    padding: 8px 13px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dim);
    border-radius: var(--rad-sm);
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}

.hdr-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.hdr-nav a.is-current { color: var(--text); }

/* Active page marker: one sticker under the label rather than an underline. */
.hdr-nav a.is-current::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 5px;
    height: 5px;
    border-radius: 1.5px;
    background: var(--accent-lit);
    transform: translateX(-50%);
}

.hdr-act {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hdr-burger {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--rad-sm);
    color: var(--text);
    cursor: pointer;
    padding: 0;
}

.hdr-burger span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.hdr-sheet {
    display: none;
    padding: 4px 18px 18px;
    border-top: 1px solid var(--line-soft);
}

.lp-hdr.sheet-open .hdr-sheet { display: block; }

.hdr-sheet a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 2px;
    font-weight: 600;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--line-soft);
}

.hdr-sheet .sheet-cta { margin-top: 16px; border: 0; }

.chip-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--accent-lit);
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: var(--rad-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn-solid {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px -12px var(--accent);
}

.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px var(--accent); }

.btn-line {
    border-color: var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
}

.btn-line:hover { border-color: var(--accent-lit); background: rgba(255, 255, 255, 0.05); }

.btn-plain { color: var(--dim); }

.btn-plain:hover { color: var(--text); }

/* app.css (still loaded here) has `a:hover { color: var(--color-accent) }`, which is
   more specific than `.btn-solid` and turned every anchor-button's label blue on
   hover. These win it back for both states. */
.lp a.btn-solid, .lp a.btn-solid:hover { color: #fff; }

.lp a.btn-line, .lp a.btn-line:hover { color: var(--text); }

.lp a.btn-plain { color: var(--dim); }

.lp a.btn-plain:hover { color: var(--text); }

.btn-lg { padding: 15px 30px; font-size: 1rem; border-radius: 11px; }

.btn svg { width: 17px; height: 17px; }

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

.sec { padding: 92px 0; position: relative; }

.sec-tight { padding: 60px 0; }

.sec-line { border-top: 1px solid var(--line-soft); }

.sec-tint { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%); }

/* Section eyebrow: a 3x3 sticker grid with the diagonal lit in the page accent. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: '';
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background:
        linear-gradient(var(--accent-lit), var(--accent-lit)) 0 0 / 4px 4px no-repeat,
        linear-gradient(var(--line), var(--line)) 5.5px 0 / 4px 4px no-repeat,
        linear-gradient(var(--line), var(--line)) 11px 0 / 4px 4px no-repeat,
        linear-gradient(var(--line), var(--line)) 0 5.5px / 4px 4px no-repeat,
        linear-gradient(var(--accent-lit), var(--accent-lit)) 5.5px 5.5px / 4px 4px no-repeat,
        linear-gradient(var(--line), var(--line)) 11px 5.5px / 4px 4px no-repeat,
        linear-gradient(var(--line), var(--line)) 0 11px / 4px 4px no-repeat,
        linear-gradient(var(--line), var(--line)) 5.5px 11px / 4px 4px no-repeat,
        linear-gradient(var(--accent-lit), var(--accent-lit)) 11px 11px / 4px 4px no-repeat;
}

/* Wide enough that a normal-length heading stays on one line; the paragraph
   under it is held to a readable measure separately. */
.sec-head { max-width: 940px; margin-bottom: 50px; }

.sec-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin-bottom: 16px; }

.sec-head p { color: var(--dim); font-size: 1.06rem; max-width: 880px; }

.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.sec-head.centered .eyebrow { justify-content: center; }

.sec-head.centered p { margin-left: auto; margin-right: auto; }

/* -------------------------------------------------------------- cards ---- */

.card {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--rad);
    padding: 26px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover { border-color: var(--line); transform: translateY(-2px); }

a.card:hover { border-color: var(--accent-lit); }

.card-ico {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-lit);
    margin-bottom: 18px;
}

.card-ico svg { width: 21px; height: 21px; }

.card h3 { font-size: 1.06rem; margin-bottom: 9px; }

.card p { color: var(--dim); font-size: 0.93rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* --------------------------------------------------------------- hero ---- */

.hero { position: relative; padding: 78px 0 88px; overflow: hidden; }

.hero-bg {
    position: absolute;
    inset: -1px 0 auto;
    height: 620px;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(120% 78% at 50% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(120% 78% at 50% 0%, #000 0%, transparent 72%);
    opacity: 0.6;
}

.hero-glow {
    position: absolute;
    top: -260px;
    left: 50%;
    width: 900px;
    height: 560px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(closest-side, var(--accent-lit), transparent);
    opacity: 0.13;
}

.hero-inner { position: relative; z-index: 1; }

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.79rem;
    font-weight: 500;
    color: var(--dim);
    margin-bottom: 26px;
}

.hero-tag b { color: var(--text); font-weight: 600; }

.hero h1 {
    font-size: clamp(2.4rem, 5.6vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
    max-width: 16ch;
}

.hero-sub {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--dim);
    max-width: 640px;
    margin-bottom: 32px;
}

.hero-cta { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }

.hero-note { margin-top: 16px; font-size: 0.82rem; color: var(--dimmer); }

/* centred variant, used on the home page */
.hero-mid { text-align: center; }

.hero-mid h1, .hero-mid .hero-sub { margin-left: auto; margin-right: auto; }

.hero-mid h1 { max-width: 18ch; }

.hero-mid .hero-cta { justify-content: center; }

/* ------------------------------------------------------- screenshots ---- */

/* Browser chrome so a flat PNG reads as a running app. */
.frame {
    border: 1px solid var(--line);
    border-radius: var(--rad);
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.frame-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--ink-2);
}

.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }

.frame-url { margin-left: 10px; font-family: var(--mono); font-size: 0.7rem; color: var(--dimmer); }

.frame img { width: 100%; }

.shot-wide { margin-top: 58px; position: relative; }

.phone {
    border: 8px solid #161c38;
    border-radius: 30px;
    overflow: hidden;
    background: #161c38;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.9);
}

.phone img { width: 100%; border-radius: 22px; }

/* ------------------------------------------------------------ compare ---- */

.cmp-wrap {
    border: 1px solid var(--line-soft);
    border-radius: var(--rad);
    overflow: hidden;
    background: var(--panel);
}

.cmp-scroll { overflow-x: auto; }

.cmp { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 0.9rem; }

.cmp th, .cmp td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--line-soft);
}

.cmp thead th {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
    background: var(--ink-2);
    white-space: nowrap;
}

.cmp thead th.us {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--accent-lit);
}

.cmp tbody th { text-align: left; font-weight: 500; color: var(--text); white-space: nowrap; }

.cmp td.us { background: rgba(255, 255, 255, 0.025); }

.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

.mark { display: inline-flex; width: 19px; height: 19px; }

.mark svg { width: 100%; height: 100%; }

.mark-y { color: #34d399; }

.mark-n { color: #47506f; }

.mark-p { color: #fbbf24; }

.cmp-note {
    padding: 14px 16px;
    font-size: 0.79rem;
    color: var(--dimmer);
    background: var(--ink-2);
    border-top: 1px solid var(--line-soft);
}

/* -------------------------------------------------------------- steps ---- */

.steps { display: grid; gap: 0; }

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 22px;
    padding: 26px 0;
    border-top: 1px solid var(--line-soft);
}

.step:last-child { border-bottom: 1px solid var(--line-soft); }

.step-n {
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-lit);
    padding-top: 3px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 7px; }

.step p { color: var(--dim); font-size: 0.95rem; max-width: 640px; }

/* --------------------------------------------------------- split rows ---- */

/* Heading and lead on the left, the detail list on the right. Text on both
   sides: no invented app screenshots. */
.rows { display: grid; gap: 68px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.row h3 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); margin-bottom: 14px; }

.row p { color: var(--dim); font-size: 1rem; }

.row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }

/* Marker is positioned rather than a grid cell, because these list items mix
   bold runs with plain text and a two-column grid would break each <b> onto
   its own row. */
.row li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    color: var(--dim);
}

.row li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent-lit);
}

.row li b { color: var(--text); font-weight: 600; }

/* A row whose right column is a screenshot rather than a list. */
.row.media { align-items: center; }

.row.flip .row-media { order: -1; }

/* ---------------------------------------------------------- fact list ---- */

.specs { margin: 0; }

.spec {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.95rem;
}

.spec:first-child { border-top: 1px solid var(--line-soft); }

.spec dt {
    color: var(--text);
    font-weight: 600;
}

.spec dd { margin: 0; color: var(--dim); }

/* ------------------------------------------------------------ callout ---- */

/* Built like the tiles it sits under: same panel, same border, same radius, with
   the icon in its own rounded square. It reads as one more tile in the group
   rather than a note stapled to the bottom of it. */
.callout {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px 26px;
    border: 1px solid var(--line-soft);
    border-radius: var(--rad);
    background: var(--panel);
    font-size: 0.93rem;
    color: var(--dim);
}

.callout-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-lit);
}

.callout-ico svg { width: 21px; height: 21px; }

.callout b { color: var(--text); font-weight: 600; }

@media (max-width: 560px) {
    .callout { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
}

/* -------------------------------------------------------------- pills ---- */

.pills { display: flex; flex-wrap: wrap; gap: 9px; }

.pills span {
    padding: 8px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--panel);
    font-size: 0.85rem;
    color: var(--dim);
}

.pills span b { color: var(--text); font-weight: 600; }

.beta {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--accent-lit);
    color: var(--accent-lit);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 12px;
    position: relative;
    top: -0.35em;
}

/* ---------------------------------------------------------------- faq ---- */

.faq { display: grid; gap: 0; max-width: 820px; margin: 0 auto; }

.faq details { border-top: 1px solid var(--line-soft); padding: 4px 0; }

.faq details:last-child { border-bottom: 1px solid var(--line-soft); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 2px;
    font-weight: 600;
    font-size: 1.02rem;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: '';
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-right: 1.5px solid var(--dim);
    border-bottom: 1.5px solid var(--dim);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq details[open] summary { color: var(--accent-lit); }

.faq p { padding: 0 2px 22px; color: var(--dim); font-size: 0.95rem; max-width: 700px; }

/* ---------------------------------------------------------------- cta ---- */

.cta {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 58px 40px;
    text-align: center;
    overflow: hidden;
    background: var(--panel);
}

.cta::before {
    content: '';
    position: absolute;
    top: -190px;
    left: 50%;
    width: 700px;
    height: 380px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--accent-lit), transparent);
    opacity: 0.16;
    pointer-events: none;
}

.cta > * { position: relative; }

.cta h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 14px; }

.cta p { color: var(--dim); max-width: 520px; margin: 0 auto 28px; }

.cta .hero-cta { justify-content: center; }

/* ---------------------------------------------------------- page rail ---- */

.rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.rail a {
    border: 1px solid var(--line-soft);
    border-radius: var(--rad-sm);
    padding: 18px;
    transition: border-color 0.2s, background 0.2s;
    background: var(--panel);
}

.rail a:hover { border-color: var(--rail-c, var(--accent-lit)); background: rgba(255, 255, 255, 0.02); }

.rail i {
    display: block;
    width: 20px;
    height: 6px;
    border-radius: 2px;
    background: var(--rail-c, var(--accent-lit));
    margin-bottom: 14px;
}

.rail strong { display: block; font-size: 0.95rem; margin-bottom: 5px; }

.rail span { font-size: 0.81rem; color: var(--dim); }

/* ------------------------------------------------------------- footer ---- */

.lp-ftr {
    border-top: 1px solid var(--line-soft);
    padding: 56px 0 40px;
    background: var(--ink-2);
}

.ftr-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.ftr-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 14px; }

.ftr-brand img { height: 28px; }

.ftr-blurb { color: var(--dim); font-size: 0.88rem; max-width: 300px; }

.ftr-col h4 {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dimmer);
    margin-bottom: 15px;
}

.ftr-col a { display: block; padding: 6px 0; font-size: 0.88rem; color: var(--dim); }

.ftr-col a:hover { color: var(--text); }

.ftr-btm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 26px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.82rem;
    color: var(--dimmer);
    flex-wrap: wrap;
}

/* --------------------------------------------------------------- prose ---- */

.prose { max-width: 760px; }

.prose h3 { font-size: 1.15rem; margin: 38px 0 12px; }

.prose h3:first-child { margin-top: 0; }

.prose p, .prose li { color: var(--dim); font-size: 0.97rem; }

.prose p { margin-bottom: 16px; }

.prose ul { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 9px; }

.prose li::marker { color: var(--accent-lit); }

.prose a:not(.btn) { color: var(--accent-lit); text-decoration: underline; text-underline-offset: 3px; }

.prose strong { color: var(--text); }

/* Vertical only: the shorthand would clear .shell's horizontal padding and
   pull the heading 24px left of the prose under it. */
.page-head { padding-top: 66px; padding-bottom: 34px; }

.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }

.page-head p { color: var(--dim); font-size: 1.05rem; max-width: 620px; }

/* ------------------------------------------------------------- reveal ---- */

/* Scroll-in only when scripting is on. Gating on the .js class (set by an inline
   head script) means a JS failure leaves the page readable rather than blank. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .lp * { animation: none !important; }
}

/* ---------------------------------------------------------- responsive ---- */

@media (max-width: 1000px) {
    .row { grid-template-columns: 1fr; gap: 28px; }
    .row.flip .row-media { order: 0; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .rail { grid-template-columns: repeat(2, 1fr); }
    .ftr-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    .rows { gap: 56px; }
}

@media (max-width: 860px) {
    .hdr-nav { display: none; }
    .hdr-act .hdr-hide-sm { display: none; }
    .hdr-burger { display: flex; }
    .hdr-row { gap: 14px; }
    .hdr-brand { margin-right: auto; }
    .lp-hdr { padding: 10px 16px 0; }
    .sec { padding: 66px 0; }
    .hero { padding: 52px 0 64px; }
}

@media (max-width: 560px) {
    .shell { padding: 0 18px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .rail { grid-template-columns: 1fr; }
    .ftr-top { grid-template-columns: 1fr; }
    .cta { padding: 42px 22px; }
    .step { grid-template-columns: 1fr; gap: 8px; }
    .spec { grid-template-columns: 1fr; gap: 5px; }
    .hero-cta .btn { width: 100%; }
    .hero h1 { max-width: none; }
}

/* -------------------------------------------------------------- brands ---- */

/* Manufacturer tiles on the smart cube page. The mark is a typographic wordmark
   until an official logo file is set on the Brand record, at which point the
   <img> takes the same slot at the same height. */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.brand {
    border: 1px solid var(--line-soft);
    border-radius: var(--rad);
    background: var(--panel);
    padding: 26px;
    transition: border-color 0.2s;
}

.brand:hover { border-color: var(--line); }

.brand-mark {
    display: flex;
    align-items: center;
    min-height: 46px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft);
}

.brand-mark span {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand-mark img { max-height: 34px; width: auto; }

.brand-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dimmer);
    margin-bottom: 12px;
}

.brand .pills span { background: var(--ink-2); color: var(--text); font-weight: 500; }

@media (max-width: 860px) {
    .brands { grid-template-columns: 1fr; }
}
