/* ─────────────────────────────────────────────
   Optiora marketing homepage
   Scoped to body.home-page
───────────────────────────────────────────── */

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

:root {
    --navy: #061120;
    --navy-2: #0b1a2e;
    --navy-3: #12243c;
    --navy-line: rgba(255, 255, 255, 0.08);
    --navy-line-strong: rgba(255, 255, 255, 0.14);
    --paper: #f7f6f0;
    --paper-2: #eeede6;
    --paper-3: #e4e2d8;
    --paper-line: rgba(11, 18, 32, 0.1);
    --ink: #0b1220;
    --ink-2: #3d4a5c;
    --ink-3: #5b6b7c;
    --mist: #9aa8b8;
    --white: #ffffff;
    --orange: #ff9800;
    --orange-2: #ffad33;
    --orange-deep: #e68900;
    --orange-glow: rgba(255, 152, 0, 0.38);
    --display: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    --body: Inter, system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --wrap: min(1180px, calc(100% - clamp(32px, 6vw, 96px)));
    --r: 14px;
    --r-sm: 10px;
    --r-lg: 16px;
    --sec-y: clamp(48px, 6vw, 88px);
    --z-nav: 50;
    --z-overlay: 60;
    --z-drawer: 70;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body.home-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--navy);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.home-page a {
    color: inherit;
    text-decoration: none;
}

body.home-page img {
    max-width: 100%;
    display: block;
}

body.home-page button,
body.home-page input,
body.home-page select {
    font: inherit;
}

body.home-page ::selection {
    background: var(--orange);
    color: var(--navy);
}

.home-page :focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
}

.home-skip {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 80;
    padding: 10px 14px;
    background: var(--orange);
    color: var(--navy);
    font-weight: 700;
    border-radius: 8px;
}

.home-skip:focus {
    top: 12px;
}

/* ── Shared ── */
.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--orange);
}

.sec-title {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.1rem, 5.2vw, 4.1rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
    color: var(--ink);
}

.sec-title em,
.sec-title .accent {
    font-style: italic;
    font-weight: 700;
    color: var(--orange);
}

.sec-lede {
    max-width: 46rem;
    margin: 18px 0 0;
    color: var(--ink-2);
    font-size: clamp(0.98rem, 1.3vw, 1.12rem);
    line-height: 1.65;
}

.paper-section .sec-lede { color: var(--ink-2); }
.navy-section .sec-title { color: var(--white); }
.navy-section .sec-lede { color: var(--mist); }

.paper-section,
.navy-section {
    position: relative;
    padding: var(--sec-y) 0;
}

.paper-section { background: var(--paper); color: var(--ink); }
.paper-section--alt { background: var(--paper-2); }
.navy-section { background: var(--navy); color: var(--white); }

.navy-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--body);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    color: #1a1206;
    background: var(--orange);
    box-shadow: 0 10px 28px var(--orange-glow);
}

.btn-primary:hover {
    background: var(--orange-2);
    box-shadow: 0 14px 34px var(--orange-glow);
}

