/* Stillhaven marketing site. Brand tokens in brand-tokens.css; hex fallbacks inline for safety. */
:root { --rail: 34px; --maxw: 1120px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--paper, #FBFBF9); color: var(--ink, #1A1A1A);
    font-family: 'Outfit', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'Space Mono', monospace; }
a { color: var(--sage-600, #6C7F43); text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }

/* Signature filmstrip rail */
.rail { position: fixed; top: 0; bottom: 0; left: 0; width: var(--rail); background: var(--sage-500, #849B54);
    z-index: 50; background-image: repeating-linear-gradient(to bottom, transparent 0 12px,
        var(--paper, #FBFBF9) 12px 30px, transparent 30px 44px); background-size: 100% 44px; }
.wrap { margin-left: var(--rail); }
.inner { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    font-weight: 600; font-size: 15px; padding: 0.7rem 1.2rem; border: 0; border-radius: 0; cursor: pointer; text-decoration: none; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 16px; }
.btn-block { width: 100%; }
/* Button FILLS use the darker ramp steps so white text clears AA 4.5:1; sage-500 stays for
   links, surfaces, and the mark (where it isn't reversed on white). */
.btn-primary { background: var(--sage-700, #556231); color: #fff; }
.btn-primary:hover { background: var(--sage-800, #3E4924); }
.btn-accent { background: var(--clay-dark, #9E5A2D); color: #fff; }
.btn-accent:hover { background: #8a4e27; }
.btn-ghost { background: #fff; color: var(--sage-700, #556231); box-shadow: inset 0 0 0 1px var(--sage-500, #849B54); }
.btn-ghost:hover { background: var(--sage-50, #F5F7EF); }
.link-arrow { font-weight: 600; color: var(--sage-700, #556231); }
.link-arrow:hover { color: var(--sage-800, #3E4924); }

/* Visible keyboard focus everywhere interactive (WCAG 2.4.7). */
a:focus-visible, .btn:focus-visible, .seg button:focus-visible, .nav-toggle:focus-visible {
    outline: 2px solid var(--sage-600, #6C7F43); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--sage-700, #556231); color: #fff;
    padding: 0.6rem 1rem; z-index: 60; }
.skip:focus { left: var(--rail); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,251,249,0.9);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--n-200, #E3E3DD); }
.site-header .inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brandmark { display: flex; align-items: center; gap: 11px; }
.brandmark .sq { width: 34px; height: 34px; } .brandmark .sq svg { width: 100%; height: 100%; display: block; }
.brandmark .nm { font-weight: 500; font-size: 20px; color: var(--ink, #1A1A1A); }
.brandmark .nm .h { color: var(--sage-500, #849B54); }
.site-nav { display: flex; gap: 1.6rem; margin-left: 1rem; }
.site-nav a { color: var(--n-700, #54544E); font-weight: 500; font-size: 15px; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink, #1A1A1A); border-bottom-color: var(--sage-400, #9CAE6F); }
.site-cta { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.link-signin { color: var(--n-700, #54544E); font-weight: 500; }
.link-signin:hover { color: var(--ink, #1A1A1A); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink, #1A1A1A); }

/* Hero */
.hero { padding: 84px 0 56px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--sage-700, #556231);
    margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 18px; background: var(--sage-500, #849B54); flex: 0 0 auto; }
.hero h1, .page-hero h1 { font-size: clamp(34px, 5.5vw, 58px); font-weight: 700; max-width: 15ch; margin: 0 0 18px; }
.hero h1 .v, .page-hero h1 .v { color: var(--sage-600, #6C7F43); }
.lede { font-size: 19px; color: var(--n-700, #54544E); max-width: 58ch; margin: 0; }
.hero-cta { display: flex; gap: 0.8rem; margin: 30px 0 0; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 12px; letter-spacing: 4px; color: var(--gray, #888); text-transform: lowercase; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 36px; }
.page-hero.small { padding: 56px 0 28px; }
.page-hero .narrow { max-width: 680px; }

/* Verbs */
.verbs { padding: 20px 0 40px; }
.verbs .inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.verb { background: #fff; border: 1px solid var(--n-200, #E3E3DD); border-radius: 12px; padding: 1.5rem 1.6rem; }
.verb h2 { font-size: 20px; font-weight: 600; margin: 0 0 0.5rem; color: var(--sage-700, #556231); }
.verb p { margin: 0; color: var(--n-700, #54544E); font-size: 15px; }

/* Feature rows (home) */
.feature-rows { padding: 40px 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 44px 0; border-top: 1px solid var(--n-200, #E3E3DD); }
.frow.reverse .frow-text { order: 2; }
.frow h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 600; margin: 0 0 12px; }
.frow-text p { color: var(--n-700, #54544E); font-size: 17px; margin: 0 0 16px; max-width: 46ch; }
.frow-art { height: 240px; border-radius: 14px; background: var(--sage-50, #F5F7EF); border: 1px solid var(--sage-100, #E8EDD9);
    display: flex; align-items: center; justify-content: center; }
.frow-art > div { width: 72%; height: 62%; border-radius: 10px; background: #fff; border: 1px solid var(--sage-200, #D3DCB8);
    box-shadow: 0 18px 40px -28px rgba(43,50,26,0.4); }
.art-player { position: relative; }

/* CTA band */
.cta-band { background: var(--sage-900, #2B321A); color: var(--sage-100, #E8EDD9); margin: 40px 0 0; }
.cta-band .inner { padding: 56px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3.5vw, 34px); color: var(--paper, #FBFBF9); margin: 0 0 10px; }
.cta-band p { margin: 0 0 24px; color: var(--sage-200, #D3DCB8); }

/* Pricing */
.billing { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; }
.seg { display: inline-flex; border: 1px solid var(--n-300, #CCCCC4); background: #fff; padding: 4px; }
.seg button { font: inherit; font-weight: 600; font-size: 14px; border: 0; background: transparent; color: var(--n-700, #54544E); padding: 8px 16px; cursor: pointer; }
.seg button.on { background: var(--sage-700, #556231); color: #fff; }
.save { font-size: 12px; color: var(--sage-700, #556231); background: var(--sage-100, #E8EDD9); border: 1px solid var(--sage-200, #D3DCB8); padding: 5px 10px; }
.pricing { padding: 30px 0 10px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-card { border: 1px solid var(--n-200, #E3E3DD); background: #fff; border-radius: 14px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.price-card.feature { border-color: var(--sage-500, #849B54); box-shadow: 0 24px 48px -34px rgba(43,50,26,0.5); }
.price-card .flag { position: absolute; top: -11px; left: 22px; background: var(--sage-600, #6C7F43); color: #fff; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; }
.price-card .pname { font-size: 20px; font-weight: 600; margin: 0; }
.price-card .who { font-size: 13px; color: var(--gray, #888); margin: 3px 0 18px; min-height: 34px; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price .amt { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .per { font-size: 14px; color: var(--gray, #888); font-weight: 500; }
.billnote { font-size: 11px; color: var(--gray, #888); margin: 8px 0 20px; min-height: 14px; }
.feats { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--n-200, #E3E3DD); display: flex; flex-direction: column; gap: 11px; flex: 1; }
.feats li { font-size: 14px; color: var(--n-700, #54544E); display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.feats li svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 3px; color: var(--sage-600, #6C7F43); }
.feats li b { color: var(--ink, #1A1A1A); font-weight: 600; }
.fineprint { font-size: 11.5px; color: var(--gray, #888); margin-top: 16px; }

/* Comparison + add-ons */
.compare, .addons, .bigger { padding: 48px 0; border-top: 1px solid var(--n-200, #E3E3DD); margin-top: 40px; }
.compare h2, .addons h2, .feature-group h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; margin: 0 0 8px; }
.cmp-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 20px; }
.cmp th, .cmp td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--n-200, #E3E3DD); }
.cmp thead th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--n-700, #54544E); font-weight: 600; }
.cmp thead th.hl { color: var(--sage-700, #556231); }
.cmp tbody th { font-weight: 500; color: var(--ink, #1A1A1A); }
.cmp td { font-family: 'Space Mono', monospace; font-size: 12.5px; color: var(--n-700, #54544E); }
.cmp td.y { color: var(--sage-600, #6C7F43); font-family: 'Outfit'; font-weight: 600; }
.cmp td.n { color: var(--n-300, #CCCCC4); }
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
.addon { border: 1px solid var(--n-200, #E3E3DD); border-radius: 14px; background: #fff; padding: 22px; }
.addon h4 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.addon .rows { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.addon .r { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--n-100, #F1F1ED); }
.addon .r:last-child { border-bottom: 0; padding-bottom: 0; }
.addon .r .mono { font-size: 12.5px; color: var(--ink, #1A1A1A); white-space: nowrap; }

/* Bigger-needs band */
.bigger { border-top: 0; }
.band { background: var(--sage-900, #2B321A); color: var(--sage-100, #E8EDD9); border-radius: 16px; padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.band h2 { font-size: 22px; font-weight: 600; color: var(--paper, #FBFBF9); margin: 0 0 6px; }
.band p { margin: 0; font-size: 15px; color: var(--sage-200, #D3DCB8); max-width: 52ch; }
.btn-mail { font-size: 14px; color: var(--paper, #FBFBF9); border: 1px solid var(--sage-600, #6C7F43); padding: 13px 20px; white-space: nowrap; }
.btn-mail:hover { background: var(--sage-800, #3E4924); color: #fff; }

/* Features page */
.feature-group { padding: 40px 0; border-top: 1px solid var(--n-200, #E3E3DD); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.feat { background: #fff; border: 1px solid var(--n-200, #E3E3DD); border-radius: 12px; padding: 1.3rem 1.4rem; }
.feat h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--n-700, #54544E); font-size: 14.5px; }

/* Support + signup */
.support-cards { padding: 20px 0 60px; }
.support-cards .inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scard { background: #fff; border: 1px solid var(--n-200, #E3E3DD); border-radius: 12px; padding: 1.6rem; }
.scard h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.scard p { color: var(--n-700, #54544E); font-size: 15px; margin: 0 0 14px; }
.signup-soon { margin-top: 30px; background: #fff; border: 1px solid var(--n-200, #E3E3DD); border-radius: 14px; padding: 2rem; max-width: 560px; }
.signup-soon .soon-label { color: var(--sage-700, #556231); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 4px; }
.signup-soon p { color: var(--n-700, #54544E); }

/* Footer */
.site-footer { background: var(--ink, #1A1A1A); color: var(--n-400, #A6A69D); margin-top: 60px; }
.site-footer .inner { display: flex; justify-content: space-between; gap: 3rem; padding: 48px 40px; flex-wrap: wrap; }
.foot-brand .nm { font-weight: 600; font-size: 20px; color: #fff; } .foot-brand .nm .h { color: var(--sage-400, #9CAE6F); }
.foot-brand .tag { margin: 10px 0 4px; font-size: 11px; letter-spacing: 4px; text-transform: lowercase; color: var(--n-400, #A6A69D); }
.foot-brand .muted { color: var(--n-400, #A6A69D); font-size: 14px; margin: 0; }
.foot-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--n-400, #A6A69D); margin: 0 0 4px; }
.foot-col a { color: var(--n-400, #A6A69D); font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-legal { border-top: 1px solid #2a2a2a; }
.foot-legal .legal { display: block; max-width: var(--maxw); margin: 0 auto; padding: 16px 40px; font-size: 11.5px; color: var(--n-400, #A6A69D); }

/* Signup form */
.form-error { background: #fbeae1; border: 1px solid var(--clay, #BE6E3A); color: #7a3f1c; border-radius: 10px;
    padding: 12px 14px; font-size: 14px; margin: 18px 0 0; }
.signup-form { margin-top: 26px; display: flex; flex-direction: column; gap: 22px; max-width: 620px; text-align: left; }
.signup-form fieldset { border: 0; margin: 0; padding: 0; }
.signup-form legend { font-size: 13px; font-weight: 600; color: var(--n-700, #54544E); margin-bottom: 10px; padding: 0; }
.plan-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-opt { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; cursor: pointer;
    background: #fff; border: 1.5px solid var(--n-200, #E3E3DD); border-radius: 12px; padding: 14px 16px; }
.plan-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.plan-opt.on { border-color: var(--sage-500, #849B54); box-shadow: 0 0 0 3px var(--sage-100, #E8EDD9); }
.plan-opt .po-name { font-weight: 600; font-size: 16px; }
.plan-opt .po-price { font-weight: 600; font-size: 15px; color: var(--sage-700, #556231); text-align: right; }
.plan-opt .po-blurb { grid-column: 1 / -1; font-size: 12.5px; color: var(--gray, #888); }
.bill-choose .seg { display: inline-flex; gap: 0; border: 1.5px solid var(--n-200, #E3E3DD); border-radius: 10px; overflow: hidden; }
.bill-choose .seg label { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
    font-size: 14px; font-weight: 500; cursor: pointer; }
.bill-choose .seg label + label { border-left: 1.5px solid var(--n-200, #E3E3DD); }
.bill-choose .seg label.on { background: var(--sage-700, #556231); color: #fff; }
.bill-choose .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bill-choose .seg-note { font-size: 11px; letter-spacing: 0.03em; opacity: 0.85; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--n-700, #54544E); }
.field span em { font-weight: 400; font-style: normal; color: var(--gray, #888); }
.field input { font: inherit; font-size: 15px; padding: 11px 13px; border: 1.5px solid var(--n-200, #E3E3DD);
    border-radius: 10px; background: #fff; color: var(--ink, #1A1A1A); }
.field input:focus { outline: 2px solid var(--sage-600, #6C7F43); outline-offset: 1px; border-color: var(--sage-500, #849B54); }
.form-fine { font-size: 12.5px; color: var(--gray, #888); margin: 4px 0 0; }

/* Responsive */
@media (max-width: 900px) {
    .verbs .inner, .support-cards .inner { grid-template-columns: 1fr; }
    .price-grid, .addon-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
    .frow { grid-template-columns: 1fr; gap: 1.5rem; }
    .frow.reverse .frow-text { order: 0; }
    .site-header .inner { flex-wrap: wrap; height: auto; min-height: 68px; }
    .site-nav, .site-cta { display: none; }
    .nav-toggle { display: flex; margin-left: auto; align-items: center; justify-content: center;
        min-width: 44px; min-height: 44px; padding: 11px; }
    /* Open menu: nav + CTA wrap to full-width rows BELOW the brand/toggle row (no absolute
       positioning, so they can't overlap). */
    .site-header.nav-open .site-nav,
    .site-header.nav-open .site-cta { display: flex; flex-basis: 100%; flex-direction: column;
        align-items: stretch; gap: 0.6rem; margin: 0; }
    .site-header.nav-open .site-nav { padding: 0.5rem 0 0.25rem; }
    .site-header.nav-open .site-cta { padding: 0.25rem 0 1rem; }
    .site-header.nav-open .site-nav a { padding: 0.4rem 0; border-bottom: 0; }
}
@media (max-width: 560px) {
    .inner { padding: 0 22px; }
    .price-grid, .addon-grid, .feat-grid { grid-template-columns: 1fr; }
    .plan-opts { grid-template-columns: 1fr; }
    .band { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
