/* ════ ORION 269 / WHATSMYBIZ DESIGN SYSTEM — light & dark ════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: light;
  /* ORION269 brand palette — extracted from the doodle brand image */
  --bg: #f6f3ee;
  --bg-soft: #efece7;
  --surface: #fbf9f5;
  --surface-dim: #e9e6de;
  --ink: #10161c;
  --ink-soft: #45494e;
  --muted: #7c766b;
  --line: #ddd9cd;
  --green: #657b42;
  --green-deep: #546539;
  --green-soft: #e6ecdc;
  --gold: #9a7a4e;
  --gold-dim: #7d6240;
  --rust: #b4453d;
  --peach: #f4b794;
  --neon: #fc5402;
  --neon-deep: #e04802;
  --bubble-me: #546539;
  --bubble-me-text: #f7f4ef;
  --radius: 4px;
  --shadow: 0 30px 60px -25px rgba(16, 22, 28, 0.35);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  /* hand-drawn doodle texture (ink + sage strokes on paper) */
  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M6 12 q 6 -5 12 0 q 6 5 12 0' fill='none' stroke='%23657b42' stroke-opacity='0.16' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M44 30 q 5 -4 10 0 q 5 4 10 0' fill='none' stroke='%2310161c' stroke-opacity='0.10' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M30 62 q 4 -3 8 0' fill='none' stroke='%239a7a4e' stroke-opacity='0.16' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='52' r='1.6' fill='%239a7a4e' fill-opacity='0.22'/%3E%3Ccircle cx='56' cy='16' r='1.3' fill='%23657b42' fill-opacity='0.18'/%3E%3Ccircle cx='10' cy='38' r='1.1' fill='%2310161c' fill-opacity='0.14'/%3E%3Ccircle cx='58' cy='58' r='1.5' fill='%23fc5402' fill-opacity='0.5'/%3E%3C/svg%3E");
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10161c;
  --bg-soft: #151b21;
  --surface: #1a2128;
  --surface-dim: #232c33;
  --ink: #f4f2ec;
  --ink-soft: #c6c3b9;
  --muted: #8d8f83;
  --line: #2a333a;
  --green: #8fa871;
  --green-deep: #657b42;
  --green-soft: rgba(143, 168, 113, 0.16);
  --gold: #b78f5e;
  --gold-dim: #d0a878;
  --peach: #f4b794;
  --neon: #fc5402;
  --neon-deep: #ff6a1f;
  --bubble-me: #546539;
  --bubble-me-text: #f7f4ef;
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
  /* pale doodle dots on ink (mirrors the dark band of the brand image) */
  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Ccircle cx='12' cy='14' r='1.5' fill='%23f4f2ec' fill-opacity='0.10'/%3E%3Ccircle cx='50' cy='10' r='1.2' fill='%23f4f2ec' fill-opacity='0.08'/%3E%3Cpath d='M8 40 q 6 -5 12 0 q 6 5 12 0' fill='none' stroke='%23f4f2ec' stroke-opacity='0.07' stroke-width='1.3' stroke-linecap='round'/%3E%3Ccircle cx='60' cy='44' r='1.4' fill='%23b5cbb6' fill-opacity='0.12'/%3E%3Ccircle cx='30' cy='60' r='1.1' fill='%23f4f2ec' fill-opacity='0.09'/%3E%3Cpath d='M44 28 q 4 -3 9 0' fill='none' stroke='%23b5cbb6' stroke-opacity='0.10' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='62' cy='20' r='1.6' fill='%23fc5402' fill-opacity='0.55'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image: var(--doodle);
  background-size: 72px 72px;
  animation: wmb-drift 90s linear infinite;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}
/* the doodle tile slowly drifts — the 'alive' background */
@keyframes wmb-drift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; }
a { color: inherit; }
.mono { font-family: var(--font-mono); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* eyebrow */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-deep); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--green-deep); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.gold::before { background: var(--gold); }
.eyebrow.green { color: var(--green-deep); }
.eyebrow.green::before { background: var(--green-deep); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px;
  border-radius: 3px; font-weight: 600; font-size: 14.5px; text-decoration: none;
  border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--neon); color: #10161c; box-shadow: 0 2px 0 var(--neon-deep); } /* the Golden Arches */
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }

