:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #0f172a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #15803d;
  --danger: #b91c1c;
  --radius: 14px;
  --sticky-bar: 0px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 64px;
  scroll-padding-bottom: var(--sticky-bar);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  min-height: 48px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.pill-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background: #eff6ff;
  color: #1e40af;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.funnel-shell {
  padding-top: 20px;
  padding-bottom: 120px;
  flex: 1;
  width: 100%;
}

.hero-card { margin-bottom: 16px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 6px;
}

h1 {
  font-size: clamp(1.35rem, 4.4vw, 2.05rem);
  line-height: 1.18;
  margin: 0 0 10px;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.hero-sub {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.98rem;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.step-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 8px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  min-height: 48px;
}

.step-pill.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.panel { display: none; }
.panel.active { display: block; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.muted { color: var(--muted); margin: 0 0 14px; font-size: 0.92rem; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 680px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span { font-size: 0.86rem; font-weight: 600; }

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--accent);
}

.hint { color: var(--muted); font-size: 0.78rem; }

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #f1f5f9;
  color: var(--ink);
  border-color: #cbd5e1;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  min-height: 48px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.btn-lg {
  width: 100%;
  min-height: 50px;
  font-size: 1rem;
  margin-top: 6px;
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 820px) {
  .preview-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.phone-mockup {
  border: 6px solid #0f172a;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}

.site-preview-frame { font-size: 0.88rem; }

.sp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.sp-brand { font-weight: 800; font-size: 0.95rem; }

.sp-call {
  background: var(--site-accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sp-hero { background: var(--site-soft); padding: 18px 14px; }

.sp-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--site-accent);
  margin-bottom: 6px;
}

.sp-hero h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.sp-hero p {
  margin: 0 0 12px;
  color: #334155;
  font-size: 0.85rem;
}

.sp-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.sp-btn-primary {
  background: var(--site-accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
}

.sp-btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid #cbd5e1;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
}

.sp-services,
.sp-quote-box {
  padding: 14px;
  border-top: 1px solid var(--border);
}

.sp-section-title {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.sp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sp-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 0.76rem;
  font-weight: 600;
}

.sp-form-mock { display: grid; gap: 6px; }

.sp-input-mock {
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 7px 9px;
  color: #64748b;
  font-size: 0.78rem;
  background: #fff;
}

.sp-submit-mock {
  background: var(--site-accent);
  color: #fff;
  text-align: center;
  border-radius: 7px;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
}

.sp-footer {
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.qr-kit-card { display: flex; flex-direction: column; gap: 12px; }

.qr-poster {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fff;
}

.qr-poster-biz { font-weight: 800; font-size: 1.05rem; }

.qr-poster-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 4px 0 12px;
}

.qr-svg-wrap { display: flex; justify-content: center; }

.qr-url-preview {
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
}

.qr-compliance-note {
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 760px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.plan-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card.selected {
  border-color: var(--accent);
  background: #f8fbff;
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.plan-top { display: flex; flex-direction: column; gap: 4px; }

.price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.price small {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--muted);
  display: grid;
  gap: 5px;
}

.disclosure-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.error-banner {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.legal-line {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.ready-card {
  text-align: center;
  display: grid;
  gap: 12px;
}

.ready-badge {
  display: inline-block;
  margin: 0 auto;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.demo-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  text-align: left;
}

.plan-recap {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  text-align: left;
}

.ready-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.edit-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.88rem;
  text-align: left;
}

.site-footer {
  position: static;
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px 16px 14px;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer .addr {
  font-weight: 600;
  color: #fff;
}

.site-footer .footer-links {
  margin-top: 4px;
}

.site-footer .link-btn,
.site-footer .footer-link {
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 8px;
  text-decoration: underline;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.hidden { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  padding: 20px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-footer-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

@media print {
  body * { visibility: hidden; }
  .topbar, .site-footer, .stepper, .hero-card, .btn-primary, .btn-secondary, .btn-ghost, .sticky-cta { display: none !important; }
  #qr-poster, #qr-poster * { visibility: visible; }
  #qr-poster {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 2px solid #0f172a;
  }
}


.product-group { margin: 8px 0 22px; }
.group-title {
  font-size: 1rem;
  margin: 0 0 6px;
}
.group-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 12px;
}
.plan-grid-single { grid-template-columns: 1fr; }
.plan-grid-2 { grid-template-columns: 1fr; }
.plan-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .plan-grid-2 { grid-template-columns: 1fr 1fr; }
  .plan-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.plan-card.featured {
  border-color: var(--accent);
  background: #f8fbff;
}
.addon-group { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--border); }
.addon-card { cursor: default; }
.addon-card .btn-secondary { margin-top: 4px; }

.hero-pricing { font-size: 0.88rem; }
.hero-tool { margin: 0 0 12px; font-size: 0.95rem; font-weight: 700; }
.hero-tool a {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 0;
}
.footer-link { color: #93c5fd; }
.sp-badge { margin-top: 8px; font-size: 0.68rem; }
.sp-badge a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.price-clarity {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.price-clarity-main { font-size: 1.02rem; }
.price-lg { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; }
.price-clarity-alt { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.how-steps {
  margin: 0 0 12px;
  padding: 0 0 0 1.2rem;
  font-size: 0.92rem;
}
.how-steps li { margin: 0 0 6px; }
.trust-row {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e3a8a;
  line-height: 1.4;
}
.sticky-cta { display: none; }
@media (max-width: 640px) {
  :root { --sticky-bar: calc(112px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
  }
  .sticky-cta .btn-primary {
    width: 100%;
    margin: 0;
    min-height: 48px;
  }
  .sticky-cta-note {
    margin: 6px 0 0;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
  }
  .site-footer {
    position: static;
    margin-bottom: 0;
    padding-bottom: calc(16px + var(--sticky-bar));
  }
  .funnel-shell { padding-bottom: 24px; }
}
@media (min-width: 641px) {
  .sticky-cta-note { display: none; }
}

.lang-toggle {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  white-space: nowrap;
}
.honest-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}
.topbar-inner .pill-badge { margin-left: 8px; }
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; }
  .lang-toggle { margin-left: 0; }
}
