/* ==========================================================================
   nongmay.com — restaurants & delivery sale page
   Shares the character palette from style.css (pink / sky / mint / lemon)
   and adds an "appetite" rose-red for CTAs so food actions pop.
   Light-only by design — matches the brand's coming-soon page.
   ========================================================================== */

:root {
  --pink:        #FF5FA2;
  --pink-soft:   #FFD3E6;
  --pink-wash:   #FFF0F6;
  --sky:         #4CC3F5;
  --sky-soft:    #CFEEFC;
  --mint:        #7BE0C4;
  --mint-soft:   #D6FBF0;
  --lemon:       #FFD86B;
  --lemon-soft:  #FFF3D1;
  --slate-deep:  #3A4665;
  --ink:         #2C2A47;
  --muted:       #6E6889;   /* darker than coming-soon page: 4.6:1 on white */
  --white:       #FFFFFF;

  /* appetite accent — bridges brand pink and food red */
  --aroi:        #BE123C;   /* 6.4:1 with white text */
  --aroi-deep:   #9F1239;
  --aroi-wash:   #FFF1F4;
  --gold-ink:    #7C4F05;

  --shadow-sm: 0 2px 8px rgba(255, 95, 162, .10);
  --shadow-md: 0 10px 30px rgba(93, 110, 147, .14);
  --shadow-lg: 0 24px 60px rgba(93, 110, 147, .16);

  --radius: 24px;
  --radius-sm: 14px;

  --font-display: "Mali", "Sukhumvit Set", ui-rounded, system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Sukhumvit Set", -apple-system,
               BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: linear-gradient(170deg, #FFF6FA 0%, #FDF4FF 45%, #F0FAFF 100%);
  overflow-x: hidden;
  line-height: 1.65;
}

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

/* --- soft colour blobs --------------------------------------------------- */
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--pink { width: 46vw; height: 46vw; background: var(--pink-soft); top: -12vw; left: -10vw; }
.blob--sky  { width: 40vw; height: 40vw; background: var(--sky-soft);  top: 30vh;  right: -14vw; }
.blob--mint { width: 34vw; height: 34vw; background: var(--mint-soft); bottom: -12vw; left: 18vw; }

.page { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* --- topbar --------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  margin: 0 -20px; padding: 12px 20px;
  background: rgba(255, 246, 250, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 95, 162, .12);
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.mark__dot {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), #FF8AC2);
  box-shadow: var(--shadow-sm);
}
.topbar__spacer { flex: 1; }
.langswitch { display: flex; gap: 4px; font-size: .9rem; }
.langswitch a {
  padding: 8px 12px; min-height: 40px; display: inline-flex; align-items: center;
  border-radius: 999px; text-decoration: none; color: var(--muted); cursor: pointer;
}
.langswitch a[aria-current] { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.langswitch a:hover { color: var(--ink); }

/* --- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 0;
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease-out, box-shadow .2s ease-out, background-color .2s ease-out;
  touch-action: manipulation;
}
.btn svg { flex: 0 0 auto; }
.btn--primary {
  background: var(--aroi); color: var(--white);
  box-shadow: 0 10px 24px rgba(190, 18, 60, .28);
}
.btn--primary:hover { background: var(--aroi-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(190, 18, 60, .34); }
.btn--primary:active { transform: translateY(0) scale(.98); }
.btn--ghost {
  background: var(--white); color: var(--ink);
  border: 2px solid var(--pink-soft); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--pink); transform: translateY(-2px); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn--big { min-height: 58px; padding: 14px 34px; font-size: 1.15rem; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px;
}

/* --- hero ------------------------------------------------------------------ */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 32px;
  padding: 48px 0 24px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--white); color: var(--aroi);
  font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-sm); border: 1.5px solid var(--pink-soft);
}
.hero h1 {
  margin: 18px 0 14px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.05rem, 4.6vw, 3.3rem);
  line-height: 1.4; letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--pink); }
.hero h1 .nb { white-space: nowrap; }
.hero h1 mark {
  background: linear-gradient(transparent 62%, var(--lemon) 62%);
  color: inherit; padding: 0 .1em;
  white-space: nowrap;
}
.hero__sub { max-width: 34em; font-size: 1.1rem; color: var(--muted); margin: 0 0 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero__note svg { color: var(--mint); flex: 0 0 auto; }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__glow {
  position: absolute; width: 78%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 95, 162, .28), transparent 72%);
}
.hero__img { position: relative; width: min(100%, 380px); filter: drop-shadow(0 24px 40px rgba(93, 110, 147, .25)); }

.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-md);
  font-size: .88rem; font-weight: 600; white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.chip svg { color: var(--aroi); }
