/* OmniVibeMart — marketing site
   Palette grounded in the shop counter, not a generic SaaS gradient:
   a deep market green (already the brand's color across the apps and
   emails), a warm paper neutral, and a single turmeric-gold accent for
   the moments that need to feel like a market, not a dashboard.
   Display type is a warm serif (trusted signage, not a startup wordmark);
   body copy is a clean system sans; receipts and counters run in mono. */

:root {
    --market: #1f5c34;
    --market-bright: #2e7d32;
    --gold: #c68a1f;

    --ink: #16211b;
    --paper: #faf9f4;
    --paper-dim: #f0eee2;
    --muted: #5b6b5f;
    --line: #e2ded0;

    --radius: 14px;
    --shadow: 0 18px 40px rgba(22, 33, 27, 0.10);
    --max: 1120px;

    --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

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

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--market);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 0 0 8px 0;
    z-index: 100;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--market-bright);
    outline-offset: 3px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 249, 244, 0.92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
}

.brand-mark { display: inline-flex; }
.brand-mark img { display: block; }

/* Same treatment as the app's More screen title: Orbitron, bold, a
   blue-to-green gradient painted through the glyphs via background-clip.
   The @supports fallback keeps the wordmark legible (solid market green)
   on the rare browser that can't clip a background to text. */
.brand-name {
    font-family: 'Orbitron', var(--font-display);
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #2196f3, #4caf50);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text) {
    .brand-name {
        background: none;
        -webkit-text-fill-color: currentColor;
        color: var(--market);
    }
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 600;
}

.primary-nav a { text-decoration: none; color: var(--ink); }
.primary-nav a:hover { color: var(--market-bright); }

.nav-cta {
    background: var(--market);
    color: var(--paper) !important;
    padding: 10px 18px;
    border-radius: 999px;
}
.nav-cta:hover { background: var(--market-bright) !important; }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    position: relative;
    cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--market); color: var(--paper); }
.btn-primary:hover { background: var(--market-bright); }

.btn-outline { border-color: var(--market); color: var(--market); }
.btn-outline:hover { background: var(--paper-dim); }

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

.hero {
    padding: 76px 0 100px;
    background: var(--paper);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--market-bright);
    margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }

.hero h1 {
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    margin: 0 0 20px;
}

.lede {
    font-size: 18px;
    color: var(--muted);
    max-width: 46ch;
    margin: 0 0 32px;
}
.lede.center { margin-left: auto; margin-right: auto; }

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

/* ---- Receipt visual ---- */

.hero-art { display: flex; justify-content: center; }

.receipt {
    position: relative;
    width: 300px;
    background: #fffefb;
    color: var(--ink);
    border-radius: 4px;
    padding: 26px 24px 24px;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
    font-family: var(--font-mono);
    font-size: 13.5px;
}

.receipt::before,
.receipt::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 12px;
    background:
        radial-gradient(circle at 8px 6px, var(--paper) 6px, transparent 6.5px) repeat-x;
    background-size: 16px 12px;
}
.receipt::before { top: -6px; }
.receipt::after { bottom: -6px; transform: rotate(180deg); }

.receipt-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    font-family: var(--font-display);
}
.receipt-store { font-weight: 700; font-size: 16px; }
.receipt-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.receipt-lines { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.receipt-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink); }
.receipt-lines li span:first-child { color: var(--muted); }
.receipt-lines li span:last-child { font-variant-numeric: tabular-nums; }

.receipt-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
    font-weight: 700;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.receipt-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--market);
    font-weight: 700;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--market-bright);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.18);
}

.receipt-qr {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: var(--ink);
}

/* ---------- Section shells ---------- */

section { padding: 92px 0; }

.section-title {
    font-size: clamp(27px, 3.4vw, 37px);
    margin: 0 0 14px;
}
.section-title.center { text-align: center; }

.section-lede {
    color: var(--muted);
    font-size: 17px;
    max-width: 58ch;
    margin: 0 auto 52px;
}
.section-lede.center { text-align: center; }

.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Features: itemized tally ---------- */

.features { background: var(--paper-dim); }