.btn-ghost {
    color: var(--white);
    background: transparent;
    border-color: var(--navy-line-strong);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.btn-navy {
    color: var(--white);
    background: var(--navy);
}

.btn-navy:hover { background: #0a1c33; }

.btn-outline-ink {
    color: var(--ink);
    background: transparent;
    border-color: var(--paper-line);
}

.watermark {
    position: absolute;
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
    pointer-events: none;
    font-family: var(--display);
    font-size: clamp(5rem, 18vw, 14rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.8;
    color: rgba(11, 18, 32, 0.045);
    user-select: none;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ── Nav ── */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-nav);
    color: var(--white);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.site-nav.is-scrolled {
    background: rgba(6, 17, 32, 0.92);
    border-bottom-color: var(--navy-line);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.site-nav__inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 72px;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

.brand img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.brand span {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
    transition: color 160ms, background 160ms;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.site-nav .btn {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.88rem;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--navy-line-strong);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 16px;
}

.nav-toggle__bars span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 200ms var(--ease), opacity 200ms;
}

.site-nav.is-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-nav.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(4, 10, 18, 0.55);
}

.nav-drawer {
    display: none;
}

/* ── Stage hero (previous homepage hero) ── */
.stage {
    --ink: #0a0c11;
    --ink-text: #f4f1ea;
    --ink-text-2: rgba(244, 241, 234, 0.58);
    --ink-line: rgba(255, 255, 255, 0.09);
    --tungsten: #f2a93b;
    --tungsten-hi: #ffd693;
    --sec-x: clamp(18px, 4vw, 56px);
    position: relative;
    background: var(--ink);
    color: var(--ink-text);
    overflow: hidden;
    padding: clamp(100px, 12vh, 150px) var(--sec-x) 0;
    isolation: isolate;
}

.stage__cyc {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(120% 78% at 50% -12%, rgba(242, 169, 59, 0.20) 0%, rgba(242, 169, 59, 0.05) 34%, transparent 62%),
        radial-gradient(80% 60% at 12% 96%, rgba(127, 161, 199, 0.14) 0%, transparent 60%),
        linear-gradient(180deg, #0e1118 0%, #0a0c11 55%, #08090d 100%);
}

.stage__key {
    position: absolute;
    top: -22%;
    left: 50%;
    z-index: 0;
    width: min(1100px, 120vw);
    height: min(1100px, 120vw);
    margin-left: min(-550px, -60vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 147, 0.22) 0%, rgba(242, 169, 59, 0.10) 32%, transparent 66%);
    filter: blur(30px);
    animation: keyDrift 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes keyDrift {
    0% { transform: translate3d(-4%, 0, 0) scale(1); opacity: 0.9; }
    100% { transform: translate3d(6%, 4%, 0) scale(1.1); opacity: 1; }
}

.stage__rig {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 62%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 62%);
    pointer-events: none;
}

.stage__inner {
    position: relative;
    z-index: 2;
    width: min(1080px, 100%);
    margin: 0 auto;
    text-align: center;
}

.stage__rating {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin-bottom: 24px;
    padding: 8px 16px 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stage__rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stage__rating-stars svg {
    display: block;
    width: 15px;
    height: 15px;
    color: var(--tungsten-hi);
    filter: drop-shadow(0 0 6px rgba(242, 169, 59, 0.35));
}

.stage__rating-star--partial {
    position: relative;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.stage__rating-star--partial .star-bg { color: rgba(244, 241, 234, 0.18); }
.stage__rating-star--partial .star-fill {
    position: absolute;
    inset: 0;
    width: 90%;
    overflow: hidden;
}

.stage__rating-score {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}

.stage__rating-score em {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(244, 241, 234, 0.52);
}

.stage__rating-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(244, 241, 234, 0.22);
    flex-shrink: 0;
}

.stage__rating-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(244, 241, 234, 0.56);
}

.stage__title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.45rem, 6.2vw, 4.35rem);
    line-height: 1.1;
    letter-spacing: -0.032em;
    margin: 0 auto;
    max-width: 22ch;
}

.stage .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }

.stage .lit {
    background: linear-gradient(96deg, #fff3dd 0%, var(--tungsten-hi) 34%, var(--tungsten) 62%, #e07f1a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stage__lede {
    margin: 26px auto 0;
    max-width: 46ch;
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.6;
    color: var(--ink-text-2);
}

.stage__lede strong { color: var(--ink-text); font-weight: 600; }

.stage__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
}