.chip--1 { top: 10%; left: 0; rotate: -5deg; }
.chip--2 { top: 42%; right: -2%; rotate: 4deg; animation-delay: -2s; }
.chip--3 { bottom: 8%; left: 4%; rotate: -3deg; animation-delay: -4s; }
.chip--2 svg { color: var(--sky); }
.chip--3 svg { color: var(--gold-ink); }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- trust strip ----------------------------------------------------------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 26px 0 0; padding: 0; list-style: none;
}
.trust li {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  font-size: .95rem; line-height: 1.45;
}
.trust li strong { display: block; font-size: 1rem; }
.trust li small { color: var(--muted); font-size: .85rem; }
.trust__icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
}
.trust__icon--pink  { background: var(--pink-wash); color: var(--pink); }
.trust__icon--sky   { background: var(--sky-soft); color: #0E7FB0; }
.trust__icon--mint  { background: var(--mint-soft); color: #0E8A66; }
.trust__icon--lemon { background: var(--lemon-soft); color: var(--gold-ink); }

/* --- sections -------------------------------------------------------------- */
.section { padding: 72px 0 0; }
.section__kicker {
  display: inline-block; font-weight: 700; font-size: .9rem;
  color: var(--aroi); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 8px;
}
.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem); line-height: 1.3;
}
.section__lead { max-width: 40em; color: var(--muted); font-size: 1.05rem; margin: 0 0 34px; }

