/* Shopfleet marketing site — same Soft UI tokens as the app (shopfleet/resources/css/app.css). */

:root {
    --bg: #eef1f7;
    --surface: #f4f6fb;
    --surface-raised: #ffffff;
    --border-soft: #e2e6f0;

    --text: #2b3044;
    --text-muted: #6b7290;
    --text-faint: #9aa0b8;

    --primary: #6c7bf2;
    --primary-hover: #5a69e6;
    --primary-soft: #e6e9fd;
    --primary-strong: #4b59d6;

    --success: #1f9a78;
    --success-soft: #ddf5ee;
    --warning: #b8691c;
    --warning-soft: #fdeedd;
    --danger: #d0414e;
    --danger-soft: #fde3e5;
    --info: #2a86c7;
    --info-soft: #e0f1fc;

    --store-1: #a5b4fc;
    --store-2: #86efac;
    --store-3: #fdba74;
    --store-4: #f9a8d4;
    --store-5: #67e8f9;
    --store-6: #fde68a;

    --shadow-light: rgba(255, 255, 255, 0.9);
    --shadow-dark: rgba(163, 177, 198, 0.45);
    --shadow-raised: 8px 8px 20px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
    --shadow-soft: 4px 4px 10px var(--shadow-dark), -4px -4px 10px var(--shadow-light);
    --shadow-inset: inset 3px 3px 7px var(--shadow-dark), inset -3px -3px 7px var(--shadow-light);
    --shadow-float: 0 20px 40px rgba(76, 88, 140, 0.15);
    --shadow-shot: 0 30px 80px rgba(76, 88, 140, 0.22), 0 8px 20px rgba(76, 88, 140, 0.1);

    --blob-1: rgba(108, 123, 242, 0.35);
    --blob-2: rgba(249, 168, 212, 0.3);
    --blob-3: rgba(134, 239, 172, 0.22);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;

    --max: 1180px;
    --gutter: 16px;

    color-scheme: light;
}

@media (min-width: 768px) {
    :root {
        --gutter: 32px;
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --bg: #1c2030;
        --surface: #222738;
        --surface-raised: #2a3045;
        --border-soft: #31374d;
        --text: #e7eaf3;
        --text-muted: #a3a9c2;
        --text-faint: #7a809a;
        --primary: #8b97f7;
        --primary-hover: #9da8fa;
        --primary-soft: #2d3360;
        --primary-strong: #aab3fb;
        --success: #4fd1a8;
        --success-soft: #183b35;
        --warning: #f2b066;
        --warning-soft: #3f3020;
        --danger: #f2828c;
        --danger-soft: #45262c;
        --info: #78c2f2;
        --info-soft: #1d3346;
        --shadow-light: rgba(52, 59, 84, 0.55);
        --shadow-dark: rgba(10, 12, 20, 0.6);
        --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.45);
        --shadow-shot: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.3);
        --blob-1: rgba(108, 123, 242, 0.28);
        --blob-2: rgba(249, 168, 212, 0.12);
        --blob-3: rgba(79, 209, 168, 0.1);
        color-scheme: dark;
    }
}

:root[data-theme='dark'] {
    --bg: #1c2030;
    --surface: #222738;
    --surface-raised: #2a3045;
    --border-soft: #31374d;
    --text: #e7eaf3;
    --text-muted: #a3a9c2;
    --text-faint: #7a809a;
    --primary: #8b97f7;
    --primary-hover: #9da8fa;
    --primary-soft: #2d3360;
    --primary-strong: #aab3fb;
    --success: #4fd1a8;
    --success-soft: #183b35;
    --warning: #f2b066;
    --warning-soft: #3f3020;
    --danger: #f2828c;
    --danger-soft: #45262c;
    --info: #78c2f2;
    --info-soft: #1d3346;
    --shadow-light: rgba(52, 59, 84, 0.55);
    --shadow-dark: rgba(10, 12, 20, 0.6);
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.45);
    --shadow-shot: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 20px rgba(0, 0, 0, 0.3);
    --blob-1: rgba(108, 123, 242, 0.28);
    --blob-2: rgba(249, 168, 212, 0.12);
    --blob-3: rgba(79, 209, 168, 0.1);
    color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    border-color: var(--border-soft);
}

html {
    background: var(--bg);
    accent-color: var(--primary);
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: var(--primary-strong);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
}

.skip-link:focus {
    left: 16px;
}

