/* ==========================================================================
   Scenario Translate — Marketing site
   Pure HTML/CSS, no build step. Mobile-first, responsive.
   Inter via Google Fonts (loaded in <head>).
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
    /* Accent — a calm, scenario-aware indigo/blue. */
    --accent: #3B5BDB;
    --accent-hover: #2B47B0;
    --accent-soft: rgba(59, 91, 219, 0.10);
    --accent-soft-2: rgba(59, 91, 219, 0.06);

    /* Neutral palette */
    --text: #11151C;
    --text-secondary: #4A5568;
    --text-tertiary: #8A94A6;
    --bg: #FFFFFF;
    --bg-subtle: #F7F8FA;
    --bg-card: #FBFBFD;
    --border: #E6E8EC;
    --border-strong: #D1D6DE;

    /* Typography */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;

    /* Spacing & radius */
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --maxw: 1080px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(17, 21, 28, 0.04), 0 1px 3px rgba(17, 21, 28, 0.04);
    --shadow-md: 0 4px 12px rgba(17, 21, 28, 0.06), 0 2px 4px rgba(17, 21, 28, 0.04);
    --shadow-lg: 0 24px 60px rgba(17, 21, 28, 0.10), 0 8px 24px rgba(17, 21, 28, 0.06);
}

/* Dark mode — follows system preference automatically. */
@media (prefers-color-scheme: dark) {
    :root {
        --accent: #6B8AF0;
        --accent-hover: #8AA4F4;
        --accent-soft: rgba(107, 138, 240, 0.16);
        --accent-soft-2: rgba(107, 138, 240, 0.08);

        --text: #F2F4F8;
        --text-secondary: #B4BCC8;
        --text-tertiary: #7A828F;
        --bg: #0E1116;
        --bg-subtle: #15191F;
        --bg-card: #171B22;
        --border: #232830;
        --border-strong: #2E343D;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
    }
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }

/* ---- Layout primitives --------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

.section { padding-block: 72px; }
.section-tight { padding-block: 48px; }

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

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.section-lead {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 620px;
}

.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    border: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-subtle); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}
/* Monochrome variant — paints the TinyIcon template glyph with currentColor.
   Used where a single-color mark reads better (footer on subtle bg). */
.brand-mark-mono {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background-color: var(--accent);
    -webkit-mask: url("../tinyicon.png") center / contain no-repeat;
    mask: url("../tinyicon.png") center / contain no-repeat;
}
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 9px 18px; font-size: 14px; }

@media (min-width: 860px) {
    .nav-links { display: flex; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    padding-block: 80px 56px;
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 50% 0%, var(--accent-soft-2), transparent 70%);
}
.hero-inner { text-align: center; max-width: 760px; margin-inline: auto; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 26px;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent);
}
.hero h1 {
    font-size: clamp(38px, 7vw, 64px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}
.hero h1 .grad {
    background: linear-gradient(120deg, var(--accent), #7C5BF0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: clamp(18px, 2.4vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 36px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.hero-meta {
    margin-top: 22px;
    font-size: 14px;
    color: var(--text-tertiary);
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.hero-meta .sep { opacity: 0.4; }

/* Hero device mock */
.hero-mock {
    margin-top: 56px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-width: 720px;
    margin-inline: auto;
}
.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots span {
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--border-strong);
}
.mock-bar .label {
    font-size: 12px; color: var(--text-tertiary);
    margin-left: auto; font-weight: 500;
}
.mock-body { padding: 22px; display: grid; gap: 14px; }
.mock-row {
    display: flex; gap: 10px; align-items: flex-start;
    max-width: 86%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
}
.mock-row.in {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}
.mock-row.out {
    margin-left: auto;
    background: var(--accent-soft);
    color: var(--accent);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.mock-row .avatar {
    flex-shrink: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--border-strong);
    display: grid; place-items: center;
    font-size: 11px;
}
.mock-row.out .avatar { background: var(--accent); color: #fff; }
.mock-scenario {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

/* ---- Feature grid -------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
}
@media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ---- Split / showcase ---------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}
@media (min-width: 860px) {
    .split { grid-template-columns: 1fr 1fr; gap: 64px; }
    .split.reverse > :first-child { order: 2; }
}

.split-media {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    min-height: 280px;
    display: grid;
    place-items: center;
}
.split h2 {
    font-size: clamp(24px, 3.5vw, 32px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.split p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}
.split ul.checks { display: grid; gap: 10px; margin-top: 6px; }
.split ul.checks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15.5px;
    color: var(--text-secondary);
}
.check-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid; place-items: center;
    margin-top: 1px;
}
.check-icon svg { width: 13px; height: 13px; }

/* Scenario editor mock */
.scenario-mock { width: 100%; display: grid; gap: 14px; }
.scenario-mock .field {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    background: var(--bg-subtle);
}
.scenario-mock .field-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}
.scenario-mock .field-value { font-size: 14px; }
.scenario-mock .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.scenario-mock .chip {
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 500;
}
.scenario-mock .chip.muted { background: var(--bg); color: var(--text-secondary); border: 1px solid var(--border); }

/* Notch / surfaces mock */
.surfaces-mock {
    display: grid;
    gap: 16px;
    width: 100%;
}
.surface-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    gap: 14px;
}
.surface-card .ic {
    width: 36px; height: 36px; border-radius: 9px;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center;
}
.surface-card .ic svg { width: 20px; height: 20px; }
.surface-card .t { font-size: 14px; font-weight: 600; }
.surface-card .s { font-size: 12.5px; color: var(--text-tertiary); }

/* ---- Stats band ---------------------------------------------------------- */
.stats-band {
    background: var(--bg-subtle);
    border-block: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    text-align: center;
}
@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
}
.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ---- Pricing ------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
}
@media (min-width: 860px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    position: relative;
}
.price-card.featured .flag {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
}
.price-tier {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}
.price-amount {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.price-amount .per {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-tertiary);
}
.price-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 4px 0 22px;
}
.price-features { display: grid; gap: 10px; margin-bottom: 26px; }
.price-features li {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 14.5px; color: var(--text-secondary);
}
.price-features .check-icon { width: 18px; height: 18px; margin-top: 2px; }
.price-features .check-icon svg { width: 11px; height: 11px; }
.price-card .btn { margin-top: auto; width: 100%; }

/* ---- Final CTA ----------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--accent), #5B3FD6);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    text-align: center;
    color: #fff;
}
.cta-band h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.cta-band p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
}
.cta-band .btn-primary {
    background: #fff;
    color: var(--accent);
}
.cta-band .btn-primary:hover { background: #f0f0f5; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 48px 32px;
    background: var(--bg);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 320px;
    margin-top: 12px;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
    font-size: 14.5px;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ---- Legal pages --------------------------------------------------------- */
.legal { padding-block: 56px 80px; }
.legal .container { max-width: 760px; }
.legal h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.legal .updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}
.legal h2 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 36px 0 12px;
}
.legal p, .legal li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.legal ul { padding-left: 22px; list-style: disc; }
.legal ul li { margin-bottom: 8px; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.legal-back:hover { color: var(--text); }

/* ---- Accessibility ------------------------------------------------------- */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
