:root {
    color-scheme: light;
    --bg: #f3f4ee;
    --paper: #fffefa;
    --ink: #1b2922;
    --muted: #526259;
    --line: #d6ded5;
    --primary: #18573e;
    --accent: #ceebbc;
    --soft: #e5efdf;
    --error: #8d2a35;
    font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #65994c; outline-offset: 3px; }
h1, h2, p { margin: 0 0 .75rem; }
h1, h2 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); }
p { color: var(--muted); }
small, .subtle { color: var(--muted); font-size: .87rem; }
img { display: block; max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }
.shell { max-width: 1240px; width: calc(100% - 3rem); margin-inline: auto; }
.bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-inner, nav, .actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.bar-inner { justify-content: space-between; min-height: 74px; }
nav { font-size: .91rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 780; letter-spacing: -.04em; font-size: 1.45rem; }
.brand:hover, .button:hover { text-decoration: none; }
.mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; background: var(--primary); color: white; font: 700 1.45rem/1 Georgia, serif; }
main.shell { min-height: 68vh; padding: 2rem 0 3rem; }
.footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; color: var(--muted); font-size: .85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; font-weight: 690; font-size: .9rem; padding: .7rem 1rem; min-height: 42px; border: 1px solid transparent; border-radius: .5rem; cursor: pointer; color: var(--primary); background: transparent; }
.button.primary { background: var(--primary); color: white; }
.button.outline { border-color: var(--line); background: var(--paper); }
.button.quiet:hover, .button.outline:hover { background: var(--soft); }
.button.primary:hover { filter: brightness(1.16); }
.button.large { padding: .95rem 1.45rem; }
.textlink { text-decoration: underline; overflow-wrap: anywhere; }
.inline { display: inline-flex; }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(1.8rem, 5vw, 5rem); align-items: center; padding: clamp(1.5rem, 5vw, 5rem) clamp(0rem, 2vw, 2rem); }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.7rem); line-height: .96; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.065em; margin-bottom: 1.3rem; }
.eyebrow { color: var(--primary); font-weight: 750; font-size: .86rem; margin-bottom: 1rem; }
.intro { max-width: 48ch; font-size: 1.06rem; margin-bottom: 1.4rem; }
.hero-preview { background: var(--paper); border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden; box-shadow: 0 24px 55px #263e2717; }
.window-top, .window-foot { padding: .8rem 1rem; background: var(--paper); color: var(--muted); font-size: .8rem; display: flex; justify-content: space-between; gap: .7rem; }
.window-top span:first-child { color: #9aac9b; letter-spacing: .15em; }
.window-foot { justify-content: center; }
.mock-store { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.1rem; background: #dfead9; padding: 1.1rem; }
.mock-store h2 { font: 500 clamp(1.2rem, 3vw, 2.15rem)/1.04 Georgia, serif; }
.mock-store p { font-size: .81rem; margin-bottom: .55rem; }
.mock-visual { display: flex; align-items: end; justify-content: center; gap: .25rem; min-height: clamp(130px, 21vw, 235px); padding: 1.3rem .35rem; border-radius: 50% 50% .5rem .5rem; background: #b4c9a8; }
.mock-visual i { display: block; background: #f3eed6; width: 23%; height: 55%; min-height: 45px; border-radius: .3rem .3rem .45rem .45rem; box-shadow: .4rem .55rem 0 #234f2b25; }
.mock-visual i:nth-child(2) { min-height: clamp(72px, 11vw, 150px); background: #214c38; }
.mock-visual i:nth-child(3) { min-height: clamp(52px, 8vw, 95px); background: #f5f4e9; }
.mock-button { padding: .35rem .55rem; background: var(--primary); color: white; border-radius: .3rem; font-size: .75rem; display: inline-block; }
.feature-section { padding: 1.25rem clamp(0rem, 2vw, 2rem) 0; }
.feature-section > h2 { margin-bottom: 1rem; }
.grid, .stack, .workspace-grid, .metrics { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.workspace-grid { grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); align-items: start; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem, 2.5vw, 1.65rem); overflow-wrap: anywhere; }
.card p:last-child { margin-bottom: 0; }
.card > h2 { margin-bottom: 1rem; }
.card + .page-title { margin-top: 1.6rem; }
.narrow { max-width: 560px; margin-inline: auto; }
.auth { margin-top: clamp(1rem, 4vw, 3rem); }
.auth .textlink { display: inline-block; margin-top: 1rem; }
.field { display: grid; gap: .32rem; min-width: 0; color: var(--ink); font-weight: 620; font-size: .91rem; }
.field input, .field textarea, .field select { width: 100%; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: .42rem; padding: .62rem .72rem; font-weight: 450; }
.field textarea { resize: vertical; }
.check { display: flex; align-items: start; gap: .65rem; font-size: .94rem; }
.check input { margin: .25rem 0 0; accent-color: var(--primary); width: 1.08rem; height: 1.08rem; flex: 0 0 auto; }
.page-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .6rem; margin: .35rem 0 1.5rem; }
.page-title p { margin: 0; }
.notice { margin: 0 0 1rem; border: 1px solid #89ae83; padding: .75rem 1rem; background: #e4f3dc; color: #193d27; border-radius: .5rem; }
.notice.error { border-color: #cd9fa5; background: #f8e6e7; color: var(--error); }
.metrics { grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); margin-bottom: 1.3rem; }
.metric { background: var(--soft); border-radius: .7rem; padding: .9rem 1rem; display: grid; gap: .25rem; }
.metric span { color: var(--muted); font-size: .81rem; }
.metric strong { font-size: 1.25rem; line-height: 1.32; }
.funnel-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.row-title { font-weight: 750; }
.empty { padding: 1rem 0; }
.editor-img { max-height: 180px; border-radius: .55rem; object-fit: cover; }
.filter { display: flex; align-items: end; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filter .field { min-width: min(240px, 100%); }
.table-wrap { overflow-x: auto; padding: .6rem 1rem; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; text-align: left; }
th, td { padding: .8rem .68rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 670; }
td details { min-width: 120px; }
td details[open] { min-width: 235px; }
summary { cursor: pointer; color: var(--primary); }
.store .shell { max-width: 1130px; }
.store.theme-sand { --bg:#f5eee5; --paper:#fffaf2; --ink:#352721; --muted:#6d4e44; --line:#dcc9b9; --primary:#843e27; --soft:#f0dfcb; }
.store.theme-night { --bg:#edf0f6; --paper:#fafbff; --ink:#172541; --muted:#4c5a75; --line:#ccd6e7; --primary:#213e7a; --soft:#e0e8fa; }
.product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.2rem, 4vw, 4rem); align-items: start; padding: 1rem 0 2rem; }
.product-media { min-width: 0; background: var(--soft); border-radius: 1.1rem; overflow: hidden; }
.product-media img { width: 100%; height: auto; max-height: 670px; object-fit: contain; }
.product-placeholder { display: grid; place-items: center; min-height: clamp(180px, 36vw, 440px); color: var(--muted); }
.product-copy { padding-top: clamp(0rem, 3vw, 2rem); }
.product-copy h1 { font-family: Georgia, serif; font-weight: 500; }
.benefits { color: var(--muted); padding-left: 1.3rem; margin: 0 0 1.2rem; }
.offers { display: grid; gap: .65rem; }
.offers h2 { margin-bottom: .2rem; }
.offer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .8rem; border: 1px solid var(--line); background: var(--paper); border-radius: .65rem; }
.offer div { display: grid; gap: .2rem; }
.offer div span { color: var(--muted); font-size: .86rem; }
.interest { max-width: 560px; margin: 0 auto; }
.checkout .field + .field { margin-top: .75rem; }
.items { list-style: none; padding: 0; margin: 0; }
.items li, .total { display: flex; justify-content: space-between; gap: .8rem; padding: .6rem 0; }
.total { border-top: 1px solid var(--line); font-size: 1rem; padding-top: .85rem; margin: .4rem 0 .85rem; }
.bump { padding: .85rem; background: var(--soft); border-radius: .55rem; margin: .55rem 0; }
@media (max-width: 760px) {
    .shell { width: calc(100% - 1.55rem); }
    .bar-inner { padding: .5rem 0; gap: .2rem .6rem; }
    nav { gap: .2rem .65rem; }
    .hero, .product, .workspace-grid, .grid.three { grid-template-columns: 1fr; }
    .hero { padding-top: .8rem; }
    .product { padding-top: 0; }
    .page-title { align-items: start; }
}
@media (max-width: 390px) { .grid.two { grid-template-columns: 1fr; } }

.owner-funnel, .owner-pages { margin-top: 1rem; }
.owner-funnel .metrics { margin-bottom: 0; }

.funnel-ai { margin-bottom: 1rem; }
.product-spotlight { grid-template-columns: 1fr; gap: 1.4rem; }
.product-spotlight .product-media img { max-height: min(66vh, 690px); object-fit: cover; }
.product-spotlight .product-copy { width: min(100%, 700px); margin-inline: auto; padding-top: 0; }
.product-editorial { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.product-editorial .product-copy { grid-column: 1; grid-row: 1; padding: 1.2rem 0; }
.product-editorial .product-media { grid-column: 2; grid-row: 1; }
.product-editorial .product-media img { object-fit: cover; min-height: 310px; }
.product-benefits, .product-faq { max-width: 900px; margin: 0 auto 1.3rem; }
.product-benefits .benefits { display: grid; gap: .6rem; margin-bottom: 0; }
.product-faq details { border-top: 1px solid var(--line); padding: .7rem 0; }
.product-faq details p { margin: .6rem 0 0; }
@media (max-width: 760px) {
    .product-editorial { grid-template-columns: 1fr; }
    .product-editorial .product-copy, .product-editorial .product-media { grid-column: auto; grid-row: auto; }
    .product-editorial .product-media img { min-height: 0; }
}

.editor-section { border-top: 1px solid var(--line); padding: .75rem 0; }
.editor-section .stack { margin-top: .65rem; }
.sales-section { margin: 0 auto 1.3rem; max-width: 900px; padding: clamp(1.1rem, 4vw, 2.6rem); }
.sales-section h2 { font-size: clamp(1.5rem, 3vw, 2.35rem); margin-bottom: .8rem; }
.sales-section p { max-width: 64ch; }
.sales-section .button { margin-top: .45rem; }
.sales-section.with-photo { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 4vw, 2.4rem); }
.sales-photo { margin: 0; background: var(--soft); border-radius: .65rem; overflow: hidden; }
.sales-photo img { width: 100%; max-height: 520px; object-fit: cover; }
.offer-details { margin: 1rem 0 0; }
@media (max-width: 640px) {
    .sales-section.with-photo { grid-template-columns: 1fr; }
}

.test-funnel-banner {
    background: #b01c2d;
    color: #fff;
    text-align: center;
    font-weight: 800;
    padding: .72rem 1rem;
}

/* Public platform landing page */
.landing-nav { display: flex; align-items: center; gap: 1.15rem; }
.landing-nav a { font-weight: 650; }
.marketing-page main.shell { padding-top: 1rem; }
.landing-hero { padding-inline: 0; grid-template-columns: 1.12fr 1fr; }
.landing-hero h1 { font-size: clamp(2.8rem,6.15vw,5.55rem); text-wrap: balance; }
.landing-hero .intro { max-width: 51ch; }
.landing-hero-note { margin-top: 1rem; }
.landing-example { padding: clamp(1.35rem,3vw,2.35rem); background: #173f31; color: #fff; border-radius: 1.15rem; box-shadow: 0 20px 55px #173f3125; }
.landing-example-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-bottom: .8rem; }
.landing-example-head span { color: #d1e5cc; font-size: .86rem; }
.landing-example-list { list-style: none; counter-reset: example; margin: 0; padding: 0; }
.landing-example-list li { counter-increment: example; display: grid; grid-template-columns: 2rem 1fr; align-items: start; gap: .8rem; border-top: 1px solid #ffffff30; padding: .78rem 0; }
.landing-example-list li::before { content: counter(example); display: grid; place-items: center; width: 1.7rem; aspect-ratio: 1; background: #d4eac7; color: #173f31; border-radius: 50%; font-size: .84rem; font-weight: 800; }
.landing-example-list p { color: #d1e5cc; font-size: .93rem; margin: .2rem 0 0; }
.landing-section { padding: clamp(2.1rem,4vw,4.5rem) 0; border-top: 1px solid var(--line); }
.landing-section-head { margin-bottom: 1.45rem; }
.landing-section-head h2, .landing-close h2 { max-width: 27ch; font-size: clamp(1.85rem,3.8vw,3.55rem); font-weight: 750; text-wrap: balance; }
.landing-section-head h2[id] { scroll-margin-top: 1rem; }
.landing-section-head p { max-width: 66ch; font-size: 1.04rem; }
.landing-panel { background: var(--paper); border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem,2vw,1.6rem); }
.landing-panel h3, .landing-plan h3, .landing-market-example h3 { margin: 0 0 .56rem; font-size: 1.13rem; line-height: 1.25; }
.landing-panel p:last-child, .landing-market-example p:last-child { margin-bottom: 0; }
.landing-how .landing-panel { border-top: 3px solid #8ab27e; }
.landing-market-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 1.2rem; align-items: start; }
.landing-panel-plain { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
.landing-market-example { padding: 1.35rem; border: 1px solid var(--line); background: var(--soft); border-radius: .8rem; }
.landing-market-example dl { margin: 1rem 0; }
.landing-market-example dl div { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-top: 1px solid #9eaf9b6b; }
.landing-market-example dd { font-size: 1.4rem; font-weight: 760; margin: 0; }
.landing-note { color: var(--muted); margin: .9rem 0 0; max-width: 80ch; font-size: .92rem; }
.landing-note a { text-decoration: underline; }
.landing-plan-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; }
.landing-plan { display: flex; flex-direction: column; background: var(--paper); padding: clamp(.9rem,2vw,1.5rem); border: 1px solid var(--line); border-radius: .85rem; }
.landing-plan-accent { border-color: #6e9c75; background: #f1f8ed; }
.landing-fee { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem; margin-block: 0 .55rem; }
.landing-fee strong { font-size: clamp(2rem,4vw,2.85rem); color: var(--ink); letter-spacing: -.06em; }
.landing-fee span { font-size: .85rem; }
.plan-features { display: grid; gap: .38rem; padding-left: 1.1rem; margin: .15rem 0 1.15rem; color: var(--muted); }
.plan-selected { outline: 2px solid var(--primary); outline-offset: 2px; }
.landing-plan .button, .landing-plan-status { margin-top: auto; }
.landing-plan-status { font-size: .82rem; line-height: 1.4; }
.landing-faq details { border-top: 1px solid var(--line); padding: .85rem 0; max-width: 76ch; }
.landing-faq details:last-child { border-bottom: 1px solid var(--line); }
.landing-faq details p { margin: .6rem 0 0; }
.landing-close { padding: clamp(1.35rem,4vw,2.8rem); background: var(--soft); border: 1px solid var(--line); border-radius: .9rem; }
.landing-close p { max-width: 65ch; }
@media (max-width: 940px) {
    .landing-plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .landing-hero, .landing-market-layout { grid-template-columns: 1fr; }
    .marketing-page nav, .landing-nav { gap: .45rem .85rem; }
    .landing-nav { flex-wrap: wrap; }
}
@media (max-width: 430px) {
    .landing-plan-grid, .marketing-page .grid.two { grid-template-columns: 1fr; }
    .landing-hero h1 { font-size: clamp(2.45rem,10vw,3rem); }
}
