/* Bespoke theme for wabisabi — synced with actual Flutter app design tokens */
:root {
  --bg: #FEF9EE;
  --surface: #FFFDF8;
  --surface-soft: #F3EDE3;
  --surface-tint: #EDE5D8;
  --ink: #302F2B;
  --ink-muted: #615E56;
  --border: #D8D2C7;
  --primary: #6B5A49;
  --primary-hover: #4E4134;
  --on-primary: #FEF9EE;
  --accent: #A34D39;
  --accent-ink: #FEF9EE;
  --glow-1: rgba(114, 122, 96, 0.12);
  --glow-2: rgba(163, 77, 57, 0.08);
  --r-card: 0px;
  --r-btn: 0px;
  --r-shot: 4px;
  --font-display: 'Gowun Batang', 'Noto Serif KR', Georgia, serif;
  --font-body: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-soft: 0 1px 0 rgba(0,0,0,0.04);
  --shadow-device: 0 16px 40px -18px rgba(0,0,0,0.22);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181715;
    --surface: #21201C;
    --surface-soft: #2A2823;
    --surface-tint: #332E26;
    --ink: #F2ECE0;
    --ink-muted: #B6B0A4;
    --border: #3B3831;
    --primary: #D8BB6B;
    --primary-hover: #E6CE88;
    --on-primary: #241E0D;
    --accent: #D47B66;
    --accent-ink: #28100B;
    --glow-1: rgba(177, 189, 147, 0.10);
    --glow-2: rgba(216, 187, 107, 0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.68;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: var(--r-btn); font-weight: 700;
}
.skip-link:focus { left: 12px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 36px; height: 36px; border-radius: 9px;
  object-fit: cover; border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.nav-links {
  display: flex; align-items: center; gap: 24px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink-muted);
}
.nav-links a:hover { color: var(--ink); }

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

/* Language switcher */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-btn);
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.82rem; font-weight: 700; color: var(--ink);
}
.lang-btn:hover { border-color: var(--primary); }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 148px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,0.14);
  z-index: 80;
}
.lang-menu.open { display: grid; gap: 2px; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px; font-size: 0.86rem; color: var(--ink-muted);
}
.lang-menu a:hover, .lang-menu a[aria-current="page"] {
  background: var(--surface-soft); color: var(--ink); font-weight: 700;
}
.menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-btn);
  font-weight: 700; font-size: 0.94rem; line-height: 1.2;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn-primary {
  background: var(--primary); color: var(--on-primary);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--primary) 55%, transparent);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); background: var(--surface-soft); }
.btn-sm { padding: 8px 15px; font-size: 0.84rem; }
.btn-disabled {
  background: var(--surface-soft); color: var(--ink-muted);
  border: 1px dashed var(--border); cursor: default; opacity: 0.85;
}
.btn-disabled:hover { transform: none; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 68px;
  background:
    radial-gradient(640px 420px at 14% 8%, var(--glow-1), transparent 70%),
    radial-gradient(560px 420px at 88% 24%, var(--glow-2), transparent 72%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface-tint); color: var(--primary);
  font-size: 0.82rem; font-weight: 700; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.1vw, 3.25rem);
  line-height: 1.22; letter-spacing: -0.025em;
  margin: 0 0 18px; word-break: keep-all;
}
.hero h1 em {
  font-style: normal; color: var(--primary);
  text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--ink-muted); margin: 0 0 26px; max-width: 56ch;
  word-break: keep-all;
}
.hero-points {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin: 22px 0 0; padding: 0; list-style: none;
  font-size: 0.88rem; color: var(--ink-muted); font-weight: 500;
}
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.phone-stage {
  position: relative; width: min(100%, 340px);
  display: flex; justify-content: center;
}
.phone-main {
  width: 268px; border-radius: var(--r-shot);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 7px;
  box-shadow: var(--shadow-device);
  position: relative; z-index: 2;
}
.phone-main img {
  width: 100%; border-radius: calc(var(--r-shot) - 6px);
  display: block;
}
.phone-peek {
  position: absolute; right: -26px; top: 36px; width: 176px;
  border-radius: calc(var(--r-shot) - 4px);
  border: 1px solid var(--border); background: var(--surface);
  padding: 5px; box-shadow: var(--shadow-soft);
  opacity: 0.9; transform: rotate(4deg); z-index: 1;
}
.phone-peek img {
  width: 100%; border-radius: calc(var(--r-shot) - 9px);
}

/* Jarana custom botanical preview card */
.jarana-stage {
  width: 100%; max-width: 390px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 24px;
  box-shadow: var(--shadow-device);
}
.jarana-stage-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.jarana-mascot {
  width: 68px; height: 68px; border-radius: 18px; object-fit: cover;
  border: 1px solid var(--border);
}
.jarana-checklist {
  display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none;
}
.jarana-checklist li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 14px;
  background: var(--surface-soft); font-size: 0.9rem; font-weight: 600;
}
.jarana-badge {
  font-size: 0.76rem; padding: 3px 9px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
}

