/* =========================================================
   Planqix — style.css
   Modern, clean, professional marketing site styles.
   Fonts: Inter + Syne (Google Fonts)
   ========================================================= */
/* ── Reset & base ───────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --accent: #4f9cf9;
    --accent-dark: #3b87e8;
    --accent-soft: #e8f2ff;
    --accent-tint: #c9e1ff;
    /* Accent for TEXT only — --accent itself is decorative (2.82:1 on white,
       under the WCAG AA 4.5:1 floor), so type never uses it directly.
       Measured against every ground this token is used on (relative luminance,
       WCAG 2.x): 6.57:1 on white card/page backgrounds, 5.82:1 on the
       .btn-white hover tint (#f0f0ff) and 5.81:1 on --accent-soft chips
       (.pill/.hero-badge) — all above the 4.5:1 AA floor for normal text.
       The previous step (#1d6fe8) passed on white (4.68:1) but fell to
       4.14:1 on those tinted grounds, which is why one darker value is used
       everywhere instead of a light/dark pair. */
    --accent-text: #1559bd;
    --green: #16a34a;
    --amber: #d97706;
    --red: #e11d48;
    --teal: #0d9488;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.05);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    --nav-h: 64px;
    --max-w: 1140px;
    --section-gap: 96px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

code {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: .875em;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .1em .35em;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-gap) 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 12px 0 16px;
    color: var(--text);
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text-muted);
}

.pill {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-text);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 4px 14px;
}

.gradient-text {
    background: linear-gradient(135deg, #1d6fe8 0%, #5b35d5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: .9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 10px 22px;
    cursor: pointer;
    transition: all .18s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,.35);
}

.btn-ghost {
    color: var(--text-muted);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-text);
    background: var(--accent-soft);
}

.btn-white {
    background: #fff;
    color: var(--accent-text);
}

.btn-white:hover {
    /* Only the ground tints on hover — --accent-text already clears 4.5:1
       against it (5.82:1 on #f0f0ff), so the type stays put. */
    color: var(--accent-text);
    background: #f0f0ff;
    transform: translateY(-1px);
}

/* Disabled/current-plan buttons (pricing cards grey out the visitor's own
   plan; anchors can't take the disabled attribute, hence aria-disabled). */
.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: .55;
    cursor: default;
    pointer-events: none;
}

.pricing-cta-current,
.pricing-cta-current:hover {
    transform: none;
    box-shadow: none;
}

.btn-lg {
    font-size: 1rem;
    padding: 13px 28px;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ── Navigation ─────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    flex-shrink: 0;
}

.logo-mark {
    font-size: 1.25rem;
    color: var(--accent);
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    flex: 1;
}

.nav-links a {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
    /* A squeezed bar must drop or collapse links, never wrap a label in two. */
    white-space: nowrap;
}

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

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

/* hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 60% 30%, #dbeafe 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 20% 70%, #e0f2fe 0%, transparent 70%);
    pointer-events: none;
}

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

/* Two columns on desktop: copy left, large app screenshot right. */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--accent-text);
    background: var(--accent-soft);
    border: 1px solid var(--accent-tint);
    border-radius: 999px;
    padding: 5px 14px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text);
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* hero screenshot */
.hero-shot {
    position: relative;
    min-width: 0;
}

.hero-shot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: #fff;
}

/* Let the shot run past its column toward the viewport edge on wide screens so
   it reads as a real screenshot rather than a thumbnail. .hero has
   overflow:hidden, so the bleed never creates a horizontal scrollbar. */
@media (min-width: 1101px) {
    .hero-shot {
        width: calc(100% + 72px);
    }
}

.plan-room {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.plan-room span {
    pointer-events: none;
}

.r1 {
    top: 5%;
    left: 5%;
    width: 55%;
    height: 45%;
    background: #f8fafc;
}

.r2 {
    top: 5%;
    left: 62%;
    width: 33%;
    height: 45%;
    background: #f0fdf4;
}

.r3 {
    top: 52%;
    left: 5%;
    width: 38%;
    height: 43%;
    background: #fff7ed;
}

.r4 {
    top: 52%;
    left: 45%;
    width: 50%;
    height: 43%;
    background: #f0f9ff;
}

/* door gaps — thin breaks in walls */
.plan-door {
    position: absolute;
    background: #fff;
    z-index: 2;
}

.d1 {
    top: 28%;
    left: 60%;
    width: 3px;
    height: 14%;
}

/* between r1/r2 */
.d2 {
    top: 50%;
    left: 22%;
    width: 16%;
    height: 3px;
}

/* bottom of r1 */
.d3 {
    top: 50%;
    left: 65%;
    width: 3px;
    height: 14%;
}

/* r4 top gap */
/* swing arcs */
.plan-arc {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid #a78bfa;
    background: transparent;
    z-index: 3;
}

/* quarter-arc clips via overflow hidden on the card */
.a1 {
    top: 28%;
    left: 60%;
    width: 14%;
    height: 14%;
    clip-path: inset(0 0 50% 50%);
}

.a2 {
    top: 36%;
    left: 22%;
    width: 16%;
    height: 16%;
    clip-path: inset(50% 0 0 50%);
}

/* keypoint dots */
.kp-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.8);
    z-index: 4;
    transform: translate(-50%, -50%);
}