.stage .btn-key {
    min-height: 52px;
    padding: 0 28px;
    font-size: 0.94rem;
    color: #16110a;
    background: linear-gradient(140deg, var(--tungsten-hi) 0%, var(--tungsten) 52%, #e08b1e 100%);
    border: 0;
    box-shadow: 0 6px 26px rgba(242, 169, 59, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stage .btn-key:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 38px rgba(242, 169, 59, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stage__cta .btn-ghost {
    min-height: 52px;
    padding: 0 24px;
    color: var(--ink-text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--ink-line);
}

.stage__cta .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.stage__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 26px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.42);
}

.stage__meta span { display: inline-flex; align-items: center; gap: 8px; }
.stage__meta img { width: 58px; height: auto; opacity: 0.75; filter: brightness(0) invert(1); }
.stage__meta em { font-style: normal; color: rgba(244, 241, 234, 0.24); }

.conveyor {
    position: relative;
    z-index: 1;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: clamp(46px, 7vw, 78px);
    padding-bottom: clamp(30px, 5vw, 60px);
    perspective: 1400px;
    perspective-origin: 50% 0%;
}

.conveyor__deck {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: rotateX(42deg) rotateZ(-4deg) scale(1.18);
    transform-origin: 50% 0%;
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 32%, rgba(0, 0, 0, 0.5) 62%, transparent 88%);
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 32%, rgba(0, 0, 0, 0.5) 62%, transparent 88%);
}

.conveyor__row { overflow: hidden; width: 100%; }
.conveyor__track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

.conveyor__row--l .conveyor__track { animation: convL 78s linear infinite; }
.conveyor__row--r .conveyor__track { animation: convR 92s linear infinite; }

@keyframes convL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes convR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.plate-tile {
    position: relative;
    flex: 0 0 auto;
    width: clamp(150px, 15vw, 210px);
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #0f1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55);
}

.plate-tile img { width: 100%; height: 100%; object-fit: cover; }
.plate-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 214, 147, 0.16), transparent 46%);
    mix-blend-mode: screen;
}

.stage__hem {
    position: relative;
    z-index: 2;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: clamp(80px, 12vw, 150px);
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.06) 55%, var(--paper) 100%);
}

.ticker {
    position: relative;
    z-index: 4;
    overflow: hidden;
    padding: 15px 0;
    background: var(--paper);
    border-bottom: 1px solid var(--paper-line);
}

.ticker__track {
    display: flex;
    gap: 42px;
    width: max-content;
    animation: convL 44s linear infinite;
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__track span {
    display: inline-flex;
    align-items: center;
    gap: 42px;
    white-space: nowrap;
}

.ticker__track span::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f2a93b;
}

/* ── Gallery ── */
.gallery {
    overflow: hidden;
}

.gallery__head {
    position: relative;
    z-index: 1;
    max-width: 46rem;
    margin-bottom: 28px;
}

.masonry {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 18px;
    gap: 12px;
}

.masonry a,
.masonry figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--r);
    border: 1px solid rgba(11, 18, 32, 0.08);
    background: var(--paper-2);
}

.masonry img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--paper-2);
    transition: transform 420ms var(--ease), filter 420ms var(--ease);
}

.masonry a:hover img,
.masonry figure:hover img {
    transform: scale(1.035);
}

.masonry__item { min-width: 0; }
.m-a { grid-column: 1 / 5; grid-row: span 22; }
.m-b { grid-column: 5 / 9; grid-row: span 12; }
.m-c { grid-column: 9 / 13; grid-row: span 11; }
.m-d { grid-column: 5 / 9; grid-row: span 12; }
.m-e { grid-column: 9 / 13; grid-row: span 13; }
.m-f { grid-column: 1 / 4; grid-row: span 14; }
.m-g { grid-column: 4 / 8; grid-row: span 14; }
.m-h { grid-column: 8 / 13; grid-row: span 14; }
.m-i { grid-column: 1 / 7; grid-row: span 12; }
.m-j { grid-column: 7 / 13; grid-row: span 12; }

.feature-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid var(--paper-line);
}

.feature-cols article {
    padding: 28px 24px 8px 0;
    border-right: 1px solid var(--paper-line);
}

.feature-cols article:last-child { border-right: 0; padding-right: 0; }
.feature-cols article:not(:first-child) { padding-left: 24px; }

.feature-cols h3 {
    margin: 0 0 10px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.feature-cols p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.92rem;
}

.preserve-note {
    margin: 28px 0 0;
    text-align: center;
    color: var(--ink-3);
    font-size: 0.86rem;
}

/* ── Workflow ── */
.flow__head { max-width: 40rem; margin-bottom: 24px; }

