/* manager.ai homepage. Legacy landing pages still use styles.css. */

:root {
    --paper: #F5F2EC;
    --mist: #EDE8DF;
    --card: #FBF9F5;
    --ink: #241C17;
    --slate: #6E655C;
    --rule: #E3DDD3;
    --gain: #3F6B2A;
    --amber: #F59E0B;
    --amber-deep: #B45309;
    --amber-wash: #FBF0D9;

    --serif: 'Source Serif 4', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --gutter: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: 'tnum' 1;
}

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px;
}

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

h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.6rem, 4.6vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    line-height: 1.1;
}

h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    font: 500 0.95rem/1.2 var(--sans);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #120D0A; }

.btn-quiet { color: var(--ink); border-color: var(--rule); background: var(--card); }
.btn-quiet:hover { border-color: var(--ink); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* Nav */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(245, 242, 236, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 68px;
}

.wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.92rem;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.15s;
}

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

.nav-cta { padding: 9px 18px; font-size: 0.9rem; }

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
}

.mobile-menu-btn svg { width: 24px; height: 24px; }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 68px 0 auto;
    z-index: 99;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.mobile-menu.open { display: block; }

.mobile-menu a:not(.btn) {
    display: block;
    padding: 14px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}

.mobile-menu .btn { width: 100%; margin-top: 20px; }

/* Hero */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 104px 0 48px;
}
.hero > .wrap { width: 100%; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: center;
}

.hero h1 { max-width: 11em; margin-bottom: 24px; }

.lede {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--slate);
    max-width: 34em;
    margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Experiment log: the one loud element */
.ledger {
    background: var(--card);
    border: 1px solid rgba(227, 221, 211, 0.8);
    border-radius: 18px;
    box-shadow: 0 30px 60px -30px rgba(36, 28, 23, 0.18), 0 2px 6px rgba(36, 28, 23, 0.03);
    overflow: hidden;
}

.ledger-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 16px 24px 14px;
    border-bottom: 1px solid var(--rule);
}

.ledger-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: -0.015em;
}

.ledger-sub { font-size: 0.85rem; color: var(--slate); }

.ledger-rows { list-style: none; }

.ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 24px;
    row-gap: 2px;
    padding: 11px 24px;
    border-bottom: 1px solid var(--rule);
}

.ledger-name { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }

.ledger-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--amber-deep);
    border: 1px solid rgba(180, 83, 9, 0.35);
    border-radius: 5px;
    vertical-align: 2px;
}

.ledger-impact {
    justify-self: end;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--gain);
    white-space: nowrap;
}

.ledger-impact small, .ledger-foot strong small {
    margin-left: 6px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--slate);
    letter-spacing: 0.02em;
}

.ledger-metric { font-size: 0.85rem; color: var(--slate); }

.ledger-change {
    justify-self: end;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--slate);
    white-space: nowrap;
}

.ledger-arrow { font-size: 0.8rem; }

.ledger-change strong {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.is-rolled-back .ledger-name,
.is-rolled-back .ledger-impact,
.is-rolled-back .ledger-change strong { color: var(--slate); }
.is-rolled-back .ledger-name { font-weight: 500; }

.ledger-foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 13px 24px;
    font-size: 0.88rem;
    color: var(--slate);
}

.ledger-foot strong {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--gain);
}

/* One orchestrated entrance: experiments land in sequence on load */
@media (prefers-reduced-motion: no-preference) {
    .ledger-row, .ledger-foot { animation: appear 0.5s ease both; }
    .ledger-row { animation-delay: calc(0.3s + var(--i, 0) * 0.22s); }
    .ledger-foot { animation-delay: 1.5s; }
}

@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Sections */
.section { padding: 128px 0; }
.section-mist { background: var(--mist); }

.section-head { max-width: 34em; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
    align-items: start;
}

.split .section-head { margin-bottom: 0; position: sticky; top: 120px; }

/* Loop: a single track with four stops */
.loop {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    position: relative;
}

.loop::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 0;
    height: 1px;
    background: var(--ink);
    opacity: 0.25;
}

.loop li { position: relative; padding-top: 40px; }

.loop-stop {
    position: absolute;
    top: 0;
    left: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--mist);
    border: 1.5px solid var(--ink);
}

.loop li:last-child .loop-stop { background: var(--amber); border-color: var(--amber); }

.loop h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.6rem;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.loop p { color: var(--slate); font-size: 0.97rem; max-width: 22em; }

/* Levers: a typeset list, not a card grid */
.levers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    border-top: 1px solid var(--rule);
}

.lever {
    padding: 28px 0 30px;
    border-bottom: 1px solid var(--rule);
}