/* nav */
header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1180px; margin: 0 auto;
}
.logo { font-family: var(--font-head); font-weight: 600; font-size: 19px; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.navlinks { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; }
.navlinks a { text-decoration: none; opacity: 0.8; }
.navlinks a:hover, .navlinks a.active { opacity: 1; }
.navlinks a.active { color: var(--green-deep); }
@media (max-width: 760px) { .navlinks { display: none; } }

/* theme toggle — text only, no glyphs */
.theme-toggle {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 100px; cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green-deep); }

/* hero */
.hero { padding: 70px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 40px 0 30px; } }
.hero h1 { font-size: 44px; letter-spacing: -0.01em; margin-bottom: 20px; }
@media (max-width: 600px) { .hero h1 { font-size: 32px; } }
.hero p.lede { font-size: 17px; color: var(--ink-soft); max-width: 480px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.trust-strip span { display: flex; align-items: center; gap: 6px; }
.trust-strip span::before {
  content: ''; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg) translateY(-1px); display: inline-block;
}

/* phone mockup — WhatsApp feel */
.phone { background: var(--ink); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); max-width: 340px; margin: 0 auto; }
.phone-inner { background: #0b0d0f; border-radius: 14px; overflow: hidden; }
.phone-head { background: var(--green-deep); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.phone-head .av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink);
}
.phone-head .name { font-size: 14px; font-weight: 600; }
.phone-head .status { font-size: 11px; opacity: 0.85; }
.phone-body { background: #efece7; padding: 16px 12px; min-height: 280px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 9px; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(6px); animation: pop 0.4s ease forwards; }
.bubble.ai { background: var(--green-soft); color: var(--ink); align-self: flex-start; border-top-left-radius: 2px; }
.bubble.me { background: var(--bubble-me); color: var(--bubble-me-text); align-self: flex-end; border-top-right-radius: 2px; }
.bubble .tick { font-size: 10px; color: var(--muted); display: block; text-align: right; margin-top: 3px; }
@keyframes pop { to { opacity: 1; transform: translateY(0); } }
.typing { display: flex; gap: 4px; padding: 9px 12px; background: var(--green-soft); border-radius: 9px; align-self: flex-start; width: fit-content; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #5a6b5a; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; } .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* sections */
section { padding: 80px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--ink-soft); font-size: 15.5px; margin-top: 10px; }

/* benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .benefits-grid { grid-template-columns: 1fr; } }
.b-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.b-card .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 10px; }
.b-card h3 { font-size: 19px; margin-bottom: 10px; }
.b-card ul { list-style: none; margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); }
.b-card li { padding: 4px 0; padding-left: 16px; position: relative; }
.b-card li::before { content: '—'; position: absolute; left: 0; color: var(--green); }

/* process */
.process { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 50px 40px; }
.process .section-head p { color: var(--muted); }
.process .section-head h2 { color: var(--bg); }
.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .proc-grid { grid-template-columns: 1fr; gap: 24px; } }
.proc-step { padding: 0 24px; position: relative; }
.proc-step:not(:last-child)::after { content: ''; position: absolute; top: 20px; right: -12px; width: 24px; height: 1px; background: var(--line); }
@media (max-width: 860px) { .proc-step::after { display: none; } }
.proc-num { font-family: var(--font-head); font-size: 34px; color: var(--gold); margin-bottom: 12px; }
.proc-step h3 { font-size: 18px; margin-bottom: 8px; }
.proc-step p { font-size: 13.5px; color: var(--muted); }

