/* 1. Design tokens */
:root {
  --color-bg: #f7f5ef;
  --color-surface: #fffefa;
  --color-ink: #18241c;
  --color-muted: #677069;
  --color-line: #d9ddd5;
  --color-accent: #c8f64b;
  --color-accent-dark: #9acb14;
  --color-dark: #142019;
  --color-dark-soft: #1d2c22;
  --shadow-card: 0 24px 70px rgba(24, 36, 28, 0.13);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 7rem;
  --container: 1180px;
}

/* 2. Reset and base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.section { padding: var(--space-7) 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; background: var(--color-dark); color: white; padding: .7rem 1rem; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #78a900; outline-offset: 3px; }

/* 3. Shared typography and controls */
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; line-height: .98; }
h1 { font-size: clamp(3.25rem, 12vw, 6.9rem); margin-bottom: var(--space-4); }
h2 { font-size: clamp(2.45rem, 7vw, 4.6rem); margin-bottom: var(--space-4); }
h1 em, h2 em { font-weight: 400; color: #557020; }
h3 { line-height: 1.2; }
.eyebrow, .kicker { text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow { display: flex; align-items: center; gap: .6rem; }
.eyebrow span { width: 30px; height: 1px; background: var(--color-ink); }
.kicker { color: #597319; margin-bottom: var(--space-4); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; border: 1px solid transparent; border-radius: 999px; padding: .75rem 1.25rem; font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--color-accent); color: var(--color-ink); box-shadow: 0 8px 24px rgba(160, 204, 38, .2); }
.button-primary:hover { background: #d5ff62; }
.button-secondary { background: transparent; color: var(--color-ink); border-color: #bbc1b9; }
.button-dark { background: var(--color-dark); color: white; }
.play { font-size: .65rem; }
.section-intro { max-width: 760px; margin-bottom: var(--space-6); }
.section-intro > p:last-child { color: var(--color-muted); max-width: 580px; font-size: 1.05rem; }
.centered { text-align: center; margin-inline: auto; }
.centered > p:last-child { margin-inline: auto; }

/* 4. Header and hero */
.site-header { height: 72px; display: flex; align-items: center; border-bottom: 1px solid rgba(24, 36, 28, .12); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { display: block; width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
nav { display: none; align-items: center; gap: 1.75rem; font-size: .9rem; font-weight: 650; }
nav a:hover { opacity: .65; }
.nav-cta { border: 1px solid var(--color-ink); border-radius: 999px; padding: .55rem 1rem; }
.hero { overflow: hidden; padding: 4.5rem 0 5.5rem; }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-text { max-width: 620px; color: var(--color-muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-5); }
.hero-note { margin: 1rem 0 0; font-size: .78rem; color: var(--color-muted); }
.quote-stage { min-height: 490px; position: relative; display: grid; place-items: center; }
.quote-stage::before { content: ""; position: absolute; width: 420px; height: 420px; max-width: 90vw; border-radius: 50%; background: var(--color-accent); filter: blur(1px); }
.orbit { position: absolute; border: 1px solid rgba(24, 36, 28, .2); border-radius: 50%; }
.orbit-one { width: 510px; height: 320px; transform: rotate(25deg); }
.orbit-two { width: 520px; height: 270px; transform: rotate(-18deg); }
.quote-card { position: relative; z-index: 2; width: min(88%, 375px); background: var(--color-surface); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow-card); transform: rotate(-2.5deg); }
.quote-card-head, .quote-title, .quote-details > div, .line-items > div, .quote-total, .result-card > div { display: flex; justify-content: space-between; align-items: center; }
.mini-brand { display: flex; align-items: center; gap: .4rem; }
.mini-brand .brand-mark { width: 24px; height: 24px; font-size: .75rem; }
.status { padding: .25rem .55rem; background: #e9f9ba; color: #41580c; border-radius: 99px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.quote-title { margin: 1.2rem 0; padding-bottom: 1rem; border-bottom: 1px solid var(--color-line); }
.quote-title span, .quote-title strong { font-size: .68rem; }
.quote-details { margin: 0 0 1rem; }
.quote-details div { margin: .25rem 0; font-size: .72rem; }
.quote-details dt { color: var(--color-muted); }
.quote-details dd { margin: 0; font-weight: 650; }
.line-items { border-block: 1px solid var(--color-line); padding: .7rem 0; }
.line-items div { padding: .25rem 0; font-size: .7rem; }
.quote-total { padding: 1rem 0; }
.quote-total strong { font: 600 1.55rem Georgia, serif; }
.quote-card button { width: 100%; border: 0; border-radius: 6px; background: var(--color-dark); color: white; padding: .7rem; font-size: .72rem; }
.floating-pill { position: absolute; z-index: 3; background: var(--color-dark); color: white; padding: .65rem .9rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(24,36,28,.24); font-size: .73rem; font-weight: 700; }
.floating-pill span { color: var(--color-accent); }
.pill-top { top: 14%; right: 0; }
.pill-bottom { bottom: 13%; left: 0; }

/* 5. Problem and solution */
.problem { background: var(--color-surface); border-block: 1px solid var(--color-line); }
.message-stack { max-width: 790px; margin: auto; display: grid; gap: 1rem; }
.chat { display: flex; align-items: center; gap: .75rem; width: fit-content; max-width: 92%; }
.chat-right { justify-self: end; }
.chat p { margin: 0; border: 1px solid var(--color-line); background: white; padding: 1rem 1.2rem; border-radius: 18px 18px 18px 4px; box-shadow: 0 8px 20px rgba(24,36,28,.05); font-weight: 650; }
.chat-right p { background: var(--color-dark); color: white; border: 0; border-radius: 18px 18px 4px 18px; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #d8c6ff; font-size: .66rem; font-weight: 850; }
.avatar-green { background: var(--color-accent); }
.avatar-yellow { background: #ffd670; }
.problem-close { text-align: center; margin: 2.25rem 0 0; color: var(--color-muted); font-style: italic; font-family: Georgia, serif; }
.solution-grid { display: grid; gap: 1.5rem; }
.solution-copy { color: var(--color-muted); font-size: 1.07rem; max-width: 550px; }
.rule-flow { margin-top: var(--space-5); display: grid; gap: 1rem; align-items: center; }
.rule-card, .result-card { background: white; border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.4rem; box-shadow: 0 10px 40px rgba(24,36,28,.06); }
.rule-card { display: grid; gap: .55rem; }
.rule-card small, .result-card small { color: var(--color-muted); }
.rule-icon { color: #648213; font-size: 1.6rem; }
.flow-arrow { justify-self: center; font-size: 1.8rem; transform: rotate(90deg); }
.result-card { background: var(--color-dark); color: white; }
.result-card > strong { display: block; color: var(--color-accent); font: 500 3rem Georgia, serif; margin: 2rem 0 .25rem; }

/* 6. Process */
.how { background: #edf0e8; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c9cfc5; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.7rem 0; border-bottom: 1px solid #c9cfc5; }
.step-number { font: italic 1rem Georgia, serif; color: #6b746d; }
.step-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); margin-bottom: 1rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--color-muted); max-width: 470px; font-size: .92rem; }

/* 7. Benefits and businesses */
.benefits { background: var(--color-dark); }
.light-text { color: white; }
.light-text .kicker { color: var(--color-accent); }
.benefit-grid { display: grid; gap: .8rem; }
.benefit-card { min-height: 235px; display: flex; flex-direction: column; background: var(--color-dark-soft); border: 1px solid #334138; color: white; border-radius: var(--radius-md); padding: 1.5rem; }
.benefit-card.featured { background: var(--color-accent); color: var(--color-ink); }
.benefit-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; margin-bottom: auto; }
.benefit-card h3 { margin: 1.5rem 0 .5rem; }
.benefit-card p { margin: 0; color: #b9c1bb; font-size: .9rem; }
.benefit-card.featured p { color: #445043; }
.time-visual { margin-top: 1.5rem; display: flex; align-items: baseline; gap: .6rem; }
.time-visual strong { font: 500 2.5rem Georgia, serif; }
.time-visual span { font-size: .75rem; }
.business-grid { display: grid; gap: .8rem; }
.business-grid article { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; min-height: 200px; transition: transform .2s ease, border-color .2s ease; }
.business-grid article:hover { transform: translateY(-4px); border-color: #9baa77; }
.business-grid article > span { display: grid; place-items: center; width: 46px; height: 46px; background: #e7ebdf; border-radius: 50%; font-size: 1.4rem; }
.business-grid h3 { margin: 2.5rem 0 .5rem; }
.business-grid p { margin: 0; color: var(--color-muted); font-size: .9rem; }

/* 8. Beta and footer */
.beta { padding-top: 0; }
.beta-inner { display: grid; gap: 2.5rem; border-radius: var(--radius-lg); padding: 2rem; background: var(--color-accent); }
.beta-inner p { max-width: 560px; }
.beta-inner .kicker { color: #41540e; }
.beta-form label { display: block; margin-bottom: .6rem; font-size: .78rem; font-weight: 800; }
.input-row { display: grid; gap: .7rem; }
input { width: 100%; min-height: 54px; border: 1px solid rgba(24,36,28,.3); border-radius: 999px; padding: 0 1.2rem; background: rgba(255,255,255,.8); color: var(--color-ink); }
input::placeholder { color: #6e776f; }
.form-note { margin: .75rem 0 0; font-size: .76rem; }
.form-note.success { font-weight: 800; color: #2d4104; }
footer { background: var(--color-dark); color: white; padding: 4rem 0 1.5rem; }
.footer-main { display: grid; gap: 3rem; }
.footer-main > div > p { color: #aeb8b1; margin-top: 1rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-links div { display: grid; align-content: start; gap: .65rem; font-size: .86rem; }
.footer-links strong { color: var(--color-accent); margin-bottom: .5rem; }
.footer-links a { color: #b8c0ba; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid #334138; margin-top: 3rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; color: #869087; font-size: .75rem; }

/* 9. Dialog */
.demo-dialog { width: min(calc(100% - 2rem), 500px); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: 2.3rem; background: var(--color-bg); color: var(--color-ink); box-shadow: var(--shadow-card); }
.demo-dialog::backdrop { background: rgba(10,18,12,.7); backdrop-filter: blur(5px); }
.demo-dialog h2 { font-size: 2.4rem; }
.dialog-close { position: absolute; right: 1rem; top: 1rem; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }

/* 10. Responsive layouts */
@media (min-width: 700px) {
  .container { width: min(calc(100% - 4rem), var(--container)); }
  .section { padding: var(--space-8) 0; }
  nav { display: flex; }
  .hero { padding: 6.5rem 0 7.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 2rem; }
  .hero-text { font-size: 1.16rem; }
  .solution-grid { grid-template-columns: 1.15fr .85fr; align-items: end; }
  .rule-flow { grid-template-columns: 1fr 60px 1fr; }
  .flow-arrow { transform: none; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid #c9cfc5; }
  .steps li { grid-template-columns: 42px 1fr; padding: 2rem; border-right: 1px solid #c9cfc5; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-card.featured { grid-row: span 2; min-height: 480px; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .business-grid article:last-child { grid-column: span 2; }
  .beta-inner { padding: 4rem; grid-template-columns: 1fr 1fr; align-items: center; }
  .input-row { grid-template-columns: 1fr auto; background: rgba(255,255,255,.78); padding: .35rem; border: 1px solid rgba(24,36,28,.25); border-radius: 999px; }
  .input-row input { border: 0; background: transparent; min-width: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .benefit-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .business-grid { grid-template-columns: repeat(5, 1fr); }
  .business-grid article:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