.i {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.i-sm {
    width: 16px;
    height: 16px;
}

.i-lg {
    width: 24px;
    height: 24px;
}

.container {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.muted {
    color: var(--text-muted);
}

.faint {
    color: var(--text-faint);
}

.tabular {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* Theme-specific screenshots: light shown by default, dark when the theme is dark. */
.only-dark {
    display: none !important;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .only-light {
        display: none !important;
    }
    :root:not([data-theme='light']) .only-dark {
        display: block !important;
    }
}

:root[data-theme='dark'] .only-light {
    display: none !important;
}

:root[data-theme='dark'] .only-dark {
    display: block !important;
}

/* ── Components (match the app) ───────────────────────────────────── */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-raised);
    padding: 20px;
}

@media (min-width: 768px) {
    .card {
        padding: 28px;
    }
}

.card-hover {
    transition:
        transform 0.2s ease-out,
        box-shadow 0.2s ease-out;
}

.card-hover:hover {
    transform: translateY(-3px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    font: inherit;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
    transition:
        box-shadow 0.2s ease,
        transform 0.1s ease,
        background 0.2s,
        color 0.2s;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-primary:active {
    box-shadow: var(--shadow-inset);
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:active {
    box-shadow: var(--shadow-inset);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-strong);
}

.btn-ghost:hover {
    background: var(--primary-soft);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-pill);
    padding: 3px 12px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.pill-primary {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.pill-success {
    background: var(--success-soft);
    color: var(--success);
}

.pill-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.pill-info {
    background: var(--info-soft);
    color: var(--info);
}

.store-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-pill);
    padding: 3px 11px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.store-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.input {
    width: 100%;
    background: var(--bg);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: var(--shadow-inset);
    padding: 12px 16px;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s ease-out;
}

.input::placeholder {
    color: var(--text-faint);
}

.input:focus {
    border-color: var(--primary);
    outline: none;
}

textarea.input {
    min-height: 140px;
    resize: vertical;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.icon-well {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-strong);
    flex: none;
}

.inset-well {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-inset);
}

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 0;
    transition:
        background 0.2s,
        box-shadow 0.2s;
}

.site-header.scrolled {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border-soft);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
    text-decoration: none !important;
}

.brand svg {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    padding: 4px;
    list-style: none;
    background: var(--surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a[aria-current='page'] {
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-inset);
}

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

.nav-actions .login {
    display: none;
}

.theme-btn,
.menu-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--text-muted);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.theme-btn:hover,
.menu-btn:hover {
    color: var(--text);
}

.theme-btn .i-sun,
.theme-btn .i-moon,
.theme-btn .i-monitor {
    display: none;
}

.theme-btn[data-mode='light'] .i-sun,
.theme-btn[data-mode='dark'] .i-moon,
.theme-btn[data-mode='system'] .i-monitor {
    display: block;
}

.mobile-menu {
    display: none;
    margin-top: 12px;
    padding: 12px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a:not(.btn) {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu a[aria-current='page'] {
    background: var(--bg);
    box-shadow: var(--shadow-inset);
}

.mobile-menu .btn {
    width: 100%;
    margin-top: 8px;
}

@media (min-width: 960px) {
    .nav-links {
        display: flex;
    }
    .nav-actions {
        margin-left: 0;
    }
    .nav-actions .login {
        display: inline-flex;
    }
    .menu-btn,
    .mobile-menu,
    .mobile-menu.open {
        display: none;
    }
}

@media (max-width: 420px) {
    .nav-actions .cta {
        display: none;
    }
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section {
    padding: 72px 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: 112px 0;
    }
}

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(30px, 4.4vw, 46px);
}

.section-head p {
    margin-top: 16px;
    font-size: 18px;
    color: var(--text-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--primary-strong);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blobs {
    position: absolute;
    inset: -96px 0 -260px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.blobs span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.blobs span:nth-child(1) {
    width: 560px;
    height: 560px;
    left: -140px;
    top: -60px;
    background: var(--blob-1);
}

.blobs span:nth-child(2) {
    width: 520px;
    height: 520px;
    right: -160px;
    top: 220px;
    background: var(--blob-2);
}

.blobs span:nth-child(3) {
    width: 420px;
    height: 420px;
    left: 40%;
    top: 520px;
    background: var(--blob-3);
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    padding: 48px 0 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .hero {
        padding: 80px 0 48px;
    }
}

.hero h1 {
    font-size: clamp(38px, 7vw, 72px);
    letter-spacing: -0.035em;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 .accent {
    background: linear-gradient(100deg, var(--primary) 10%, #b78cf2 60%, #f08fc0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    max-width: 640px;
    margin: 24px auto 0;
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-muted);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-note span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-note .i {
    color: var(--success);
}

.announce {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 6px 8px 6px 6px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    max-width: 100%;
}

.announce .pill {
    flex: none;
}

.announce span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Product shot */
.stage {
    position: relative;
    margin: 56px auto 0;
    max-width: 1120px;
}

.browser {
    position: relative;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-shot);
    overflow: hidden;
    border: 1px solid var(--border-soft);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--surface-raised);
}

.browser-bar .dots {
    display: flex;
    gap: 6px;
}

.browser-bar .dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--border-soft);
    display: block;
}

.browser-bar .dots i:nth-child(1) {
    background: #ff6b6b;
}

.browser-bar .dots i:nth-child(2) {
    background: #ffc145;
}

.browser-bar .dots i:nth-child(3) {
    background: #3dd68c;
}

.browser-bar .url {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    background: var(--bg);
    color: var(--text-faint);
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.browser img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

.float {
    position: absolute;
    z-index: 2;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--border-soft);
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    line-height: 1.45;
    display: none;
    animation: bob 6s ease-in-out infinite;
}

.float b {
    font-weight: 700;
}

.float-1 {
    left: -36px;
    top: 30%;
    width: 280px;
}

.float-2 {
    right: -28px;
    top: 9%;
    width: 260px;
    animation-delay: -3s;
}

.float .row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.float .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--warning-soft);
    color: var(--warning);
}

