:root {
    --paper: #ede4d0;
    --paper-deep: #e2d6bc;
    --paper-soft: #f3ecdb;
    --ink: #14110d;
    --ink-soft: #4a4439;
    --ink-faded: #8a8270;
    --forest: #1a3329;
    --forest-light: #2d4a3a;
    --rust: #b8633b;
    --rust-deep: #8e4628;
    --line: rgba(20, 17, 13, 0.12);
    --line-strong: rgba(20, 17, 13, 0.25);

    --font-display: "Instrument Serif", "Cormorant Garamond", serif;
    --font-body: "Geist", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image:
        radial-gradient(
            circle at 20% 0%,
            rgba(184, 99, 59, 0.04) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 80% 100%,
            rgba(26, 51, 41, 0.05) 0%,
            transparent 40%
        );
}

/* paper grain */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0 0.05 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
    background: var(--forest);
    color: var(--paper);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 max(24px, 4vw);
    position: relative;
    z-index: 2;
}

.narrow {
    max-width: 760px;
}

/* ---- TOP BAR ---- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(237, 228, 208, 0.85);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px max(24px, 4vw);
    max-width: 1280px;
    margin: 0 auto;
}
.brand {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -0.01em;
}
.brand a {
    color: inherit;
    text-decoration: none;
}
.brand span {
    font-style: italic;
    color: var(--rust);
}
.nav {
    display: flex;
    gap: 28px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.nav a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}
.nav a:hover {
    color: var(--rust);
}
.nav a[aria-current="page"] {
    color: var(--ink);
}
.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--rust);
}
@media (max-width: 768px) {
    .nav {
        gap: 18px;
    }
}
.mobile-pill-nav {
    display: none;
}
@media (max-width: 768px) {
    .topbar-inner {
        padding: 14px 20px;
    }
    .brand {
        font-size: 17px;
        white-space: nowrap;
    }
    .topbar-inner .nav {
        display: none;
    }
    .mobile-pill-nav {
        display: flex;
        position: fixed;
        left: 50%;
        bottom: max(56px, env(safe-area-inset-bottom, 0px) + 48px);
        transform: translateX(-50%);
        z-index: 60;
        padding: 5px;
        gap: 2px;
        background: rgba(237, 228, 208, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--line);
        border-radius: 999px;
        box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.25);
        font-family: var(--font-mono);
        font-size: 10.5px;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }
    .mobile-pill-nav a {
        color: var(--ink-soft);
        text-decoration: none;
        padding: 9px 20px;
        border-radius: 999px;
        min-width: 96px;
        text-align: center;
        transition:
            background 0.2s,
            color 0.2s;
    }
    .mobile-pill-nav a[aria-current="page"] {
        background: var(--ink);
        color: var(--paper);
    }
    body {
        padding-bottom: 110px;
    }
}

/* ---- HERO ---- */
.hero {
    padding: clamp(40px, 7vh, 80px) 0 clamp(56px, 9vh, 110px);
    position: relative;
}

.meta-line {
    display: flex;
    gap: 32px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-faded);
    margin-bottom: 36px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}
.meta-line span:nth-child(2) {
    margin-left: auto;
}
@media (max-width: 768px) {
    .meta-line {
        display: none;
    }
    .hero {
        padding: 28px 0 32px;
    }
    .hero h1 .kicker {
        margin-bottom: 24px;
        font-size: 11px;
        letter-spacing: 0.18em;
        white-space: nowrap;
    }
    .intro {
        padding: 32px 0;
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
}
.hero h1 .kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: clamp(28px, 4vh, 48px);
}
.hero h1 .line {
    display: flex;
    align-items: baseline;
    gap: clamp(20px, 3vw, 40px);
    margin-bottom: 6px;
}
.hero h1 .verb {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(3rem, 8.4vw, 7rem);
    line-height: 1;
    letter-spacing: -0.025em;
    color: var(--ink);
    flex: 0 0 auto;
}
.hero h1 .line--decide .verb {
    color: var(--forest);
}
.hero h1 .line--cresti .verb {
    color: var(--rust);
}
.hero h1 .caption {
    font-family: var(--font-mono);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ink-faded);
    white-space: nowrap;
    position: relative;
    padding-left: 48px;
    padding-bottom: 0.6em;
}
.hero h1 .caption::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 1.05em;
    width: 32px;
    height: 1px;
    background: var(--rust);
    opacity: 0.55;
}
@media (max-width: 820px) {
    .hero h1 .line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 18px;
    }
    .hero h1 .caption {
        padding-left: 44px;
        padding-bottom: 0;
    }
    .hero h1 .caption::before {
        bottom: 50%;
        width: 28px;
    }
}