.flow-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.flow-pills span {
    padding: 6px 10px;
    border: 1px solid var(--paper-line);
    border-radius: 999px;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.flow-demo { margin-top: 4px; text-align: center; }

.flow-demo__stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--paper-line);
    background: var(--white);
    box-shadow: 0 10px 32px rgba(11, 18, 32, 0.06);
    pointer-events: none;
}

.flow-demo__form {
    position: relative;
    z-index: 1;
}

.flow-demo__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    grid-template-areas:
        "product ref"
        "settings ref";
    gap: 14px 16px;
    padding: 16px 16px 0;
    align-items: start;
}

.flow-demo__block--product { grid-area: product; }
.flow-demo__block--settings { grid-area: settings; }
.flow-demo__block--ref { grid-area: ref; min-width: 0; }

.flow-demo__block {
    padding: 14px;
    border: 1px solid var(--paper-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.flow-demo__block header {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.flow-demo__step {
    flex: 0 0 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb923c 0%, #e8600a 50%, #c2410c 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(232, 96, 10, 0.18);
}

.flow-demo__block h3 {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: -0.02em;
}

.flow-demo__block header p {
    margin: 3px 0 0;
    color: var(--ink-3);
    font-size: 0.78rem;
    line-height: 1.4;
}

.flow-demo__fields { display: grid; gap: 10px; }

.flow-demo__field { display: grid; gap: 6px; }

.flow-demo__field label {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
}

.flow-demo__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.flow-demo__control {
    position: relative;
    display: flex;
    align-items: center;
}

.flow-demo__icon {
    position: absolute;
    left: 12px;
    color: var(--ink-3);
    display: flex;
    pointer-events: none;
}

.flow-demo__control input,
.flow-demo__control select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px 0 40px;
    border: 1.5px solid var(--paper-line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    appearance: none;
}

.flow-demo__control.is-hot input,
.flow-demo__control.is-hot select,
.flow-demo__control.is-typing input {
    border-color: var(--orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.14);
}

.flow-demo__control.is-typing input {
    caret-color: var(--orange);
}

.flow-demo__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.flow-demo__choices--quality {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-demo__choices + .flow-demo__choices { margin-top: 8px; }

.flow-demo__choice {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 10px;
    border: 1.5px solid var(--paper-line);
    border-radius: 10px;
    background: var(--paper);
}

.flow-demo__choice.is-on,
.flow-demo__choice:has(input:checked) {
    border-color: var(--orange);
    background: rgba(255, 152, 0, 0.06);
}

.flow-demo__choice input { margin-top: 3px; accent-color: var(--orange); }
.flow-demo__choice strong { display: block; font-size: 0.82rem; }
.flow-demo__choice span span { display: block; color: var(--ink-3); font-size: 0.72rem; line-height: 1.35; }

.flow-demo__upload { position: relative; min-height: 180px; }

.flow-demo__drop {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border: 2px dashed #d1d9e6;
    border-radius: 12px;
    background: var(--paper);
    text-align: center;
    color: var(--ink-3);
}

.flow-demo__drop.is-hot {
    border-color: var(--orange);
    border-style: solid;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.14);
}

.flow-demo__drop-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--paper-line);
    background: #fff;
    color: var(--ink-3);
}

.flow-demo__drop strong {
    color: var(--ink);
    font-size: 0.8rem;
}

.flow-demo__drop span,
.flow-demo__drop small { font-size: 0.72rem; }

.flow-demo__preview {
    border-radius: 12px;
    border: 1.5px solid var(--paper-line);
    background: var(--paper);
    overflow: hidden;
}

.flow-demo__preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    display: block;
    padding: 10px;
}

.flow-demo__preview[hidden],
.flow-demo__loading[hidden],
.flow-demo__result[hidden] { display: none !important; }

.flow-demo__upload.is-filled .flow-demo__drop {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.flow-demo__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--paper-line);
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.flow-demo__actions > span {
    color: var(--ink-3);
    font-size: 0.78rem;
}

.flow-demo__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb923c 0%, #e8600a 50%, #c2410c 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(232, 96, 10, 0.28);
}