.lever dt {
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: -0.012em;
    margin-bottom: 8px;
}

.lever dd { color: var(--slate); font-size: 0.97rem; }

/* Pricing */
.price {
    max-width: 560px;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 18px;
}

.price-formula {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 28px;
}

.price-formula span { color: var(--amber-deep); white-space: nowrap; }

.price-terms { list-style: none; margin-bottom: 32px; }

.price-terms li {
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    color: var(--slate);
    font-size: 0.97rem;
}

.price-terms li:last-child { border-bottom: 1px solid var(--rule); }

.price-example {
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--paper);
    border-radius: 12px;
}

.price-example > p { font-size: 0.85rem; color: var(--slate); margin-bottom: 12px; }

.price-example dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    font-size: 0.95rem;
}

.price-example dd { font-variant-numeric: tabular-nums; }

.price-example .price-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-weight: 600;
}

/* Results */
.section-ink { background: var(--ink); color: var(--paper); }

.results {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 88px;
}

.results-lead h2 { margin-bottom: 24px; max-width: 13em; }

.results-lead > p {
    color: rgba(245, 242, 236, 0.68);
    font-size: 1.08rem;
    max-width: 32em;
    margin-bottom: 56px;
}

.pull p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
    line-height: 1.32;
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.pull cite {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(245, 242, 236, 0.55);
}

.figures {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(245, 242, 236, 0.18);
}

.figure {
    padding: 24px 0;
    border-bottom: 1px solid rgba(245, 242, 236, 0.18);
}

.figure-major { grid-column: 1 / -1; }

.figure dt { font-size: 0.85rem; color: rgba(245, 242, 236, 0.6); margin-bottom: 6px; }

.figure dd {
    font-family: var(--serif);
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.figure-major dd { font-size: 4.4rem; color: var(--amber); }

.figure small {
    display: block;
    margin-top: 10px;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0;
    color: rgba(245, 242, 236, 0.6);
}

.timeline { list-style: none; margin-top: 40px; }

.timeline li {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 10px 0;
    font-size: 0.93rem;
    color: rgba(245, 242, 236, 0.78);
}

.timeline span { color: rgba(245, 242, 236, 0.5); }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }

.faq-item { padding: 28px 0; border-bottom: 1px solid var(--rule); }

.faq-item dt {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.faq-item dd { color: var(--slate); max-width: 38em; }

.section-head a { color: var(--ink); text-underline-offset: 3px; }

/* Connect */
.connect {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
    align-items: start;
}

.connect-copy h2 { margin-bottom: 18px; }
.connect-copy p { color: var(--slate); font-size: 1.08rem; max-width: 24em; }

.form {
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field { margin-bottom: 20px; }

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

.field input, .field select {
    width: 100%;
    padding: 13px 14px;
    font: 400 1rem/1.3 var(--sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    transition: border-color 0.15s, background-color 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6170' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.field input::placeholder { color: #9AA0AC; }

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

.form .btn { margin-top: 8px; }

.form-note {
    margin-top: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--slate);
}

.form-done { text-align: center; padding: 48px 12px; }
.form-done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 10px; }
.form-done p { color: var(--slate); }

/* Footer */
.footer { padding: 64px 0 48px; border-top: 1px solid var(--rule); }

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px 64px;
    align-items: start;
}

.footer-inner p { color: var(--slate); font-size: 0.92rem; margin-top: 10px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px 48px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--slate);
    text-decoration: none;
}

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

.footer-inner .footer-copy { grid-column: 1 / -1; font-size: 0.82rem; margin-top: 24px; }

/* Responsive */
@media (max-width: 980px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }

    .hero { min-height: 0; padding: 128px 0 96px; }
    .hero-grid, .split, .results, .connect { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .split .section-head { position: static; margin-bottom: 0; }

    .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
    .loop::before { display: none; }

    .section { padding: 96px 0; }
}

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

    .hero { padding: 112px 0 72px; }
    .lede { font-size: 1.05rem; }
    .hero-actions .btn { width: 100%; }

    .ledger-head, .ledger-row, .ledger-foot { padding-left: 18px; padding-right: 18px; }
    .ledger-head, .ledger-foot { flex-direction: column; gap: 2px; }

    .section { padding: 80px 0; }
    .section-head { margin-bottom: 44px; }

    .loop { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
    .levers { grid-template-columns: minmax(0, 1fr); }

    .price { padding: 28px 22px; }
    .price-example { padding: 16px 18px; }

    .figure-major dd { font-size: 3.4rem; }
    .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }

    .form { padding: 24px; }
    .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }

    .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