/* ---- INTRO BAND (post-hero) ---- */
.intro {
    padding: clamp(40px, 6vh, 72px) 0;
    border-top: 1px solid var(--line);
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
}
.intro-grid p {
    margin: 0;
}
.intro-grid .intro-lead {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.9vw, 1.55rem);
    font-style: italic;
    line-height: 1.4;
    color: var(--ink);
}
.intro-grid .intro-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
}
@media (max-width: 820px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- CHAPTER NUMBERS ---- */
.chapter {
    padding: clamp(80px, 12vh, 140px) 0;
    border-top: 1px solid var(--line);
    position: relative;
}
.chapter-num {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.chapter-num::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--rust);
}

.chapter h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6.5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin-bottom: 48px;
    max-width: 1100px;
}
.chapter h2 em {
    font-style: italic;
    color: var(--forest);
}
.chapter h2 .rust {
    color: var(--rust);
    font-style: italic;
}

.chapter h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 60px 0 24px;
    color: var(--ink);
}
.chapter h3 em {
    color: var(--rust);
    font-style: italic;
}

.chapter p {
    margin-bottom: 18px;
    max-width: 720px;
    color: var(--ink-soft);
}

.lead {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    font-style: italic;
    line-height: 1.35 !important;
    color: var(--ink) !important;
    max-width: 880px !important;
    margin-bottom: 48px !important;
}

/* ---- PAIN POINT GRID ---- */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--line-strong);
    margin-top: 60px;
    border: 1px solid var(--line-strong);
}
.pain-card {
    background: var(--paper);
    padding: 36px 32px;
    position: relative;
    transition: background 0.3s;
}
.pain-card:hover {
    background: var(--paper-soft);
}
.pain-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--rust);
    margin-bottom: 16px;
}
.pain-card h4 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.pain-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}

/* ---- THE PHONE PROBLEM ---- */
.phone-section {
    background: var(--ink);
    color: var(--paper);
    margin: clamp(60px, 10vh, 120px) calc(-1 * max(24px, 4vw));
    padding: clamp(60px, 10vh, 120px) max(24px, 4vw);
    position: relative;
    overflow: hidden;
}
.phone-section::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(184, 99, 59, 0.18) 0%,
        transparent 50%
    );
    pointer-events: none;
}
.phone-section .container {
    position: relative;
    z-index: 2;
}
.phone-section h2 {
    color: var(--paper);
}
.phone-section h2 em {
    color: var(--rust);
}
.phone-section p {
    color: rgba(237, 228, 208, 0.75);
}
.phone-section .lead {
    color: var(--paper) !important;
}
.phone-section .chapter-num {
    color: rgba(237, 228, 208, 0.55);
}

.phone-diagram {
    margin: 60px 0;
    padding: 48px 32px;
    border: 1px solid rgba(237, 228, 208, 0.18);
    background: rgba(237, 228, 208, 0.03);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) {
    .phone-diagram {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.phone-block {
    text-align: center;
}
.phone-block .label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 12px;
}
.phone-block .number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    color: var(--paper);
}
.phone-block .desc {
    font-size: 13px;
    color: rgba(237, 228, 208, 0.55);
    margin-top: 8px;
}
.phone-arrow {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--rust);
    font-style: italic;
}
@media (max-width: 768px) {
    .phone-arrow {
        transform: rotate(90deg);
    }
}