.flow-demo__submit.is-pressed {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(232, 96, 10, 0.22);
}

.flow-demo__loading,
.flow-demo__result {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(6, 17, 32, 0.92);
    color: var(--white);
}

.flow-demo__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: flowSpin 0.8s linear infinite;
}

@keyframes flowSpin { to { transform: rotate(360deg); } }

.flow-demo__loading p {
    margin: 12px 0 0;
    font-size: 0.92rem;
}

.flow-demo__result {
    align-items: stretch;
    justify-content: center;
    background: var(--navy);
    overflow: auto;
}

.flow-demo__result header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mist);
}

.flow-demo__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    flex: 0 1 auto;
    align-content: start;
    align-items: start;
}

.flow-demo__grid figure {
    position: relative;
    margin: 0;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--navy-line);
    background: var(--navy-2);
    opacity: 0;
}

.flow-demo__grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flow-demo__grid figcaption {
    position: absolute;
    left: 6px;
    top: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(6, 17, 32, 0.72);
    color: var(--white);
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
}

.flow-demo__result > p {
    margin: 12px 0 0;
    color: var(--mist);
    font-size: 0.84rem;
}

.flow-demo__caption {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--paper-line);
    background: var(--white);
    color: var(--ink-2);
    font-size: 0.9rem;
    text-align: center;
}

.flow-demo__caption.is-pulse {
    border-color: rgba(255, 152, 0, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.12);
}

.flow-demo__cta {
    display: inline-flex;
    margin: 16px auto 0;
}

.flow-demo__stage { text-align: left; }

.flow-demo.is-static .flow-demo__form { position: relative; }
.flow-demo.is-static .flow-demo__loading { display: none !important; }
.flow-demo.is-static .flow-demo__result {
    position: relative;
    inset: auto;
    margin-top: 12px;
    border-radius: var(--r-lg);
    min-height: 0;
}
.flow-demo.is-static .flow-demo__grid figure { opacity: 1; }

/* ── A+ workflow ── */
.aplus-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 28px 0 22px;
    border-bottom: 1px solid var(--paper-line);
}

.aplus-mode {
    padding: 16px 8px 16px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ink-2);
}

.aplus-mode + .aplus-mode { padding-left: 22px; }

.aplus-mode.is-on {
    color: var(--ink);
    border-bottom-color: var(--orange);
}

.aplus-mode small {
    display: block;
    margin-bottom: 4px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
}

.aplus-mode strong {
    display: block;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.aplus-mode span {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
    color: var(--ink-3);
}

.aplus-stage {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.aplus-thumbs { display: grid; gap: 10px; }

.aplus-thumb {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--paper-2);
    cursor: pointer;
}

.aplus-thumb.is-on { border-color: var(--orange); }

.aplus-thumb img {
    width: 100%;
    height: 88px;
    object-fit: contain;
    background: var(--paper-2);
}

.aplus-thumb span {
    display: block;
    padding: 8px 10px 10px;
    font-size: 0.78rem;
    color: var(--ink-2);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aplus-canvas {
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--navy-line);
    background: var(--navy);
    min-height: 320px;
}

.aplus-canvas__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    min-height: 340px;
}

.aplus-canvas__grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--navy-2);
    border-radius: 10px;
}

.aplus-canvas__grid img:first-child {
    grid-row: 1 / 3;
}

.aplus-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.aplus-cta { margin-top: 16px; }

.aplus-panel[hidden] { display: none !important; }

/* ── Before / after ── */
.ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 36px;
}

.ba-card h3 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.compare {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--r-lg);
    border: 1px solid var(--navy-line);
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
}

.compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--navy-2);
    pointer-events: none;
}

.compare--wide { aspect-ratio: 5 / 4; }

.compare__before-wrap {
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
}

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--white);
    transform: translateX(-50%);
}

