/* FoodMenu AI - shared styles
   Menu-board editorial. Quiet near-white paper, ink text, one burnt-orange accent.
   Real food and app photography carries the design; chrome stays out of the way.
   No external CSS frameworks. Pretendard loaded via CDN for Korean-first type. */

:root {
  /* Accent: single burnt-orange, used identically across the whole page */
  --terracotta: #C2410C;
  --terracotta-dark: #9A3412;
  --terracotta-soft: #F7EBE3;

  /* Quiet warm neutrals */
  --bg: #FBFAF8;
  --bg-alt: #F4F1EC;
  --surface: #FFFFFF;
  --ink: #1C1917;
  --ink-soft: #4B453F;
  --muted: #8A817A;
  --border: #E7E2DB;
  --border-strong: #D8D1C7;

  /* System: hairline-first, minimal shadow */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 10px 30px rgba(28, 25, 23, 0.07);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --maxw: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR",
    sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.022em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.05rem, 4.8vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.2rem); font-weight: 780; }
h3 { font-size: 1.24rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Eyebrow: quiet uppercase label, no filled pill */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--terracotta-dark); text-decoration: none; }
.nav-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--terracotta-dark) !important;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(194,65,12,.08);
  font-weight: 800 !important;
}
.nav-store-link:hover {
  color: #7C2D12 !important;
  background: #FFEDD5;
  transform: translateY(-1px);
}
.nav-toggle { display: none; background: none; border: 0; font-size: 25px; cursor: pointer; color: var(--ink); }

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px 0; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; }
  .nav-links .btn { margin: 8px 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  padding: 12px 22px; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta-dark); }