.consequences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 60px;
}
.consequence {
    border-top: 1px solid rgba(237, 228, 208, 0.2);
    padding-top: 24px;
}
.consequence .num {
    font-family: var(--font-display);
    font-size: 60px;
    line-height: 1;
    color: var(--rust);
    margin-bottom: 12px;
}
.consequence h5 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--paper);
}
.consequence p {
    font-size: 14px;
    color: rgba(237, 228, 208, 0.7);
    margin: 0;
}

/* ---- WHY MEDICAL CRM ---- */
.compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-strong);
    border: 1px solid var(--line-strong);
    margin: 48px 0;
}
@media (max-width: 768px) {
    .compare-row {
        grid-template-columns: 1fr;
    }
}
.compare-col {
    background: var(--paper);
    padding: 40px 32px;
}
.compare-col.bad {
    background: var(--paper-deep);
}
.compare-col.good {
    background: var(--paper-soft);
}
.compare-col .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.compare-col.bad .tag {
    color: var(--rust-deep);
}
.compare-col.good .tag {
    color: var(--forest);
}
.compare-col h4 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.compare-col ul {
    list-style: none;
}
.compare-col li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.compare-col li:last-child {
    border: none;
}
.compare-col li::before {
    font-family: var(--font-mono);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}
.compare-col.bad li::before {
    content: "✕";
    color: var(--rust-deep);
}
.compare-col.good li::before {
    content: "✓";
    color: var(--forest);
}

/* ---- THE THREE OPTIONS ---- */
.options-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 60px;
}
.option {
    border-top: 1px solid var(--line-strong);
    padding: 60px 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    position: relative;
}
.option:last-child {
    border-bottom: 1px solid var(--line-strong);
}
@media (max-width: 1024px) {
    .option {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .option-header {
        position: static !important;
        top: auto !important;
    }
}

.option-header {
    position: sticky;
    top: 100px;
    align-self: start;
    background: var(--paper);
    z-index: 1;
}
.option-rank {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--ink-faded);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.option-name {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.option-name .meta {
    display: block;
    font-size: 0.4em;
    color: var(--ink-faded);
    font-style: italic;
    margin-top: 16px;
    line-height: 1.3;
}
.option-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    color: var(--rust);
    margin-top: 16px;
    line-height: 1.3;
}
.option-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 14px;
    background: var(--forest);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 2px;
}

.option-body p {
    font-size: 16px;
    line-height: 1.6;
}

.option-prosCons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 32px;
}
@media (max-width: 640px) {
    .option-prosCons {
        grid-template-columns: 1fr;
    }
}
.pc-block h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.pc-block.pros h5 {
    color: var(--forest);
}
.pc-block.cons h5 {
    color: var(--rust-deep);
}
.pc-block ul {
    list-style: none;
}
.pc-block li {
    padding: 8px 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
    display: flex;
    gap: 10px;
}
.pc-block li::before {
    font-family: var(--font-mono);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}
.pc-block.pros li::before {
    content: "+";
    color: var(--forest);
    font-weight: 600;
}
.pc-block.cons li::before {
    content: "−";
    color: var(--rust-deep);
    font-weight: 600;
}

.pain-relief {
    margin-top: 32px;
    padding: 24px 28px;
    background: var(--paper-soft);
    border-left: 3px solid var(--rust);
}
.pain-relief .label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 10px;
}
.pain-relief p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--ink);
    line-height: 1.45;
    margin: 0;
}

/* ---- 3CX SECTION ---- */
.cx-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 60px;
    align-items: start;
}
@media (max-width: 1024px) {
    .cx-grid {
        grid-template-columns: 1fr;
    }
}
.cx-feature {
    border-left: 2px solid var(--rust);
    padding-left: 24px;
    margin-bottom: 36px;
}
.cx-feature h4 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 8px;
}
.cx-feature p {
    font-size: 15px;
    color: var(--ink-soft);
    margin: 0;
}

