:root {
  --ink: #1b2420; --muted: #55605a; --cream: #fff8e8; --paper: #ffffff;
  --sun: #f5b82e; --sun-soft: #fdeec8; --green: #1f5c45; --green-soft: #e3efe8;
  --line: 2px solid var(--ink); --shadow: 4px 4px 0 var(--ink); --r: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.55; font-size: 16.5px; }
a { color: var(--green); }
h1, h2, h3, .brand { font-family: 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -0.02em; line-height: 1.08; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px Inter, sans-serif; text-decoration: none; color: var(--ink); background: var(--paper); border: var(--line); border-radius: 10px; padding: 11px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ink { background: var(--green); color: #fff; }
.btn-sun { background: var(--sun); }
.btn-ghost { background: var(--paper); }
.btn-sm { padding: 7px 13px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.btn-block { width: 100%; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--cream); border-bottom: var(--line); }
.top-row { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { font-size: 26px; font-weight: 800; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; background: var(--sun); border: var(--line); border-radius: 8px; font-size: 18px; box-shadow: 2px 2px 0 var(--ink); }
nav { display: flex; align-items: center; gap: 22px; }
nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Intro */
.intro { padding: 44px 20px 22px; }
.intro h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; max-width: 760px; }
.intro p { margin-top: 12px; font-size: 18px; color: var(--muted); max-width: 640px; }
.intro p b { color: var(--ink); }

/* Stage */
.stage { scroll-margin-top: 84px; position: relative; height: 560px; border: var(--line); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; background: #fff8e8; transition: background .4s; }
.stage.night { background: #1d2a3a; }
.canvas-wrap { position: absolute; inset: 0; }
.canvas-wrap canvas { display: block; width: 100% !important; height: 100% !important; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.map-label { position: absolute; left: 0; top: 0; pointer-events: auto; font: 700 13px Inter, sans-serif; background: var(--paper); color: var(--ink); border: var(--line); border-radius: 8px; padding: 5px 10px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; white-space: nowrap; opacity: 0; transition: opacity .3s, background .2s; }
.stage.ready .map-label { opacity: 1; }
.map-label::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: inherit; border-right: var(--line); border-bottom: var(--line); transform: translateX(-50%) rotate(45deg); }
.map-label:hover, .map-label.active { background: var(--sun); }
.stage-ui { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.chip-btn { font: 600 14px Inter, sans-serif; background: var(--paper); border: var(--line); border-radius: 999px; padding: 7px 14px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: #2c3e56; color: #fff; }
.flow-note { position: absolute; right: 14px; bottom: 14px; max-width: 300px; font-size: 13px; background: var(--paper); border: var(--line); border-radius: 10px; padding: 8px 12px; box-shadow: 3px 3px 0 var(--ink); }
.hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font: 600 13px Inter, sans-serif; background: var(--sun); border: var(--line); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink); pointer-events: none; animation: bob 2.4s ease-in-out infinite; }
.stage.has-card .hint { display: none; }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
.stage.no-3d { height: auto; min-height: 0; }
.stage.no-3d .canvas-wrap, .stage.no-3d .labels, .stage.no-3d .stage-ui, .stage.no-3d .flow-note, .stage.no-3d .hint { display: none; }
.stage.no-3d .card { position: relative; inset: auto; width: auto; max-height: none; margin: 0; border: 0; box-shadow: none; }

/* Card */
.card { position: absolute; left: 14px; top: 14px; width: 380px; max-height: calc(100% - 28px); overflow: auto; background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 20px 18px; animation: pop .25s ease-out; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.card-close { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border: var(--line); border-radius: 8px; background: var(--paper); font-size: 18px; line-height: 1; cursor: pointer; }
.card-kicker { font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 10px; }
.card h3 { font-size: 24px; margin: 10px 0 8px; padding-right: 26px; }
.card-lead { font-size: 15px; color: var(--muted); }
.seg { display: inline-flex; border: var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: 600 13px Inter, sans-serif; background: var(--paper); border: 0; padding: 7px 12px; cursor: pointer; }
.seg button + button { border-left: var(--line); }
.seg button.on { background: var(--sun); }
.stats { margin: 14px 0 10px; border: var(--line); border-radius: 10px; overflow: hidden; }
.stats div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 14px; }
.stats div + div { border-top: 1px solid #d9d4c6; }
.stats dt { color: var(--muted); }
.stats dd { font-weight: 600; text-align: right; }
.powers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.powers span { font-size: 12.5px; font-weight: 600; background: var(--green-soft); border: 1.5px solid var(--green); color: var(--green); border-radius: 999px; padding: 3px 10px; }
.card-note { font-size: 13px; background: var(--sun-soft); border-radius: 8px; padding: 8px 10px; }
.card-illus { font-size: 12px; color: var(--muted); margin: 10px 0 12px; }
.card-cta { width: 100%; }

.home-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.home-tab { text-align: left; font-family: Inter, sans-serif; background: var(--paper); border: var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.home-tab b { display: block; font-size: 14.5px; }
.home-tab small { color: var(--muted); font-size: 12.5px; }
.home-tab.active { background: var(--sun); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border: var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.trust div { padding: 16px 18px; }
.trust div + div { border-left: var(--line); }
.trust b { display: block; font-size: 15px; }
.trust span { font-size: 13.5px; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--green-soft); border-top: var(--line); border-bottom: var(--line); }
.section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 28px; }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); padding: 28px; display: flex; flex-direction: column; }
.svc-tag { align-self: flex-start; font: 700 12px Inter, sans-serif; text-transform: uppercase; letter-spacing: .06em; background: var(--sun); border: var(--line); border-radius: 999px; padding: 3px 10px; }
.svc-tag-green { background: var(--green); color: #fff; }
.svc h3 { font-size: 28px; margin: 14px 0 6px; }
.svc p { color: var(--muted); }
.svc ul { list-style: none; margin: 16px 0 22px; flex: 1; }
.svc li { padding: 7px 0 7px 28px; position: relative; border-top: 1px dashed #cfc9b8; font-size: 15px; }
.svc li::before { content: '✓'; position: absolute; left: 4px; font-weight: 800; color: var(--green); }
.svc .btn { align-self: flex-start; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { counter-increment: s; background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border: var(--line); border-radius: 50%; background: var(--sun); font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; font-size: 16px; margin-bottom: 4px; }
.steps span { font-size: 14px; color: var(--muted); }

.faq details { background: var(--paper); border: var(--line); border-radius: 10px; margin-bottom: 12px; padding: 14px 18px; max-width: 820px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::after { content: '+'; float: right; font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 10px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact p { color: var(--muted); }
.contact-ways { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 22px; }
.form { background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: 6px 6px 0 var(--ink); padding: 26px; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select { display: block; width: 100%; margin-top: 6px; font: 15px Inter, sans-serif; padding: 10px 12px; border: var(--line); border-radius: 8px; background: #fffdf7; }
.form input:focus, .form select:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.privacy { font-size: 12.5px; margin: 4px 0 14px; }

.foot { border-top: var(--line); padding: 26px 0; font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .services, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(3) { border-left: 0; }
  .trust div:nth-child(n+3) { border-top: var(--line); }
}
@media (max-width: 680px) {
  nav a:not(.btn) { display: none; }
  .intro { padding-top: 28px; }
  .stage { height: auto; overflow: visible; box-shadow: 4px 4px 0 var(--ink); }
  .canvas-wrap { position: relative; height: 380px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
  .labels { height: 380px; bottom: auto; overflow: hidden; }
  .flow-note { position: static; max-width: none; margin: 0; border: 0; border-top: var(--line); border-radius: 0; box-shadow: none; }
  .hint { bottom: auto; top: 336px; }
  .card { position: relative; inset: auto; width: auto; max-height: none; margin: 0; border: 0; border-top: var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: none; }
  .home-tabs { grid-template-columns: 1fr 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust div + div { border-left: 0; border-top: var(--line); }
}
@media (prefers-reduced-motion: reduce) { .hint { animation: none; } html { scroll-behavior: auto; } }