/* Sections */
.section { padding: 68px 0; }
.section-alt { background: var(--surface-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 0.82rem; font-weight: 700; color: var(--primary);
  letter-spacing: 0.04em; margin-bottom: 10px; display: block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.28; letter-spacing: -0.02em;
  margin: 0 0 12px; word-break: keep-all;
}
.section-head p { margin: 0; color: var(--ink-muted); font-size: 1rem; word-break: keep-all; }

/* Compare / Pain-point vs Solution */
.compare-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.compare-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-soft);
}
.compare-card.highlight {
  background: var(--surface-tint);
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
}
.compare-quote {
  display: inline-block; font-size: 0.84rem; font-weight: 700;
  color: var(--ink-muted); margin-bottom: 10px;
}
.compare-card.highlight .compare-quote { color: var(--primary); }
.compare-card h3 {
  font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 10px;
}
.compare-card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; word-break: keep-all; }

/* 3-Step Flow */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.step-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-tint); color: var(--primary);
  font-weight: 800; font-size: 0.88rem; margin-bottom: 14px;
}
.step-card h3 {
  font-family: var(--font-display); font-size: 1.12rem; margin: 0 0 8px;
}
.step-card p { margin: 0; font-size: 0.93rem; color: var(--ink-muted); word-break: keep-all; }

/* Screenshot Gallery */
.gallery-track {
  display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shot-card {
  flex: 0 0 248px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-shot); padding: 7px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease;
  cursor: zoom-in;
}
.shot-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.shot-card img {
  width: 100%; border-radius: calc(var(--r-shot) - 6px);
  aspect-ratio: 9 / 19.5; object-fit: cover;
}
.gallery-controls {
  display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 14px;
}
.gallery-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.gallery-btn:hover { border-color: var(--primary); color: var(--primary); }

/* Features Grid */
.features-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow-soft);
}
.card-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  color: var(--primary); background: var(--surface-tint);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.card h3 {
  font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 10px;
  word-break: keep-all;
}
.card p { margin: 0; font-size: 0.95rem; color: var(--ink-muted); word-break: keep-all; }

/* Trust / Privacy Strip */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.trust-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 20px 22px;
}
.trust-item strong { display: block; font-size: 0.98rem; margin-bottom: 6px; }
.trust-item span { font-size: 0.88rem; color: var(--ink-muted); display: block; }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden;
}
.faq-item summary {
  list-style: none; padding: 20px 24px; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; word-break: keep-all;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.35rem; font-weight: 400; color: var(--primary);
  flex: 0 0 auto; transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 24px 22px; color: var(--ink-muted); font-size: 0.94rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  padding-top: 14px; word-break: keep-all;
}

/* Bottom CTA */
.cta-band {
  background: var(--surface-tint);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: var(--r-card); padding: 48px 32px; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 0 0 12px; word-break: keep-all;
}
.cta-band p {
  color: var(--ink-muted); max-width: 54ch; margin: 0 auto 26px; word-break: keep-all;
}
.cta-band .store-row { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 44px 0 36px; font-size: 0.88rem; color: var(--ink-muted);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer-disclaimer { font-size: 0.82rem; margin: 10px 0 0; opacity: 0.88; max-width: 54ch; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 0.82rem;
}

/* Lightbox modal */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 12, 11, 0.86);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-height: 88vh; max-width: 92vw; border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed; top: 18px; right: 20px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.5); color: #fff; font-size: 1.4rem;
}

/* Recipe deep-link banner (k_noodle_recipe) */
.recipe-deep-link {
  max-width: 1120px; margin: 16px auto 0; padding: 18px 20px;
  background: var(--surface-tint); border: 1px solid var(--border);
  border-radius: var(--r-card); display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 14px;
}


.card, .compare-card, .step-card, .faq-item, .cta-band {
  box-shadow: none !important;
  border: 1px solid var(--border);
}
.btn-primary {
  background: var(--surface-tint);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--on-primary);
}
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--accent);
  padding: 0 0 6px 0;
  color: var(--accent);
}




@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .phone-peek { right: -12px; width: 148px; }
  .compare-grid, .steps-grid, .features-grid, .trust-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 14px;
  }
  .nav-links.open { display: flex; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding: 36px 0 48px; }
  .section { padding: 48px 0; }
  .phone-peek { display: none; }
  .phone-main { width: 244px; }
  .shot-card { flex-basis: 214px; }
  .cta-band { padding: 34px 20px; }
}