.kp-red {
    background: #ef4444;
}

.kp-grn {
    background: #22c55e;
}

.kp-blu {
    background: #3b82f6;
}

/* ── Stats bar ──────────────────────────────────────────── */
.stats-bar {
    background: var(--bg-alt);
    border-block: 1px solid var(--border);
    padding: 28px 0;
}

.stats-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: start;
    gap: 24px 32px;
    padding: 0 24px;
    text-align: left;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat strong {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
    color: var(--text);
}

.stat span {
    font-size: .8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.stat-divider {
    display: none;
}

/* ── Product proof section ───────────────────────────────── */
.proof-section {
    padding: 72px 0 52px;
    background: radial-gradient(70% 90% at 12% 10%, #e0f2fe 0%, transparent 60%),
    radial-gradient(80% 100% at 95% 20%, #e8f2ff 0%, transparent 62%),
    var(--bg);
}

.proof-shell {
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(2px);
    padding: 34px;
}

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

.proof-head h2 {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    margin: 12px 0 10px;
    letter-spacing: -.02em;
}

.proof-head p {
    color: var(--text-muted);
    font-size: 1rem;
}

.proof-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
}

.proof-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 20px;
}

.proof-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.proof-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.proof-card p {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
}

.proof-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Features grid ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── How it works ───────────────────────────────────────── */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    text-align: center;
}

.step-num {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -.05em;
    color: var(--accent);
    opacity: .15;
    line-height: 1;
    margin-bottom: 12px;
}

.step-body h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-body p {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--border);
    padding-top: 12px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 40px;
}

/* ── Gallery ────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}

.gallery-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.gallery-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-align: center;
    padding: 24px;
    background-image: linear-gradient(rgba(79, 156, 249, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 156, 249, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* placeholder mock */
.placeholder-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px 12px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-light);
    z-index: 5;
    pointer-events: none;
}

.pi-mock {
    position: absolute;
    inset: 0;
}

.pm-wall {
    position: absolute;
    background: #334155;
}

.gallery-info {
    padding: 16px 18px;
}

.gallery-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 8px;
}

.gallery-tag-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.gallery-tag-amber {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.gallery-tag-green {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.gallery-info h4 {
    font-size: .9375rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.gallery-info p {
    font-size: .85rem;
    color: var(--text-muted);
}

.gallery-note {
    margin-top: 28px;
    text-align: center;
    font-size: .875rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
}

/* ── Roadmap ────────────────────────────────────────────── */
.roadmap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* vertical spine */
.roadmap::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--border);
    z-index: 0;
}

.roadmap-item {
    display: flex;
    gap: 24px;
    padding: 0 0 36px;
    position: relative;
}

.rm-marker {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 2px solid var(--border);
    background: var(--bg-alt);
}

.roadmap-item.done .rm-marker {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.rm-marker svg {
    width: 18px;
    height: 18px;
}

/* active pulse ring */
.rm-pulse {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 6px rgba(79,70,229,.15), 0 0 0 12px rgba(79,70,229,.06);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(79,70,229,.15), 0 0 0 10px rgba(79,70,229,.06);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(79,70,229,.12), 0 0 0 18px rgba(79,70,229,.04);
    }
}

.rm-empty {
    background: var(--bg) !important;
}

.rm-body {
    padding-top: 8px;
    flex: 1;
}

.rm-phase {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rm-badge-active {
    font-size: .7rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 2px 10px;
    letter-spacing: .03em;
    text-transform: none;
}

.rm-body h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.roadmap-item.upcoming .rm-body h4 {
    color: var(--text-muted);
}

.rm-body p {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 12px;
}

.rm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rm-tags span {
    font-size: .75rem;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
    color: var(--text-muted);
}

/* ── Pricing ────────────────────────────────────────────── */
/* The no-commitment promise, under the pricing header. Wraps to one item per
   line on a narrow screen rather than squeezing the ticks together. */
.pricing-assurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-top: 18px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text);
}

.pricing-assurance span {
    white-space: nowrap;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
    margin-bottom: 48px;
}

.pricing-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}

/* Install App add-on band — sits under the three plan cards rather than
   becoming a fourth one, because it is priced per user on top of a plan and
   showing it as a peer plan implied it replaced them. */
.addon-band {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
}

.addon-band-copy {
    flex: 1 1 420px;
    min-width: 280px;
}