/* ---- N8N vs MAKE ---- */
.versus {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    margin: 60px 0;
    align-items: stretch;
}
@media (max-width: 900px) {
    .versus {
        grid-template-columns: 1fr;
    }
}
.vs-card {
    padding: 40px 32px;
    background: var(--paper-soft);
    border: 1px solid var(--line-strong);
    position: relative;
}
.vs-card.recommended {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.vs-card h4 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.vs-card .price {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--rust);
    margin-bottom: 20px;
}
.vs-card.recommended .price {
    color: var(--rust);
}
.vs-card ul {
    list-style: none;
    margin-top: 20px;
}
.vs-card li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.vs-card.recommended li {
    border-bottom-color: rgba(237, 228, 208, 0.15);
}
.vs-card li span:first-child {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--ink-faded);
    text-transform: uppercase;
    flex-shrink: 0;
}
.vs-card.recommended li span:first-child {
    color: rgba(237, 228, 208, 0.5);
}
.vs-card li span:last-child {
    text-align: right;
    color: var(--ink);
}
.vs-card.recommended li span:last-child {
    color: var(--paper);
}
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 32px;
    color: var(--rust);
}
.vs-card .verdict {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.4;
}
.vs-card.recommended .verdict {
    border-top-color: rgba(237, 228, 208, 0.18);
}

.recommendation-box {
    margin: 40px 0;
    padding: 36px 40px;
    background: var(--forest);
    color: var(--paper);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.recommendation-box::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(
        circle,
        rgba(184, 99, 59, 0.25) 0%,
        transparent 60%
    );
}
.recommendation-box .container-inner {
    position: relative;
    z-index: 2;
}
.recommendation-box .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: 16px;
}
.recommendation-box h4 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.recommendation-box p {
    color: rgba(237, 228, 208, 0.85);
    max-width: none;
    margin: 0;
}

/* ---- ROADMAP ---- */
.roadmap {
    margin-top: 48px;
}
.phase {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}
.phase:first-child {
    border-top: 1px solid var(--line-strong);
}
.phase:last-child {
    border-bottom: 1px solid var(--line-strong);
}
@media (max-width: 768px) {
    .phase {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.phase-time {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rust);
    padding-top: 8px;
}
.phase h4 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}
.phase ul {
    list-style: none;
}
.phase li {
    padding: 6px 0;
    font-size: 15px;
    color: var(--ink-soft);
    display: flex;
    gap: 12px;
}
.phase li::before {
    content: "→";
    font-family: var(--font-display);
    color: var(--rust);
    flex-shrink: 0;
}

/* ---- CLOSING ---- */
.closing {
    text-align: left;
    padding: clamp(80px, 14vh, 160px) 0;
}
.closing h2 {
    margin-bottom: 60px;
}
.closing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}
@media (max-width: 768px) {
    .closing-grid {
        grid-template-columns: 1fr;
    }
}
.closing-col h5 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.closing-col.now h5 {
    color: var(--rust-deep);
}
.closing-col.future h5 {
    color: var(--forest);
}
.closing-col p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--ink);
}
.closing-col.future p {
    color: var(--forest);
}

/* ---- FOOTER ---- */
footer {
    border-top: 1px solid var(--line-strong);
    padding: 40px 0;
    margin-top: 80px;
}
.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-faded);
}
@media (max-width: 640px) {
    .foot-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ---- SCROLL ANIMATIONS ---- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* drop cap */
.dropcap::first-letter {
    font-family: var(--font-display);
    font-size: 5em;
    line-height: 0.85;
    float: left;
    margin: 6px 12px 0 0;
    color: var(--rust);
    font-style: italic;
}

/* pull quote */
.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.3;
    color: var(--forest);
    border-left: 3px solid var(--rust);
    padding-left: 28px;
    margin: 48px 0;
    max-width: 800px;
}

/* small marginalia */
.note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-faded);
    line-height: 1.5;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px dashed var(--line);
    max-width: 720px;
}

/* ---- SYSTEM OVERVIEW ---- */
.arch-diagram {
    width: 100%;
    height: auto;
    margin: 60px 0;
    max-width: 1240px;
    display: block;
}
@media (max-width: 900px) {
    .arch-diagram {
        display: none;
    }
}

