/* ─────────────────────────────────────────────────────────────────
   Warm landing variant — Relate.so genre.  Light cream background,
   serif display (Instrument Serif), friendly sans body (Inter).
   Editorial magazine layout — alternating columns, italics for
   emphasis, muted sage accent, NO mono type, NO dark anywhere.
   ──────────────────────────────────────────────────────────────── */

:root {
    --bg:         #faf7f1;
    --surface:    #ffffff;
    --surface-2:  #f3ede0;
    --text:       #1f1a15;
    --text-2:     #5c544a;
    --muted:      #9c9488;
    --border:     #e8e1d3;
    --border-2:   #d6cbb5;
    --accent:     #7a8a68;
    --accent-2:   #8f6f54;
    --ink:        #2a2620;
}

html, body { background: var(--bg); color: var(--text); margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--bg); }

/* Subtle paper texture — barely visible, adds warmth */
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(rgba(156, 148, 136, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(156, 148, 136, 0.03) 1px, transparent 1px);
    background-size: 32px 32px, 18px 18px;
    background-position: 0 0, 9px 9px;
}

/* Nav override — NOT sticky to avoid the overlap issue, but polished */
.nav {
    background: rgba(250, 247, 241, 0.88) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border) !important;
    padding: 16px 0 !important;
    position: relative !important;  /* was sticky — caused content overlap */
}
.nav .brand, .nav .link { color: var(--ink) !important; }
.nav .link { color: var(--text-2) !important; font-weight: 500; transition: color .15s ease; }
.nav .link:hover { color: var(--ink) !important; }
.nav .nav-links { gap: 32px !important; align-items: center; }
.nav .btn-primary {
    background: var(--ink) !important;
    color: var(--bg) !important;
    border: 0 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    box-shadow: none !important;
    transition: transform .12s ease, background .15s ease;
}
.nav .btn-primary:hover {
    background: var(--accent-2) !important;
    transform: translateY(-1px);
}

/* Footer re-theme (warm cream) */
.foot {
    background: var(--surface-2) !important;
    color: var(--text-2) !important;
    border-top: 1px solid var(--border) !important;
    padding: 40px 0 !important;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    letter-spacing: normal;
    text-transform: none;
}
.foot a { color: var(--ink) !important; text-decoration: none; font-weight: 500; }
.foot a:hover { color: var(--accent-2) !important; text-decoration: underline; text-underline-offset: 3px; }

/* Page scaffolding */
.w-shell { position: relative; z-index: 1; }
.w-wrap  { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.w-wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* ─── HERO ───────────────────────────────────────────────── */
.w-hero {
    padding: 100px 0 120px;
    text-align: center;
}
.w-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
    margin-bottom: 40px;
    animation: wRise .8s cubic-bezier(.2,.9,.3,1) .05s both;
}
.w-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}

.w-hero h1 {
    font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
    font-size: clamp(3rem, 8vw, 6.25rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    font-weight: 400;
    max-width: 14ch;
    margin: 0 auto 28px;
    color: var(--ink);
    animation: wRise 1s cubic-bezier(.2,.9,.3,1) .15s both;
}
.w-hero h1 em {
    font-style: italic;
    color: var(--accent-2);
}

.w-hero p.w-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: var(--text-2);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto 44px;
    animation: wRise .9s cubic-bezier(.2,.9,.3,1) .3s both;
}

.w-cta-row {
    display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
    animation: wRise .9s cubic-bezier(.2,.9,.3,1) .45s both;
}
.w-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 46px;
    padding: 0 24px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s cubic-bezier(.4,0,.2,1),
                background .15s ease,
                color .15s ease,
                border-color .15s ease;
}
.w-btn:active { transform: translateY(1px); }
.w-btn-fill { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.w-btn-fill:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.w-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-2); }
.w-btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.w-btn .arrow { transition: transform .3s cubic-bezier(.2,.9,.3,1.2); }
.w-btn:hover .arrow { transform: translateX(3px); }