.float .bar {
    height: 8px;
    border-radius: 99px;
    background: var(--bg);
    box-shadow: var(--shadow-inset);
    margin-top: 8px;
    overflow: hidden;
}

.float .bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), #9aa6fb);
}

.phone {
    position: absolute;
    right: 3%;
    bottom: -48px;
    width: 200px;
    z-index: 3;
    border-radius: 34px;
    padding: 8px;
    background: #1b1f2c;
    box-shadow: var(--shadow-shot);
    display: none;
}

.phone img {
    border-radius: 27px;
    width: 100%;
    aspect-ratio: 390 / 844;
    object-fit: cover;
    object-position: top;
}

@media (min-width: 1100px) {
    .float {
        display: block;
    }
}

@media (min-width: 900px) {
    .phone {
        display: block;
    }
}

@keyframes bob {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ── Stats / trust strip ──────────────────────────────────────────── */
.strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 88px;
}

@media (min-width: 768px) {
    .strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }
}

.stat {
    text-align: left;
}

.stat .label {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.stat .value {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 6px 0 4px;
}

.stat .sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.stat .sub i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

/* ── Feature grid ─────────────────────────────────────────────────── */
.grid-3 {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 680px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }
}

.feature h3 {
    font-size: 20px;
    margin: 20px 0 8px;
}

.feature p {
    color: var(--text-muted);
    font-size: 15px;
}

.tone-1 {
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.tone-2 {
    background: var(--success-soft);
    color: var(--success);
}

.tone-3 {
    background: var(--warning-soft);
    color: var(--warning);
}

.tone-4 {
    background: var(--info-soft);
    color: var(--info);
}

.tone-5 {
    background: var(--danger-soft);
    color: var(--danger);
}

/* ── Product tour ─────────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 4px;
    padding: 5px;
    margin: 0 auto 32px;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--surface);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

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

.tab[aria-selected='true'] {
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-inset);
}

.tab[aria-selected='true'] .i {
    color: var(--primary);
}

.tour-panel[hidden] {
    display: none;
}

.tour-caption {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
    .tour-caption {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: start;
        gap: 40px;
    }
}

.tour-caption h3 {
    font-size: 24px;
}

.tour-caption p {
    color: var(--text-muted);
    margin-top: 8px;
}

.checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.checks li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
}

.checks .i {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--success);
}

/* ── Split feature rows ───────────────────────────────────────────── */
.split {
    display: grid;
    gap: 40px;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
    .split {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 64px;
    }
    .split.reverse > :first-child {
        order: 2;
    }
}

.split + .split {
    margin-top: 96px;
}

.split h2 {
    font-size: clamp(28px, 3.6vw, 40px);
}

.split .lead {
    margin: 16px 0 24px;
    color: var(--text-muted);
    font-size: 18px;
}

.shot {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-shot);
    border: 1px solid var(--border-soft);
    background: var(--surface);
}

.shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top left;
}

/* ── Steps ────────────────────────────────────────────────────────── */
.steps {
    display: grid;
    gap: 20px;
    counter-reset: step;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px;
    }
}

.step .num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.step h3 {
    font-size: 20px;
    margin: 20px 0 8px;
}

.step p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Safety demo card ─────────────────────────────────────────────── */
.preview-card .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-card h3 {
    font-size: 18px;
}