.compare__knob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.compare__tag {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.compare__tag--before {
    left: 12px;
    background: rgba(11, 18, 32, 0.72);
    color: var(--white);
}

.compare__tag--after {
    right: 12px;
    background: var(--orange);
    color: #1a1206;
}

.compare__range {
    position: absolute;
    inset: auto 12px 10px;
    width: calc(100% - 24px);
    z-index: 3;
    opacity: 0.01;
    height: 44px;
    cursor: ew-resize;
}

/* ── Variations / localization ── */
.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.pill {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--paper-line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
}

.pill.is-on {
    background: var(--orange);
    border-color: var(--orange);
    color: #1a1206;
    font-weight: 700;
}

.pill--ghost {
    background: transparent;
    color: var(--ink-3);
    min-height: 34px;
    font-size: 0.82rem;
    cursor: default;
}

.plate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.plate-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--paper-2);
    border-radius: 12px;
    border: 1px solid var(--paper-line);
}

.var-panel[hidden] { display: none !important; }

.loc-hero {
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--paper-line);
    background: var(--white);
}

.loc-hero img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--paper-2);
}

.thumb-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.thumb-strip img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--paper-2);
    border-radius: 10px;
    border: 2px solid transparent;
}

.thumb-strip img.is-on { border-color: var(--orange); }

/* ── Edit ── */
.edit-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}

.edit-steps {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.edit-steps article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
}

.edit-steps span {
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.edit-steps h3 {
    margin: 0;
    font-size: 1.05rem;
}

.edit-steps p {
    margin: 4px 0 0;
    color: var(--ink-2);
    font-size: 0.92rem;
}

.edit-cost {
    margin-top: 22px;
    color: var(--ink-3);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.edit-stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--paper-line);
    background: var(--navy);
}

.edit-stage > img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--navy-2);
}

.edit-select {
    position: absolute;
    left: 12%;
    top: 14%;
    width: 62%;
    height: 22%;
    border: 2px solid var(--orange);
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.edit-select::before,
.edit-select::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--orange);
}

.edit-select::before { left: -4px; top: -4px; }
.edit-select::after { right: -4px; bottom: -4px; }

.edit-bar {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(6, 17, 32, 0.92);
    border: 1px solid var(--navy-line);
}

.edit-bar input {
    flex: 1;
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--white);
    padding: 0 8px;
}

.edit-bar .btn { min-height: 40px; }

.edit-stage.is-applied .edit-select {
    opacity: 0.35;
}

/* ── A+ story ── */
.story-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(20px, 3vw, 40px);
    align-items: center;
}

.browser {
    border-radius: 16px;
    border: 1px solid var(--navy-line-strong);
    background: var(--navy-2);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.browser__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--navy-line);
}

.browser__chrome i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.browser__chrome i:first-child { background: #ff5f57; }
.browser__chrome i:nth-child(2) { background: #febc2e; }
.browser__chrome i:nth-child(3) { background: #28c840; }

.browser__view {
    height: min(560px, 70vh);
    overflow: hidden;
}

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

.browser__stack img {
    width: 100%;
    aspect-ratio: 1464 / 600;
    object-fit: contain;
    background: var(--navy-2);
}

.browser.is-in .browser__stack {
    animation: aplusScroll 28s linear infinite;
}

@keyframes aplusScroll {
    0%, 8% { transform: translateY(0); }
    100% { transform: translateY(calc(-100% + 560px)); }
}

/* ── Why ── */
.why-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
}

.why-points {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.why-points article {
    padding-left: 16px;
    border-left: 2px solid var(--orange);
}

.why-points h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.why-points p {
    margin: 0;
    color: var(--mist);
}

.why-visual {
    display: grid;
    gap: 10px;
}

.why-visual > img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: var(--navy-2);
    border-radius: var(--r-lg);
    border: 1px solid var(--navy-line);
}

.why-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.why-thumbs img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--navy-2);
    border-radius: 12px;
    border: 1px solid var(--navy-line);
}

.compare-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 56px;
    border-top: 1px solid var(--navy-line);
}

.compare-strip article {
    padding: 28px 22px 8px 0;
    border-right: 1px solid var(--navy-line);
}

.compare-strip article:last-child { border-right: 0; }
.compare-strip article:not(:first-child) { padding-left: 22px; }

