/* ==========================================================================
   OneTwoPack — Design System
   Thai-first B2B packaging supplier. Mobile-first, LINE in-app browser first.
   Phase 1 MVP | 19 Sep 2026
   ========================================================================== */

/* --- Fonts ----------------------------------------------------------------
   Thai requires a proper Thai typeface. Never let Thai fall back to a Latin
   default — Thai has stacked vowels and tone marks that collide at small
   sizes and in tight line-heights.
   -------------------------------------------------------------------------- */
/* OneTwoPack — self-hosted webfonts.
   IBM Plex Sans Thai (Thai, stacked diacritics) + IBM Plex Sans (Latin).
   Self-hosted so Thai NEVER falls back to a Latin face on a device with no
   Thai system font. unicode-range keeps Latin text out of the Thai face.
   Generated 19 Sep 2026 from the Google Fonts CSS v2 endpoint, files local.
*/

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url("../fonts/thaiplex-400-9ebf916427.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/thaiplex-400-cac9f6e2c6.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/thaiplex-400-cbed898550.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url("../fonts/thaiplex-500-39e6d21dc8.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/thaiplex-500-4fa51a6ccd.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/thaiplex-500-56255fb6b3.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url("../fonts/thaiplex-600-097b86078a.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/thaiplex-600-bb54b6909d.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/thaiplex-600-6769529bd0.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
  src: url("../fonts/thaiplex-700-9b6e537c04.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/thaiplex-700-5829e02fcb.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans Thai";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/thaiplex-700-641245baf8.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/plex-400-632855d1d7.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/plex-400-868a235a9c.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/plex-400-632855d1d7.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/plex-400-868a235a9c.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/plex-400-632855d1d7.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/plex-400-868a235a9c.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  src: url("../fonts/plex-400-632855d1d7.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  src: url("../fonts/plex-400-868a235a9c.woff2") format("woff2");
}

:root {
  /* Type */
  --font-thai: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  --font-latin: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* Thai needs more line-height than Latin — tone marks sit above and
     descenders below. 1.7 is the floor for body copy. */
  --lh-thai: 1.75;
  --lh-latin: 1.55;

  /* Colour — industrial, trustworthy, not playful. This is a B2B supplier. */
  --brand-900: #0B2545;
  --brand-800: #13315C;
  --brand-600: #1D4E89;
  --brand-500: #2A6BB0;
  --brand-100: #E8F0F9;

  --accent-600: #C1440E;   /* warm signal for CTAs — reads well on mobile */
  --accent-500: #E2571A;
  --accent-100: #FDEDE5;

  --ok-600: #1B7F4B;
  --ok-100: #E6F4EC;
  --warn-600: #B7791F;
  --warn-100: #FEF5E7;
  --stop-600: #B02A2A;
  --stop-100: #FBEAEA;

  --ink-900: #14181F;
  --ink-700: #39414D;
  --ink-500: #6B7480;
  --ink-300: #C3C9D2;
  --ink-100: #EEF1F5;
  --paper: #FFFFFF;
  --paper-2: #F7F9FC;

  /* Space */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 3px rgba(20,24,31,.08), 0 1px 2px rgba(20,24,31,.04);
  --shadow-2: 0 4px 16px rgba(20,24,31,.10);
  --shadow-3: 0 12px 32px rgba(20,24,31,.14);

  --maxw: 1180px;
  --tap: 48px;   /* minimum tap target — accessibility requirement */
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* THAI TYPOGRAPHY — the clipping fix.
   Thai stacks upper vowels AND tone marks above the ascender line, so the
   glyph ink box is taller than the em box. Browsers size a heading's box from
   the font's LATIN metrics, which shears the top of Thai text — measured on
   this build: every Thai heading clipped (h1 scrollHeight 129 > height 126,
   and all section titles likewise).
   Fix: give headings real breathing room via padding on the block box rather
   than fighting line-height (line-height alone does not extend the box for
   the first/last line). Latin keeps its own tighter treatment.
   -------------------------------------------------------------------------- */
/* ==========================================================================
   THAI LINE-HEIGHT RULE — do not lower these values.
   --------------------------------------------------------------------------
   Thai stacks upper vowels AND tone marks above the Latin ascender line, so
   the ink box of a Thai line is taller than the box a browser allocates from
   the font's Latin metrics. If line-height is even slightly too small the top
   of the diacritics is sheared off — subtle enough to miss by eye, but it is
   the single most common way a Thai site looks amateurish.

   MEASURED ON THIS BUILD (tools/thai-type-audit.py, 390x844):
     - line-height 1.45  -> h2 ink overflowed by 1px
     - setting h3 to 1.55 (BELOW the inherited 1.75) made it far worse
     => Thai text must NEVER be given a line-height tighter than the body.
   The body is 1.75; headings sit at 1.62 because their larger font-size means
   the same ratio maps to more absolute leading.
   ========================================================================== */
h1 { line-height: 1.58; }
h2, h3, h4 { line-height: 1.62; }
.section-title { line-height: 1.62; }

html[lang="en"] h1 { line-height: 1.25; }
html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] h4, html[lang="en"] .section-title { line-height: 1.3; }

/* Buttons hold Thai labels inside a fixed 48px tap target. The label needs
   more leading than the button box; flex centring absorbs it. */
.btn { line-height: 1.6; }

body {
  margin: 0;
  font-family: var(--font-thai);   /* Thai first */
  line-height: var(--lh-thai);
  color: var(--ink-900);
  background: var(--paper);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body {
  font-family: var(--font-latin);
  line-height: var(--lh-latin);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* Thai numerals/tracking: never letter-space Thai script — it breaks
   vowel positioning. Only space Latin. */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -.01em; }

/* --- Layout --------------------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 62px;
}
.logo {
  font-weight: 700; font-size: 19px; color: var(--brand-900);
  white-space: nowrap;
}
.logo span { color: var(--accent-600); }
.nav { display: flex; gap: var(--s5); margin-left: auto; }
.nav a { color: var(--ink-700); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand-600); text-decoration: none; }

.lang-toggle {
  border: 1px solid var(--ink-300); background: var(--paper);
  border-radius: 999px; padding: 6px 14px; font-size: 13px;
  font-weight: 600; color: var(--ink-700); min-height: 36px;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  min-height: var(--tap);
  padding: 0 var(--s5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600; font-size: 16px;
  transition: transform .06s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-600); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--accent-500); text-decoration: none; }
/* LINE button. Brand LINE green (#06C755) is the recognisable colour, but white
   on it measures 2.26:1 contrast — a WCAG AA failure on the primary mobile CTA.
   #04803A is the same green hue darkened to 5.06:1, which passes AA while still
   reading as LINE. Do not revert to #06C755 without re-checking contrast. */
.btn-line { background: #04803A; color: #fff; }
.btn-line:hover { background: #04752F; text-decoration: none; }
.btn-ghost { background: var(--paper); color: var(--brand-800); border-color: var(--ink-300); }
.btn-ghost:hover { border-color: var(--brand-500); text-decoration: none; }
.btn-block { width: 100%; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 100%);
  color: #fff;
  padding: var(--s8) 0 var(--s7);
  min-height: 260px;   /* Kevin's mobile rule: never a short banner */
}
.hero h1 {
  /* Thai ascenders stack above the cap height (tone marks + upper vowels).
     Measured: at 44px/1.35 the h1 box clipped its own ascenders
     (scrollHeight 125 > height 119). 1.5 is the safe ratio for Thai display
     type at this size. Latin does not need it, so it is overridden below. */
  font-size: clamp(26px, 5.6vw, 42px);
  line-height: 1.58;
  margin: 0 0 var(--s4);
  font-weight: 700;
  overflow-wrap: break-word;
}
html[lang="en"] .hero h1 { line-height: 1.25; }
.hero p {
  font-size: clamp(16px, 3.6vw, 19px);
  color: #C9D8EA; margin: 0 0 var(--s6); max-width: 60ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: #A8CBEF;   /* was #7FB0E0 — raised for contrast on the navy hero */
  margin-bottom: var(--s3);
}
html[lang="th"] .hero .eyebrow { text-transform: none; letter-spacing: 0; }

/* --- Section rhythm ------------------------------------------------------- */
section { padding: var(--s7) 0; }
section.alt { background: var(--paper-2); }
h2.section-title {
  font-size: clamp(22px, 4.6vw, 32px);
  margin: 0 0 var(--s3); font-weight: 700;
  line-height: 1.62;   /* Thai-safe — see the THAI LINE-HEIGHT RULE above */
}
html[lang="en"] h2.section-title { line-height: 1.3; }
.section-sub { color: var(--ink-500); margin: 0 0 var(--s6); max-width: 68ch; }

/* --- Cards ---------------------------------------------------------------- */
.grid { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  background: var(--paper);
  box-shadow: var(--shadow-1);
}
.card h3 { margin: 0 0 var(--s2); font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-700); font-size: 15px; }

/* --- Volume tier table (THE key commercial component) ---------------------
   Build sheet: "Volume pricing comparison must be visually obvious, not buried."
   Never a pipe table — row-grouped cards that work on a phone in LINE.
   -------------------------------------------------------------------------- */
.tiers { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(4, 1fr); } }

.tier {
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  background: var(--paper);
  text-align: center;
  position: relative;
}
.tier.best { border-color: var(--accent-600); border-width: 2px; box-shadow: var(--shadow-2); }
.tier.best::after {
  content: 'ประหยัดที่สุด'; /* "best value" */
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent-600); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  white-space: nowrap;
}
html[lang="en"] .tier.best::after { content: 'BEST VALUE'; }
.tier .qty { font-size: 14px; color: var(--ink-500); font-weight: 600; }
.tier .price { font-size: 24px; font-weight: 700; color: var(--brand-900); margin: var(--s2) 0 2px; }
.tier .unit { font-size: 12px; color: var(--ink-500); }

/* --- Provisional / status badges ------------------------------------------ */
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.badge-instant   { background: var(--ok-100);   color: var(--ok-600); }
.badge-provisional { background: var(--warn-100); color: var(--warn-600); }
.badge-assisted  { background: var(--brand-100); color: var(--brand-600); }

/* Placeholder-price notice — REQUIRED wherever a placeholder price shows. */
.notice-placeholder {
  background: var(--warn-100); border: 1px solid #F0D9A8;
  border-radius: var(--radius); padding: var(--s3) var(--s4);
  color: #7A5210; font-size: 14px; margin-bottom: var(--s4);
}
.notice-rule {
  background: var(--brand-100); border: 1px solid #C9DDF0;
  border-radius: var(--radius); padding: var(--s3) var(--s4);
  color: var(--brand-800); font-size: 14px;
}

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: 10px var(--s3);
  border: 1px solid var(--ink-300); border-radius: var(--radius);
  font-size: 16px; font-family: inherit; background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand-500); outline-offset: 1px; border-color: var(--brand-500);
}
.field .hint { font-size: 13px; color: var(--ink-500); margin-top: 4px; }

