/* =========================================================
   Eau de Stocks — Minimalist Component Architecture
   ========================================================= */

/* Top Live Ticker */
.ticker-bar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.ticker-bar::-webkit-scrollbar { display: none; }

.ticker-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-variant-numeric: tabular-nums;
}
.ticker-sym { font-weight: 600; color: var(--text); }
.ticker-val { color: var(--muted); }
.ticker-chg.up { color: var(--up); font-weight: 700; }
.ticker-chg.down { color: var(--down); font-weight: 700; }

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background-color: var(--accent);
    color: var(--on-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

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

/* Appearance Switch */
.theme-toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.theme-btn.active {
    background: var(--accent-tint);
    color: var(--accent);
}

/* Buttons */
.btn-filled {
    background-color: var(--accent);
    color: var(--on-accent);
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-filled:hover { background-color: var(--accent-hover); }

.btn-outlined {
    background-color: transparent;
    color: var(--text);
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
}
.btn-outlined:hover { background-color: var(--raised); }

/* Hero */
.hero {
    padding: 68px 0 72px;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 56px;
    align-items: center;
}

.platform-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background-color: var(--accent-tint);
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.ios-pill {
    padding: 4px 12px;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: -0.9px;
    margin-bottom: 18px;
    color: var(--text);
}

.hero p.lead {
    font-size: 16px;
    color: var(--muted);
    max-width: 490px;
    margin-bottom: 28px;
    line-height: 1.65;
}

/* Minimal Phone + APK Download Box */
.download-box {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    max-width: 490px;
    margin-bottom: 28px;
}

.download-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.phone-input-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 12px;
    transition: border-color 0.2s ease;
}
.phone-input-wrap:focus-within { border-color: var(--accent); }

.phone-prefix {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    padding-right: 10px;
    border-right: 1px solid var(--border);
    margin-right: 10px;
}

.phone-input-wrap input {
    border: none;
    background: transparent;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    width: 100%;
    padding: 11px 0;
    outline: none;
}
.phone-input-wrap input::placeholder { color: var(--muted); }

.download-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0 2px;
    font-size: 12px;
    color: var(--muted);
}

.direct-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.direct-link:hover { text-decoration: underline; }

#lead-msg {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    display: none;
}

/* Live Stats Bar */
.metrics-strip {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    max-width: 490px;
}

.metric-item .m-num {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    display: block;
}

.metric-item .m-lbl {
    font-size: 11.5px;
    color: var(--muted);
}

/* Minimal Device Frame */
.phone-frame {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 18px;
    max-width: 370px;
    margin-left: auto;
    width: 100%;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.mini-quote-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.mini-quote {
    background-color: var(--raised);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}

.mini-q-name { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.mini-q-price { font-size: 15px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mini-q-pct { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-q-pct.up { color: var(--up); }
.mini-q-pct.down { color: var(--down); }

.phone-gate-box {
    position: relative;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    overflow: hidden;
    min-height: 148px;
}

.blurred-lines {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.55;
}

.phone-gate-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
}

.phone-nav-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}
.phone-nav-preview span.active { color: var(--accent); font-weight: 600; }

/* Sections */
section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.section-sub {
    font-size: 14px;
    color: var(--muted);
    margin-top: 4px;
}

/* Segmented Button */
.segmented {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
}

.seg-btn {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--border); }
.seg-btn.active {
    background-color: var(--accent-tint);
    color: var(--accent);
}

/* Market Cards */
.market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.m-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.m-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-label { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.m-dot.open { background-color: var(--up); }
.m-dot.closed { background-color: var(--muted); opacity: 0.4; }
.m-sym { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.m-spark { height: 42px; margin: 14px 0 12px; }
.m-spark svg { width: 100%; height: 100%; overflow: visible; }
.m-price { font-size: 20px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.m-pct { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.m-pct.up { color: var(--up); }
.m-pct.down { color: var(--down); }
.caption-note { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* AppCard */
.app-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

/* Newsroom & Locked Calendar */
.feed-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
}

.news-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.chip-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chip-btn.active {
    background-color: var(--accent-tint);
    border-color: var(--accent-border);
    color: var(--accent);
    font-weight: 600;
}

.news-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}
.news-item:hover { opacity: 0.8; }
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; padding-bottom: 0; }

.news-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    background-color: var(--raised);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.news-meta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.alert-tag {
    background-color: var(--alert-tint);
    color: var(--alert);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.38;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blurred App Gate */
.locked-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.locked-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 3;
}

.blurred-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    filter: blur(5.5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.55;
}

.dummy-cal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background-color: var(--raised);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.gate-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 52px;
    background: var(--overlay-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    z-index: 2;
    backdrop-filter: blur(3px);
}

.lock-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: var(--accent-tint);
    border: 1px solid var(--accent-border);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.gate-overlay h3 {
    font-family: 'Fraunces', serif;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gate-overlay p {
    font-size: 13.5px;
    color: var(--muted);
    max-width: 310px;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Minimal Trust Strip (Clean 4-column Architectural Grid) */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.trust-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    min-width: 0;
}

.trust-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.trust-title {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    margin-bottom: 6px;
}

.trust-text { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Minimal Clean Comparison Matrix (Concise & High-Trust) */
.table-wrap {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; min-width: 640px; }

th, td {
    padding: 16px 22px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

th {
    background-color: var(--raised);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--muted);
}

th.accent-col { color: var(--accent); }

.cell-feature {
    font-weight: 600;
    color: var(--text);
}

.cell-ours {
    color: var(--text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cell-ours svg {
    color: var(--accent);
    flex-shrink: 0;
}

.cell-theirs { color: var(--muted); }

/* FAQ */
.faq-grid {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-q {
    padding: 18px 20px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Footer */
footer {
    padding: 56px 0 36px;
    font-size: 13.5px;
    color: var(--muted);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-col h4 {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text);
    margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }

.disclaimer {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    font-size: 12.5px;
}

@media (max-width: 960px) {
    .hero-grid, .feed-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .phone-frame { margin: 0 auto; max-width: 420px; }
    .market-grid, .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .nav-links { display: none; }
    .hero { padding: 36px 0 44px; }
    .hero h1 { font-size: 36px; line-height: 1.08; }
    section { padding: 48px 0; }
    .section-title { font-size: 24px; }
    .download-form { flex-direction: column; }
    .metrics-strip {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: 100%;
    }
    .trust-grid { grid-template-columns: minmax(0, 1fr); }

    /* Responsive mobile layout for comparison table (zero horizontal scroll) */
    .table-wrap { overflow-x: visible; }
    table, thead, tbody, tr, td { display: block; width: 100%; min-width: 0; }
    thead { display: none; }
    tr {
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    tr:last-child { border-bottom: none; }
    td {
        padding: 4px 0;
        border: none;
    }
    td.cell-feature {
        font-size: 14.5px;
        margin-bottom: 6px;
    }
    td.cell-theirs::before {
        content: 'Traditional: ';
        font-weight: 600;
        color: var(--muted);
    }

    .locked-card { min-height: 300px; }
    .gate-overlay { padding: 20px 16px; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 17px; }
    .nav-controls .btn-filled { display: none; }
    .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .m-card { padding: 14px; border-radius: 16px; }
    .m-price { font-size: 17px; }
    .m-spark { height: 34px; margin: 10px 0 8px; }
    .news-thumb { width: 58px; height: 58px; }
    .app-card { padding: 16px; }
}

@media (max-width: 350px) {
    .market-grid { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: 32px; }
}
