/* =====================================================================
   MedEnc Technologies — Investor Deck
   Parent-brand system: Primary Purple #673AB7 · Deep Purple #3F2371 ·
   Fog Tint #F2EFF9 · Ink #1A1426 · Roboto (all weights).
   Product slides swap the accent to that product's own palette.
   ===================================================================== */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Parent brand */
    --purple: #673AB7;
    --deep: #3F2371;
    --fog: #F2EFF9;
    --ink: #1A1426;

    /* Neutrals derived from Ink */
    --ink-80: #3A3347;
    --ink-60: #5C5469;
    --ink-45: #7D7690;
    --line: #E2DCEC;
    --line-strong: #C8BFD9;
    --paper: #FFFFFF;
    --canvas: #F7F5FB;

    /* Product palettes (each product keeps its own identity) */
    --praxic: #1CA3B9;
    --praxic-deep: #147585;
    --praxic-tint: #DCF1F4;
    --samna: #C85A32;
    --samna-deep: #A8431F;
    --samna-tint: #FAF4EE;
    --vala: #DF8191;
    --vala-deep: #A05C68;
    --vala-tint: #FCF1F5;
    --vardr: #353E43;
    --vardr-deep: #1D2224;
    --vardr-tint: #F0F1F1;

    /* Semantic */
    --pos: #2E7D5B;
    --neg: #A3352B;
    --warn: #8A5A00;

    /* Active accent (overridden per slide theme) */
    --accent: var(--purple);
    --accent-deep: var(--deep);
    --accent-tint: var(--fog);

    --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 6px;
}

.t-praxic, .t-samna-care { --accent: var(--praxic-deep); --accent-deep: #0E5561; --accent-tint: var(--praxic-tint); }
.t-samna  { --accent: var(--samna-deep);  --accent-deep: #7C321D; --accent-tint: var(--samna-tint); }
.t-vala   { --accent: var(--vala-deep);   --accent-deep: #7E4550; --accent-tint: var(--vala-tint); }
.t-vardr  { --accent: var(--vardr);       --accent-deep: var(--vardr-deep); --accent-tint: var(--vardr-tint); }

html, body { height: 100%; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; }
button { font-family: inherit; }
strong { font-weight: 700; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   Shell: header, viewport, footer
   --------------------------------------------------------------------- */
.deck-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.global-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 56px;
    padding: 0 32px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-home {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--ink);
}

.brand-mark { height: 26px; width: auto; display: block; }

.brand-word {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-word span { font-weight: 400; color: var(--ink-60); }

.brand-sep { width: 1px; height: 22px; background: var(--line-strong); }

.brand-product {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-60);
    white-space: nowrap;
}

.brand-product img { width: 22px; height: 22px; border-radius: 5px; display: block; }

.brand-upside {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink-45);
    white-space: nowrap;
}

.brand-upside:hover { color: var(--ink); }
.brand-upside b { font-weight: 500; color: var(--ink-80); }

.section-tabs { display: flex; gap: 24px; height: 100%; }

.section-tab {
    position: relative;
    height: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-45);
    padding: 0 2px;
}

.section-tab:hover { color: var(--ink); }

.section-tab.active { color: var(--ink); }

.section-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--purple);
}

.section-tab .tab-count { color: var(--ink-45); font-weight: 400; margin-left: 4px; }

.header-links { display: flex; align-items: center; gap: 20px; }

.header-link {
    font-size: 14px;
    color: var(--ink-80);
    text-decoration: none;
    white-space: nowrap;
}

.header-link:hover { color: var(--purple); }
.header-link .ext { color: var(--ink-45); margin-left: 2px; }

.presentation-container {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.global-footer {
    flex-shrink: 0;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 32px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--ink-45);
    white-space: nowrap;
}

.footer-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.footer-meta #footerDeckMode { color: var(--ink-80); }

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

.ctrl-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
}

.ctrl-btn:hover { border-color: var(--ink); }
.ctrl-btn svg { width: 14px; height: 14px; }

