/* =========================================================================
   Jiak Simi — website styles
   Plain CSS, no framework. Mobile-first: base rules style the phone layout,
   then the @media (min-width: 768px) block adds the wider desktop layout.
   All colours come from the CSS variables in :root — never hardcode a hex
   in a rule below; use var(--token) so the brand stays consistent.
   ========================================================================= */

/* ---- 1. Design tokens (the Jiak Simi palette) -------------------------- */
:root {
  --bg-cream:       #FBF2E6; /* page background */
  --bg-white:       #FFFBF5; /* cards / white surfaces */
  --text-primary:   #1E1E1E;
  --text-secondary: #353535;
  --text-tertiary:  #696452; /* darkened for AA contrast on cream */
  --coral:          #EF2626;
  --coral-soft:     #F98F8E;
  --coral-light:    #FFC1C2;
  --teal:           #20564B;
  --teal-soft:      #7AC5AD;
  --teal-light:     #A8E0D3;
  --deep:           #0A2533; /* footer / dark surfaces */
  --card-beige:     #EFE6D2;
  --amber:          #DF9A05;

  /* layout */
  --content: 1180px;             /* max width of the readable content column */
  --gutter: 24px;                /* side padding on small screens */
  --radius-card: 20px;
  --radius-pill: 100px;
}

/* ---- 2. Reset & base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "League Spartan", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; }

/* Centered content column. width:min() keeps a 24px gutter on narrow
   screens and caps at 1180px on wide screens (→ 130px margins at 1440px). */
.inner {
  width: min(var(--content), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Small uppercase section label (e.g. "WHAT IS JIAK SIMI?") */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.26px;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---- 3. Wordmark lockup (header + footer) ----------------------------- */
/* "JIAK [smiley] SIMI" — JIAK coral, SIMI teal, smiley uses currentColor.
   On the dark footer we recolour everything to white (see footer rules). */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.2px;
}
.wordmark .wm-jiak { color: var(--coral); }
.wordmark .wm-simi { color: var(--teal); }
.wordmark .wm-smiley {
  display: inline-flex;
  color: var(--text-primary); /* the smiley face colour */
  margin-top: 2px;
}
.wordmark .wm-smiley svg { width: 22px; height: auto; }

/* ---- 4. Header -------------------------------------------------------- */
.site-header {
  padding-block: 20px;
  position: relative;
  z-index: 5;
}

/* ---- 5. Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  max-width: 1920px;        /* full-bleed on normal screens so the food art reaches
                               the real edges; capped so it can't balloon on huge monitors */
  margin-inline: auto;
  overflow: hidden;
}
/* The food-illustration layer fills the hero; its aspect ratio sets the
   hero's height. The empty centre is where the wordmark/tagline sit.
   A <picture> serves the mobile cluster on phones and the desktop cluster
   on wide screens, so only one file is downloaded. */
.hero__art, .hero__art img { display: block; width: 100%; height: auto; }

/* The wordmark / tagline / store badges, layered over the art and centred. */
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  gap: clamp(16px, 4vw, 26px);
}
.hero__wordmark { width: clamp(150px, 52vw, 230px); }

.hero__tagline {
  font-weight: 700;
  font-size: clamp(25px, 6.8vw, 50px);
  letter-spacing: -0.8px;
  line-height: 1.05;
  color: var(--text-primary);
  max-width: 100%;
}
.hero__tagline .accent { color: var(--coral); }

/* "LAUNCHING IN SINGAPORE · 2026" pill — top-left on desktop only */
.hero__pill {
  display: none;
  position: absolute;
  top: 26px;
  left: 39px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--coral-light);
  color: var(--coral);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Coming-soon store badges */
.stores { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stores__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.stores__badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.stores__badges img { height: 44px; width: auto; }

/* Chilli accent, bottom-right of the hero (mobile only; desktop art already has one) */
.hero__chilli {
  position: absolute;
  right: 18px;
  bottom: 20px;
  width: 70px;
  height: auto;
  z-index: 2;
}

/* ---- 6. "What is Jiak Simi?" ------------------------------------------ */
.what {
  padding-block: clamp(48px, 7vw, 64px);
  background: var(--bg-white);
}
.what__grid { display: grid; gap: 36px; }
.what__title {
  font-size: clamp(26px, 6.5vw, 40px);
  margin-bottom: 20px;
}
.what__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 640px;
}
.what__tagline {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 640px;
}

/* Chat speech bubbles */
.bubbles { display: flex; flex-direction: column; gap: 16px; }
.bubble {
  position: relative;
  align-self: flex-start;
  max-width: 88%;
  padding: 14px 22px;
  background: var(--bg-cream);
  border: 1px solid var(--card-beige);
  border-radius: 22px;
  font-size: clamp(19px, 5.5vw, 24px);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(10, 37, 51, 0.06);
}
.bubble--right { align-self: flex-end; }
.bubble--teal  { color: var(--teal); border-bottom-left-radius: 6px; }
.bubble--coral { color: var(--coral); border-bottom-right-radius: 6px; }
.bubble--last  { color: var(--teal); border-bottom-left-radius: 6px; }

