/* MenuNative landing. Tokens from apps/mobile/src/shared/theme/colors.ts (light scheme). */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-bold.woff') format('woff');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-semibold.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ground: #fff7f2;
  --ink: #17181c;
  --ink2: #5c5f66;
  --ink3: #9a9da6;
  --line: #f3ddd2;
  --pastel: #ffe3d3;
  --action: #e2623a;
  --action-fill: #c4502b;
  --action-text: #a63e1a;
  --sage-text: #336b4a;
  --sage-pastel: #dcebdd;
  --spicy-text: #b23a31;
  --spicy-soft: #fbe3e1;
  --radius-chip: 8px;
  --radius-button: 12px;
  --radius-card: 16px;
  --shadow: 0 4px 12px rgba(23, 24, 28, 0.07);
  --font-title: 'Instrument Sans', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-script:
    'Noto Sans Thai', 'Sukhumvit Set', Thonburi, 'Leelawadee UI', 'Hiragino Sans',
    'Apple SD Gothic Neo', 'Noto Sans CJK JP', system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--action-text);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 8.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

.accent {
  color: var(--action-text);
}

.script {
  font-family: var(--font-script);
}

.muted {
  color: var(--ink2);
}

.small {
  font-size: 14px;
}

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

.section {
  padding: 48px 0;
}

.section-intro {
  max-width: 640px;
  color: var(--ink2);
  margin-bottom: 24px;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: var(--radius-button);
  z-index: 10;
}

.skip:focus {
  top: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font: 700 20px var(--font-title);
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--action);
  color: #fff;
  font-size: 18px;
}

.langs {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.langs a {
  padding: 8px;
  min-width: 32px;
  text-align: center;
  color: var(--ink2);
  text-decoration: none;
  border-radius: var(--radius-chip);
}

.langs a[aria-current='true'] {
  background: var(--pastel);
  color: var(--ink);
  font-weight: 600;
}

.site-header .header-cta {
  display: none;
}

@media (min-width: 640px) {
  .site-header .header-cta {
    display: inline-flex;
  }
}

/* Buttons and the form */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--action-fill);
  color: #fff;
  font: 600 16px var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--action-text);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.button-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.notify {
  max-width: 520px;
}

.notify-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notify-row input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: var(--paper);
  color: var(--ink);
  font: 16px var(--font-body);
}

.notify-row input:focus {
  border-color: var(--action);
}

.notify-row .button {
  flex: 1 1 auto;
}

.notify-status {
  margin: 8px 0 0;
  font-weight: 600;
}

.notify-status:empty {
  margin: 0;
}

.notify-status[data-tone='error'] {
  color: var(--spicy-text);
}

.notify-status[data-tone='ok'] {
  color: var(--sage-text);
}

.notify.is-done .notify-row,
.notify.is-done .notify-label {
  display: none;
}

.notify-consent {
  font-size: 13px;
  color: var(--ink2);
  margin: 4px 0 0;
}

.objection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.objection li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* MenuNative landing, page sections. Concatenated after 1-base.css by build.mjs. */

/* Hero */

.hero {
  padding: 24px 0 40px;
}

.eyebrow {
  display: inline-block;
  background: var(--pastel);
  color: var(--action-text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.lead {
  font-size: 17px;
  color: var(--ink2);
  max-width: 560px;
  margin-bottom: 20px;
}

@media (min-width: 960px) {
  .lead {
    font-size: 19px;
  }
}

.hero-grid {
  display: grid;
  gap: 20px;
  grid-template-areas:
    'head'
    'compare'
    'body';
}

.hero-head {
  grid-area: head;
}

.hero-head h1 {
  margin: 0;
}

.compare {
  grid-area: compare;
}

.hero-body {
  grid-area: body;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      'head compare'
      'body compare';
    grid-template-rows: auto 1fr;
    column-gap: 48px;
    row-gap: 24px;
    align-items: start;
  }

  .compare {
    align-self: center;
  }
}

.compare {
  margin: 0;
}

.compare-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}

.shot img {
  width: 100%;
}

.tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 13px var(--font-title);
}

.tag-action {
  background: var(--action-fill);
  color: #fff;
}

.compare figcaption,
.caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink2);
}

/* Cards and grids */

.cards {
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card-us {
  border-color: var(--action);
  background: #fffaf7;
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

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

.card img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 12px;
}

.label {
  display: inline-block;
  font: 600 13px var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink2);
  margin-bottom: 8px;
}

.card-us .label {
  color: var(--action-text);
}

/* Dish strip */

.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 80%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 16px 16px;
  margin: 0 -16px;
  list-style: none;
}

@media (min-width: 760px) {
  .strip {
    grid-auto-columns: minmax(280px, 32%);
  }
}

.strip > li {
  scroll-snap-align: start;
}

.dish-script {
  font: 600 26px/1.3 var(--font-script);
  margin: 0;
}

.dish-roman {
  color: var(--ink2);
  font-size: 14px;
  margin-bottom: 8px;
}

.dish-country {
  display: inline-block;
  background: var(--sage-pastel);
  color: var(--sage-text);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-chip);
  padding: 2px 8px;
  margin-bottom: 8px;
}

.how {
  margin: 12px 0 0;
  padding: 12px;
  background: var(--pastel);
  border-radius: 12px;
  font-size: 15px;
}

.how strong {
  display: block;
  color: var(--action-text);
  font-size: 13px;
}

/* Pains and steps */

.pain h3 {
  font-size: 22px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  font: 700 16px var(--font-title);
  margin-bottom: 8px;
}

.later {
  margin-top: 16px;
  color: var(--ink2);
}

/* Story */

.story {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 760px) {
  .story {
    grid-template-columns: 280px 1fr;
  }
}

.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 280px;
  border: 2px dashed var(--action);
  border-radius: var(--radius-card);
  background: var(--pastel);
  color: var(--action-text);
  font-weight: 700;
  text-align: center;
  padding: 16px;
}

/* Disclaimer and FAQ */

.notice {
  border-left: 4px solid var(--spicy-text);
  background: var(--spicy-soft);
  border-radius: 12px;
  padding: 16px;
}

.notice h2 {
  font-size: 20px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 0 16px;
}

.faq details + details {
  margin-top: 8px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  min-height: 48px;
}

.faq details p {
  padding-bottom: 8px;
}

.final {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 16px;
}

/* MenuNative landing, article pages and footer. Concatenated last by build.mjs. */

/* Article pages (cuisine, privacy) */

.article {
  max-width: 720px;
}

.article h2 {
  margin-top: 32px;
}

.table-wrap {
  overflow-x: auto;
}

.words {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.words th,
.words td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.words th {
  font: 600 14px var(--font-title);
  color: var(--ink2);
}

.words td.script {
  font-size: 20px;
  white-space: nowrap;
}

.todo {
  background: #fff3b0;
  padding: 0 4px;
  border-radius: 4px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  font-size: 14px;
  color: var(--ink2);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.narrow-figure {
  max-width: 420px;
}

.spaced {
  margin-top: 32px;
}
