:root {
  color-scheme: light dark;

  &:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
  }
  &:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
  }

  --bg-canvas: light-dark(#fbf7f9, #150410);
  --bg-surface: light-dark(#ffffff, #200718);
  --bg-elevated: light-dark(#f6ecf1, #2b0b21);
  --bg-glass: light-dark(rgba(255, 255, 255, 0.85), rgba(32, 7, 24, 0.82));

  --border-subtle: light-dark(rgba(155, 17, 54, 0.14), rgba(233, 30, 99, 0.22));
  --border-strong: light-dark(rgba(155, 17, 54, 0.28), rgba(255, 64, 129, 0.36));

  --text-primary: light-dark(#1c0614, #faf2f5);
  --text-secondary: light-dark(#582742, #cfa6ba);
  --text-muted: light-dark(#7e4b66, #9c7287);

  --accent: light-dark(#b81442, #e91e63);
  --accent-hover: light-dark(#9b1136, #ff4081);
  --accent-bevel: light-dark(#7c0d2b, #9f1239);
  --accent-soft: light-dark(rgba(184, 20, 66, 0.08), rgba(233, 30, 99, 0.14));

  --amber: light-dark(#d97706, #f59e0b);
  --amber-bevel: light-dark(#92400e, #b45309);
  --success: light-dark(#15803d, #10b981);
  --error: light-dark(#c62828, #f87171);
  --error-bg: light-dark(#fdecea, rgba(248, 113, 113, 0.12));

  --shadow-sm: light-dark(0 2px 10px rgba(28, 6, 20, 0.06), 0 4px 16px rgba(0, 0, 0, 0.4));
  --shadow-lg: light-dark(0 18px 48px rgba(155, 17, 54, 0.12), 0 22px 56px rgba(0, 0, 0, 0.55));

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.theme-btn:hover {
  border-color: var(--accent);
}

.theme-btn:active {
  transform: translateY(1px);
}

/* Hide inactive icon based on resolved color-scheme */
.theme-btn .icon-sun,
.theme-btn .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .theme-btn .icon-sun { display: block; }
}
@media (prefers-color-scheme: light) {
  .theme-btn .icon-moon { display: block; }
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-btn .icon-sun {
  display: block;
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) .theme-btn .icon-moon {
  display: none;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) .theme-btn .icon-sun {
  display: none;
}
:root:has(> head > meta[name="color-scheme"][content="light"]) .theme-btn .icon-moon {
  display: block;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.08s ease;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-bevel) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 0 var(--accent-bevel), 0 6px 16px rgba(155, 17, 54, 0.25);
}

.btn-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--accent-bevel);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: 0 3px 0 var(--border-subtle);
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

.btn-coffee {
  background: linear-gradient(180deg, #ff9800 0%, #e65100 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 0 #bf360c;
}

.btn-coffee:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #bf360c;
}

/* ─── HERO ─── */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft) 0%, transparent 65%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 auto 18px;
  max-width: 820px;
}

.hero p.lead {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-stores span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ─── SECTIONS ─── */
section {
  padding: 64px 0;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 42px;
}

.section-header h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.section-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* ─── CARDS GRID ─── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 14.2px;
  color: var(--text-secondary);
}

/* ─── WORKFLOW STEPS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 12px 0 0;
  font-size: 14.2px;
  color: var(--text-secondary);
}

/* ─── SUPPORT & FORM ─── */
.support-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.field .hint {
  display: block;
  font-size: 12.2px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--error);
  background: var(--error-bg);
}

.field input:user-valid,
.field textarea:user-valid {
  border-color: var(--success);
}

.error-msg {
  display: none;
  color: var(--error);
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 5px;
}

.field :user-invalid + .error-msg {
  display: block;
}

.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--success);
}

.form-status.error {
  display: block;
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
}

/* ─── PRIVACY BOX ─── */
.privacy-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.privacy-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.privacy-box li + li {
  margin-top: 8px;
}

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

.trademark-note {
  width: 100%;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}
