/* Grocerly marketing site. Tokens mirror apps/web/src/styles.css so the site and the app read as one brand. */
:root {
  --brand: #1f9d55;
  --brand-strong: #167a41;
  --brand-contrast: #ffffff;
  --brand-soft: #e3f5ea;
  --bg: #fbfcfb;
  --surface: #ffffff;
  --text: #14211a;
  --muted: #5a6a61;
  --border: #dfe7e2;
  --shadow: 0 1px 2px rgb(20 33 26 / 6%), 0 12px 32px -12px rgb(20 33 26 / 18%);
  --radius: 18px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3ecf7a;
    --brand-strong: #6fe0a0;
    --brand-contrast: #06210f;
    --brand-soft: #14301f;
    --bg: #0d1511;
    --surface: #131d17;
    --text: #e8f1ec;
    --muted: #9bb0a5;
    --border: #243229;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-contrast); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.center { text-align: center; }
.kicker { color: var(--brand-strong); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 40rem; }
.center .lead { margin-inline: auto; }
.head { margin-bottom: 40px; }
.head .lead { margin-top: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 8px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: var(--brand-soft); }
.nav-links a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 800px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav { flex-wrap: wrap; padding-block: 10px; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding-bottom: 10px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-contrast); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 12px; }
.nav-links .btn-primary { color: var(--brand-contrast); margin-inline-start: 6px; }
.nav-links .btn-primary:hover { background: var(--brand-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); overflow: hidden; background: radial-gradient(60rem 30rem at 85% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-block: 22px 30px; }
.hero .note { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* phone mock */
.phone { width: min(310px, 100%); margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 36px; padding: 14px; box-shadow: var(--shadow); transform: rotate(2deg); }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 14px; font-weight: 800; }
.phone-bar small { font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); padding: 3px 10px; border-radius: 99px; }
.aisle { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; font-weight: 500; }
.row + .row { border-top: 1px solid var(--border); }
.tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border); flex: none; }
.row.done { color: var(--muted); text-decoration: line-through; }
.row.done .tick { background: var(--brand); border-color: var(--brand); position: relative; }
.row.done .tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--brand-contrast); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.row .qty { margin-inline-start: auto; color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.phone-total { margin: 10px 4px 4px; padding: 12px 14px; background: var(--brand-soft); border-radius: 14px; display: flex; justify-content: space-between; font-weight: 700; color: var(--brand-strong); }

/* cards + grids */
.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.section.alt .card { background: var(--bg); }
.card p { color: var(--muted); margin-top: 8px; }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-strong); margin-inline-start: 8px; vertical-align: middle; }

/* feature rows (features page) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 36px; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text p { color: var(--muted); margin-top: 14px; }
.feature-text ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature-text li { padding-inline-start: 30px; position: relative; }
.feature-text li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); }
.feature-text li::after { content: ""; position: absolute; inset-inline-start: 6px; top: 8px; width: 5px; height: 9px; border: solid var(--brand-contrast); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.panel { background: var(--brand-soft); border: 1px solid var(--border); border-radius: 26px; padding: 28px; min-height: 260px; display: grid; align-content: center; gap: 12px; }
.chip { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.chip span:last-child { color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.chip.muted span:last-child { color: var(--muted); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature:nth-child(even) .feature-text { order: 0; } }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast); font-weight: 800; display: grid; place-items: center; }
.step p { color: var(--muted); margin-top: 6px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats strong { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stats span { color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta { background: var(--brand); color: var(--brand-contrast); border-radius: 28px; padding: clamp(36px, 6vw, 64px); text-align: center; }
.cta p { margin: 14px auto 28px; max-width: 34rem; opacity: .92; font-size: 1.1rem; }
.cta .btn-primary { background: var(--brand-contrast); color: var(--brand-strong); }
.cta .btn-ghost { color: var(--brand-contrast); border-color: color-mix(in srgb, var(--brand-contrast) 45%, transparent); }
.cta .btn-ghost:hover { background: rgb(255 255 255 / 12%); }
.cta .actions { justify-content: center; }

/* pricing */
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 4px; margin-top: 26px; }
.toggle button { border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; padding: 9px 20px; border-radius: 99px; cursor: pointer; min-height: 44px; }
.toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-contrast); }
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -14px; inset-inline-start: 28px; background: var(--brand); color: var(--brand-contrast); font-size: .78rem; font-weight: 700; padding: 4px 14px; border-radius: 99px; }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; margin-top: 14px; line-height: 1; }
.price-note { color: var(--muted); min-height: 1.6em; margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; flex: 1; }
.plan li { padding-inline-start: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 800; }
.plan .btn { width: 100%; }

table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--brand-soft); font-size: .95rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare tbody th { font-weight: 500; }
.compare tr.grp th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.yes { color: var(--brand); font-weight: 800; }
.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { max-width: 720px; margin-inline: auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 18px; }

/* forms / contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 18px; }
.form-note { color: var(--muted); font-size: .88rem; margin-top: 12px; }
.side-item + .side-item { margin-top: 22px; }
.side-item p { color: var(--muted); margin-top: 4px; }

/* about */
.prose { max-width: 42rem; margin-inline: auto; }
.prose p { color: var(--muted); font-size: 1.1rem; margin-top: 18px; }
.prose h2 { margin-top: 48px; }
.page-hero { padding-block: clamp(48px, 8vw, 88px) clamp(24px, 4vw, 40px); background: radial-gradient(50rem 22rem at 50% -20%, var(--brand-soft), transparent 70%); }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 48px 32px; background: var(--surface); }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { margin: 0 0 12px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--brand-strong); text-decoration: underline; }
.foot p { color: var(--muted); margin-top: 12px; max-width: 22rem; }
.legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .btn:hover { transform: none; } }