/* --- Batch window ---------------------------------------------------------
   The build sheet is explicit that the monthly consolidation batch must read
   as a service, not an apology. Layout follows that: the dates are the most
   legible thing in the block, and the promise sits under them as a statement,
   not a disclaimer. Thai line-heights stay at the global values so nothing
   here re-introduces diacritic clipping. */
.batch-window {
  background: var(--paper-2); border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg); padding: var(--s5);
}
.batch-head { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.batch-head h3 { margin: 0; font-size: 18px; }
.badge-batch { background: var(--brand-100); color: var(--brand-800); }
.batch-body { margin: var(--s3) 0 0; max-width: 68ch; }
.batch-rows { margin: var(--s4) 0 0; display: grid; gap: var(--s2); }
.batch-row {
  background: var(--paper); border: 1px solid var(--ink-100);
  border-radius: var(--radius); padding: var(--s3) var(--s4);
}
.batch-name { font-weight: 700; margin-bottom: 6px; }
.batch-dates { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 14px; }
.batch-dates span { color: var(--ink-700); }
.batch-dates strong { color: var(--ink-500); font-weight: 600; margin-right: 4px; }
.batch-promise {
  margin: var(--s4) 0 0; font-weight: 700; color: var(--brand-800);
}
.batch-ladder-note {
  margin: var(--s2) 0 0; font-size: 14px; color: var(--ink-500);
}

/* --- LINE contact --------------------------------------------------------- */
.line-cta {
  display: flex; align-items: center; gap: var(--s3);
  background: #06C755; color: #fff;
  border-radius: var(--radius-lg); padding: var(--s4);
  box-shadow: var(--shadow-2);
}
.line-cta strong { display: block; font-size: 16px; }
.line-cta small { opacity: .9; font-size: 13px; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--brand-900); color: #A9BDD4;
  padding: var(--s7) 0 var(--s5); font-size: 14px;
}
.site-footer a { color: #D5E3F2; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 var(--s3); }

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 700px) {
  .nav { display: none; }           /* replaced by mobile menu button */
  .hero { padding: var(--s7) 0 var(--s6); }
  section { padding: var(--s6) 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
/* --- Mobile nav -----------------------------------------------------------
   .nav is hidden under 700px, so mobile MUST have its own menu. Without this
   a phone user (the primary audience, inside the LINE browser) cannot navigate.
   -------------------------------------------------------------------------- */
.menu-btn {
  border: 1px solid var(--ink-300); background: var(--paper);
  border-radius: var(--radius); min-height: 44px; min-width: 48px;
  font-size: 20px; line-height: 1; color: var(--ink-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-btn:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
@media (min-width: 701px) { .menu-btn { display: none !important; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ink-100);
  background: var(--paper);
  padding: var(--s2) var(--s4) var(--s4);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px var(--s2);
  min-height: var(--tap);
  color: var(--ink-900);
  font-weight: 500;
  border-bottom: 1px solid var(--ink-100);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { background: var(--paper-2); text-decoration: none; }
@media (min-width: 701px) { .mobile-nav { display: none !important; } }

/* --- Utility -------------------------------------------------------------- */
/* Thai vertical safety net.
   Screen-reader-only and icon-adjacent text still occupies a layout box. Thai
   diacritics overflow a box sized to Latin metrics, so any small container
   holding Thai should not clip. These two rules cover the generic cases; the
   audit script tools/thai-type-audit.py is the authority on what still leaks. */
label, .field label, li, span:not(.badge):not(.logo) {
  overflow-wrap: break-word;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-500); }
.small { font-size: 14px; }
