:root {
    --bg-page: #F0EFE9;
    --bg-surface: #FFFFFF;
    --bg-elevated: #E3E1D9;
    --border-default: #D8D6CC;
    --text-primary: #1A1A18;
    --text-secondary: #4A4A46;
    --text-muted: #8A8A85;
    --brand-word1: #0E7586;
    --brand-word2: #0A5A66;
    --accent-orange: #FF8000;
    --accent-orange-text: #A65200;
    --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
}

a { color: var(--brand-word1); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand-word1); outline-offset: 2px; }

.mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    letter-spacing: 0.02em;
}

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

/* ---- Header ---- */
.site-header {
    padding: 22px 0;
    border-bottom: 1px solid var(--border-default);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-mark img { width: 32px; height: 32px; }
.brand-wordmark { font-weight: 600; font-size: 19px; }
.brand-wordmark .word1 { color: var(--brand-word1); }
.brand-wordmark .word2 { color: var(--brand-word2); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--text-secondary); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text-primary); text-decoration: none; }
.btn-nav-cta {
    background: var(--brand-word1); color: #fff; padding: 9px 18px; border-radius: 7px;
    font-weight: 600; font-size: 14px;
}
.btn-nav-cta:hover { text-decoration: none; opacity: 0.92; }

/* ---- Hero ---- */
.hero { padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-word1);
    background: rgba(14,117,134,0.08); border: 1px solid rgba(14,117,134,0.2);
    padding: 5px 11px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
    font-size: 44px; line-height: 1.14; font-weight: 600; margin: 0 0 20px; letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--brand-word1); }
.hero-sub { font-size: 18px; color: var(--text-secondary); max-width: 480px; margin: 0 0 30px; }
.hero-ctas { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary {
    background: var(--brand-word1); color: #fff; padding: 14px 26px; border-radius: 8px;
    font-weight: 600; font-size: 15px; display: inline-block; border: none; cursor: pointer;
}
.btn-primary:hover { text-decoration: none; opacity: 0.92; }
.hero-note { font-size: 13px; color: var(--text-muted); }
.hero-graphic { display: flex; align-items: center; justify-content: center; }
.hero-graphic img { width: 220px; height: 220px; }

/* ---- Hero demo ---- */
.demo-window {
    width: 340px; background: var(--bg-surface); border: 1px solid var(--border-default);
    border-radius: 14px; overflow: hidden;
}
.demo-titlebar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border-default); }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bg-elevated); }
.demo-stage { position: relative; height: 240px; }
.demo-scene {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 18px; opacity: 0; transition: opacity 0.5s ease; padding: 20px; box-sizing: border-box;
}
.demo-scene.active { opacity: 1; }
.demo-caption {
    position: absolute; bottom: 14px; font-size: 11px; color: var(--text-muted);
    letter-spacing: 0.02em;
}

.demo-mockscreen {
    position: relative; width: 100%; height: 120px; background: var(--bg-page);
    border: 1px solid var(--border-default); border-radius: 8px; padding: 16px;
}
.demo-ui-line { height: 7px; background: var(--bg-elevated); border-radius: 3px; margin-bottom: 10px; }
.demo-ui-button {
    position: absolute; right: 18px; bottom: 18px; background: var(--brand-word1); color: #fff;
    font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 6px; transition: transform 0.15s ease;
}
.demo-ui-button.pressed { transform: scale(0.93); }
.demo-cursor {
    position: absolute; left: 22px; top: 30px; width: 10px; height: 10px; border-radius: 50% 50% 50% 0;
    background: var(--text-primary); transform: rotate(-45deg); transition: none;
}
.demo-cursor.moving { transition: left 1.1s cubic-bezier(0.4,0,0.2,1), top 1.1s cubic-bezier(0.4,0,0.2,1); left: 84%; top: 76%; }
.demo-cursor.clicking { box-shadow: 0 0 0 8px rgba(255,69,58,0.25); border-radius: 50%; transform: none; }

.demo-stepcard {
    display: flex; gap: 12px; align-items: center; width: 100%; background: var(--bg-page);
    border: 1px solid var(--border-default); border-radius: 8px; padding: 12px;
}
.demo-thumb {
    position: relative; width: 64px; height: 48px; background: var(--bg-elevated); border-radius: 5px; flex-shrink: 0;
}
.demo-thumb-dot {
    position: absolute; top: 50%; left: 60%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%; border: 2px solid #ff453a;
}
.demo-steptext { font-size: 12px; color: var(--text-primary); min-height: 16px; }
.demo-steptext::after { content: ''; display: inline-block; width: 2px; height: 12px; background: var(--brand-word1); margin-left: 2px; vertical-align: -2px; animation: demoCaret 0.9s step-end infinite; }
@keyframes demoCaret { 50% { opacity: 0; } }

.demo-formats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 240px; }
.demo-chip {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; color: var(--brand-word1);
    background: rgba(14,117,134,0.08); border: 1px solid rgba(14,117,134,0.2); padding: 6px 12px; border-radius: 20px;
}

.demo-privacy-mark { font-size: 30px; }
.demo-privacy-text { font-size: 15px; font-weight: 600; text-align: center; line-height: 1.4; }