/* Store status: launch-soon chips, non-interactive */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.store-soon {
  display: inline-flex; align-items: baseline; gap: 8px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--ink-soft);
  padding: 12px 20px; border-radius: var(--radius-full);
  font-weight: 650; font-size: 0.96rem;
}
.store-soon .sb-name { color: var(--ink); font-weight: 700; }
.store-soon .sb-state { font-size: 0.82rem; color: var(--muted); }
.store-note { font-size: 0.86rem; color: var(--muted); margin-top: 14px; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.bg-alt { background: var(--bg-alt); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero p.lead { margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-cta-row { gap: 16px; }
.store-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  padding: 13px 18px 14px 14px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 16px 34px rgba(28,25,23,.22), inset 0 1px 0 rgba(255,255,255,.22);
  transform: translateY(0);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.store-cta:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(28,25,23,.25), inset 0 1px 0 rgba(255,255,255,.24);
  filter: saturate(1.06);
}
.store-cta:active { transform: translateY(-1px) scale(.99); }
.store-cta.app-store { background: linear-gradient(145deg, #111827, #050505 68%, #30353F); }
.store-cta.play-store { background: linear-gradient(145deg, #14B8A6, #1A7F37 48%, #155E75); }
.store-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  flex: 0 0 auto;
}
.store-mark img { width: 21px; height: 21px; object-fit: contain; }
.store-cta small,
.store-cta strong { display: block; line-height: 1.05; }
.store-cta small { font-size: .72rem; opacity: .76; margin-bottom: 3px; }
.store-cta strong { font-size: 1.1rem; letter-spacing: -.02em; }
.hero-note { margin: 22px 0 0; font-size: 0.92rem; color: var(--muted); }
.hero-note strong { color: var(--ink-soft); font-weight: 700; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Before / After transition slider */
.ba {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow-md);
}
.ba-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.ba-base,
.ba-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-base { position: relative; }
.ba-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--reveal, 52%)) 0 0);
  animation: baReveal 4.8s cubic-bezier(.65, 0, .35, 1) infinite alternate;
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal, 52%);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28,25,23,.18), 0 0 28px rgba(28,25,23,.22);
  transform: translateX(-1px);
  animation: baDivider 4.8s cubic-bezier(.65, 0, .35, 1) infinite alternate;
}
.ba-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(28,25,23,.18);
  background: rgba(255,255,255,.92);
  transform: translate(-50%, -50%);
}
.ba-divider span::before,
.ba-divider span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--terracotta);
  border-left: 2px solid var(--terracotta);
}
.ba-divider span::before { left: 11px; transform: translateY(-50%) rotate(-45deg); }
.ba-divider span::after { right: 11px; transform: translateY(-50%) rotate(135deg); }
.ba-label {
  position: absolute;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.ba-label-before { left: 12px; }
.ba-label-after { right: 12px; color: var(--terracotta-dark); }
.ba-caption {
  margin: 14px 4px 2px; font-size: 0.9rem; color: var(--ink-soft);
}
.ba-caption b { color: var(--ink); font-weight: 700; }
@keyframes baReveal {
  0% { clip-path: inset(0 100% 0 0); }
  18% { clip-path: inset(0 100% 0 0); }
  82% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes baDivider {
  0% { left: 0%; }
  18% { left: 0%; }
  82% { left: 100%; }
  100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ba-after { animation: none; clip-path: inset(0 0 0 50%); }
  .ba-divider { animation: none; left: 50%; }
}

/* ---------- Editorial value points (no boxed cards) ---------- */
.points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 44px; border-top: 1px solid var(--border);
}
.point { padding: 30px 26px 6px 0; border-top: 0; }
.point + .point { border-left: 1px solid var(--border); padding-left: 26px; }
.point .idx { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; color: var(--terracotta); }
.point h3 { margin: 12px 0 8px; }
.point p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .points { grid-template-columns: 1fr; }
  .point { padding: 26px 0 6px; }
  .point + .point { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
}

/* ---------- Steps (numbered editorial rows) ---------- */
.steps { margin-top: 40px; max-width: 820px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 26px 0; border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step .step-n {
  font-size: 2.1rem; font-weight: 800; line-height: 1;
  color: var(--terracotta); font-variant-numeric: tabular-nums; min-width: 46px;
}
.step h3 { margin-bottom: 6px; }
.step p:last-child { margin-bottom: 0; }

/* ---------- Preset gallery, larger before/after transitions ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.shot { margin: 0; }
.mini-compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.mini-before,
.mini-after,
.mini-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-before { position: relative; filter: saturate(.92) contrast(.96); }
.mini-after {
  clip-path: inset(0 calc(100% - 56%) 0 0);
  animation: presetReveal 5.2s cubic-bezier(.65,0,.35,1) infinite alternate;
}
.mini-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(28,25,23,.16), 0 0 22px rgba(28,25,23,.2);
  animation: presetBar 5.2s cubic-bezier(.65,0,.35,1) infinite alternate;
}
.mini-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(28,25,23,.16);
  background: rgba(255,255,255,.92);
  transform: translate(-50%,-50%);
}
.mini-label {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.mini-label.before { left: 10px; }
.mini-label.after { right: 10px; color: var(--terracotta-dark); }
.shot figcaption { margin-top: 12px; font-size: 0.94rem; }
.shot .cap-title { font-weight: 700; color: var(--ink); }
.shot .cap-spec { color: var(--muted); font-size: 0.86rem; }
@keyframes presetReveal {
  0%, 14% { clip-path: inset(0 100% 0 0); }
  86%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes presetBar {
  0%, 14% { left: 0%; }
  86%, 100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-after { animation: none; clip-path: inset(0 0 0 50%); }
  .mini-bar { animation: none; left: 50%; }
}
.preset-groups { margin-top: 44px; }
.preset-group-label {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 4px;
}

/* ---------- Product screenshots (real app captures, Flowbite-style device mockup, no notch) ---------- */
.screens { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
@media (max-width: 900px) { .screens { grid-template-columns: 1fr; gap: 36px; } }
.screen-shots { display: flex; gap: 22px; justify-content: center; align-items: center; }
.device-frame {
  width: 232px;
  max-width: 44vw;
  aspect-ratio: 393 / 852;
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(145deg, #2A2927, #0F0E0D 58%, #3A3631);
  box-shadow: 0 22px 48px rgba(28,25,23,.18), inset 0 0 0 1px rgba(255,255,255,.12);
}
.device-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.1);
}
.device-screen img {
  width: 100%;
  height: 100%;
  aspect-ratio: 760 / 1651;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}
@media (max-width: 520px) {
  .screen-shots { gap: 12px; }
  .device-frame { width: 46vw; padding: 7px; border-radius: 32px; }
  .device-screen { border-radius: 25px; }
}
.screen-copy .app-line { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.screen-copy .app-line img { width: 40px; height: 40px; border-radius: 10px; }
.screen-copy .app-line span { font-weight: 700; color: var(--ink); }

/* ---------- Cards / grids (kept for guide/compare pages) ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card .num {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--terracotta-soft); color: var(--terracotta-dark);
  font-weight: 800; margin-bottom: 16px;
}
.card p:last-child { margin-bottom: 0; }

/* ---------- FAQ / accordion ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 1.08rem; font-weight: 700; color: var(--ink);
  padding: 22px 44px 22px 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--terracotta); transition: transform .2s ease;
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { display: none; padding: 0 0 22px; color: var(--ink-soft); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-item.open .faq-a { display: block; }

/* ---------- Prose (guides/compare) ---------- */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  border-left: 3px solid var(--terracotta); margin: 24px 0; padding: 4px 0 4px 20px;
  color: var(--ink-soft); font-style: italic;
}
.callout {
  background: var(--terracotta-soft); border: 1px solid #EFD7C7;
  border-radius: var(--radius-md); padding: 20px 24px; margin: 28px 0;
}
.callout strong { color: var(--terracotta-dark); }
.note {
  font-size: 0.9rem; color: var(--muted); background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px; margin: 24px 0;
}

/* Comparison table */
.cmp-table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 0.98rem; }
.cmp-table th, .cmp-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table thead th { background: var(--bg-alt); font-weight: 750; color: var(--ink); }
.cmp-table td:first-child { font-weight: 650; color: var(--ink); }
.cmp-table .yes { color: var(--terracotta-dark); font-weight: 700; }
.cmp-table .meh { color: var(--muted); }

/* Breadcrumb */
.crumbs { font-size: 0.88rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--terracotta-dark); }

/* CTA panel (quiet bordered, no gradient band). .cta-band kept for guide/compare/faq pages. */
.cta-panel, .cta-band {
  border: 1px solid var(--border-strong); background: var(--surface);
  border-radius: var(--radius-lg); padding: 52px 40px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.cta-panel h2, .cta-band h2 { margin-bottom: 10px; }
.cta-panel p, .cta-band p { color: var(--ink-soft); }
.cta-panel .store-badges { justify-content: center; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E7E2DC; padding: 56px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #C9C2B9; }
.site-footer a:hover { color: #fff; }
.site-footer .brand .logo { box-shadow: none; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 24px; font-size: 0.85rem; color: #9C958B; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Motion (dial 2: restrained) ---------- */
/* Keep content visible by default. Static marketing pages must not hide assets during screenshots, crawls, or no-JS browsing. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .2s ease, transform .2s ease; }
}