.arch-mobile-flow {
    display: none;
    margin: 48px 0;
    padding: 32px;
    border: 1px solid var(--line-strong);
    background: var(--paper-soft);
}
@media (max-width: 900px) {
    .arch-mobile-flow {
        display: block;
    }
}
.arch-mobile-flow .step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}
.arch-mobile-flow .step:last-child {
    border-bottom: none;
}
.arch-mobile-flow .step-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--rust);
    letter-spacing: 0.15em;
    flex-shrink: 0;
    margin-top: 4px;
    min-width: 32px;
}
.arch-mobile-flow .step-name {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.2;
    color: var(--ink);
}
.arch-mobile-flow .step-name span {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--ink-faded);
    margin-top: 2px;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line-strong);
    border: 1px solid var(--line-strong);
    margin: 60px 0;
}
@media (max-width: 768px) {
    .component-grid {
        grid-template-columns: 1fr;
    }
}

.component {
    background: var(--paper);
    padding: 40px 36px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background 0.3s;
}
.component:hover {
    background: var(--paper-soft);
}

.comp-num {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--rust);
    margin-bottom: 18px;
}

.component h3 {
    font-family: var(--font-display);
    font-size: 44px !important;
    font-weight: 400;
    line-height: 1 !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.comp-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 19px;
    color: var(--rust);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.comp-section {
    margin-bottom: 18px;
}

.comp-section .label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faded);
    margin-bottom: 6px;
}

.comp-section p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0 !important;
    max-width: none;
}

.comp-cost {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.comp-cost .price {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.comp-cost .price-note {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-faded);
    letter-spacing: 0.05em;
    margin-top: 8px;
    line-height: 1.5;
}

.total-cost {
    margin: 60px 0;
    padding: 48px;
    background: var(--paper-deep);
    border: 1px solid var(--line-strong);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) {
    .total-cost {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px;
    }
}

.total-cost .total-price {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.total-cost .total-price em {
    color: var(--rust);
    font-style: italic;
    display: block;
    font-size: 0.45em;
    margin-top: 8px;
    line-height: 1;
}
.total-cost p {
    margin: 0 !important;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: none;
}
.total-cost p strong {
    color: var(--ink);
    font-weight: 600;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line-strong);
    border: 1px solid var(--line-strong);
    margin: 40px 0 0;
}
@media (max-width: 768px) {
    .before-after {
        grid-template-columns: 1fr;
    }
}

.ba-side {
    padding: 44px 36px;
}
.ba-side.now {
    background: var(--paper-deep);
}
.ba-side.after {
    background: var(--forest);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}
.ba-side.after::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(184, 99, 59, 0.18) 0%,
        transparent 50%
    );
    pointer-events: none;
}
.ba-side > * {
    position: relative;
    z-index: 2;
}

.ba-side .ba-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.ba-side.now .ba-tag {
    color: var(--rust-deep);
}
.ba-side.after .ba-tag {
    color: var(--rust);
}

.ba-side h4 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}
.ba-side.after h4 {
    color: var(--paper);
}

.ba-side ul {
    list-style: none;
}
.ba-side li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    gap: 12px;
}
.ba-side.after li {
    border-bottom-color: rgba(237, 228, 208, 0.18);
    color: rgba(237, 228, 208, 0.92);
}
.ba-side li:last-child {
    border-bottom: none;
}
.ba-side li::before {
    font-family: var(--font-mono);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 700;
}
.ba-side.now li::before {
    content: "✕";
    color: var(--rust-deep);
}
.ba-side.after li::before {
    content: "✓";
    color: var(--rust);
}

/* ---- VIEW TRANSITIONS (cross-document fade between Sistemul / Viziunea) ---- */
@view-transition {
    navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.28s;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
::view-transition-old(root) {
    animation-name: vt-fade-out;
}
::view-transition-new(root) {
    animation-name: vt-fade-in;
}
@keyframes vt-fade-out {
    to {
        opacity: 0;
    }
}
@keyframes vt-fade-in {
    from {
        opacity: 0;
    }
}