.compare-strip .kicker { margin-bottom: 10px; }

.compare-strip h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.compare-strip p {
    margin: 0;
    color: var(--mist);
    font-size: 0.92rem;
}

.compare-strip strong {
    display: block;
    margin-top: 14px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.caps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 28px;
    margin-top: 48px;
    list-style: none;
    padding: 0;
}

.caps-list li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--navy-line);
    font-size: 0.95rem;
}

.caps-list b {
    color: var(--mist);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
}

.caps-list .soon {
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
}

.why .watermark {
    color: rgba(255, 255, 255, 0.035);
    top: auto;
    bottom: 8%;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 20px;
    border-radius: var(--r-lg);
    border: 1px solid var(--paper-line);
    background: var(--white);
    color: var(--ink);
}

.plan--popular {
    background: var(--navy);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(6, 17, 32, 0.18);
}

.plan__badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--orange);
    color: #1a1206;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
}

.plan h3 {
    margin: 0;
    font-size: 1.2rem;
}

.plan__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 10px 0 4px;
    font-family: var(--display);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.plan__price small {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-3);
}

.plan--popular .plan__price small,
.plan--popular .plan__tag,
.plan--popular .plan li {
    color: var(--mist);
}

.plan__credits {
    margin: 0 0 8px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan__was {
    margin-right: 6px;
    color: var(--ink-3);
    text-decoration: line-through;
    font-size: 1.1rem;
    font-weight: 600;
}

.plan__tag {
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: 0.88rem;
    min-height: 2.6em;
}

.plan .btn,
.plan button.btn {
    width: 100%;
}

.plan--popular .btn-primary {
    box-shadow: 0 10px 28px var(--orange-glow);
}

.plan ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.plan li {
    padding: 7px 0;
    border-top: 1px solid var(--paper-line);
    font-size: 0.88rem;
    color: var(--ink-2);
}

.plan--popular li { border-top-color: var(--navy-line); }

.plan li strong { color: inherit; }

.credits-block {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    margin-top: 56px;
    padding-top: 36px;
    border-top: 1px solid var(--paper-line);
}

.credits-table {
    display: grid;
    gap: 0;
}

.credits-table div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--paper-line);
}

.credits-table b {
    color: var(--orange);
    font-family: var(--display);
    font-size: 1.15rem;
}

.credits-table span { color: var(--ink-2); }
.credits-block a {
    color: var(--ink);
    font-weight: 650;
    border-bottom: 1px solid var(--orange);
}

/* ── Closer ── */
.closer {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(88px, 12vw, 140px) 0;
}

.closer h2 {
    margin: 0 auto;
    max-width: 16ch;
    font-family: var(--display);
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.96;
}

.closer h2 .accent {
    color: var(--orange);
    font-style: italic;
}

.closer p {
    max-width: 36rem;
    margin: 18px auto 0;
    color: var(--mist);
}

.closer__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.closer__note {
    margin-top: 16px;
    color: var(--orange);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.closer__shot {
    position: absolute;
    width: min(240px, 28vw);
    border-radius: var(--r);
    border: 1px solid var(--navy-line);
    overflow: hidden;
    opacity: 0.92;
    pointer-events: none;
}

.closer__shot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--navy-2);
}

.closer__shot--l {
    left: -40px;
    bottom: 8%;
    height: 280px;
}

.closer__shot--r {
    right: -36px;
    top: 12%;
    height: 220px;
}

/* ── Footer ── */
.home-footer {
    position: relative;
    overflow: hidden;
    background: #040b14;
    color: var(--white);
    padding: 64px 0 28px;
    border-top: 1px solid var(--navy-line);
}

.home-footer__top {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 0.8fr));
    gap: 28px;
}

.home-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 750;
}

.home-footer__logo img { width: 28px; height: 28px; }

.home-footer__brand p {
    margin: 12px 0 0;
    max-width: 28ch;
    color: var(--mist);
    font-size: 0.92rem;
}

