:root {
  color-scheme: light dark;
  --bg: #f4ebdd;
  --surface: #fff9ef;
  --surface-2: #efe1d0;
  --line: rgba(48, 46, 41, 0.16);
  --text: #302e29;
  --muted: #766c61;
  --accent: #245a43;
  --accent-hover: #1d4a37;
  --blush: #f3b4aa;
  --radius: 16px;
  --shell: min(1120px, calc(100vw - 36px));
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #1b1916;
    --surface: #24211d;
    --surface-2: #2d2924;
    --line: rgba(255, 249, 239, 0.16);
    --text: #fff9ef;
    --muted: #a99d8f;
    --accent: #94b39d;
    --accent-hover: #a8c4b0;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(48, 46, 41, 0.055) 0.7px, transparent 0.7px);
  background-size: 19px 19px;
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.shell { width: var(--shell); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-by { font-weight: 500; color: var(--muted); font-size: 0.88rem; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-nav a { font-weight: 550; color: var(--muted); }
.header-nav a:hover { color: var(--text); }

.segmented {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2px;
}

.seg-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
}

.seg-btn.is-active { background: var(--accent); color: #fff9ef; }

.hero { padding: 56px 0 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pill {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pill-accent { background: var(--blush); color: #302e29; border-color: transparent; }

h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; margin-top: 6px; }
h3 { font-size: 1.15rem; }

.lead { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }
.meta-note { margin-top: 14px; font-size: 0.88rem; color: var(--muted); }
.muted { color: var(--muted); font-size: 0.94rem; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-primary { background: var(--accent); color: #fff9ef; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }

.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.section { padding: 44px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}
.badge.is-ok { background: rgba(36, 90, 67, 0.14); color: var(--accent); }
.badge.is-blush { background: var(--blush); color: #302e29; }

.pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price-card.is-featured { border-color: var(--accent); border-width: 2px; }
.price-val { font-size: 1.85rem; font-weight: 800; }
.price-strike { font-size: 1.15rem; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-right: 4px; }
.price-unit { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.pricing-anchor {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}
.check-list { margin: 4px 0 auto; padding-left: 18px; color: var(--muted); font-size: 0.94rem; }
.check-list li { margin: 6px 0; }

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; max-width: 820px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin-top: 10px; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-card { width: 100%; max-width: 460px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-body { display: flex; flex-direction: column; gap: 10px; }
.modal-body input {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
}
.qr-box, .key-box { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.key-pre {
  width: 100%;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8rem;
  word-break: break-all;
}
.error-text { color: #b7352d; font-size: 0.9rem; }

@media (max-width: 860px) {
  .hero-grid, .grid-3 { grid-template-columns: 1fr; }
}
