/* ScanRemember — black and white, calm, roomy. */
:root {
  --ink: #141414;
  --body: #3d3d3d;
  --muted: #5c5c5c;
  --line: #e6e6e4;
  --line-strong: #cfcfcf;
  --soft: #f6f6f4;
  --bubble: #f3f3f1;
  --radius: 20px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; }
a { color: var(--ink); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; max-width: 1200px; margin: 0 auto; }
.logo { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.3px; text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid #dcdcdc; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); padding: 0; }
.text-link { font-size: 15px; font-weight: 500; text-decoration: none; padding: 12px 4px; background: none; border: 0; cursor: pointer; font-family: var(--font); color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 22px; border: 1.5px solid var(--ink); font: 600 15px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-lg { height: 48px; padding: 0 24px; border-radius: 24px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-block { width: 100%; height: 52px; border-radius: 26px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.chip { height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid #dcdcdc; background: #fff; font: 15px var(--font); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; padding: 88px 24px 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.menu-wrap { position: relative; }
.menu { position: absolute; top: 56px; left: 0; z-index: 20; width: 220px; background: #fff; border: 1px solid #dcdcdc; border-radius: 16px; box-shadow: 0 12px 32px rgba(20,20,20,.12); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.menu[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: 15px var(--font); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; }
.menu-item:hover { background: #f3f3f1; }
.ask { width: 100%; max-width: 760px; height: 64px; border: 1.5px solid var(--line-strong); border-radius: 32px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 28px; background: #fff; box-shadow: 0 2px 12px rgba(20,20,20,.06); }
.ask:focus-within { border-color: var(--ink); }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: 18px var(--font); color: var(--ink); }
.ask input::placeholder { color: #767676; }
.ask input:focus { outline: none; }
.go { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.go svg { stroke-width: 2.4; }
.slogan { margin: 18px 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.visitor-line { margin: 10px 0 0; font-size: 15px; text-align: center; }
.visitor-line a { font-weight: 600; }

/* Dynamic view */
.view { width: 100%; max-width: 808px; margin: 0 auto; padding: 0 24px 72px; }
.view:empty { display: none; }
.label { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; }
.row .end { margin-left: auto; color: var(--muted); font-size: 15px; white-space: nowrap; }
.row strong { font-weight: 500; }
.panel { border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.panel h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.25; letter-spacing: -.3px; }
.big-answer { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.3; letter-spacing: -.3px; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.source { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: #fafaf9; }
.thumb { width: 56px; height: 72px; flex-shrink: 0; border-radius: 8px; border: 1px solid #dcdcdc; background: #fff; object-fit: cover; }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; overflow-wrap: anywhere; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.step-n { width: 28px; height: 28px; border-radius: 14px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.step.done .step-n { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0 0 10px; color: var(--body); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pending { display: inline-flex; align-items: center; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid #d6d6d6; border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Plans (visitors) */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plans.single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plan { border: 1px solid #dcdcdc; border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.plan.main { border: 2px solid var(--ink); }
.plan h3 { margin: 0; font-family: var(--display); font-size: 20px; }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--display); font-size: 40px; letter-spacing: -1px; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--body); }
.ticks li { display: flex; gap: 10px; }
.ticks svg { margin-top: 2px; stroke-width: 2.2; }
.fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* How it works */
.hiw { background: var(--soft); padding: 72px 24px 80px; }
.wrap { max-width: 1200px; margin: 0 auto; }
.section-title { margin: 0 0 32px; font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -.5px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { margin: 0; font-family: var(--display); font-size: 20px; }
.card p, .card ol { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.card strong { color: var(--ink); }
.card-link { font-size: 15px; font-weight: 600; margin-top: auto; }
.card-btn { margin-top: auto; align-self: flex-start; }

/* Chat */
.chat { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.msg { max-width: 80%; font-size: 16px; line-height: 1.5; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 20px 20px 6px 20px; padding: 14px 18px; }
.msg.bot, .msg.team { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; }
.msg .who { font-size: 13px; font-weight: 600; color: var(--muted); }
.msg.team .who { color: var(--ink); }
.msg .bubble { background: var(--bubble); border-radius: 20px 20px 20px 6px; padding: 14px 18px; }
.msg.team .bubble { background: #fff; border: 1.5px solid var(--ink); }
.msg.sys { align-self: center; max-width: 100%; font-size: 13px; color: var(--muted); text-align: center; }
.composer { display: flex; gap: 8px; align-items: center; height: 60px; border: 1.5px solid var(--line-strong); border-radius: 30px; padding: 0 6px 0 22px; }
.composer:focus-within { border-color: var(--ink); }
.composer input { flex: 1; min-width: 0; border: 0; font: 16px var(--font); background: transparent; }
.composer input:focus { outline: none; }

/* Toast + sheet */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; z-index: 60; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast[hidden] { display: none; }
.toast .spinner { border-color: #555; border-top-color: #fff; }
.sheet { border: 0; border-radius: 24px; padding: 28px; max-width: 520px; width: calc(100% - 32px); }
.sheet::backdrop { background: rgba(20,20,20,.4); }
.sheet h2 { margin: 0 0 8px; font-family: var(--display); font-size: 22px; }
.sheet textarea, .sheet input[type="text"], .sheet input[type="email"], .sheet input[type="date"], .sheet input[type="time"] { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 14px; font: 16px var(--font); margin: 8px 0 16px; }
.sheet textarea { min-height: 120px; resize: vertical; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 24px; max-width: 1200px; margin: 0 auto; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

.prose { max-width: 680px; }
.prose h2 { font-family: var(--display); font-size: 28px; margin: 0 0 16px; }
.prose p, .prose li { font-size: 16px; color: var(--body); }

@media (max-width: 767px) {
  .hero { padding: 40px 16px 24px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn, .menu-wrap { flex: 1; }
  .menu-wrap .btn { width: 100%; height: 52px; }
  .ask { height: 60px; padding-left: 20px; }
  .ask input { font-size: 16px; }
  .cards, .plans { grid-template-columns: 1fr; gap: 12px; }
  .hiw { padding: 48px 16px 56px; }
  .section-title { font-size: 26px; }
  .view { padding: 0 16px 56px; }
  .panel { padding: 24px 20px; }
  .top { padding: 12px 16px; }
  .logo { font-size: 18px; }
  .msg { max-width: 88%; }
}