.preview-sum {
    margin: 18px 0;
    padding: 16px;
    font-size: 15px;
}

.preview-rows {
    display: grid;
    gap: 8px;
}

.preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--bg);
    font-size: 14px;
}

.preview-row .name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-row s {
    color: var(--text-faint);
    font-weight: 500;
}

.preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* ── Roles table ──────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

table.roles {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 560px;
    font-size: 15px;
}

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

table.roles th:first-child,
table.roles td:first-child {
    text-align: left;
}

table.roles thead th {
    font-family: var(--font-display);
    font-size: 15px;
}

table.roles tbody tr:last-child td {
    border-bottom: 0;
}

.yes {
    color: var(--success);
}

.no {
    color: var(--text-faint);
}

/* ── Pricing ──────────────────────────────────────────────────────── */
.billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.billing-toggle .tabs {
    margin: 0;
}

.save {
    margin-left: 4px;
}

.plans {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

@media (min-width: 760px) {
    .plans {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .plans {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }
}

.plan {
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan.featured {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.plan .badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.plan h3 {
    font-size: 20px;
}

.plan .for {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 6px;
    min-height: 44px;
}

.plan .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 20px 0 4px;
}

.plan .price .amount {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.plan .price .per {
    color: var(--text-muted);
    font-size: 14px;
}

.plan .billed {
    color: var(--text-faint);
    font-size: 13px;
    min-height: 20px;
}

.plan .btn {
    width: 100%;
    margin: 20px 0 24px;
}

.plan .checks {
    font-size: 14px;
}

.plan .checks li {
    font-size: 14px;
}

.plan .limits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
}

.plan .limits b {
    display: block;
    font-family: var(--font-display);
    font-size: 18px;
}

.plan .limits span {
    color: var(--text-muted);
}

table.compare {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

table.compare th,
table.compare td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
}

table.compare th:first-child,
table.compare td:first-child {
    text-align: left;
}

table.compare thead th {
    font-family: var(--font-display);
    font-size: 15px;
    position: sticky;
    top: 0;
    background: var(--surface);
}

table.compare .group td {
    padding-top: 28px;
    font-weight: 700;
    color: var(--primary-strong);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq details {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 0 22px;
}

.faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
}

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

.faq summary .i {
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq details[open] summary .i {
    transform: rotate(180deg);
}

.faq details p {
    padding: 0 0 20px;
    color: var(--text-muted);
}

/* ── CTA band ─────────────────────────────────────────────────────── */
.cta-band {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    padding: 56px 24px;
    border-radius: 32px;
    background: linear-gradient(135deg, #6c7bf2 0%, #8a74ee 55%, #c27ad8 100%);
    color: #fff;
    box-shadow: var(--shadow-shot);
}

@media (min-width: 768px) {
    .cta-band {
        padding: 80px 48px;
    }
}

.cta-band h2 {
    font-size: clamp(30px, 4.4vw, 46px);
}

.cta-band p {
    max-width: 560px;
    margin: 16px auto 0;
    opacity: 0.9;
    font-size: 18px;
}

.cta-band .hero-ctas .btn-primary {
    background: #fff;
    color: #4b59d6;
}

.cta-band .hero-ctas .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.cta-band::before,
.cta-band::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.cta-band::before {
    width: 360px;
    height: 360px;
    left: -120px;
    top: -160px;
}

.cta-band::after {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -140px;
}

/* ── Page hero (inner pages) ──────────────────────────────────────── */
.page-hero {
    position: relative;
    isolation: isolate;
    text-align: center;
    padding: 56px 0 24px;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 88px 0 32px;
    }
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    letter-spacing: -0.035em;
    max-width: 820px;
    margin: 0 auto;
}

.page-hero p {
    max-width: 620px;
    margin: 20px auto 0;
    color: var(--text-muted);
    font-size: 19px;
}

/* ── Contact ──────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 36px;
    }
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .form-grid .full {
        grid-column: 1 / -1;
    }
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
}

.form-status.show {
    display: flex;
}

.form-status.ok {
    background: var(--success-soft);
    color: var(--success);
}

.form-status.err {
    background: var(--danger-soft);
    color: var(--danger);
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item + .contact-item {
    margin-top: 22px;
}

.contact-item h3 {
    font-size: 17px;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 2px;
}

/* ── Prose (legal pages) ──────────────────────────────────────────── */
.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 24px;
    margin: 40px 0 12px;
}

.prose p,
.prose li {
    color: var(--text-muted);
}

.prose p + p {
    margin-top: 12px;
}

.prose ul {
    padding-left: 20px;
}

.prose li + li {
    margin-top: 6px;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
    padding: 64px 0 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border-soft);
}

.footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 860px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    }
}