.ctrl-btn.play { position: relative; }
.ctrl-btn.play .ring { position: absolute; inset: -1px; width: 34px; height: 34px; transform: rotate(-90deg); pointer-events: none; }
.ctrl-btn.play .ring circle { fill: none; stroke: var(--purple); stroke-width: 2; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; }

.track {
    display: flex;
    align-items: center;
    gap: 3px;
}

.track-seg {
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}

.track-seg::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 2px;
    background: var(--line-strong);
}

.track-seg:hover::before { background: var(--ink-45); }
.track-seg.done::before { background: var(--ink-45); }
.track-seg.active::before { background: var(--purple); height: 4px; top: 5px; }
.track-gap { width: 10px; }
.track-seg.appendix::before { background: var(--line); }
.track-seg.appendix.done::before { background: var(--ink-45); }
.track-seg.appendix.active::before { background: var(--ink); }

.slide-counter {
    font-size: 13px;
    color: var(--ink-60);
    min-width: 108px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.progress-line {
    position: absolute;
    left: 0;
    top: -1px;
    height: 1px;
    width: 0;
    background: var(--purple);
}

/* ---------------------------------------------------------------------
   Slides
   --------------------------------------------------------------------- */
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 48px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.slide.active { opacity: 1; visibility: visible; z-index: 2; }
.booting .slide { transition: none; }

.frame {
    width: 100%;
    max-width: 1180px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: auto 0;
    transform-origin: top center;
}

/* Slide header */
.s-head {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 32px;
    align-items: end;
}

.s-head > :not(.back-btn) { grid-column: 1; }

.kicker {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-60);
    margin-bottom: 10px;
}

.kicker-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    padding-right: 12px;
    border-right: 1px solid var(--line-strong);
}

.s-title {
    font-size: 36px;
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 22em;
}

.s-title em { font-style: normal; color: var(--accent); }

.s-title .logo-inline {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    vertical-align: -5px;
    margin-right: 10px;
    object-fit: contain;
}

.s-lede {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-60);
    max-width: 50em;
}

.back-btn {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 2px 0;
    font-size: 13px;
    color: var(--ink-60);
    cursor: pointer;
    white-space: nowrap;
}

.back-btn:hover { color: var(--ink); border-color: var(--ink); }

/* Bottom note strip */
.s-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--line-strong);
    font-size: 14px;
    color: var(--ink-60);
    line-height: 1.5;
}

.s-note strong { color: var(--ink); }
.s-note .actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }

/* ---------------------------------------------------------------------
   Building blocks
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.panel.tinted { background: var(--accent-tint); border-color: transparent; }
.panel.outline { border-color: var(--accent); }

.panel h3,
.item h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.005em;
    color: var(--ink);
}

.panel p,
.item p {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-60);
}

.panel p strong,
.item p strong { color: var(--ink); }

.label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.label.muted { color: var(--ink-45); }

/* Ruled list: items separated by hairlines (editorial, no boxes) */
.ruled { display: flex; flex-direction: column; }

.ruled .item {
    padding: 14px 0;
    border-top: 1px solid var(--line-strong);
}

.ruled .item:last-child { border-bottom: 1px solid var(--line-strong); }

.item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.item-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-right: 10px;
    font-variant-numeric: tabular-nums;
}

/* Ruled columns: columns divided by vertical hairlines */
.cols {
    display: grid;
    border-top: 1px solid var(--ink);
}

.cols > .col {
    padding: 16px 20px 4px 0;
}

.cols > .col + .col {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

/* Multi-row ruled columns (3 per row) */
.cols.rows.g-3 > .col:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.cols.rows.g-3 > .col:nth-child(n+4) { border-top: 1px solid var(--line); margin-top: 12px; }

.cols h3 { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cols p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-60); }
.cols p strong { color: var(--ink); }

/* Figures */
.split { display: grid; gap: 28px; align-items: stretch; }

