@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #f0ede4;
  --ink: #15171b;
  --muted: #5d6470;
  --line: #e3dfd3;
  --accent: #0b8f50;
  --accent-ink: #ffffff;
  --accent-soft: #dcf3e6;
  --warn: #b5470b;
  --warn-soft: #fbe8dc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 8px 24px rgba(20, 20, 20, .06);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111312; --surface: #191c1b; --surface-2: #202423; --ink: #eef1ee; --muted: #9aa39f; --line: #2c312f;
    --accent: #3ccf85; --accent-ink: #07130c; --accent-soft: #163225; --warn: #ff9a5c; --warn-soft: #3a2316;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111312; --surface: #191c1b; --surface-2: #202423; --ink: #eef1ee; --muted: #9aa39f; --line: #2c312f;
  --accent: #3ccf85; --accent-ink: #07130c; --accent-soft: #163225; --warn: #ff9a5c; --warn-soft: #3a2316;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .9em; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.35rem; text-decoration: none; letter-spacing: -.03em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 16px; }
.logo span.dot { color: var(--accent); }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links .hide-sm { display: none; }
@media (min-width: 760px) { .nav-links .hide-sm { display: inline-block; } }

/* buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 12px 18px; font: 600 .95rem/1 var(--body); cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 8px 12px; font-size: .85rem; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: default; }
.nav .btn { padding: 9px 14px; }

/* hero */
.hero { padding: 56px 0 40px; }
@media (min-width: 900px) { .hero { padding: 88px 0 64px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36em; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hl { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }

/* chat mock */
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: 18px; max-width: 440px; width: 100%; margin: 0 auto; }
.phone-top { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.phone-top .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bubble { padding: 10px 14px; border-radius: 16px; margin: 8px 0; max-width: 88%; font-size: .95rem; opacity: 0; transform: translateY(6px); animation: pop .4s ease forwards; }
.bubble.user { background: var(--ink); color: var(--bg); margin-left: auto; border-bottom-right-radius: 6px; }
.bubble.bot { background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble .tag { font-size: .72rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 2px; }
.mini-deal { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 6px; background: var(--surface); }
.mini-deal .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.strike { text-decoration: line-through; color: var(--muted); font-size: .9rem; }
.price-big { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* sections */
section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: .35em; }
.num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-family: var(--display); margin-bottom: 14px; }
.band { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 40px 24px; }
.band .muted { color: color-mix(in srgb, var(--bg) 65%, var(--ink)); }
@media (min-width: 720px) { .band { padding: 56px; } }
.stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 28px; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .9rem; }

/* products */
.items { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.item .ph { aspect-ratio: 16 / 10; background: var(--surface-2) center / cover no-repeat; }
.item .bd { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item .nm { font-weight: 650; line-height: 1.3; }
.item .shop { font-size: .82rem; color: var(--muted); }
.item .pr { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.item .pr b { font-family: var(--display); font-size: 1.25rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .78rem; }
.pill.gray { background: var(--surface-2); color: var(--muted); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; gap: 12px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.tabs { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { flex: 1; min-width: 120px; text-align: center; padding: 10px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); border: 0; background: transparent; font-family: inherit; }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .92rem; margin: 12px 0; }
.notice.err { background: var(--warn-soft); color: var(--warn); }
.range-viz { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); margin: 14px 0 6px; }
.range-viz i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 99px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td input { padding: 6px 8px; border-radius: 8px; width: 74px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 40px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
footer a { text-decoration: none; margin-right: 14px; }
footer a:hover { color: var(--ink); }

.center { text-align: center; }
.hidden { display: none !important; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.copy { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; }
.copy code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: .85rem; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi b { display: block; font-family: var(--display); font-size: 1.7rem; }
.kpi span { color: var(--muted); font-size: .85rem; }