.tally {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.tally li {
    background: var(--paper);
    padding: 28px 26px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.tally-mark {
    flex: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--market);
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 8px;
    line-height: 1;
    margin-top: 3px;
}

.tally h3 { margin: 0 0 6px; font-size: 17.5px; }
.tally p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- How it works ---------- */

.how { background: var(--paper); }

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.how-col {
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.how-col h3 { margin: 0 0 24px; font-size: 20px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }

.step-num {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--market);
    color: var(--paper);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.steps strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Vendors ---------- */

.vendors { background: var(--paper-dim); }

.vendors-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.vendor-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.vendor-list li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Download ---------- */

.download { background: var(--paper); }

.download-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.download-card {
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.download-card h3 { margin: 0 0 8px; font-size: 20px; }
.download-card p { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.store-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--paper);
    color: var(--muted);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    border: 1px dashed var(--line);
}

.store-badge.live {
    border-style: solid;
    border-color: var(--market);
    color: var(--market);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.store-badge.live:hover {
    background: var(--market);
    color: var(--paper);
}

/* ---------- Legal pages ---------- */

.legal-hero {
    padding: 64px 0 48px;
    background: var(--paper-dim);
    border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow { margin-bottom: 10px; }
.legal-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.legal-body {
    padding: 56px 0 96px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 92px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    border-left: 2px solid var(--line);
}
.legal-toc a {
    display: block;
    padding: 7px 0 7px 16px;
    text-decoration: none;
    color: var(--muted);
}
.legal-toc a:hover { color: var(--market-bright); }

.legal-content { max-width: 68ch; }
.legal-content h2 {
    font-size: 21px;
    margin: 40px 0 14px;
    scroll-margin-top: 88px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    font-size: 17px;
    margin: 26px 0 10px;
    scroll-margin-top: 88px;
}
.legal-content p { margin: 0 0 16px; color: var(--ink); }
.legal-content p.muted { color: var(--muted); }
.legal-content ul,
.legal-content ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: var(--ink);
}
.legal-content li { margin-bottom: 8px; }
.legal-content strong { font-weight: 700; }
.legal-content a { color: var(--market-bright); text-decoration: underline; }

.legal-note {
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 14.5px;
    color: var(--muted);
    margin: 0 0 32px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin: 4px 0;
    font-size: 13.5px;
}
.footer-links a { color: #b9c4bb; text-decoration: none; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }

@media (max-width: 780px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-bottom: 1px solid var(--line);
        padding-bottom: 16px;
        margin-bottom: 8px;
    }
    .legal-toc a { padding: 6px 12px 6px 0; }
}

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

.contact-hero {
    padding: 64px 0 20px;
    background: var(--paper);
}

.contact-info { background: var(--paper); padding-top: 20px; }

.info-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    text-align: center;
}
.info-card .tally-mark { margin-bottom: 14px; }
.info-card h3 { margin: 0 0 8px; font-size: 17px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.info-card a { color: var(--market-bright); text-decoration: none; font-weight: 600; }
.info-card a:hover { text-decoration: underline; }

.contact-form-section { background: var(--paper-dim); }

.contact-form-card {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 44px 40px 40px;
    text-align: center;
    overflow: hidden;
}

/* Same torn-slip perforation as the homepage receipt — a note left at
   the counter, not a generic web form. Dots are colored to match the
   section background behind the card, punching through its edge. */
.contact-form-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 11px;
    background:
        radial-gradient(circle at 8px 5px, var(--paper-dim) 6px, transparent 6.5px) repeat-x;
    background-size: 16px 11px;
}

.contact-form-card .eyebrow { margin-bottom: 8px; }
.contact-form-card .section-title { margin-bottom: 6px; }
.contact-form-card > .muted { margin: 0 0 30px; }

.contact-form { text-align: left; display: flex; flex-direction: column; gap: 18px; }

.form-field { display: flex; flex-direction: column; gap: 7px; }

.form-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.input-wrap { position: relative; display: flex; }

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.15s ease;
}
.field-icon.field-icon-top { top: 15px; transform: none; }
.form-field:focus-within .field-icon { stroke: var(--market-bright); }

.form-input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px 12px 42px;
    box-shadow: inset 0 1px 2px rgba(22, 33, 27, 0.03);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder { color: #9aa79d; }
.form-input:focus-visible {
    outline: none;
    border-color: var(--market-bright);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.form-textarea { resize: vertical; min-height: 110px; padding-top: 13px; font-family: var(--font-body); }

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    gap: 9px;
    margin-top: 4px;
}
.contact-form .btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

.btn-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-status {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    border-left: 3px solid transparent;
}
.form-status.success {
    background: rgba(46, 125, 50, 0.1);
    color: var(--market-bright);
    border-left-color: var(--market-bright);
}
.form-status.error {
    background: rgba(198, 40, 40, 0.08);
    color: #c62828;
    border-left-color: #c62828;
}

@media (max-width: 900px) {
    .info-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .contact-form-card { padding: 38px 22px 30px; }
}

/* ---------- 404 ---------- */

.not-found {
    padding: 120px 0;
    text-align: center;
    background: var(--paper-dim);
}
.not-found h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 16px; }

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

.site-footer {
    background: var(--ink);
    color: #c7d0c9;
    padding: 56px 0 32px;
}

.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }

.footer-brand { color: var(--paper); }

.footer-note { margin: 0; color: #8fa094; }
.footer-contact a { color: #bfe0c4; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
.footer-copy { margin: 18px 0 0; font-size: 13px; font-family: var(--font-mono); color: #6b7a6f; }

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

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .tally { grid-template-columns: 1fr; }
    .how-grid { grid-template-columns: 1fr; }
    .vendors-inner { grid-template-columns: 1fr; }
    .download-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-toggle { display: inline-block; }
    .primary-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 16px;
        display: none;
    }
    .primary-nav.open { display: flex; }
    .primary-nav a { padding: 12px 0; width: 100%; }
    .nav-cta { margin-top: 8px; text-align: center; }
    section { padding: 64px 0; }
    .receipt { width: 260px; }
}