.figure { display: flex; flex-direction: column; gap: 10px; min-height: 0; }

.figure .img {
    flex: 1 1 auto;
    min-height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--fog);
}

.figure .img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.figure figcaption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-60);
}

.figure figcaption strong { color: var(--ink); }

/* Stats */
.stat-value {
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.stat-value small { font-size: 15px; font-weight: 400; color: var(--ink-45); letter-spacing: 0; margin-left: 4px; }
.stat-sub { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--accent); }

.kv {
    display: grid;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.kv > div { padding: 14px 18px; }
.kv > div + div { border-left: 1px solid var(--line); }
.kv .k { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-45); }
.kv .v { font-size: 20px; font-weight: 500; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kv .d { font-size: 13px; color: var(--ink-60); margin-top: 2px; }

/* Quotes */
.quote {
    font-size: 17px;
    line-height: 1.45;
    font-weight: 300;
    color: var(--ink);
}

.quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--ink-45); font-weight: 400; }

/* Buttons & links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius);
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover { background: var(--deep); border-color: var(--deep); }
.btn.primary { background: var(--purple); border-color: var(--purple); }
.btn.primary:hover { background: var(--deep); border-color: var(--deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn.on-dark:hover { background: var(--fog); }
.btn.ghost.on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn.ghost.on-dark:hover { border-color: #fff; }

.src {
    background: none;
    border: 0;
    padding: 0;
    font-size: 13px;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.src:hover { text-decoration-color: currentColor; }
span.src { cursor: default; text-decoration: none; color: var(--ink-45); }

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-60);
    white-space: nowrap;
}

.status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.status.done::before { background: var(--pos); }
.status.live::before { background: var(--pos); }
.status.soon::before { background: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--ink-80);
}

.table th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-45);
    padding: 10px 14px;
    border-bottom: 1px solid var(--ink);
    white-space: nowrap;
}

.table td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.table tr:last-child td { border-bottom: 0; }
.table td.rowhead { font-weight: 500; color: var(--ink); }
.table.center th:not(:first-child),
.table.center td:not(:first-child) { text-align: center; }

.table .hl { background: var(--accent-tint); color: var(--ink); font-weight: 500; }
.table th.hl { color: var(--accent); }
.table tr.em td.rowhead { color: var(--accent); }

.yes, .no, .part { white-space: nowrap; }
.yes { color: var(--pos); }
.no { color: var(--ink-45); }
.part { color: var(--warn); }
.yes::before { content: '● '; font-size: 9px; vertical-align: 2px; }
.no::before { content: '○ '; font-size: 9px; vertical-align: 2px; }
.part::before { content: '◐ '; font-size: 9px; vertical-align: 2px; }

/* ---------------------------------------------------------------------
   Slide 1 — cover / 167 hours
   --------------------------------------------------------------------- */
.slide.cover {
    background: var(--ink) url('../img/cover_facets.jpg') right center / cover no-repeat;
    color: #fff;
    padding: 40px 64px;
}

.cover .frame { max-width: 1180px; gap: 0; }

.cover-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
}