/* ---- 7. How it works -------------------------------------------------- */
.how { padding-block: clamp(48px, 7vw, 64px); }
.how__title {
  font-size: clamp(26px, 6.5vw, 40px);
  margin-bottom: 32px;
  max-width: 640px;
}
.steps { display: grid; gap: 20px; }
.step {
  background: var(--bg-white);
  border: 1px solid var(--card-beige);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: 0 8px 24px rgba(10, 37, 51, 0.05);
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--bg-white);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 24px;
}
.step__title { font-size: clamp(19px, 5vw, 21px); margin-bottom: 12px; }
.step__body { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

/* ---- 8. The Palate Compass ------------------------------------------- */
.compass { padding-block: clamp(24px, 4vw, 32px) clamp(48px, 7vw, 64px); }
.compass__card {
  background: var(--card-beige);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  gap: 28px;
  align-items: center;
}
.compass__title {
  font-size: clamp(25px, 6vw, 38px);
  letter-spacing: -0.5px;
  color: var(--teal);
  margin-bottom: 16px;
}
.compass__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 24px;
}
.chips { display: none; flex-wrap: wrap; gap: 10px; } /* hidden on mobile; shown on desktop */
.chip {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--bg-white);
  color: var(--bg-cream);
  font-size: 15px;
  font-weight: 600;
}
.chip--heat  { background: var(--coral); }
.chip--sweet { background: var(--coral-soft); }
.chip--sour  { background: var(--teal-soft); }
.chip--umami { background: var(--teal); }
.chip--rich  { background: var(--deep); }
.chip--fresh { background: var(--teal-light); color: var(--teal); }
.compass__chart { justify-self: center; width: min(282px, 100%); }

/* ---- 9. Footer ------------------------------------------------------- */
.site-footer { background: var(--text-primary); color: var(--bg-white); }
.site-footer .inner { padding-block: 44px; }
.footer__top { display: flex; flex-direction: column; gap: 28px; }
.footer__brand .wordmark { color: var(--bg-white); }
.site-footer .wordmark .wm-jiak,
.site-footer .wordmark .wm-simi { color: var(--bg-white); }
.site-footer .wordmark .wm-smiley { color: var(--bg-white); }
.footer__tagline { margin-top: 10px; font-size: 13px; color: rgba(255, 251, 245, 0.7); }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 13px; }
.footer__links a { color: rgba(255, 251, 245, 0.85); }
.footer__links a:hover { color: var(--bg-white); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 251, 245, 0.15);
  font-size: 12px;
  color: rgba(255, 251, 245, 0.6);
}

/* ---- 10. Legal pages (privacy / terms) ------------------------------- */
.legal-header {
  padding-block: 18px;
  border-bottom: 1px solid var(--card-beige);
}
.legal-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-header .back { font-size: 14px; font-weight: 600; color: var(--teal); }
.legal {
  width: min(720px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
  padding-block: clamp(40px, 7vw, 64px);
}
.legal__title { font-size: clamp(34px, 8vw, 44px); margin-bottom: 8px; }
.legal__meta { font-size: 14px; color: var(--text-tertiary); margin-bottom: 28px; }
.legal__notice {
  background: var(--card-beige);
  border-left: 4px solid var(--coral);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.legal__notice strong { display: block; margin-bottom: 6px; font-size: 15px; }
.legal__notice p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.legal h2 { font-size: clamp(20px, 4vw, 24px); margin: 32px 0 10px; }
.legal section p { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 12px; }
.legal a { color: var(--teal); font-weight: 600; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; color: var(--text-primary); }
.legal p strong, .legal li strong, .legal td strong { color: var(--text-primary); }
.legal em { font-style: italic; color: var(--text-tertiary); }
.legal ul { margin: 8px 0 14px; padding-left: 22px; }
.legal li { font-size: 15px; line-height: 1.6; color: var(--text-secondary); margin-bottom: 8px; }
.legal hr { border: none; border-top: 1px solid var(--card-beige); margin: 28px 0; }
.legal table {
  width: 100%;
  table-layout: fixed;          /* equal columns so cells wrap instead of overflowing */
  border-collapse: collapse;
  margin: 14px 0 6px;
  font-size: 14px;
}
.legal th, .legal td {
  border: 1px solid var(--card-beige);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  word-break: break-word;
}
.legal th { background: var(--card-beige); font-weight: 600; color: var(--text-primary); }
.legal td { color: var(--text-secondary); }

/* ---- 11. Desktop layout (≥768px) ------------------------------------- */
@media (min-width: 768px) {
  .hero__pill         { display: inline-block; }
  .hero__chilli       { display: none; }   /* desktop cluster already includes a chilli */
  .chips              { display: flex; }    /* show the axis chips on desktop */

  .hero__content { gap: 24px; }
  .hero__wordmark { width: clamp(190px, 19vw, 267px); }

  .what__grid { grid-template-columns: 1.55fr 1fr; gap: 64px; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .compass__card { grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 56px; }

  .footer__top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer__links { justify-content: flex-end; }
}
