/* ------------------------------------------------------------
   Elevate Potential
   Restrained editorial system: warm paper, ink, one accent.
   ------------------------------------------------------------ */

:root {
    --paper: #f6f4ef;
    --paper-2: #eeebe3;
    --surface: #fbfaf7;
    --ink: #1a1a1d;
    --ink-2: #4a4a50;
    --ink-3: #7a7a80;
    --rule: #dcd8ce;
    --accent: #4d3a6b;
    --accent-ink: #3a2b52;
    --accent-soft: #e6e0ee;
    --live: #2f6b4f;

    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --wrap: 1120px;
    --gutter: clamp(20px, 5vw, 48px);
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, fieldset {
    margin: 0;
    padding: 0;
}

ul, ol { list-style: none; }

a { color: inherit; }

img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

/* Avoid single words stranded on the last line */
p, li, dd, legend, .lede {
    text-wrap: pretty;
}

h1, h2, h3 {
    text-wrap: balance;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.5rem, 5.4vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 15ch;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.15;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.eyebrow,
.section-label {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.lede {
    font-size: 1.1875rem;
    color: var(--ink-2);
    max-width: 34em;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 1.35em;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 500 0.9375rem/1.2 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover { background: var(--accent-ink); }

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn-light {
    background: var(--paper);
    color: var(--ink);
}

.btn-light:hover { background: #fff; }

.btn-text {
    padding-left: 0;
    padding-right: 0;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    padding-bottom: 0.25em;
}

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

.btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 244, 239, 0.92);
    backdrop-filter: saturate(1.2) blur(8px);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.wordmark {
    font-family: var(--serif);
    font-size: 1.3125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--ink);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--ink-2);
}

.nav-list a:hover { color: var(--ink); }

.nav-list .nav-cta {
    color: var(--ink);
    font-weight: 500;
    padding: 0.5em 1em;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
}

.nav-list .nav-cta:hover {
    background: var(--ink);
    color: var(--paper);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s ease;
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    padding: clamp(64px, 12vw, 140px) 0 clamp(64px, 9vw, 112px);
    border-bottom: 1px solid var(--rule);
}

.hero-grid {
    display: flex;
    justify-content: center;
    text-align: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-copy .lede { margin-inline: auto; }

.hero-copy .eyebrow { margin-bottom: 1.5rem; }
.hero-copy h1 { margin-bottom: 1.5rem; }

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 2.25rem;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-size: 0.8125rem;
    color: var(--ink-3);
    white-space: nowrap;
}

.status-live { color: var(--live); }

/* ---------- Sections ---------- */

.section {
    padding: clamp(72px, 10vw, 128px) 0;
}

.section-tinted {
    background: var(--paper-2);
}

.section-dark {
    background: var(--ink);
    color: var(--paper);
}

.section-dark h2 { color: var(--paper); }

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    gap: clamp(32px, 6vw, 96px);
}

.split > .section-label,
.label-col { padding-top: 0.5rem; }

/* Hand-drawn arrows */
.doodle {
    flex: none;
    color: var(--accent);
}

.doodle-right {
    display: block;
    width: 150px;
    height: auto;
    margin-top: 1rem;
    margin-left: 1.75rem;
}


.split-body > * + * { margin-top: 1.25rem; }

.split-body p { color: var(--ink-2); max-width: 38em; }

.statement {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.3;
    color: var(--ink) !important;
    max-width: 26em !important;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 3rem !important;
    border-top: 1px solid var(--rule);
}

.facts > div {
    padding: 1.25rem 1.25rem 0 0;
}

.facts > div + div {
    padding-left: 1.25rem;
    border-left: 1px solid var(--rule);
}

.facts dt {
    font-family: var(--serif);
    font-size: 1.75rem;
    line-height: 1.2;
}

.facts dd {
    font-size: 0.875rem;
    color: var(--ink-3);
    margin-top: 0.25rem;
}

/* ---------- Products ---------- */

.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
    padding: clamp(40px, 6vw, 72px) 0;
    border-top: 1px solid var(--rule);
}

.product:first-child { border-top: 0; padding-top: 0; }
.product:last-child { padding-bottom: 0; }

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product h3 {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.product-tagline {
    margin-top: 0.35rem !important;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1875rem;
    color: var(--ink-2);
}

.product-copy > p:not(.product-tagline) {
    margin-top: 1.25rem;
    color: var(--ink-2);
    max-width: 32em;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    margin: 1.75rem 0 2rem;
    border-top: 1px solid var(--rule);
}

.feature-list li {
    padding: 0.65rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--rule);
}

/* Product mockups: quiet, schematic, no gloss */

.product-visual {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 6px;
    padding: clamp(20px, 3vw, 32px);
}

