/* MenuNative landing: a white web page, peach as an accent only (apps/mobile/src/shared/theme). */

@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;
  --soft: #faf8f7;
  --ink: #17181c;
  --ink2: #55585f;
  --ink3: #6f727a;
  --line: #e8e5e3;
  --line-strong: #d9d5d2;
  --pastel: #ffe3d3;
  --action: #e2623a;
  --action-fill: #c4502b;
  --action-text: #a63e1a;
  --sage-text: #336b4a;
  --alert-text: #b23a31;
  --alert-fill: #b3372d;
  --radius: 12px;
  --radius-large: 20px;
  --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;
  /* Fluid scale: 360 px wide → 1280 px wide. */
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.125rem, 1.6rem + 2.6vw, 3.75rem);
  --space-section: clamp(64px, 5rem + 3vw, 128px);
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step-0) / 1.6 var(--font-body);
  overflow-wrap: break-word;
}

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

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

a:hover {
  color: var(--ink);
}

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

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-weight: 700;
}

h2 {
  font-size: var(--step-3);
  font-weight: 700;
}

h3 {
  font-size: var(--step-2);
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

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

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

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

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

.narrow {
  max-width: 720px;
}

.section {
  padding: var(--space-section) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

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

.skip:focus {
  top: 8px;
}

/* Header */

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

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

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

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

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

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

.langs a:hover {
  color: var(--ink);
  background: var(--soft);
}

.langs a[aria-current='true'] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--action);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-header .header-cta {
  display: none;
  margin-left: 12px;
}

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

/* Buttons and the form */

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

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

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

.button-small {
  min-height: 40px;
  padding: 0 16px;
  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-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 16px var(--font-body);
}

.notify-row input::placeholder {
  color: var(--ink3);
}

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

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

@media (min-width: 480px) {
  .notify-row .button {
    flex: 0 0 auto;
  }
}

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

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

.notify-status[data-tone='error'] {
  color: var(--alert-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;
  line-height: 1.5;
  color: var(--ink2);
  margin: 8px 0 0;
}

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

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

/* Hero: one column on phones, copy left and before/after right from 960 px. */

.hero {
  padding: clamp(40px, 2rem + 4vw, 104px) 0 clamp(48px, 2rem + 3vw, 88px);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--action-text);
  letter-spacing: 0.01em;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink2);
  max-width: 34em;
  margin-bottom: 32px;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink2);
}

.proof li:not(:last-child)::after {
  content: '·';
  margin: 0 10px;
  color: var(--ink3);
}

.hero-visual {
  margin: 0;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 2vw, 20px);
}

.pair-item {
  position: relative;
}

.pair-item img {
  width: 100%;
  border-radius: var(--radius-large);
  border: 1px solid var(--line);
}

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

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

.caption {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink2);
}

/* How it works: a numbered story, text and screenshot side by side from 820 px, alternating. */

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 2rem + 3vw, 80px);
}

.section-head p {
  font-size: var(--step-1);
  color: var(--ink2);
}

.steps {
  display: grid;
  gap: clamp(56px, 3rem + 4vw, 112px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 820px) {
  .step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .step:nth-child(even) .step-copy {
    order: 2;
  }
}

.step-copy {
  max-width: 460px;
}

.step-copy p {
  color: var(--ink2);
}

.step-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink2);
}

.step-number {
  font: 700 15px var(--font-title);
  color: var(--action-text);
  font-variant-numeric: tabular-nums;
}

.step-notes {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink2);
}

.step-notes strong {
  color: var(--alert-text);
  font-weight: 600;
}

.step-notes .note-alert {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--alert-fill);
  color: #fff;
  font-size: 14px;
}

.step-visual {
  display: flex;
  justify-content: center;
  padding: clamp(20px, 1rem + 2vw, 40px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}

.device,
.photo {
  width: min(100%, 300px);
}

.device {
  padding: 7px;
  background: var(--ink);
  border-radius: 30px;
}

.device img {
  width: 100%;
  border-radius: 24px;
}

.photo img {
  width: 100%;
  border-radius: 14px;
}

.step-visual-pair {
  gap: 16px;
  align-items: flex-start;
}

.shot-figure {
  width: min(50%, 280px);
  margin: 0;
}

.shot-figure .device {
  width: 100%;
}

.shot-figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
}

.step-visual-pair .shot-figure + .shot-figure {
  margin-top: 40px;
}

.disclaimer {
  max-width: 760px;
  margin: clamp(48px, 2rem + 3vw, 88px) 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--line-strong);
  font-size: 14px;
  color: var(--ink2);
}

/* Story */

.story p {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink2);
}

/* FAQ */

.faq h2 {
  margin-bottom: 24px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font: 600 var(--step-1) var(--font-title);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--action-text);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: 0 0 20px;
  color: var(--ink2);
  max-width: 62ch;
}

/* Final call to action (also the thank-you page's share box) */

.final {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.final .notify {
  margin-inline: auto;
  text-align: left;
}

.final-section {
  background: var(--soft);
}

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

/* Article pages (cuisine, privacy) */

.article {
  max-width: 720px;
}

.article h2 {
  margin-top: 40px;
  font-size: var(--step-2);
}

.article .lead {
  margin-bottom: 24px;
}

.article .final {
  margin: 32px 0;
  padding: 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: var(--radius-large);
  border: 1px solid var(--line);
}

.notice {
  padding: 16px 20px;
  border-left: 3px solid var(--alert-text);
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice h2 {
  margin-top: 0;
  font-size: var(--step-1);
}

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

.words {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  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;
}

/* Footer */

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

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

.site-footer span {
  margin-right: auto;
}

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

.spaced {
  margin-top: 32px;
}