.w-trust {
    margin-top: 64px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    animation: wRise 1s cubic-bezier(.2,.9,.3,1) .6s both;
}
.w-trust-note {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
    font-family: 'Instrument Serif', serif;
    font-size: 15px;
}

@keyframes wRise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── SECTION HEADERS ─────────────────────────────────────── */
.w-section-head {
    text-align: center;
    padding: 80px 0 64px;
}
.w-section-eyebrow {
    display: inline-block;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.w-section-head h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0 auto 16px;
    max-width: 18ch;
    color: var(--ink);
}
.w-section-head h2 em { font-style: italic; color: var(--accent-2); }
.w-section-head p {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ─── EDITORIAL FEATURE ROWS (not bento) ──────────────────── */
.w-feat-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 64px 0;
    border-top: 1px solid var(--border);
}
@media (min-width: 860px) {
    .w-feat-row { grid-template-columns: 1fr 1fr; gap: 80px; padding: 96px 0; }
    .w-feat-row.flip .w-feat-text  { order: 2; }
    .w-feat-row.flip .w-feat-visual { order: 1; }
}

.w-feat-text .w-feat-mark {
    display: inline-block;
    font-family: 'Instrument Serif', serif;
    font-size: 14px;
    font-style: italic;
    color: var(--accent);
    margin-bottom: 20px;
}
.w-feat-text h3 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 400;
    margin: 0 0 18px;
    color: var(--ink);
    max-width: 16ch;
}
.w-feat-text h3 em { font-style: italic; color: var(--accent-2); }
.w-feat-text p {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 42ch;
}
.w-feat-text p:last-of-type { margin-bottom: 0; }

/* Visual column — warm framed illustrations (no code snippets, no chips) */
.w-feat-visual {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
    aspect-ratio: 4/3;
    display: flex; flex-direction: column; justify-content: center;
    box-shadow: 0 1px 0 rgba(31,26,21,0.02), 0 18px 40px -30px rgba(31,26,21,0.18);
}