.mock {
    font-size: 0.8125rem;
    color: var(--ink-2);
}

.mock-bar,
.mock-foot {
    display: flex;
    justify-content: space-between;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.mock-bar {
    padding-bottom: 0.9rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--rule);
}

.mock-bar span:first-child { color: var(--ink); font-weight: 500; }

.mock-foot {
    padding-top: 0.9rem;
    margin-top: 1.1rem;
    border-top: 1px solid var(--rule);
}

.lane {
    display: grid;
    grid-template-columns: 6.5rem 1fr 3.75rem;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 0;
}

.slider {
    position: relative;
    height: 20px;
}

.slider::before,
.slider-fill {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 2px;
}

.slider::before {
    right: 0;
    background: var(--rule);
}

.slider-fill {
    width: var(--v);
    background: var(--accent);
}

.slider-knob {
    position: absolute;
    top: 50%;
    left: var(--v);
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.lane-val {
    text-align: right;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.session-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
}

.session-list li span:first-child { color: var(--ink); }
.session-list li span:last-child { color: var(--ink-3); font-variant-numeric: tabular-nums; }

.journal {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--paper-2);
    border-radius: 3px;
}

.journal-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.35rem;
}

.journal p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1rem;
    color: var(--ink);
}

/* ---------- Principles ---------- */

.principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 3rem;
}

.principles li {
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
}

.principles h3 { font-size: 1.375rem; margin-bottom: 0.5rem; }
.principles p { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Forms ---------- */

.form {
    display: grid;
    gap: 1.25rem;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.field {
    display: grid;
    gap: 0.4rem;
}

.field > span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-2);
}

.field em {
    font-style: normal;
    font-weight: 400;
    color: var(--ink-3);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    font: 400 1rem/1.4 var(--sans);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    transition: border-color 0.15s ease;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:hover,
.field textarea:hover { border-color: #c6c1b5; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ink);
}

.form .btn { justify-self: start; }

.choices {
    border: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.choices legend {
    width: 100%;
    margin-bottom: 0.6rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.9375rem;
    cursor: pointer;
}

.check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

/* Dark waitlist variant */

.section-dark .field > span,
.section-dark .choices legend { color: #b9b6ae; }

.section-dark .field input {
    background: transparent;
    border-color: #4a4a50;
    color: var(--paper);
}

.section-dark .field input:hover { border-color: #6a6a70; }
.section-dark .field input:focus { border-color: var(--paper); }
.section-dark .check input { accent-color: var(--paper); }

.waitlist-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: clamp(40px, 7vw, 112px);
    align-items: start;
}

.waitlist-grid h2 { margin-bottom: 1rem; }
.waitlist-grid p { color: #b9b6ae; max-width: 28em; }

/* ---------- Contact ---------- */

.contact-note {
    margin-top: 1.25rem;
    color: var(--ink-2);
    max-width: 22em;
}

.contact-email {
    display: inline-block;
    margin-top: 1.25rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}

.contact-email:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--rule);
    padding: 48px 0 32px;
    font-size: 0.875rem;
    color: var(--ink-3);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-inner p { margin-top: 0.4rem; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--ink-2);
}

.footer-nav a:hover { color: var(--ink); }

.footer-base {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}

/* ---------- Modal ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(26, 26, 29, 0.45);
}

.modal[hidden] { display: none; }

.modal-panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 36px 32px 32px;
    background: var(--paper);
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.modal-panel h2 { font-size: 1.75rem; }

.modal-panel > p {
    margin: 0.5rem 0 1.5rem;
    color: var(--ink-2);
    font-size: 0.9375rem;
}

.modal-panel .btn { justify-self: stretch; justify-content: center; }

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--ink-3);
    cursor: pointer;
    border-radius: var(--radius);
}

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

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 110;
    transform: translateX(-50%);
    max-width: calc(100% - 40px);
    padding: 0.85rem 1.25rem;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.9375rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.toast[hidden] { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .split,
    .product,
    .waitlist-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .split > .section-label,
    .label-col { padding-top: 0; }

    .doodle-right { display: none; }
}

@media (max-width: 720px) {
    body { font-size: 16px; }

    .menu-toggle { display: block; }

    .site-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--rule);
        display: none;
    }

    .site-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem var(--gutter) 1.25rem;
    }

    .nav-list li a {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--rule);
        font-size: 1rem;
    }

    .nav-list .nav-cta {
        margin-top: 1rem;
        text-align: center;
        border-bottom: 1px solid var(--ink);
    }

    .facts,
    .feature-list,
    .principles,
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .facts > div + div {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--rule);
    }

    .facts > div { padding-bottom: 1rem; }

    .hero-actions { flex-wrap: wrap; gap: 1.25rem; }
}