/* estimator */
.price-shell { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (max-width: 900px) { .price-shell { grid-template-columns: 1fr; } }
.price-left { padding: 36px; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .price-left { border-right: none; border-bottom: 1px solid var(--line); } }
.price-left h3 { font-size: 22px; margin-bottom: 8px; }
.price-left p.sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 26px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12.5px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 20px; cursor: pointer; background: var(--bg); transition: all 0.15s ease; }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.slider-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.slider-head .val { font-family: var(--font-mono); color: var(--green-deep); font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--green); }
.price-right { background: var(--ink); color: var(--bg); padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.price-out { font-family: var(--font-head); font-size: 46px; margin: 6px 0 4px; }
.price-out small { font-size: 16px; color: var(--muted); font-weight: 400; }
.price-range { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.price-note { font-size: 12.5px; color: var(--muted); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.price-cta { margin-top: 20px; }

/* rate card */
.table-wrap { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; margin-bottom: 50px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 820px; }
thead { background: var(--surface-dim); border-bottom: 1px solid var(--line); }
th { text-align: left; padding: 16px; font-weight: 700; font-size: 0.7rem; text-transform: uppercase; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.06em; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: var(--surface-dim); }
.item-name { font-weight: 600; }
.item-desc { color: var(--ink-soft); font-size: 0.8rem; max-width: 220px; }
.item-included { font-size: 0.75rem; color: var(--muted); max-width: 200px; }
.item-price { font-weight: 700; font-size: 1.05rem; color: var(--green-deep); white-space: nowrap; }
.item-tag { display: inline-block; font-size: 0.6rem; font-weight: 600; padding: 2px 10px; border-radius: 100px; background: var(--surface-dim); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 768px) {
  .table-scroll { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  table { min-width: 0; }
  thead { display: none; }
  tr { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px 0; margin-bottom: 12px; }
  tr:hover td { background: transparent; }
  td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  td:last-child { border-bottom: none; }
  td::before { content: attr(data-label); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 0.02em; flex-shrink: 0; }
  td:first-child { display: none; }
  td.item-name { font-size: 1rem; }
  td.item-price { font-size: 1.1rem; }
  td.item-desc, td.item-included { flex-direction: column; gap: 2px; font-size: 0.85rem; }
}

/* tier cards */
.tier-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 700px) { .tier-cards { grid-template-columns: 1fr; } }
.tier-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.tier-card .name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 6px; }
.tier-card .amt { font-family: var(--font-head); font-size: 24px; margin-bottom: 10px; }
.tier-card p { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.pay-note { font-size: 12px; color: var(--muted); margin-top: 22px; text-align: center; }

/* case study */
.case { display: grid; grid-template-columns: 1fr 0.8fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
.case h2 { font-size: 28px; margin-bottom: 14px; }
.case p { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }

/* faq */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 15.5px; }
.faq-q .plus { font-family: var(--font-mono); color: var(--green-deep); transition: transform 0.2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 14px; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 200px; padding-top: 12px; }

/* trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-card h4 { font-size: 15px; margin-bottom: 6px; }
.trust-card p { font-size: 13px; color: var(--ink-soft); }
.trust-card .check { color: var(--green); font-weight: 700; margin-bottom: 8px; display: block; }

/* final cta */
.finalcta { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: 56px 40px; text-align: center; }
.finalcta h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.finalcta p { color: #d7ecdf; margin-bottom: 26px; }
.finalcta .btn-ghost { border-color: #fff; color: #fff; }

/* form (onboard) */
.form-box { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-group { margin-bottom: 20px; }
label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--green-deep); margin-bottom: 6px; letter-spacing: 0.04em; }
input[type="text"], input[type="tel"], textarea {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit;
  font-size: 14px; background: var(--bg); color: var(--ink);
}
textarea { height: 100px; resize: vertical; }
input:focus, textarea:focus { outline: 1.5px solid var(--green); background: var(--surface); }
#output { display: none; margin-top: 28px; padding: 16px; background: var(--ink); color: var(--green); border-radius: 4px; overflow-x: auto; font-family: var(--font-mono); font-size: 12px; }
.spinner {
  display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
footer { background: var(--ink); color: var(--muted); padding: 56px 0 28px; font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer h5 { color: var(--bg); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
footer .flogo { font-family: var(--font-head); color: var(--bg); font-size: 18px; margin-bottom: 10px; }
footer ul { list-style: none; }
footer li { padding: 4px 0; }
footer a { text-decoration: none; opacity: 0.85; }
footer a:hover { opacity: 1; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11.5px; }

/* footer legal links */
.foot-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: 0.85; }
.foot-legal a:hover { opacity: 1; }