/* Visual 1 — "Everything lands in one pipeline" */
.w-viz-pipeline { display: flex; flex-direction: column; gap: 14px; }
.w-viz-pipeline .row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink);
    border-left: 3px solid var(--accent);
}
.w-viz-pipeline .row .src {
    font-family: 'Instrument Serif', serif; font-style: italic;
    color: var(--muted); font-size: 13px; margin-left: auto;
}
.w-viz-pipeline .row:nth-child(2) { border-left-color: var(--accent-2); margin-left: 18px; }
.w-viz-pipeline .row:nth-child(3) { border-left-color: #a89581; margin-left: 36px; }
.w-viz-pipeline .row:nth-child(4) { border-left-color: #b88a6d; margin-left: 54px; }

/* Visual 2 — "Transparent scoring" (progress readout) */
.w-viz-score { display: flex; flex-direction: column; gap: 20px; }
.w-viz-score .label {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-size: 14px; color: var(--muted);
    margin-bottom: 6px;
}
.w-viz-score .score-item { display: flex; flex-direction: column; gap: 6px; }
.w-viz-score .score-row {
    display: flex; align-items: center; gap: 16px;
    font-size: 14px;
}
.w-viz-score .score-row .name { color: var(--ink); min-width: 120px; }
.w-viz-score .score-row .track {
    flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden;
}
.w-viz-score .score-row .fill {
    height: 100%; background: var(--accent); border-radius: 2px;
}
.w-viz-score .score-row .num {
    font-family: 'Instrument Serif', serif; font-size: 20px;
    color: var(--ink); min-width: 32px; text-align: right;
}

/* Visual 3 — "Automations" as a thoughtful recipe */
.w-viz-flow { display: flex; flex-direction: column; gap: 14px; }
.w-viz-flow .step {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 14px 0;
}
.w-viz-flow .step .mark {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 24px;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
}
.w-viz-flow .step .txt {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.5;
}
.w-viz-flow .step .txt strong { color: var(--ink); font-weight: 600; }
.w-viz-flow .step + .step { border-top: 1px solid var(--border); }

/* Visual 4 — "Workspaces" — soft rectangles suggesting tenants */
.w-viz-tenants { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-viz-tenants .tenant {
    padding: 16px;
    background: var(--surface-2);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.w-viz-tenants .tenant .name {
    font-family: 'Instrument Serif', serif;
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 4px;
}
.w-viz-tenants .tenant .meta {
    font-size: 12px;
    color: var(--muted);
}
.w-viz-tenants .tenant:nth-child(1) .name { color: var(--accent); }
.w-viz-tenants .tenant:nth-child(2) .name { color: var(--accent-2); }

/* ─── STEPS ───────────────────────────────────────────────── */
.w-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0 96px;
}
@media (min-width: 740px) { .w-steps { grid-template-columns: repeat(3, 1fr); } }
.w-step {
    text-align: left;
}
.w-step .num {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 48px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}
.w-step h4 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: var(--ink);
}
.w-step p {
    font-size: .95rem;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
}

/* ─── PRICING ─────────────────────────────────────────────── */
.w-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 0 80px;
}
@media (min-width: 880px) { .w-pricing { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.w-plan {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px 32px;
    display: flex; flex-direction: column;
    transition: border-color .2s ease, transform .2s ease;
}
.w-plan:hover { border-color: var(--border-2); transform: translateY(-2px); }
.w-plan.popular {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(122,138,104,.04), transparent 50%), var(--surface);
}
.w-plan .ribbon {
    position: absolute; top: -1px; left: 32px;
    background: var(--accent);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 0 0 8px 8px;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 13px;
    font-weight: 400;
}
.w-plan h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.625rem;
    line-height: 1;
    letter-spacing: -0.01em;
    font-weight: 400;
    margin: 0 0 8px;
    color: var(--ink);
}
.w-plan .desc {
    font-size: .875rem;
    color: var(--text-2);
    line-height: 1.55;
    margin: 0 0 24px;
    min-height: 52px;
}
.w-plan .price-row {
    display: flex; align-items: baseline; gap: 8px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.w-plan .price {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.w-plan .price-unit {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--muted);
}
.w-plan ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.w-plan li {
    display: flex; align-items: flex-start; gap: 12px;
    font-size: .9375rem;
    color: var(--text-2);
    line-height: 1.5;
}
.w-plan li::before {
    content: "✓"; color: var(--accent); font-weight: 600;
    flex-shrink: 0;
    margin-top: 0;
}
.w-plan .w-btn { width: 100%; justify-content: center; }

/* ─── PULL-QUOTE (editorial flourish between sections) ────── */
.w-quote {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.w-quote blockquote {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    font-style: italic;
    color: var(--ink);
    max-width: 24ch;
    margin: 0 auto 28px;
    font-weight: 400;
}
.w-quote blockquote::before { content: "“"; color: var(--accent); margin-right: 4px; }
.w-quote blockquote::after  { content: "”"; color: var(--accent); margin-left: 4px; }
.w-quote cite {
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ─── CLOSING CTA ─────────────────────────────────────────── */
.w-cta {
    margin: 80px 0 96px;
    padding: 96px 48px;
    border-radius: 20px;
    text-align: center;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}
.w-cta h2 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0 auto 20px;
    max-width: 18ch;
    color: var(--ink);
}
.w-cta h2 em { font-style: italic; color: var(--accent-2); }
.w-cta p {
    color: var(--text-2);
    max-width: 500px;
    margin: 0 auto 36px;
    font-size: 1.05rem;
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* ─────────────────────────────────────────────────────────────────
   Extracted from former inline style="" attributes (CodeCanyon
   compliance — keep styles in CSS, not in markup).
   ──────────────────────────────────────────────────────────────── */

/* Static demo data for the scoring visual.  Values are illustrative
   only — not pulled from a live record. */
.w-viz-score .score-row .fill.is-engagement { width: 72%; }
.w-viz-score .score-row .fill.is-recency    { width: 48%; }
.w-viz-score .score-row .fill.is-fit        { width: 86%; }

/* Closing-CTA headline sits slightly below the eyebrow tag. */
.w-cta h2.w-cta-headline { margin-top: 16px; }
