:root {
  --bg: #f2efe8;
  --bg-raised: #ffffff;
  --bg-sunk: #eae5d9;
  --ink: #1c1a15;
  --muted: #746b58;
  --line: #ddd6c4;
  --accent: #e0522b;
  --accent-ink: #ffffff;
  --accent-soft: #fbe2d8;
  --good: #4c6b53;
  --shadow: rgba(28, 26, 21, 0.14);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --bg-raised: #201c16;
    --bg-sunk: #0f0d0a;
    --ink: #efe9dc;
    --muted: #a89d86;
    --line: #362f22;
    --accent: #ff8a5c;
    --accent-ink: #1c1a15;
    --accent-soft: #3a2317;
    --good: #8bad9a;
    --shadow: rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.eyebrow, .section-eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
}

/* header */
.site-header { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.logo-badge { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin-right: -5px; position: relative; z-index: 1; }
.logo-mark { width: 30px; height: auto; transform: rotate(-45deg); display: block; overflow: visible; }
.wordmark-text { position: relative; z-index: 0; }
.header-cta {
  text-decoration: none; font-size: 0.85rem; font-weight: 700; color: var(--ink);
  border: 1px solid var(--line); padding: 0.5rem 1rem; border-radius: 999px;
}
.header-cta:hover { border-color: var(--accent); color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; border-radius: 999px;
  padding: 0.85rem 1.6rem; font-size: 0.95rem; border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: default; transform: none; box-shadow: none; }

/* hero */
.hero { padding: 4.5rem 0 5rem; }
.hero-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.08; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 0 1.1rem; text-wrap: balance;
}
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin: 0 0 1.7rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-trust { font-size: 0.82rem; color: var(--muted); margin: 0; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; padding: 1.5rem 0; }
.hero-collage {
  position: relative; width: clamp(230px, 70vw, 350px); min-height: 270px; margin: 0 auto;
}
.hero-sticker {
  width: 50%; aspect-ratio: 1 / 1; border-radius: 50%; background: #fbfaf6;
  border: clamp(5px, 1.4vw, 7px) solid var(--accent); box-shadow: 0 16px 32px var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.35rem;
  position: absolute; left: 0; top: 6%; z-index: 1;
}
.hero-sticker-brand { font-family: ui-monospace, monospace; font-size: 0.5rem; letter-spacing: 0.1em; color: #b5ac99; text-transform: uppercase; position: absolute; top: 12%; }
.hero-qr-wrap { width: 40%; height: 40%; background: #fff; border-radius: 4px; }
.hero-qr-wrap .qr-svg { width: 100%; height: 100%; fill: #171512; shape-rendering: crispEdges; }
.hero-sticker-cta { font-size: clamp(0.5rem, 1.6vw, 0.62rem); font-weight: 800; color: #171512; text-align: center; padding: 0 0.6rem; }

.hero-phone {
  width: 66%; border-radius: 26px; background: #17150f; padding: 0.6rem;
  box-shadow: 0 20px 44px var(--shadow); position: absolute; right: 0; top: 0; z-index: 2;
}
.hero-phone-notch { width: 46px; height: 6px; background: #2c291f; border-radius: 4px; margin: 0.3rem auto 0.6rem; }
.hero-phone-screen { background: #0f2a20; border-radius: 18px; padding: 1rem 0.9rem 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 210px; }
.chat-bubble { font-size: 0.76rem; padding: 0.55rem 0.75rem; border-radius: 12px; max-width: 85%; line-height: 1.4; }
.chat-bubble.in { background: #1c3e30; color: #e7f3ec; align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-bubble.out { background: #d8f0c8; color: #17331f; align-self: flex-end; border-bottom-right-radius: 3px; }
.chat-caller { margin-top: auto; font-family: ui-monospace, monospace; font-size: 0.62rem; color: #9fd6b8; display: flex; align-items: center; gap: 0.4rem; }
.chat-caller-dot { width: 6px; height: 6px; border-radius: 50%; background: #6fe89a; box-shadow: 0 0 0 3px rgba(111,232,154,0.2); }

/* how it works */
.how { padding: 4rem 0; background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 2.4rem; text-wrap: balance; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-num { font-family: ui-monospace, monospace; color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.6rem; }
.step h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* products */
.products { padding: 4.5rem 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.product-card {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.8rem; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.product-visual { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.product-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.product-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.mini-sticker {
  width: 118px; height: 118px; border-radius: 50%; background: #fbfaf6; border: 5px solid var(--accent);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  box-shadow: 0 8px 18px var(--shadow);
}
.mini-qr-wrap { width: 46px; height: 46px; background: #fff; border-radius: 3px; }
.mini-qr-wrap .qr-svg { width: 100%; height: 100%; fill: #171512; shape-rendering: crispEdges; }
.mini-cta { font-size: 0.5rem; font-weight: 800; color: #171512; }
.mini-cta.dark { color: rgba(0,0,0,0.72); }

.mini-tag {
  width: 138px; height: 84px; border-radius: 12px; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem;
  box-shadow: 0 8px 18px var(--shadow);
}
.mini-tag.amber { background: linear-gradient(160deg, #eab04a, #dd9330); }
.mini-tag.graphite { background: linear-gradient(160deg, #3a3733, #232120); }
.mini-tag .mini-qr-wrap { width: 40px; height: 40px; }
.mini-tag .mini-cta { color: rgba(255,255,255,0.9); }
.mini-tag.amber .mini-cta { color: rgba(0,0,0,0.72); }
.mini-badge {
  position: absolute; top: -8px; right: -8px; background: var(--accent); color: #fff;
  font-family: ui-monospace, monospace; font-size: 0.48rem; font-weight: 700;
  padding: 0.2rem 0.4rem; border-radius: 999px; box-shadow: 0 2px 5px var(--shadow);
}

/* join */
.join { padding: 4.5rem 0 5.5rem; background: var(--bg-sunk); border-top: 1px solid var(--line); }
.join-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.join-copy p { color: var(--muted); max-width: 40ch; }

.join-form {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; }
.field .req { color: var(--accent); }
.field .optional { color: var(--muted); font-weight: 400; }
.field input {
  font: inherit; padding: 0.7rem 0.85rem; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.checkbox-field { border: none; padding: 0; margin: 0; }
.checkbox-field legend { padding: 0; margin-bottom: 0.5rem; }
.checkbox { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.88rem; margin-bottom: 0.4rem; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }

.form-note { font-size: 0.78rem; color: var(--muted); margin: 0; text-align: center; }
.form-error { font-size: 0.85rem; color: #b23a26; margin: 0; text-align: center; }

.join-success {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 1.8rem; text-align: center;
}
.success-mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--good); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.2rem;
}
.join-success h3 { margin: 0 0 0.4rem; }
.join-success p { margin: 0; color: var(--muted); }

/* footer */
.site-footer { padding: 2rem 0; color: var(--muted); font-size: 0.82rem; }
.site-footer .wrap { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-dot { opacity: 0.6; }

@media (max-width: 860px) {
  .hero-row, .join-row { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 1rem; }
  .steps, .product-grid { grid-template-columns: 1fr; }
}
