/* ============================================================================
   SmartMenuKJ — design system
   Minimal, premium, white. One accent color, generous whitespace, thin
   borders instead of glow/shadow tricks.
   ============================================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f2f5;
  --border: #e8e9ed;
  --border-strong: #d8dae0;
  --text: #14161a;
  --text-dim: #5b616c;
  --text-faint: #94989f;
  --accent: #2554e8;
  --accent-ink: #0d1a4d;
  --accent-soft: #eef2fe;
  --accent-warm: #c2410c;
  --danger: #d13c3c;
  --success: #157a4d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -30px rgba(20, 22, 26, 0.18);
  --shadow-sm: 0 8px 24px -12px rgba(20, 22, 26, 0.12);
  --font-head: "Manrope", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; color: var(--text); }
p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); display: inline-block; border-radius: 2px; }

h2.h-lg { font-size: clamp(28px, 4vw, 42px); }
.lede { font-size: 17.5px; color: var(--text-dim); max-width: 620px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  padding: 13px 25px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-warm { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.btn-warm:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: border-color .2s ease;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--text); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--text);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 13px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.nav-cta-mobile { display: none; }
.lang-switch {
  display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  background: none; border: none; padding: 6px 11px; font-weight: 700; font-size: 12px; color: var(--text-faint); cursor: pointer;
}
.lang-switch button.active { color: #fff; background: var(--text); }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 18px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s ease; overflow-y: auto; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px;
    border: 1px solid var(--border-strong); background: none; cursor: pointer; color: var(--text); }
  .nav-cta-mobile { margin-top: 10px; display: flex !important; flex-direction: column; gap: 8px; }
}

/* Hero */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); }
.hero .rotator { color: var(--accent); position: relative; display: inline-block; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stats .stat b { display: block; font-family: var(--font-head); font-size: 26px; color: var(--text); }
.hero-stats .stat span { font-size: 13px; color: var(--text-faint); }

.hero-visual { border: 1px solid var(--border); border-radius: 20px; background: var(--bg-alt); padding: 28px; }
.hero-visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-tile .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hero-tile .ic svg { width: 18px; height: 18px; }
.hero-tile span { font-size: 13.5px; font-weight: 700; color: var(--text); }

/* Logo strip */
.logo-strip { display: flex; flex-wrap: wrap; gap: 34px; align-items: center; justify-content: center; }
.logo-strip span { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text-faint); letter-spacing: .03em; }

/* Grid / cards */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 18.5px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card .tags span { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-faint); border: 1px solid var(--border); }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 13.5px; color: var(--accent); }
.card-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* .reveal is kept as a marker class for js/site.js but no longer hides content —
   a simple, always-visible page is more reliable than a scroll-triggered fade. */
.reveal { opacity: 1; }

/* Process / steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 24px 20px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--accent);
  display: inline-block; margin-bottom: 12px; letter-spacing: .05em;
}

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 60px 44px; text-align: center;
  background: var(--accent-ink); color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.72); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid a, .footer-grid p { font-size: 14px; color: var(--text-dim); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.social-row a:hover { border-color: var(--accent); color: var(--accent); }
.social-row svg { width: 15px; height: 15px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-faint); }
.footer-bottom a:hover { color: var(--accent); }

/* Forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--text-dim); }
.field input, .field textarea, .field select {
  width: 100%; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-dim); }
.checkbox-row input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.form-note { font-size: 13px; margin-top: 12px; display: none; padding: 10px 14px; border-radius: 10px; }
.form-note.show { display: block; }
.form-note.ok { background: #eafaf1; color: var(--success); border: 1px solid #cdeedd; }
.form-note.err { background: #fdeeee; color: var(--danger); border: 1px solid #f8d7d7; }

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.auth-tabs { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.auth-tabs button { flex: 1; padding: 10px; border: none; background: none; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-faint); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.btn-google { width: 100%; background: #fff; color: #1f2933; border: 1px solid var(--border-strong); }
.btn-google:hover { border-color: var(--text-faint); }
.btn-google svg { width: 18px; height: 18px; }

/* Page header (inner pages) */
.page-hero { padding: 140px 0 60px; text-align: center; }
.page-hero .lede { margin-left: auto; margin-right: auto; }
.crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }

/* Badges / pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
.pill.accent { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }

/* Tables (admin/account) */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); }
tr:last-child td { border-bottom: none; }
.status-tag { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.status-new { background: #eaf1ff; color: #2554e8; }
.status-progress { background: #fdf1e2; color: var(--accent-warm); }
.status-done { background: #eafaf1; color: var(--success); }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 860px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.dash-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.dash-stat b { display: block; font-family: var(--font-head); font-size: 28px; }
.dash-stat span { font-size: 13px; color: var(--text-faint); }

.tab-row { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); background: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; color: var(--text-dim); }
.tab-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-faint); }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; z-index: 200; max-width: 620px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow); transform: translateY(140%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 13.5px; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.text-dim { color: var(--text-dim); } .text-faint { color: var(--text-faint); }
.hidden { display: none !important; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0,0,0,.12); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