.addon-band-copy h3 {
    font-family: 'Syne', 'Inter', system-ui, sans-serif;
    font-size: 22px;
    margin: 10px 0 8px;
}

.addon-band-copy p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
    max-width: 62ch;
}

.addon-band-prices {
    margin-top: 12px;
    font-size: 14px;
}

.addon-band-prices strong {
    color: var(--text);
}

.addon-band-cta {
    flex: 0 0 auto;
}

.pricing-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.pricing-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 16px;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-name {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.pricing-featured .pricing-name {
    color: var(--accent-text);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.price-num {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -.04em;
    color: var(--text);
    line-height: 1;
}

.price-per {
    font-size: .9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-desc {
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.pricing-features li {
    font-size: .9375rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feat-yes,
.feat-no {
    color: var(--text);
}

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

.feat-yes::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2.5 6l2.5 2.5 4.5-5' stroke='%2316a34a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.feat-no::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px solid var(--border);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.pricing-cta {
    margin-top: auto;
}

/* Add-ons */
.addons-wrap {
    max-width: 720px;
    margin: 0 auto;
}

.addons-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.addons-note {
    font-size: .85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.addon-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: box-shadow .2s;
}

.addon-card:hover {
    box-shadow: var(--shadow-sm);
}

.addon-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.addon-body {
    flex: 1;
    min-width: 0;
}

.addon-name {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
}

.addon-detail {
    font-size: .8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.addon-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.addon-price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text);
}

.addon-btn {
    padding: 7px 16px;
    font-size: .875rem;
    border-radius: var(--radius);
}

/* ── Access section ─────────────────────────────────────── */
.access-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 840px;
    margin: 0 auto;
}

.access-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.access-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-card h3 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text);
}

.access-card p {
    font-size: .9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.access-hint {
    font-size: .8125rem;
    color: var(--text-light);
    line-height: 1.5;
}

.access-or {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--text-light);
    font-size: .9rem;
}

.access-or::before,
.access-or::after {
    content: '';
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ── CTA actions ────────────────────────────────────────── */
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn-cta-outline {
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    background: transparent;
}

.btn-cta-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
}

/* ── Checkout overlay ───────────────────────────────────── */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-overlay[hidden] {
    display: none;
}

.checkout-modal {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.checkout-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

.checkout-modal p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ── Contact modal ──────────────────────────────────────── */
/* The overlay's layout lives in the markup as inline styles (display:flex when
   open); an author !important is the only thing that beats a non-important
   inline declaration, so this — not JS style juggling — is what makes the
   `hidden` attribute win while the dialog is closed. */
#contactModal[hidden] {
    display: none !important;
}

#contactModal .contact-close:focus-visible,
#contactModal input:focus-visible,
#contactModal textarea:focus-visible,
#contactModal button[type="submit"]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* Set by script.js while a modal is open, so background content can't scroll
   behind the dialog. */
body.modal-open {
    overflow: hidden;
}

/* ── CTA banner ─────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #4f9cf9 0%, #7c5cfc 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.cta-banner p {
    font-size: 1.0625rem;
    opacity: .85;
    max-width: 540px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    background: var(--text);
    color: #e2e8f0;
}

.footer-inner {
    display: flex;
    gap: 48px 80px;
    flex-wrap: wrap;
    padding: 60px 24px 40px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-brand {
    flex: 1.5;
    min-width: 200px;
}

.footer-brand .nav-logo {
    color: #fff;
    margin-bottom: 12px;
    display: inline-flex;
}

.footer-brand p {
    font-size: .9rem;
    /* The footer sits on --text (#0f172a), so muted greys need the lighter
       token: --text-muted is only 3.75:1 here, --text-light is 6.96:1. */
    color: var(--text-light);
    line-height: 1.65;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: .9rem;
    /* Same --text-light the footer link columns use: 6.96:1 on the footer's
       --text ground, where --text-muted would only reach 3.75:1. */
    color: var(--text-light);
    transition: color .15s;
}

.footer-social:hover {
    color: #e2e8f0;
}

.footer-links {
    display: flex;
    gap: 40px 64px;
    flex-wrap: wrap;
    flex: 2;
}

.footer-links h5 {
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    /* Same value as the footer body copy below, now via its token:
       #94a3b8 is 6.96:1 on the footer's --text (#0f172a) ground. */
    color: var(--text-light);
    margin-bottom: 14px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: .9rem;
    color: var(--text-light);
    transition: color .15s;
}

.footer-links a:hover {
    color: #e2e8f0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .825rem;
    color: var(--text-light);
}

/* ── Scroll-reveal ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
    /* Stack: copy first, screenshot beneath it. The shot stays on the page
       rather than being hidden — it is the point of the section. */
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero-sub {
        max-width: none;
    }
}