.footer-about {
    grid-column: 1 / -1;
}

@media (min-width: 860px) {
    .footer-about {
        grid-column: auto;
    }
}

.footer-about p {
    margin-top: 16px;
    max-width: 320px;
    color: var(--text-muted);
    font-size: 15px;
}

.site-footer h4 {
    font-size: 14px;
    margin-bottom: 14px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.site-footer ul a {
    color: var(--text-muted);
    font-size: 15px;
}

.site-footer ul a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-faint);
    font-size: 14px;
}

/* ── Lightbox ─────────────────────────────────────────────────────── */
.zoomable {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(28, 32, 48, 0.6);
    backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.lightbox.open {
    display: grid;
}

.lightbox img {
    max-height: 90vh;
    width: auto;
    border-radius: 14px;
    box-shadow: var(--shadow-shot);
}

/* ── Reveal on scroll ─────────────────────────────────────────────── */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 480px) {
    .preview-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .preview-row .name {
        grid-column: 1 / -1;
        white-space: normal;
    }
    .preview-row .tabular {
        text-align: right;
    }
}

/* ── Tour page ────────────────────────────────────────────────────── */
.journey {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.journey a,
.journey span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.journey a:hover {
    text-decoration: none;
    color: var(--primary-strong);
}

.journey b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-strong);
    font-size: 12px;
}

.journey .sep {
    padding: 0;
    background: none;
    box-shadow: none;
    color: var(--text-faint);
}

.tour-layout {
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1100px) {
    .tour-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 56px;
    }
}

.chapters {
    display: none;
}

@media (min-width: 1100px) {
    .chapters {
        display: block;
        position: sticky;
        top: 96px;
        align-self: start;
    }
}

.chapters ol {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: grid;
    gap: 2px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.chapters a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
}

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

.chapters a b {
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg);
    font-size: 12px;
    color: var(--text-faint);
}

.chapters a.active {
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-inset);
}

.chapters a.active b {
    background: var(--primary);
    color: #fff;
}

.chapters .progress {
    height: 6px;
    margin: 14px 8px 0;
    border-radius: 99px;
    background: var(--bg);
    box-shadow: var(--shadow-inset);
    overflow: hidden;
}

.chapters .progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), #9aa6fb);
    transition: width 0.3s ease;
}

.chapter {
    scroll-margin-top: 96px;
}

.chapter + .chapter {
    margin-top: 96px;
}

.chapter-head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.chapter-num {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    box-shadow: var(--shadow-soft);
}

.chapter-kicker {
    color: var(--primary-strong);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chapter h2 {
    font-size: clamp(26px, 3.2vw, 36px);
    margin-top: 4px;
}

.chapter .lead {
    color: var(--text-muted);
    font-size: 17px;
    margin: 0 0 24px;
    max-width: 720px;
}

.notes {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 760px) {
    .notes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.note {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    font-size: 14px;
    line-height: 1.5;
}

.note b {
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.note span {
    color: var(--text-muted);
}

.note .i {
    color: var(--primary);
    margin-top: 2px;
}

.tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: var(--info-soft);
    color: var(--info);
    font-size: 14px;
    font-weight: 500;
}

/* Light / dark comparison slider */
.compare-slider {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-shot);
    border: 1px solid var(--border-soft);
    aspect-ratio: 16 / 10;
    --pos: 50%;
    user-select: none;
}

.compare-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.compare-slider .top {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare-slider .handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 3px;
    margin-left: -1.5px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.compare-slider .handle::after {
    content: '⟷';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #4b59d6;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.compare-slider input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.compare-slider .tag {
    position: absolute;
    top: 14px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.compare-slider .tag.l {
    left: 14px;
    background: #fff;
    color: #2b3044;
}

.compare-slider .tag.d {
    right: 14px;
    background: #1c2030;
    color: #e7eaf3;
}

/* Phones row */
.phones {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 12px 0 8px;
}

.phones .phone {
    position: static;
    display: block;
    width: min(240px, 30%);
    flex: none;
    border-radius: 30px;
    padding: 7px;
}

.phones .phone:nth-child(2) {
    width: min(270px, 34%);
    transform: translateY(-24px);
}

@media (max-width: 640px) {
    .phones {
        gap: 8px;
    }
    .phones .phone {
        border-radius: 18px;
        padding: 4px;
    }
    .phones .phone img {
        border-radius: 15px;
    }
}