.cover .kicker { color: rgba(255,255,255,0.7); }
.cover .kicker-num { color: #fff; border-color: rgba(255,255,255,0.3); }

.cover-lead {
    font-size: 22px;
    line-height: 1.4;
    font-weight: 300;
    color: rgba(255,255,255,0.86);
}

.cover-lead strong { color: #fff; font-weight: 500; }

.cover-count {
    margin-top: 28px;
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.counter-number {
    font-size: 132px;
    line-height: 0.9;
    font-weight: 300;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    min-width: 2.2ch;
}

.counter-label {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
}

.counter-label span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-variant-numeric: tabular-nums;
}

.week-bar {
    margin-top: 20px;
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    max-width: 560px;
}

.week-bar .fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: #B9A3E3;
}

.week-bar .session {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 0.6%;
    min-width: 3px;
    background: #fff;
}

.week-legend {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    max-width: 560px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-variant-numeric: tabular-nums;
}

.cover-title {
    margin-top: 32px;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.cover-sub {
    margin-top: 10px;
    font-size: 18px;
    color: rgba(255,255,255,0.75);
}

.cover-foot {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 760px;
}

.cover-product { display: flex; align-items: center; gap: 14px; }
.cover-product img { width: 44px; height: 44px; border-radius: 10px; }
.cover-product .label { color: rgba(255,255,255,0.6); margin-bottom: 2px; }
.cover-product .name { font-size: 18px; font-weight: 700; }
.cover-product .desc { font-size: 13px; color: rgba(255,255,255,0.65); }

.cover-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cover-credits {
    margin-top: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ---------------------------------------------------------------------
   Slide 3 — pipeline diagram
   --------------------------------------------------------------------- */
.pipeline {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.pipeline-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 700;
}

.pipeline-head span { font-size: 12px; font-weight: 400; color: var(--ink-45); }

.stage { border-radius: var(--radius); padding: 12px 14px; }
.stage.in { background: var(--canvas); }
.stage.hub { border: 1.5px solid var(--praxic-deep); }
.stage.out { border: 1px solid var(--line-strong); }

.stage-title { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.stage-title small { font-weight: 400; color: var(--ink-45); font-size: 12px; }
.stage-sub { font-size: 12px; color: var(--ink-60); margin-top: 2px; }

.feeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.feed { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.feed img { width: 14px; height: 14px; border-radius: 3px; object-fit: contain; }
.feed small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-45); }
.signals { margin-top: 8px; font-size: 12px; color: var(--ink-60); display: flex; gap: 14px; flex-wrap: wrap; }
.signals span::before { content: '— '; color: var(--line-strong); }

.hub-head { display: flex; align-items: center; gap: 10px; }
.hub-head img { width: 28px; height: 28px; border-radius: 6px; }
.hub-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.hub-cells div { background: var(--praxic-tint); border-radius: 4px; padding: 8px 10px; font-size: 12px; color: var(--ink-60); }
.hub-cells b { display: block; font-size: 13px; color: #0E5561; font-weight: 700; }

.connector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 6px 18px;
    font-size: 12px;
    color: var(--ink-45);
}

.connector::before {
    content: '';
    width: 1px;
    height: 20px;
    background: var(--line-strong);
}

/* Flow row (slide 4) */
.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
}

.flow > div {
    padding: 14px 18px 0 0;
    position: relative;
}

.flow > div + div { padding-left: 18px; }

.flow > div + div::before {
    content: '→';
    position: absolute;
    left: -7px;
    top: 12px;
    color: var(--ink-45);
    background: var(--canvas);
    padding: 0 2px;
}

.flow .step { font-size: 12px; color: var(--accent); font-weight: 700; }
.flow .t { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.flow .d { font-size: 13px; color: var(--ink-60); }

/* Pricing (slide 5) */
.price-col { display: flex; flex-direction: column; }
.price-col .stat-value { font-size: 38px; line-height: 1.1; }
.price-col .stat-value small { font-size: 13px; font-weight: 500; }
.price-col .usage { margin-top: 4px; font-size: 12.5px; color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 500; }
.price-col p { margin-top: 8px; }
.price-col .foot { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--ink-45); }

.tier-options-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}
.tier-opt {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
}
.tier-opt.highlight {
    background: var(--tint, #F3EEF9);
    border-color: rgba(103, 58, 183, 0.25);
}
.tier-opt .opt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}
.tier-opt .opt-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink);
}
.tier-opt .opt-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--praxic-deep, #147585);
    background: var(--praxic-tint, #DCF1F4);
    padding: 1.5px 6px;
    border-radius: 5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tier-opt .opt-badge {
    font-size: 9.5px;
    font-weight: 700;
    color: #fff;
    background: var(--deep, #4A2B82);
    padding: 1.5px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.tier-opt .opt-sub {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 1px;
}
.tier-opt .opt-body {
    font-size: 11.5px;
    color: var(--ink-60);
    line-height: 1.35;
    margin-top: 2px;
}
.tier-opt .opt-body strong {
    color: var(--ink);
}

.flywheel {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 24px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.flywheel .ph { height: 100%; min-height: 150px; }
.flywheel .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flywheel .copy { padding: 16px 0; }
.flywheel h3 { font-size: 17px; font-weight: 700; }
.flywheel p { font-size: 14px; color: var(--ink-60); margin-top: 6px; line-height: 1.5; }
.flywheel p strong { color: var(--ink); }
.flywheel .actions { display: flex; flex-direction: column; gap: 8px; padding-right: 20px; }

/* Timeline (slide 6) */
.timeline .col .when { font-size: 13px; color: var(--ink-45); display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.timeline .quote { font-size: 15px; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--accent); }

/* Team (slide 8) */
.person {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 22px;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid var(--ink);
}

.person img { width: 132px; height: 160px; object-fit: cover; border-radius: var(--radius); filter: saturate(0.9); }
.person .role { font-size: 13px; color: var(--accent); font-weight: 500; }
.person h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 2px 0 8px; }
.person p { font-size: 14px; color: var(--ink-60); line-height: 1.55; }
.person a { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.person a:hover { border-color: var(--ink); }

/* Financials (slide 9) */
.traction {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--purple);
    border-radius: var(--radius);
    font-size: 15px;
}

.traction .lbl { font-size: 12px; color: var(--ink-45); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 12px; }

/* Ask (slide 10) */
.ask-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: end;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-strong);
}

.ask-amount {
    font-size: 64px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.ask-amount .deck-currency-code { font-size: 22px; font-weight: 500; color: var(--ink-45); letter-spacing: 0; margin-left: 6px; }
.ask-terms { font-size: 15px; color: var(--ink-60); padding-bottom: 6px; }

.product-status { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
.product-status > div { padding: 10px 16px 10px 0; }
.product-status > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.product-status .p { font-size: 13px; font-weight: 700; }
.product-status .s { font-size: 14px; color: var(--ink-60); }
.p-samna { color: var(--samna-deep); }
.p-praxic, .p-samna-care { color: var(--praxic-deep); }
.p-vala { color: var(--vala-deep); }
.p-vardr { color: var(--vardr); }

.funds-bar { display: flex; height: 10px; border-radius: 2px; overflow: hidden; margin: 10px 0 14px; }
.funds-bar div:nth-child(1) { background: var(--deep); }
.funds-bar div:nth-child(2) { background: var(--purple); }
.funds-bar div:nth-child(3) { background: #9C7FD3; }
.funds-bar div:nth-child(4) { background: #CDBFEA; }

.funds .col .pct { font-size: 13px; color: var(--ink-45); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.funds .col .pct b { color: var(--ink); font-weight: 500; }
.funds .swatch { display: inline-block; width: 8px; height: 8px; border-radius: 1px; margin-right: 6px; vertical-align: 0; }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Appendix product callout */
.norse {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px 18px;
    background: var(--accent-tint);
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-80);
}

.norse strong { color: var(--ink); }

.promise {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    white-space: nowrap;
}

/* Ecosystem hub diagram */
.hub-diagram svg { width: 100%; height: auto; display: block; }
.hub-diagram text { font-family: var(--font); }

/* Demo slide */
.demo-hero { display: flex; flex-direction: column; gap: 14px; }
.demo-hero ul { list-style: none; display: flex; flex-direction: column; }
.demo-hero li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-60); }
.demo-hero li strong { color: var(--ink); }
.demo-hero .fine { font-size: 13px; color: var(--ink-45); text-align: center; }

.logo-sm { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; vertical-align: middle; }

/* ---------------------------------------------------------------------
   Modals
   --------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(26, 20, 38, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
}

.modal.open { opacity: 1; visibility: visible; }

.modal-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: 86vh;
    overflow-y: auto;
    background: var(--paper);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(26, 20, 38, 0.35);
}

.modal-card.wide { max-width: 900px; }
.modal-card.narrow { max-width: 540px; }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: var(--ink-45);
    cursor: pointer;
}

.modal-close:hover { color: var(--ink); }

.modal-kicker { font-size: 13px; color: var(--purple); font-weight: 500; }
.modal-title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; padding-right: 32px; line-height: 1.25; }
.modal-body { margin-top: 16px; font-size: 15px; line-height: 1.65; color: var(--ink-80); }
.modal-body strong { color: var(--ink); }
.modal-body a.btn { margin-top: 14px; }
.modal-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-left: 3px solid var(--warn);
    background: #FBF6EC;
    border-radius: 4px;
    font-size: 14px;
    color: var(--ink-80);
}

.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 18px 0; }
.week-strip > div { border: 1px solid var(--line); border-radius: 4px; padding: 10px 6px; text-align: center; }
.week-strip .d { font-size: 12px; color: var(--ink-45); font-weight: 500; }
.week-strip .m { font-size: 14px; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.week-strip .flag { border-color: var(--neg); background: #FBEFEE; }
.week-strip .flag .d, .week-strip .flag .m { color: var(--neg); }
.week-strip .today { border-color: var(--praxic-deep); background: var(--praxic-tint); }
.week-strip .today .d { color: var(--praxic-deep); }

.soap { background: var(--canvas); border-radius: 6px; padding: 16px 18px; font-size: 14px; color: var(--ink-80); line-height: 1.6; }
.soap-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--praxic-deep); font-weight: 500; }
.soap-head span:last-child { color: var(--pos); text-transform: none; letter-spacing: 0; }
.soap p + p { margin-top: 6px; }

.contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    text-align: left;
}

.contact-row:last-of-type { border-bottom: 1px solid var(--line); }
.contact-row .n { font-weight: 700; }
.contact-row .r { font-size: 13px; color: var(--ink-60); }

.format-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.format-options .panel { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.format-options .panel:hover { border-color: var(--ink); }
.format-options .btn { margin-top: 12px; }

/* ---------------------------------------------------------------------
   Password gate
   --------------------------------------------------------------------- */
.password-barrier {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--paper);
}

.gate-art {
    background: var(--ink) url('../img/cover_facets.jpg') 78% center / cover no-repeat;
    position: relative;
}

.gate-art .gate-caption {
    position: absolute;
    left: 48px;
    bottom: 44px;
    max-width: 380px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.55;
}

.gate-art .gate-caption strong { display: block; color: #fff; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 10px; }

.gate-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 64px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.gate-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; }
.gate-brand img { height: 30px; }
.gate-brand span { font-weight: 700; font-size: 17px; }
.gate-brand span em { font-style: normal; font-weight: 400; color: var(--ink-60); }

.gate-form h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.gate-form > p { margin-top: 8px; font-size: 15px; color: var(--ink-60); }

.gate-form label { display: block; margin-top: 28px; font-size: 13px; font-weight: 500; color: var(--ink-80); }

.password-input {
    width: 100%;
    height: 46px;
    margin-top: 6px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.password-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.15); }

.password-error { display: none; margin-top: 8px; font-size: 13px; color: var(--neg); }

.password-btn { width: 100%; height: 46px; margin-top: 16px; font-size: 15px; }
.password-btn:disabled { opacity: 0.6; cursor: progress; }

.gate-fine { margin-top: 28px; font-size: 13px; color: var(--ink-45); }

/* Mobile swipe hint */
.swipe-hint {
    position: fixed;
    left: 50%;
    bottom: 76px;
    transform: translateX(-50%);
    z-index: 900;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 20px;
    transition: opacity 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
}

.swipe-hint.hide { opacity: 0; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .brand-upside, .brand-sep.upside { display: none; }
    .footer-meta .extra { display: none; }
}

@media (max-width: 960px) {
    .global-header { padding: 0 16px; height: 52px; gap: 12px; }
    .brand-word span, .brand-product span, .brand-sep { display: none; }
    .brand-product { display: none; }
    .section-tabs { gap: 16px; }
    .section-tab .tab-count { display: none; }
    .header-links { gap: 12px; }
    .header-link { font-size: 13px; }

    .global-footer { padding: 0 12px; height: 56px; }
    .footer-meta { display: none; }
    .controls { width: 100%; justify-content: space-between; gap: 10px; }
    .track { flex: 1; justify-content: center; gap: 1px; overflow: hidden; }
    .track-seg { width: 9px; }
    .track-gap { width: 6px; }
    .slide-counter { min-width: 0; font-size: 12px; }

    .slide { align-items: flex-start; padding: 22px 18px 32px; }
    .frame { gap: 18px; }

    .s-head { grid-template-columns: 1fr; }
    .back-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-bottom: 12px; order: -1; }
    .s-title { font-size: 26px; }
    .s-lede { font-size: 15px; }

    .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
    .split { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; }
    .figure .img { min-height: 200px; max-height: 260px; }

    .cols { grid-template-columns: minmax(0, 1fr) !important; }
    .cols > .col, .cols > .col + .col { padding: 14px 0; border-left: 0; }
    .cols > .col + .col { border-top: 1px solid var(--line); }

    .kv { grid-template-columns: 1fr 1fr !important; }
    .kv > div:nth-child(odd) { border-left: 0; }
    .kv > div:nth-child(n+3) { border-top: 1px solid var(--line); }

    .flow { grid-template-columns: 1fr 1fr; row-gap: 14px; }
    .flow > div:nth-child(3) { padding-left: 0; }
    .flow > div:nth-child(3)::before { display: none; }

    .s-note { flex-direction: column; align-items: flex-start; }
    .s-note .actions { flex-wrap: wrap; }

    .flywheel { grid-template-columns: 1fr; gap: 0; }
    .flywheel .ph { min-height: 160px; max-height: 200px; }
    .flywheel .copy { padding: 14px 16px 0; }
    .flywheel .actions { flex-direction: row; flex-wrap: wrap; padding: 12px 16px 16px; }

    .person { grid-template-columns: 96px 1fr; gap: 16px; }
    .person img { width: 96px; height: 116px; }
    .person h3 { font-size: 20px; }

    .ask-hero { grid-template-columns: 1fr; gap: 6px; }
    .ask-amount { font-size: 44px; }
    .product-status { grid-template-columns: 1fr 1fr; }
    .product-status > div:nth-child(3) { padding-left: 0; border-left: 0; }

    .norse { grid-template-columns: 1fr; gap: 8px; }
    .promise { white-space: normal; }

    .traction { flex-direction: column; align-items: flex-start; gap: 6px; }

    .slide.cover { padding: 28px 22px; background-position: 70% center; }
    .slide.cover::before { content: ''; position: absolute; inset: 0; background: rgba(26,20,38,0.6); }
    .cover .frame { position: relative; }
    .cover-lead { font-size: 18px; }
    .counter-number { font-size: 88px; }
    .cover-title { font-size: 30px; }
    .cover-sub { font-size: 16px; }
    .cover-foot { flex-direction: column; align-items: flex-start; }

    .table { font-size: 13px; min-width: 620px; }
    .table th, .table td { padding: 8px 10px; }
    .brand-word { display: none; }

    .password-barrier { grid-template-columns: 1fr; grid-template-rows: 180px 1fr; }
    .gate-art .gate-caption { display: none; }
    .gate-form { padding: 28px 24px; justify-content: flex-start; }
    .gate-brand { margin-bottom: 24px; }

    .modal { padding: 12px; align-items: flex-end; }
    .modal-card { padding: 24px 20px; max-height: 90vh; }
    .format-options { grid-template-columns: 1fr; }
    .week-strip { grid-template-columns: repeat(4, 1fr); }
    .contact-row { flex-direction: column; align-items: flex-start; }
}
