/* AkiProtect site — dark professional theme, inspired by oreans.com / vmpsoft.com. */

:root {
    --bg:           #0b0e14;
    --bg-elev:      #11161f;
    --bg-card:      #161c28;
    --border:       #232b3a;
    --border-soft:  #1c2331;
    --text:         #e6edf6;
    --muted:        #8b95a8;
    --accent:       #5fa8ff;
    --accent-2:     #7c5cff;
    --accent-soft:  rgba(95,168,255,0.12);
    --success:      #4ade80;
    --warning:      #facc15;
    --danger:       #f87171;
    --shadow:       0 8px 32px rgba(0,0,0,0.35);
    --radius:       10px;
    --radius-sm:    6px;
    --maxw:         1180px;
    --hero-h1:      56px;
    --hero-sub:     19px;
    --section-y:    80px;
    --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted  { color: var(--muted); }
.small  { font-size: 13px; }
.wrap   { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-soft);
    background: rgba(11,14,20,0.85);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; gap: 24px;
}
.brand {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
}
.brand-mark   { color: var(--text); }
.brand-mark-2 { color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.lang-switcher {
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 13px;
    font-family: var(--font-sans);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer; transition: all 0.15s;
    text-decoration: none;
}
.btn-sm   { padding: 7px 14px; font-size: 13px; }
.btn-lg   { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #061018; }
.btn-primary:hover { background: #7ab8ff; text-decoration: none; }
.btn-ghost   { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Sections */
section { padding: var(--section-y) 0; }
section.tight { padding: calc(var(--section-y) * 0.6) 0; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 48px; margin: 0 0 16px; }
h2 { font-size: 32px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
h4 { font-size: 14px; margin: 0 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Hero */
.hero {
    padding: calc(var(--section-y) * 1.2) 0 var(--section-y);
    background:
        radial-gradient(ellipse 800px 400px at 50% 0%, var(--accent-soft), transparent 60%),
        var(--bg);
    text-align: center;
}
.hero h1 { max-width: 880px; margin: 0 auto 20px; font-size: var(--hero-h1); }
.hero p.sub { font-size: var(--hero-sub); color: var(--muted); max-width: 720px; margin: 0 auto 32px; }

/* Scale up on larger screens so content doesn't look lost in whitespace */
@media (min-width: 1280px) {
    :root {
        --maxw: 1280px;
        --hero-h1: 64px;
        --hero-sub: 20px;
        --section-y: 96px;
    }
    h2 { font-size: 36px; }
    .section-head { max-width: 780px; }
    .section-head p { font-size: 18px; }
    .hero h1 { max-width: 980px; }
    .hero p.sub { max-width: 760px; }
}
@media (min-width: 1600px) {
    :root {
        --maxw: 1400px;
        --hero-h1: 72px;
        --hero-sub: 21px;
        --section-y: 112px;
    }
    h2 { font-size: 40px; }
    body { font-size: 16px; }
    .hero h1 { max-width: 1080px; }
}
@media (min-width: 1920px) {
    :root {
        --maxw: 1520px;
        --hero-h1: 80px;
        --section-y: 128px;
    }
}
.hero-badges {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 6px 14px; border-radius: 999px;
    background: var(--bg-elev); border: 1px solid var(--border);
    font-size: 13px; color: var(--muted);
    margin-bottom: 32px;
}
.hero-badges .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.hero-support { color: var(--muted); font-size: 13px; }

/* Cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { color: var(--text); }
.card p  { color: var(--muted); margin: 0; }
.card-icon {
    width: 36px; height: 36px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Compare table */
.compare-table {
    width: 100%;
    border-collapse: separate; border-spacing: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    font-size: 14px;
}
.compare-table th, .compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.compare-table th { background: var(--bg-elev); color: var(--muted); font-weight: 600; }
.compare-table td.center { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-aki { color: var(--accent); font-weight: 600; }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--muted); }
.partial { color: var(--warning); }

/* Clickable feature rows in the compare table */
.compare-row-link {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    padding: 2px 0;
}
.compare-row-link:hover { color: var(--accent); text-decoration: none; }
.compare-row-link:hover .compare-row-arrow { opacity: 1; transform: translateY(2px); }
.compare-row-arrow {
    color: var(--accent);
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.compare-row:hover td { background: rgba(95,168,255,0.04); }
.compare-row-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* Scroll target offset so the sticky header doesn't cover anchored cards */
.rowby-card { scroll-margin-top: 88px; }
.rowby-card:target {
    border-left-width: 4px;
    box-shadow: 0 0 0 2px var(--accent-soft);
    animation: rowbyHighlight 1.4s ease;
}
@keyframes rowbyHighlight {
    0%   { box-shadow: 0 0 0 2px var(--accent); }
    100% { box-shadow: 0 0 0 2px var(--accent-soft); }
}

/* ── Row-by-row comparison cards ────────────────────────────────────────── */
.rowby-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
}
.rowby-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    display: flex; flex-direction: column;
    gap: 12px;
    transition: border-color 0.15s, transform 0.15s;
}
.rowby-card:hover { transform: translateY(-2px); }
.rowby-card.rowby-unique { border-left-color: #facc15; }
.rowby-card.rowby-deeper { border-left-color: var(--accent); }
.rowby-card.rowby-parity { border-left-color: var(--border); }
.rowby-head { display: flex; align-items: baseline; gap: 12px; }
.rowby-num {
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
}
.rowby-head h3 {
    color: var(--text);
    font-size: 17px;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}
.rowby-tag {
    display: inline-block; align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
}
.rowby-unique .rowby-tag { background: rgba(250,204,21,0.12); color: #facc15; }
.rowby-deeper .rowby-tag { background: var(--accent-soft);     color: var(--accent); }
.rowby-parity .rowby-tag { background: rgba(139,149,168,0.10); color: var(--muted); }
.rowby-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ── Summary stats + score-bar ──────────────────────────────────────────── */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}
.summary-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px 26px;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.summary-stat::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px;
}
.summary-stat-unique::before { background: #facc15; }
.summary-stat-deeper::before { background: var(--accent); }
.summary-stat-parity::before { background: var(--border); }
.summary-stat-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px;
    margin-bottom: 12px;
}
.summary-stat-unique .summary-stat-tag { background: rgba(250,204,21,0.12); color: #facc15; }
.summary-stat-deeper .summary-stat-tag { background: var(--accent-soft);     color: var(--accent); }
.summary-stat-parity .summary-stat-tag { background: rgba(139,149,168,0.10); color: var(--muted); }
.summary-stat-num {
    font-size: 56px; font-weight: 800;
    line-height: 1; letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 8px;
}
.summary-stat-label {
    color: var(--text);
    font-size: 15px; font-weight: 600;
    margin-bottom: 8px;
}
.summary-stat-caption {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.score-bar {
    display: flex; gap: 4px;
    margin: 0 auto 16px;
    max-width: 760px;
    height: 28px;
}
.score-cell {
    flex: 1;
    border-radius: 4px;
    transition: transform 0.15s, opacity 0.15s;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: transparent;
}
.score-cell:hover { transform: scaleY(1.2) scaleX(1.05); opacity: 0.85; text-decoration: none; }
.score-unique { background: #facc15; }
.score-deeper { background: var(--accent); }
.score-parity { background: var(--border); }

.score-legend {
    display: flex; justify-content: center; gap: 24px;
    font-size: 13px; color: var(--muted);
    margin-bottom: 32px;
}
.score-legend .dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.score-legend .dot-unique { background: #facc15; }
.score-legend .dot-deeper { background: var(--accent); }
.score-legend .dot-parity { background: var(--border); }

.summary-close {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
    text-align: center;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

@media (max-width: 760px) {
    .rowby-grid { grid-template-columns: 1fr; }
    .summary-stats { grid-template-columns: 1fr; }
    .summary-stat-num { font-size: 44px; }
}

/* Pricing */
.pricing-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    display: flex; flex-direction: column;
}
.pricing-card.recommended {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.pricing-card .tag {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #061018;
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 999px;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.pricing-card h3 { font-size: 18px; margin-bottom: 4px; }
.pricing-card .for { color: var(--muted); font-size: 13px; min-height: 38px; margin-bottom: 16px; }
.pricing-card .price { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.pricing-card .price .currency { font-size: 22px; vertical-align: top; margin-right: 2px; color: var(--muted); }
.pricing-card .price .period { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.pricing-card ul {
    list-style: none; padding: 0; margin: 24px 0;
    color: var(--text); font-size: 14px;
    flex: 1;
}
.pricing-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    display: flex; gap: 8px; align-items: flex-start;
}
.pricing-card li:last-child { border-bottom: none; }
.pricing-card li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.pricing-card .btn { width: 100%; }

/* Docs / code */
pre, code {
    font-family: var(--font-mono);
    font-size: 13px;
}
pre {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    overflow-x: auto;
    line-height: 1.5;
}
code { background: var(--bg-elev); padding: 2px 6px; border-radius: 4px; }
pre code { background: transparent; padding: 0; }

/* Tables in docs */
table.docs {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0;
}
table.docs th, table.docs td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
}
table.docs th { color: var(--muted); font-weight: 600; }
table.docs code { font-size: 12px; }

/* ── Docs page: sticky TOC + rich option cards ──────────────────────────── */
.docs-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 56px;
    align-items: flex-start;
}
.docs-toc {
    position: sticky;
    top: 88px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 18px 16px;
}
.docs-toc-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.docs-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-toc a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.docs-toc a:hover {
    background: var(--bg-elev);
    color: var(--text);
    text-decoration: none;
}

.docs-content { min-width: 0; }
.doc-section { scroll-margin-top: 88px; margin-bottom: 64px; }
.doc-section-title {
    font-size: 30px;
    color: var(--text);
    margin: 0 0 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
    letter-spacing: -0.02em;
}
.doc-section-intro {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    margin: 14px 0 28px;
    max-width: 760px;
}
.doc-section-note {
    color: var(--muted);
    font-size: 14px;
    font-style: italic;
    margin: 16px 0 0;
    padding: 14px 18px;
    background: var(--bg-elev);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.doc-snippet {
    margin-bottom: 16px;
}
.doc-snippet pre {
    margin: 0;
    font-size: 14px;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 18px;
    transition: border-color 0.15s, transform 0.15s;
}
.doc-card:hover {
    border-color: var(--border);
}
.doc-card-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 12px;
}
.doc-flag {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.doc-summary {
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
    margin: 0 0 20px;
}

.doc-fields {
    display: flex; flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
.doc-field {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: start;
    font-size: 14.5px;
    line-height: 1.65;
}
.doc-field-label {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-top: 4px;
}
.doc-field-value {
    color: var(--text);
}
.doc-field-list ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.doc-field-list li {
    color: var(--text);
    font-size: 14.5px;
    padding-left: 18px;
    position: relative;
}
.doc-field-list li::before {
    content: '';
    position: absolute; left: 0; top: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.doc-example {
    margin-top: 16px;
    border-top: 1px solid var(--border-soft);
    padding-top: 16px;
}
.doc-example-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.doc-example pre {
    margin: 0;
    font-size: 13.5px;
}

@media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; gap: 24px; }
    .docs-toc { position: relative; top: 0; }
    .docs-toc ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .doc-field { grid-template-columns: 1fr; gap: 4px; }
    .doc-field-label { padding-top: 0; }
    .doc-section-title { font-size: 24px; }
}

/* Forms */
.form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 11px 13px;
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-sans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.3);
    color: var(--danger);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}
.form-success {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.3);
    color: var(--success);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    text-align: center;
}
.form-success h3 { color: var(--success); }

/* ── Feature tour: 8 small tabs + full-width detail panel ───────────────── */
.feature-tour {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* When the user clicks a cube we scrollIntoView on this container —
       leave room for the sticky site header so the top row of cubes lands
       just under it, with the detail panel right below. */
    scroll-margin-top: 80px;
}
.feature-tour-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.feature-tab {
    display: flex; flex-direction: column;
    gap: 12px;
    padding: 22px 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    color: var(--text);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
    width: 100%;
    min-height: 168px;
}
.feature-tab:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.feature-tab.is-active {
    border-color: var(--accent);
    background: var(--bg-elev);
    box-shadow: 0 0 0 2px var(--accent-soft), 0 12px 32px rgba(0,0,0,0.3);
}
.feature-tab-icon {
    width: 36px; height: 36px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
    flex-shrink: 0;
}
.feature-tab-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
}
.feature-tab-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail panel */
.feature-tour-detail {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 460px;
}
.feature-panel {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 0;
    animation: fpFadeIn 0.35s ease both;
}
.feature-panel.is-active { display: grid; }
@keyframes fpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.feature-panel-graphic {
    background: var(--bg-elev);
    padding: 32px;
    display: flex; align-items: center; justify-content: center;
    border-right: 1px solid var(--border-soft);
}
.feature-panel-graphic svg {
    width: 100%; height: auto;
    max-width: 480px;
    display: block;
}

.feature-panel-body {
    padding: 40px 44px;
    display: flex; flex-direction: column;
    gap: 18px;
}
.feature-panel-eyebrow {
    display: flex; align-items: center; gap: 12px;
}
.feature-panel-icon {
    width: 36px; height: 36px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 700;
}
.feature-panel-eyebrow h3 {
    color: var(--text);
    font-size: 24px;
    margin: 0;
    letter-spacing: -0.01em;
}
.feature-panel-lede {
    color: var(--accent);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
}
.feature-panel-text {
    color: var(--text);
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0;
}

.feature-panel-stops {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 8px;
}
.feature-panel-stops-label {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
}
.feature-panel-stops ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 8px;
}
.feature-panel-stops li {
    display: flex; gap: 10px; align-items: flex-start;
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
}
.feature-panel-stops .stop-icon {
    color: #f87171;
    flex-shrink: 0;
    margin-top: 3px;
}

.feature-panel-tech {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
    display: flex; flex-direction: column; gap: 6px;
}
.feature-panel-tech-label {
    font-family: var(--font-mono);
    font-size: 10px; font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.feature-panel-tech code {
    background: transparent;
    padding: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 1000px) {
    .feature-tour-tabs { grid-template-columns: repeat(2, 1fr); }
    .feature-panel { grid-template-columns: 1fr; }
    .feature-panel-graphic { border-right: none; border-bottom: 1px solid var(--border-soft); padding: 24px; }
    .feature-panel-body { padding: 28px 24px; }
    .feature-panel-eyebrow h3 { font-size: 21px; }
    .feature-panel-lede { font-size: 17px; }
    .feature-panel-text { font-size: 14.5px; }
}
@media (max-width: 540px) {
    .feature-tour-tabs { grid-template-columns: 1fr; }
}

/* GUI product showcase — Linear/Notion-style tabbed feature tour.
   Left: list of panels with descriptions. Right: big sticky preview.
   Hover or click a tab to switch. */
.gui-shot-placeholder {
    width: 100%;
    aspect-ratio: 5 / 4;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-size: 13px; font-weight: 500;
    background:
        repeating-linear-gradient(45deg, transparent 0 16px, rgba(95,168,255,0.04) 16px 17px),
        var(--bg-elev);
    border-radius: var(--radius-sm);
}
.gui-shot-placeholder span {
    background: var(--bg-card);
    padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--border);
}

.showcase {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.6fr);
    gap: 32px;
    align-items: start;
    /* When the user clicks a panel tab, the showcase is scrolled into view.
       Leave room for the sticky site header. */
    scroll-margin-top: 80px;
}

/* ── Left: tab list ─────────────────────────────────────────────────────── */
.showcase-nav {
    display: flex; flex-direction: column;
    gap: 8px;
}
.showcase-tab {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--text);
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    width: 100%;
    position: relative;
}
.showcase-tab:hover {
    background: var(--bg-card);
}
.showcase-tab.is-active {
    background: var(--bg-card);
    border-color: var(--border-soft);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.showcase-tab.is-active::before {
    content: '';
    position: absolute; left: -1px; top: 16px; bottom: 16px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.showcase-tab-num {
    font-family: var(--font-mono);
    font-size: 12px; font-weight: 600;
    color: var(--muted);
    padding-top: 2px;
    letter-spacing: 0.04em;
}
.showcase-tab.is-active .showcase-tab-num { color: var(--accent); }

.showcase-tab-body {
    display: flex; flex-direction: column; gap: 6px;
    min-width: 0;
}
.showcase-tab-title {
    font-size: 15px; font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.showcase-tab-desc {
    font-size: 13px; line-height: 1.5;
    color: var(--muted);
    /* Collapsed by default. Active tab expands it. */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.25s ease;
    opacity: 0;
}
.showcase-tab.is-active .showcase-tab-desc {
    max-height: 200px;
    opacity: 1;
}

.showcase-tab-chevron {
    color: var(--muted);
    font-size: 14px; line-height: 1.3;
    padding-top: 2px;
    transition: transform 0.2s, color 0.2s;
}
.showcase-tab:hover .showcase-tab-chevron { color: var(--text); transform: translateX(2px); }
.showcase-tab.is-active .showcase-tab-chevron { color: var(--accent); transform: translateX(4px); }

/* ── Left sidebar — make the tab list sticky now that the right column is
       tall (screenshot + narrative). User keeps the nav within reach while
       reading the long story. */
.showcase-nav {
    position: sticky;
    top: 88px;
    align-self: start;
}

/* ── Right: image stage + narrative directly under it ───────────────────── */
.showcase-stage {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.showcase-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0b0e14;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    /* Aspect ratio matches the actual screenshots (~945×745) so they fit
       fully without cropping. */
    aspect-ratio: 945 / 745;
    width: 100%;
}
.showcase-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.showcase-img.is-active { opacity: 1; }

.showcase-stage-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.showcase-meta-pill {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    color: var(--muted);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.showcase-scroll-hint {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: scrollHintPulse 2s ease-in-out infinite;
}
.scroll-chev {
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    display: inline-block;
}
@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.55; transform: translateY(0); }
    50%      { opacity: 1;    transform: translateY(3px); }
}

/* ── Story-top: number + title + lede above the screenshot ──────────── */
.story-top-stack {
    position: relative;
    min-height: 110px;
    margin-bottom: 4px;
}
.story-top {
    display: none;
    animation: storyFadeIn 0.35s ease both;
}
.story-top.is-active { display: block; }
.story-header {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 12px;
}
.story-header h3 {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
    color: var(--text);
    letter-spacing: -0.01em;
}
.story-num {
    font-family: var(--font-mono);
    font-size: 14px; font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
}
.story-lede {
    color: var(--text);
    font-size: 18px;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* ── Narrative directly under the screenshot in the same column ──────── */
.showcase-narrative {
    margin-top: 0;
    padding: 20px 4px 0;
    position: relative;
    min-height: 260px;
}
.story {
    display: none;
    animation: storyFadeIn 0.35s ease both;
}
.story.is-active { display: block; }
@keyframes storyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.story-body {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 32px;
}
.story-what {
    display: flex; gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 18px 22px;
}
.story-what-label {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 2px;
}
.story-what p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 860px) {
    .story-header h3 { font-size: 22px; }
    .story-lede { font-size: 16px; }
    .story-body { font-size: 15px; }
    .story-what { flex-direction: column; gap: 6px; }
}

/* Hero shot on the home page — kept simple. */
.hero-shot-link { text-decoration: none; }
.hero-shot-link:hover { text-decoration: none; }
.hero-shot-link img { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hero-shot-link:hover img {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

@media (max-width: 900px) {
    .showcase {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .showcase-nav { position: relative; top: 0; }
    /* On mobile the description is always visible — no hover affordance. */
    .showcase-tab-desc {
        max-height: 200px;
        opacity: 1;
    }
    .showcase-scroll-hint { display: none; }
}
.gui-shot-placeholder {
    width: 100%;
    aspect-ratio: 5 / 4;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    font-size: 13px; font-weight: 500;
    background:
        repeating-linear-gradient(45deg, transparent 0 16px, rgba(95,168,255,0.04) 16px 17px),
        var(--bg-elev);
    border-radius: var(--radius-sm);
}
.gui-shot-placeholder span {
    background: var(--bg-card);
    padding: 8px 16px; border-radius: 999px;
    border: 1px solid var(--border);
}
.gui-text { padding: 20px 24px 24px; }
.gui-text h3 { color: var(--text); margin: 0 0 6px; }
.gui-text p  { color: var(--muted); margin: 0; font-size: 14px; }

/* Footer */
.site-footer {
    background: var(--bg-elev);
    border-top: 1px solid var(--border-soft);
    padding: 64px 0 32px;
    margin-top: 64px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.site-footer h4 { color: var(--text); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: var(--muted); font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}

/* Acceptable use */
.policy { max-width: 760px; margin: 0 auto; }
.policy h2 { margin-top: 40px; }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }
.policy .callout {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}

/* Responsive */
@media (max-width: 860px) {
    .nav { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 38px; }
    .hero p.sub { font-size: 16px; }
    h1 { font-size: 36px; }
    h2 { font-size: 26px; }
    section { padding: 56px 0; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .header-actions .btn { display: none; }
}