.demo-progress { display: flex; justify-content: center; gap: 7px; padding: 14px 0; }
.demo-progress-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bg-elevated); transition: background 0.3s ease; }
.demo-progress-dot.active { background: var(--brand-word1); }

@media (prefers-reduced-motion: reduce) {
    .demo-scene { transition: opacity 1s ease; }
    .demo-cursor.moving { transition: none; }
}

/* ---- Trust strip ---- */
.trust-strip { border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); padding: 22px 0; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.trust-item {
    display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); font-weight: 500;
}
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-word1); flex-shrink: 0; }

/* ---- Section shared ---- */
section { padding: 72px 0; }
.section-head { max-width: 620px; margin: 0 0 44px; }
.section-eyebrow {
    font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { font-size: 16px; color: var(--text-secondary); margin: 0; }

/* ---- Stepped "how it works" - signature layout, echoes the staircase mark ---- */
.steps-stack { display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.step-row {
    display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: flex-start;
    padding: 28px 0; border-top: 1px solid var(--border-default);
}
.step-row:last-child { border-bottom: 1px solid var(--border-default); }
.step-row:nth-child(1) { margin-left: 0; }
.step-row:nth-child(2) { margin-left: 36px; }
.step-row:nth-child(3) { margin-left: 72px; }
.step-num {
    font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 600; color: var(--brand-word1);
}
.step-row h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; }
.step-row p { font-size: 15px; color: var(--text-secondary); margin: 0; max-width: 480px; }

/* ---- Feature grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 12px; padding: 26px;
}
.feature-card .icon { font-size: 22px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); margin: 0; }

/* ---- Privacy callout ---- */
.privacy-block {
    background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: 16px;
    padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.privacy-block h2 { font-size: 26px; font-weight: 600; margin: 0 0 16px; }
.privacy-block p { font-size: 15px; color: var(--text-secondary); }
.privacy-list { list-style: none; padding: 0; margin: 20px 0 0; }
.privacy-list li {
    display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary);
    margin-bottom: 12px;
}
.privacy-list .mark { color: var(--brand-word1); font-weight: 700; flex-shrink: 0; }

/* ---- Pricing ---- */
.pricing-card {
    background: var(--bg-surface); border: 2px solid var(--brand-word1); border-radius: 16px;
    padding: 40px; max-width: 440px; margin: 0 auto; text-align: center;
}
.pricing-badge {
    display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
    background: rgba(255,128,0,0.12); color: var(--accent-orange-text); padding: 5px 12px;
    border-radius: 20px; margin-bottom: 18px; font-weight: 600;
}
.price-amount { font-size: 48px; font-weight: 600; margin: 6px 0; }
.price-amount .period { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.pricing-list { list-style: none; padding: 0; margin: 26px 0 30px; text-align: left; }
.pricing-list li {
    display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-secondary);
    margin-bottom: 12px;
}
.pricing-list .mark { color: var(--brand-word1); font-weight: 700; flex-shrink: 0; }

/* ---- CTA band ---- */
.cta-band {
    background: var(--brand-word1); border-radius: 20px; padding: 56px; text-align: center; color: #fff;
}
.cta-band h2 { font-size: 28px; font-weight: 600; margin: 0 0 12px; }
.cta-band p { font-size: 16px; opacity: 0.9; margin: 0 0 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.btn-on-brand {
    background: #fff; color: var(--brand-word1); padding: 14px 28px; border-radius: 8px;
    font-weight: 600; font-size: 15px; display: inline-block; border: none; cursor: pointer;
}
.btn-on-brand:hover { text-decoration: none; opacity: 0.92; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border-default); padding: 40px 0; margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-note { font-size: 13px; color: var(--text-muted); }

/* ---- Legal pages ---- */
.legal-page { padding: 56px 0 80px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 32px; font-weight: 600; margin: 0 0 8px; }
.legal-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 40px; font-family: 'IBM Plex Mono', monospace; }
.legal-page h2 { font-size: 19px; font-weight: 600; margin: 36px 0 12px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--text-secondary); }
.legal-page ul { padding-left: 20px; }
.legal-notice {
    background: rgba(255,128,0,0.08); border: 1px solid rgba(255,128,0,0.25); border-radius: 10px;
    padding: 16px 20px; font-size: 14px; color: var(--accent-orange-text); margin-bottom: 36px;
}

/* ---- 404 ---- */
.notfound { padding: 120px 0; text-align: center; }
.notfound .code { font-family: 'IBM Plex Mono', monospace; font-size: 15px; color: var(--brand-word1); margin-bottom: 14px; }
.notfound h1 { font-size: 30px; font-weight: 600; margin: 0 0 14px; }
.notfound p { font-size: 16px; color: var(--text-secondary); margin: 0 0 28px; }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-graphic { order: -1; }
    .demo-window { width: 100%; max-width: 320px; }
    .hero h1 { font-size: 32px; }
    .feature-grid { grid-template-columns: 1fr; }
    .privacy-block { grid-template-columns: 1fr; padding: 32px; }
    .step-row:nth-child(2) { margin-left: 18px; }
    .step-row:nth-child(3) { margin-left: 36px; }
    .step-row { grid-template-columns: 40px 1fr; }
    .site-nav { display: none; }
    .cta-band { padding: 36px 24px; }
}
