:root {
  --bg: #F6F6F3;
  --panel: #FFFFFF;
  --ink: #17181A;
  --muted: #63645F;
  --line: #E6E6E1;
  --accent: #1F5C45;
  --accent-hover: #194B38;
  --accent-soft: #E7F0EB;
  --accent-deep: #123A2B;
  --star: #C98A00;
  --star-soft: #FBF1D9;
  --radius: 16px;
  --wrap: 1120px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img, svg { display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .signin { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn-ghost:hover { border-color: #cfcfc8; }
.btn-small { padding: 8px 16px; font-size: 15px; }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-light:hover { background: var(--accent-soft); }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--star-soft); color: #7A5300; font-size: 14px; font-weight: 600; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 5.4vw, 64px); margin-top: 20px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 0; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5C45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; flex: none; }

/* Hero scene: a counter stand and the phone it opens */
.scene { position: relative; height: 520px; }
.stand {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 230px;
  padding: 26px 22px 22px;
  border-radius: 20px;
  background: var(--accent-deep);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(18, 58, 43, 0.55);
  transform: rotate(-4deg);
}
.stand-title { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.15; }
.stand-sub { font-size: 13px; opacity: 0.75; margin-top: 6px; }
.stand-stars { display: flex; justify-content: center; gap: 4px; margin: 14px 0; color: #F2C14E; }
.stand-codes { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 6px; }
.stand-qr { width: 78px; height: 78px; padding: 7px; border-radius: 10px; background: #fff; }
.stand-nfc { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); }
.stand-foot { font-size: 12px; opacity: 0.7; margin-top: 12px; }

.phone {
  position: absolute;
  right: 0;
  top: 0;
  width: 280px;
  height: 520px;
  padding: 12px;
  border-radius: 44px;
  background: #1b1c1e;
  box-shadow: 0 40px 80px -30px rgba(23, 24, 26, 0.45);
}
.screen { height: 100%; border-radius: 34px; background: #fff; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 46px 22px 22px; text-align: center; }
.screen-logo { width: 54px; height: 54px; border-radius: 16px; background: #F3E9DD; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: #8A4B1F; }
.screen-biz { font-weight: 700; margin-top: 12px; font-size: 16px; }
.screen-q { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.2; margin-top: 18px; }
.screen-stars { display: flex; gap: 6px; margin-top: 20px; color: var(--star); }
.screen-label { font-size: 13px; font-weight: 600; color: var(--star); margin-top: 8px; }
.screen-toast { margin-top: auto; width: 100%; padding: 14px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-deep); font-size: 14px; font-weight: 600; text-align: left; display: flex; gap: 10px; align-items: center; }
.screen-toast span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.screen-btn { margin-top: 10px; width: 100%; padding: 13px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.kicker { display: block; font-family: var(--body); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step-num { font-family: var(--display); font-size: 48px; font-weight: 800; color: var(--accent); line-height: 1; }
.step h3 { font-size: 22px; margin-top: 18px; }
.step p { color: var(--muted); margin: 10px 0 0; }
.branch { display: grid; gap: 10px; margin-top: 18px; }
.branch div { font-size: 15px; line-height: 1.5; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.branch b { white-space: nowrap; }
.branch .good b { color: var(--accent); }
.branch .bad b { color: #8A4108; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.feature h3 { font-family: var(--body); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-top: 18px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.uses { display: flex; flex-wrap: wrap; gap: 12px; }
.uses span { padding: 10px 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 500; }

.pricing { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; padding: 48px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.pricing h2 { font-size: clamp(30px, 3.6vw, 40px); }
.pricing p { color: var(--muted); margin: 14px 0 0; }
.pricing ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pricing li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.pricing li::before { content: ''; width: 20px; height: 20px; border-radius: 50%; flex: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta { padding: 96px 0; }
.cta-box { padding: 64px 48px; border-radius: 28px; background: var(--accent-deep); color: #fff; text-align: center; }
.cta-box h2 { font-size: clamp(32px, 4vw, 46px); }
.cta-box p { opacity: 0.8; margin: 16px auto 0; max-width: 32em; font-size: 18px; }
.cta-box .hero-actions { justify-content: center; }
.cta-box .btn-outline { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.cta-box .btn-outline:hover { border-color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); margin-top: 0; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.legal h2 { font-size: 24px; margin-top: 44px; }
.legal p, .legal li { color: #34352F; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.draft { padding: 14px 18px; border-radius: 12px; background: #FDF1E4; color: #8A4108; font-weight: 500; font-size: 15px; margin-bottom: 32px; }
mark.blank { background: #FBE7B5; color: #6B4700; border-radius: 4px; padding: 0 4px; font-weight: 600; }

.notfound { text-align: center; padding: 120px 24px; }
.notfound h1 { margin-top: 0; }
.notfound p { color: var(--muted); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .scene { max-width: 460px; width: 100%; margin: 0 auto; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 64px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .logo, .btn { white-space: nowrap; }
  .scene { height: 450px; }
  .phone { width: 224px; height: 440px; border-radius: 38px; }
  .screen { border-radius: 28px; padding: 30px 14px 14px; }
  .screen-logo { width: 46px; height: 46px; font-size: 19px; }
  .screen-biz { margin-top: 8px; font-size: 15px; }
  .screen-q { font-size: 20px; margin-top: 12px; }
  .screen-stars { margin-top: 14px; }
  .screen-toast { padding: 10px; font-size: 13px; }
  .screen-toast span { display: none; }
  .screen-btn { padding: 11px; font-size: 14px; }
  .screen-stars svg { width: 28px; height: 28px; }
  .stand { width: 148px; padding: 16px 12px 14px; bottom: 0; border-radius: 16px; }
  .stand-title { font-size: 17px; }
  .stand-sub { font-size: 11px; }
  .stand-stars { margin: 10px 0; }
  .stand-stars svg { width: 13px; height: 13px; }
  .stand-codes { gap: 10px; }
  .stand-qr { width: 54px; height: 54px; padding: 5px; }
  .stand-nfc { width: 40px; height: 40px; }
  .stand-nfc svg { width: 20px; height: 20px; }
  .stand-foot { font-size: 10px; }
  .cta-box { padding: 48px 24px; }
  .pricing { padding: 28px 24px; }
  .site-footer nav { margin-left: 0; }
}

@media (max-width: 440px) {
  .header-actions .signin { display: none; }
}