.home-footer h3 {
    margin: 0 0 12px;
    color: var(--mist);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-footer nav {
    display: grid;
    gap: 8px;
}

.home-footer nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.home-footer nav a:hover { color: var(--white); }

.home-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid var(--navy-line);
    color: var(--mist);
    font-size: 0.84rem;
}

.home-footer__word {
    margin: 28px 0 0;
    text-align: center;
    font-family: var(--display);
    font-size: clamp(4.2rem, 16vw, 12rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.045);
    user-select: none;
}

.home-footer__tech {
    margin: 8px 0 0;
    color: rgba(154, 168, 184, 0.7);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .split,
    .edit-split,
    .story-split,
    .why-split,
    .credits-block,
    .ba-grid {
        grid-template-columns: 1fr;
    }

    .flow-demo__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "product"
            "ref"
            "settings";
        padding: 12px 12px 0;
    }

    .flow-demo__upload { min-height: 140px; }

    .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .caps-list { grid-template-columns: 1fr 1fr; }
    .aplus-stage { grid-template-columns: 1fr; }
    .aplus-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-footer__top { grid-template-columns: 1fr 1fr 1fr; }
    .closer__shot { display: none; }
}

@media (max-width: 900px) {
    .site-nav__inner {
        grid-template-columns: 1fr auto;
        min-height: 64px;
    }

    .nav-links,
    .nav-actions { display: none; }

    .nav-toggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
    }

    .nav-overlay.is-on { display: block; }

    .nav-drawer {
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        z-index: var(--z-drawer);
        max-height: min(80vh, 520px);
        overflow: auto;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid var(--navy-line);
        background: #071321;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: transform 220ms var(--ease), opacity 220ms var(--ease), visibility 0s 220ms;
    }

    .site-nav.is-open .nav-drawer {
        transform: none;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transition-delay: 0s;
    }

    .nav-drawer a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 10px;
        border-radius: 10px;
        color: var(--white);
    }

    .nav-drawer__actions {
        display: grid;
        gap: 8px;
        margin-top: 12px;
    }

    .nav-drawer .btn { width: 100%; }

    .conveyor__deck { transform: rotateX(38deg) rotateZ(-3deg) scale(1.3); }
}

@media (max-width: 768px) {
    .masonry {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 14px;
    }

    .m-a, .m-b, .m-c, .m-d, .m-e, .m-f, .m-g, .m-h, .m-i, .m-j {
        grid-column: auto;
        grid-row: span 12;
    }

    .m-a, .m-f { grid-row: span 16; }

    .feature-cols,
    .compare-strip,
    .aplus-modes {
        grid-template-columns: 1fr 1fr;
    }

    .feature-cols article,
    .compare-strip article {
        border-right: 0;
        border-bottom: 1px solid var(--paper-line);
        padding: 18px 12px 18px 0;
    }

    .compare-strip article { border-bottom-color: var(--navy-line); }

    .flow-demo__grid,
    .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flow-demo__row,
    .flow-demo__choices { grid-template-columns: 1fr; }
    .home-footer__top { grid-template-columns: 1fr 1fr; }
    .closer__cta .btn { width: 100%; }
}

@media (max-width: 560px) {
    .pricing-grid,
    .feature-cols,
    .compare-strip,
    .caps-list,
    .aplus-modes,
    .home-footer__top {
        grid-template-columns: 1fr;
    }

    .masonry { grid-template-columns: 1fr; }
    .m-a, .m-b, .m-c, .m-d, .m-e, .m-f, .m-g, .m-h, .m-i, .m-j { grid-row: span 14; }

    .stage { padding-top: 120px; }
    .stage__title { font-size: clamp(2rem, 8.5vw, 2.75rem); }
    .stage__cta { flex-direction: column; width: 100%; }
    .stage__cta .btn { width: 100%; }
    .aplus-thumbs { grid-template-columns: 1fr; }
    .home-footer__bottom { flex-direction: column; }
    .sec-title { font-size: clamp(1.85rem, 9vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .ticker__track,
    .conveyor__track,
    .stage__key,
    .browser.is-in .browser__stack,
    .flow-demo__spinner {
        animation: none !important;
    }
}