/* --- compare --------------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.compare__col--may {
  background: linear-gradient(160deg, #FFF0F6, #FFE4F0);
  border: 2px solid var(--pink-soft); box-shadow: var(--shadow-md);
}
.compare__col h3 {
  margin: 0 0 18px; font-family: var(--font-display);
  font-size: 1.25rem; display: flex; align-items: center; gap: 10px;
}
.compare__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare__col li { display: flex; gap: 12px; align-items: flex-start; }
.compare__col li svg { flex: 0 0 auto; margin-top: 3px; }
.compare__col--human li svg { color: #C24B63; }
.compare__col--may li svg { color: #0E8A66; }
.compare__col--human li { color: var(--muted); }

/* --- bento formats ---------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento__card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.bento__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bento__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 16px; margin-bottom: 16px;
}
.bento__card h3 { margin: 0 0 8px; font-size: 1.12rem; font-weight: 600; }
.bento__card p { margin: 0; color: var(--muted); font-size: .95rem; }
.bg-pink  { background: var(--pink-wash);  color: var(--pink); }
.bg-sky   { background: var(--sky-soft);   color: #0E7FB0; }
.bg-mint  { background: var(--mint-soft);  color: #0E8A66; }
.bg-lemon { background: var(--lemon-soft); color: var(--gold-ink); }
.bg-aroi  { background: var(--aroi-wash);  color: var(--aroi); }
.bg-slate { background: #E8ECF6; color: var(--slate-deep); }

/* --- steps ------------------------------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 24px;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; background: var(--pink); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 8px 18px rgba(255, 95, 162, .35);
}
.step h3 { margin: 8px 0 8px; font-size: 1.12rem; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* --- pricing ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--pop { border-color: var(--pink); box-shadow: var(--shadow-lg); }
.plan__flag {
  position: absolute; top: -15px; right: 20px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lemon); color: var(--gold-ink);
  border-radius: 999px; padding: 6px 14px;
  font-size: .82rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.plan h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.3rem; }
.plan__tag { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.plan__price { font-size: 2.15rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan__per { display: block; color: var(--muted); font-size: .88rem; margin: 2px 0 20px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan li svg { flex: 0 0 auto; color: var(--pink); margin-top: 3px; }
.plan .btn { width: 100%; }
.plans__note {
  margin: 22px 0 0; font-size: .88rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}

/* --- delivery band ----------------------------------------------------------- */
.delivery {
  margin-top: 72px;
  background: linear-gradient(150deg, var(--slate-deep), #2C3550);
  border-radius: calc(var(--radius) + 6px);
  padding: 46px 42px;
  color: #EDF1FB;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.delivery .section__kicker { color: var(--lemon); }
.delivery h2 { color: var(--white); margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); }
.delivery p { color: #C3CCE2; margin: 0 0 22px; }
.delivery ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.delivery li { display: flex; gap: 12px; align-items: flex-start; color: #DDE4F4; font-size: .98rem; }
.delivery li svg { flex: 0 0 auto; color: var(--mint); margin-top: 3px; }
.delivery__visual { display: grid; place-items: center; }
.delivery__visual img { width: min(100%, 260px); filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35)); }
.delivery .btn--primary { background: var(--lemon); color: var(--gold-ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.delivery .btn--primary:hover { background: #FFE28E; }

/* --- FAQ ---------------------------------------------------------------------- */
.faq { max-width: 760px; }
.faq details {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
  border: 1.5px solid transparent;
}
.faq details[open] { border-color: var(--pink-soft); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 12px; height: 12px;
  border-right: 2.5px solid var(--pink); border-bottom: 2.5px solid var(--pink);
  transform: rotate(45deg); transition: transform .2s ease-out; margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(225deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* --- final CTA ------------------------------------------------------------------ */
.finale {
  margin-top: 80px; text-align: center;
  background: linear-gradient(160deg, #FFE4F0, #FFF0F6 60%, #EAF7FF);
  border-radius: calc(var(--radius) + 6px);
  padding: 56px 28px 50px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.finale h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 12px; }
.finale p { color: var(--muted); max-width: 34em; margin: 0 auto 28px; font-size: 1.05rem; }
.finale__img { width: 132px; margin-bottom: 6px; filter: drop-shadow(0 12px 24px rgba(93, 110, 147, .25)); }

/* --- footer ----------------------------------------------------------------------- */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 44px 0 40px; color: var(--muted); font-size: .9rem;
}
.footer .mark { font-size: 1rem; }
.footer__spacer { flex: 1; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

/* --- mobile sticky CTA -------------------------------------------------------------- */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 95, 162, .18);
}
.stickycta .btn { width: 100%; }

/* --- reveal on scroll (hidden only when JS is running — html.js) ---------------------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease-out, transform .5s ease-out; }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, .sparkle { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .bento__card, .plan { transition: none; }
}

/* ==========================================================================
   Chatbot page theme — deep-sky accent replaces appetite red; everything
   else inherits. Scoped by body.theme-chat.
   ========================================================================== */
.theme-chat {
  --aroi:      #0C6E99;   /* 5.7:1 with white text */
  --aroi-deep: #095A7E;
  --aroi-wash: #E8F4FA;
}
.theme-chat .btn--primary {
  box-shadow: 0 10px 24px rgba(12, 110, 153, .28);
}
.theme-chat .btn--primary:hover {
  box-shadow: 0 14px 30px rgba(12, 110, 153, .34);
}
.theme-chat .hero__glow {
  background: radial-gradient(closest-side, rgba(76, 195, 245, .3), transparent 72%);
}

/* --- chat mockup card ------------------------------------------------------ */
.chatcard {
  position: relative; z-index: 2;
  width: min(100%, 400px);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.chatcard__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--slate-deep), #2C3550);
  color: var(--white);
}
.chatcard__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: 50% 10%;
  background: var(--pink-wash); border: 2px solid rgba(255, 255, 255, .6);
}
.chatcard__who strong { display: block; font-size: .98rem; }
.chatcard__who small {
  display: flex; align-items: center; gap: 6px;
  color: #C3CCE2; font-size: .8rem;
}
.chatcard__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}
.chatcard__body {
  display: grid; gap: 10px;
  padding: 18px; background: #F5F9FC;
}
.bub {
  max-width: 82%; padding: 10px 14px;
  border-radius: 16px; font-size: .92rem; line-height: 1.55;
}
.bub--in {
  justify-self: start; background: var(--white);
  border: 1px solid #E2EAF2; border-bottom-left-radius: 6px;
}
.bub--out {
  justify-self: end; background: var(--aroi); color: var(--white);
  border-bottom-right-radius: 6px;
}
.bub time { display: block; margin-top: 4px; font-size: .72rem; opacity: .65; }
.bub--voice { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.bub--voice svg { flex: 0 0 auto; color: var(--aroi); }
.wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.wave span { width: 3px; border-radius: 2px; background: #9DB4C6; }
.wave span:nth-child(1) { height: 8px; }  .wave span:nth-child(2) { height: 16px; }
.wave span:nth-child(3) { height: 11px; } .wave span:nth-child(4) { height: 20px; }
.wave span:nth-child(5) { height: 9px; }  .wave span:nth-child(6) { height: 15px; }
.wave span:nth-child(7) { height: 6px; }
.chatcard__note {
  padding: 12px 18px 16px; background: #F5F9FC;
  border-top: 1px dashed #DCE7F0;
  font-size: .82rem; color: var(--muted); text-align: center;
}
.channels {
  margin: 16px auto 0; max-width: 400px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
}
.channels span { display: inline-flex; align-items: center; gap: 6px; }
.channels svg { color: var(--aroi); }

/* --- responsive ------------------------------------------------------------------------ */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .section { padding-top: 56px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 12px; }
  .hero__visual { order: -1; }
  .hero__img { width: min(64vw, 300px); }
  .chip--1 { top: 4%; left: -2%; }
  .chip--2 { right: -4%; }
  .chip--3 { bottom: 2%; }
  .compare { grid-template-columns: 1fr; }
  .hero--chat .hero__visual { order: 1; margin-top: 6px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .plans { grid-template-columns: 1fr; }
  .plan--pop { order: -1; }
  .delivery { grid-template-columns: 1fr; padding: 34px 24px; }
  .delivery__visual { display: none; }
  .stickycta { display: block; }
  body { padding-bottom: 84px; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

@media (max-width: 479px) {
  .bento { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .chip--2 { display: none; }
  .topbar .btn { display: none; } /* sticky bottom CTA covers it */
}
