:root {
  --paper: #EEF0F7;
  --paper-2: #E3E6F2;
  --card: #FFFFFF;
  --ink: #1B1A3A;
  --ink-2: #4A4968;
  --muted: #6B6A86;
  --line: #D3D6E6;
  --gold: #F2B705;
  --gold-soft: #FFF3C7;
  --iris: #4B3FE0;
  --iris-dark: #3A2FC4;
  --green: #1F8A5B;
  --green-soft: #DDF3E8;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  background: var(--iris); color: #fff;
  font: 600 1rem/1 var(--body);
  border: 2px solid var(--iris); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .15s;
}
.btn:hover { background: var(--iris-dark); border-color: var(--iris-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-small { padding: 10px 16px; font-size: .9375rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #FFC933; border-color: #FFC933; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(238,240,247,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { white-space: nowrap; display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem var(--display); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; padding: 0; place-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
section[id] { scroll-margin-top: 80px; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.stores { display: flex; gap: 8px; margin-bottom: 24px; }
.store-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; font-weight: 500; }
.store-chip svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; max-width: 15ch; }
.lede { margin-top: 24px; font-size: 1.1875rem; color: var(--ink-2); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: .9375rem; color: var(--muted); }

/* Inbox mock */
.inbox {
  background: var(--ink);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(27,26,58,.55);
}
.inbox-head { display: flex; justify-content: space-between; align-items: center; min-height: 46px; color: #fff; padding: 2px 6px 16px; }
.inbox-title { font: 700 1.05rem var(--display); }
.replay { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font: 600 .8125rem var(--body); cursor: pointer; }
.replay:hover { background: rgba(255,255,255,.2); }
.review { background: var(--card); border-radius: 18px; padding: 18px 20px; }
.review + .review { margin-top: 12px; }
.review-dim { opacity: .62; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.star-off { color: var(--line); }
.review-meta { font-size: .8125rem; color: var(--muted); }
.review-body { font-size: .9875rem; }
.reply { margin-top: 14px; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--iris); border-radius: 4px 12px 12px 4px; }
.reply-from { font-size: .8125rem; font-weight: 600; color: var(--iris); margin-bottom: 4px; }
.reply-text { font-size: .9375rem; min-height: 4.8em; color: var(--ink); }
.reply-text.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--iris); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.status { margin-top: 12px; font-size: .8125rem; font-weight: 600; display: inline-block; padding: 4px 10px; border-radius: 999px; }
.status-done { background: var(--green-soft); color: var(--green); }
.status-up { background: var(--gold-soft); color: #7A5A00; }
.status-up:not([hidden]) { animation: pop .4s ease-out; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* Section basics */
section { padding: 96px 0; }
.section-title { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; }
.section-sub { margin-top: 14px; color: var(--ink-2); max-width: 60ch; }

/* Why */
.why { background: var(--ink); color: #fff; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.why h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; }
.why-points p { color: #C9C8E2; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.16); }
.why-points p:first-child { border-top: 0; padding-top: 0; }
.why-points strong { color: #fff; display: block; font-weight: 600; margin-bottom: 4px; }

/* Services */
.service-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.service-list li { padding: 28px 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.service-list h3 { font-size: 1.3rem; font-weight: 700; }
.svc-head { display: flex; align-items: flex-start; gap: 12px; }
.svc-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--gold-soft); margin-top: -4px; }
.svc-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-list p { color: var(--ink-2); }

/* Process */
.process { background: var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: var(--card); border-radius: 20px; padding: 28px; position: relative; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); font: 800 1.25rem var(--display); margin-bottom: 20px; }
.steps h3 { font-size: 1.35rem; margin-bottom: 10px; }
.steps p { color: var(--ink-2); }
.steps .step-time { margin-top: 16px; font-size: .875rem; font-weight: 600; color: var(--iris); }

/* Results chart */
.results-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.results-copy { margin-top: 20px; color: var(--ink-2); max-width: 48ch; }
.results-fine { margin-top: 16px; font-size: .875rem; color: var(--muted); max-width: 48ch; }
.dist { margin: 0; background: var(--card); border-radius: 24px; padding: 28px 32px; border: 1px solid var(--line); }
.dist-legend { display: flex; gap: 20px; font-size: .875rem; color: var(--ink-2); margin-bottom: 20px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw-before, .bar.before { background: #B7B9CF; }
.sw-after, .bar.after { background: var(--iris); }
.dist-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 6px 0; }
.dist-label { font-weight: 600; font-size: .9375rem; }
.bars { display: grid; gap: 4px; }
.bar { display: block; height: 12px; width: var(--w); border-radius: 0 6px 6px 0; }
.dist-avg { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); font-size: .9375rem; }
.avg-before { font: 700 1.6rem var(--display); color: var(--muted); margin-left: auto; }
.avg-arrow { font-size: .875rem; }
.avg-after { font: 800 2.2rem var(--display); color: var(--ink); }
.avg-after::after { content: "★"; color: var(--gold); font-size: .7em; margin-left: 4px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; }
.faq-list details { border-top: 2px solid var(--ink); padding: 20px 0; }
.faq-list details:last-child { border-bottom: 2px solid var(--ink); }
.faq-list summary { cursor: pointer; font: 700 1.2rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--iris); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; }
.faq-list a { color: var(--iris); font-weight: 600; }

/* Contact */
.contact { background: var(--iris); color: #fff; }
.contact-inner { max-width: 760px; }
.contact h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; }
.contact-inner > p { margin-top: 18px; color: #DCD9FF; max-width: 60ch; font-size: 1.125rem; }
.contact-mail { display: inline-block; margin-top: 32px; font: 800 clamp(1.5rem, 4.4vw, 2.6rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--gold); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; word-break: break-word; }
.contact-mail:hover { color: #fff; }
.contact-inner > .contact-note { margin-top: 20px; font-size: .9375rem; }

/* Footer */
.footer { padding: 32px 0; font-size: .9375rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1100px) {
  .service-list li { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 960px) {
  .hero-grid, .why-grid, .results-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-inner { gap: 10px; }
  .nav-inner .btn-small { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; box-shadow: 0 20px 30px -20px rgba(27,26,58,.3); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a[aria-current] { border-bottom-color: var(--line); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .service-list li { grid-template-columns: 1fr; gap: 8px; }
  .btn-small { padding: 9px 14px; font-size: .875rem; white-space: nowrap; }
  .hide-sm { display: none; }
  .logo span { font-size: 1rem; }
  .logo svg { width: 26px; height: 26px; }
  .inbox { padding: 14px; border-radius: 22px; }
  .dist { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