/* The signed-in bar (five links + four actions) cannot fit on one line below
   ~1100px, so the nav collapses to the hamburger well before the rest of the
   page switches to its phone layout at 768px. */
@media (max-width: 1100px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav.mobile-open .nav-inner {
        flex-wrap: wrap;
        height: auto;
        padding-bottom: 16px;
        /* The bar's 32px gap is a COLUMN gap between logo and links. Left as a
           shorthand it also became the row gap once the menu wrapped, stacking
           32px of dead space between the link list and the buttons while the
           buttons themselves were squeezed. */
        column-gap: 32px;
        row-gap: 0;
    }

    .nav.mobile-open {
        height: auto;
        background: rgba(255,255,255,.98);
        box-shadow: var(--shadow);
        /* A long menu on a short phone (auth'd: five links plus four buttons in
           landscape) ran off the bottom with no way to reach the end. */
        max-height: 100vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 3;
        gap: 2px;
        padding-bottom: 8px;
    }

    .nav.mobile-open .nav-links li {
        width: 100%;
    }

    .nav.mobile-open .nav-links a {
        /* 44px is the smallest comfortable touch target; 10px of padding on a
           15px line came to ~37px. */
        display: flex;
        align-items: center;
        padding: 12px;
        min-height: 44px;
    }

    .nav.mobile-open .nav-actions {
        display: grid;
        /* Was `display:flex` with `flex:1` on each button — a signed-in user has
           four (Settings, Open viewer, Sign out, Open app), so on a 360px phone
           each got ~70px and every label wrapped or clipped. Two per row, and
           they keep a readable width whatever the count. */
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        order: 4;
        padding-bottom: 8px;
    }

    .nav.mobile-open .nav-actions .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
        white-space: nowrap;
    }

    /* The primary call to action gets the full width: it is the one button the
       page is asking for, and pairing it off against "Sign out" reads as a
       choice between equals. */
    .nav.mobile-open .nav-actions .btn-primary {
        grid-column: 1 / -1;
    }
}

/* Below this the bar itself is tight, not just the open menu. */
@media (max-width: 600px) {
    :root {
        --nav-h: 56px;
    }

    .nav-inner {
        padding: 0 16px;
        gap: 16px;
    }

    .nav.mobile-open .nav-inner {
        column-gap: 16px;
    }

    /* One per row once two would be under ~140px each. */
    .nav.mobile-open .nav-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 64px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step {
        max-width: 100%;
    }

    .stats-inner {
        gap: 4px 0;
    }

    .stat {
        padding: 8px 20px;
    }

    .stat-divider {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .proof-shell {
        padding: 24px 18px;
    }

    .proof-grid {
        grid-template-columns: 1fr;
    }

    .access-row {
        flex-direction: column;
        gap: 0;
    }

    .access-or {
        flex-direction: row;
    }

    .access-or::before,
    .access-or::after {
        width: 48px;
        height: 1px;
    }

    .access-card {
        max-width: 100%;
        width: 100%;
    }

    .footer-inner {
        padding: 40px 24px 28px;
        gap: 32px;
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: calc(var(--nav-h) + 48px);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Legal / policy pages (privacy) ─────────────────────── */
.legal {
    padding: calc(var(--nav-h) + 64px) 0 88px;
}

.legal-body {
    max-width: 780px;
}

.legal-head {
    margin-bottom: 40px;
}

.legal-head h1 {
    font-family: 'Syne', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 14px 0 10px;
}

.legal-updated {
    font-size: .875rem;
    color: var(--text-light);
}

.legal-summary {
    background: var(--accent-soft);
    border: 1px solid var(--accent-tint);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    margin-bottom: 52px;
}

.legal-summary h2 {
    font-size: 1.0625rem;
    font-weight: 800;
    margin: 0 0 14px;
    border: 0;
    padding: 0;
}

.legal-summary ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.legal-summary li {
    position: relative;
    padding-left: 24px;
    font-size: .9375rem;
    color: var(--text);
}

.legal-summary li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-weight: 800;
}

.legal-summary p {
    margin: 16px 0 0;
    font-size: .875rem;
    color: var(--text-muted);
}

.legal-body h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 44px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.legal-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 26px 0 8px;
    color: var(--text);
}

.legal-body p {
    font-size: .9375rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-body ul {
    margin: 0 0 16px 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.legal-body li {
    font-size: .9375rem;
    color: var(--text-muted);
}

.legal-body strong {
    color: var(--text);
    font-weight: 700;
}

.legal-body a {
    /* --accent-dark is 3.61:1 on white; links need the AA-safe step. */
    color: var(--accent-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.legal .footer-bottom a {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .legal {
        padding: calc(var(--nav-h) + 40px) 0 64px;
    }

    .legal-summary {
        padding: 20px 22px;
    }
}
