/* ==========================================================================
   IRIS LEARN · Corporate HRD Solution — demo site
   Same editorial look as Grow Suite and Learn Suite: white page, ink type,
   ONE editorial red, hairline rules, small radii, no shadows, serif display
   headlines (Newsreader), ALL-CAPS kickers, cream tints, IRIS line illustrations.

   Type scale: FIVE sizes only, one line height for text and one for headings.
     --fs-1  52px  page headline (h1)
     --fs-2  32px  section headlines (h2), big numbers
     --fs-3  24px  card titles, feature titles, product name, hero Thai line
     --fs-4  18px  all running text, lists, buttons, navigation
     --fs-5  15px  kickers, captions, footnotes, small labels (nothing smaller anywhere)
   Line height: --lh-text for running text, --lh-ui for labels, navigation, buttons, chips, table cells, --lh-head for headings.
   ========================================================================== */
:root{
  --red:#B8281D; --red-dark:#931D14; --red-soft:#FAEBE8;
  --ink:#121212; --ink-2:#3C3C3C; --muted:#6E6E6E; --line:#E4E1DA; --line-2:#C8C4BA;
  --bg:#FFFFFF; --bg-2:#F7F4EE; --bg-3:#EFEDE8;
  --tint-cream:#FBF3E1; --tint-sky:#E4ECF5; --tint-sage:#E6ECDD; --tint-paper:#F7F4EE;
  --r:4px; --r2:6px;
  --font:"Google Sans","Google Sans Text","Noto Sans Thai",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-display:"Newsreader","Google Sans",Georgia,serif;
  --fs-1:clamp(38px,4vw,52px); --fs-2:32px; --fs-3:24px; --fs-4:18px; --fs-5:15px;
  --lh-text:1.65; --lh-head:1.15; --lh-ui:1.4;
  --wrap:1320px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:var(--fs-4);line-height:var(--lh-text);-webkit-font-smoothing:antialiased}
html[lang="th"]{--lh-text:1.8; --lh-ui:1.5}
html[lang="th"] h1,html[lang="th"] h2,html[lang="th"] h3,html[lang="th"] .serif{font-family:"Noto Sans Thai",var(--font);letter-spacing:0}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img{max-width:100%;display:block}
h1,h2,h3,h4{margin:0;line-height:var(--lh-head)}
h1,h2,.serif{font-family:var(--font-display);font-weight:600;letter-spacing:-.015em}
h1{font-size:var(--fs-1)}
h2{font-size:var(--fs-2)}
h3{font-size:var(--fs-3);font-family:var(--font-display);font-weight:600}
h4{font-size:var(--fs-5);font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
.muted{color:var(--muted)}
.kicker{display:block;font-size:var(--fs-5);font-weight:700;letter-spacing:.12em;line-height:var(--lh-ui);text-transform:uppercase;color:var(--red);margin-bottom:8px}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.th{display:block;color:var(--ink-2);font-weight:500}
[hidden]{display:none!important}

/* ---------- buttons: ink is the action colour, red stays an accent ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 18px;border-radius:var(--r);border:1px solid var(--ink);background:var(--ink);color:#fff;font-weight:600;font-size:var(--fs-4);line-height:1.2;white-space:nowrap;transition:background .12s,border-color .12s}
.btn:hover{background:#000}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--line-2)}
.btn.ghost:hover{background:var(--bg-2);border-color:var(--ink)}
.btn.sm{min-height:36px;padding:6px 14px}
.btn .ic{width:16px;height:16px}
.ic{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ---------- masthead ---------- */
.mast{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.mast .wrap{display:flex;align-items:center;gap:22px;height:72px}
.brand{display:flex;align-items:center;gap:12px}
.brand b{display:block;font-family:var(--font-display);font-weight:600;font-size:var(--fs-3);line-height:1;letter-spacing:-.01em}
.brand small{display:block;margin-top:3px;font-size:var(--fs-5);font-weight:700;letter-spacing:.16em;color:var(--muted);transform:scale(.75);transform-origin:left top}
.mast nav{display:flex;gap:4px;margin-left:auto}
.mast nav a{padding:8px 11px;border-radius:var(--r);font-weight:600;color:var(--ink-2)}
.mast nav a:hover{background:var(--bg-2);color:var(--ink)}
.mast nav a.now{color:var(--ink);box-shadow:inset 0 -2px 0 var(--red);border-radius:0}
.lang{display:inline-flex;flex:none;border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.lang button{padding:5px 11px;font-size:var(--fs-5);font-weight:700;color:var(--muted);background:#fff;line-height:1.5}
.lang button+button{border-left:1px solid var(--line)}
.lang button:hover{background:var(--bg-2);color:var(--ink-2)}
.lang button.on{background:var(--ink);color:#fff}
.mast .cta{flex:none}

/* ---------- hero: the same tone as the Learn Suite sign-in page ---------- */
.hero{background:var(--tint-cream);border-bottom:1px solid var(--ink)}
.hero .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:24px;align-items:end;padding-top:46px}
.hero-txt{padding-bottom:48px;align-self:center}
.hero h1 em{display:block;font-style:italic;color:var(--red)}
.hero .th{font-size:var(--fs-3);margin-top:14px}
.hero .lead{color:var(--ink-2);margin-top:16px}
.hero .cta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.hero-art{align-self:end;height:clamp(300px,34vw,520px);padding-top:16px}
.hero-art img{width:100%;height:100%;object-fit:contain;object-position:center bottom;margin:0 auto}
.facts{border-top:1px solid var(--ink);background:var(--tint-cream)}
.facts .wrap{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;padding-block:16px 18px}
.facts b{display:block;font-family:var(--font-display);font-weight:600;font-size:var(--fs-2);line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.facts span{display:block;font-size:var(--fs-5);color:var(--ink-2);margin-top:6px}

/* ---------- section heads: the intro runs the full width of the page ---------- */
section.block{padding-block:56px 10px}
.sec-h{padding-bottom:16px;border-bottom:1px solid var(--ink);margin-bottom:24px}
.sec-h p{color:var(--ink-2);margin-top:10px}

/* ---------- the three stages: a path, then three cards ---------- */
.path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:22px;border-top:1px solid var(--line)}
.path li{position:relative;display:flex;align-items:center;gap:12px;padding:14px 16px 14px 0;color:var(--ink-2)}
.path li+li{padding-left:18px}
.path li+li::before{content:"";position:absolute;left:-7px;top:50%;width:12px;height:12px;border-top:1px solid var(--line-2);border-right:1px solid var(--line-2);transform:translateY(-50%) rotate(45deg)}
.path .n{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--ink);font-weight:700;font-size:var(--fs-5);color:var(--ink);background:#fff;flex:none}
.path b{display:block;color:var(--ink)}
.path small{display:block;font-size:var(--fs-5);color:var(--muted)}

.stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.stage{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r2);background:#fff;overflow:hidden;transition:border-color .15s}
.stage:hover{border-color:var(--ink)}
/* every picture sits in the same 230px stage, scaled to fit and standing on the same baseline */
.stage-art{position:relative;height:230px;flex:none}
.stage-art img{position:absolute;left:16px;right:16px;top:14px;bottom:0;width:calc(100% - 32px);height:calc(100% - 14px);object-fit:contain;object-position:center bottom}
.stage-art .n{position:absolute;left:12px;top:12px;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;color:var(--ink);font-weight:700;font-size:var(--fs-5);box-shadow:inset 0 0 0 1.5px var(--ink)}
.stage.s1 .stage-art{background:var(--tint-cream)}
.stage.s2 .stage-art{background:var(--tint-sky)}
.stage.s3 .stage-art{background:var(--tint-sage)}
.stage-body{display:flex;flex-direction:column;gap:12px;padding:18px 18px 0;border-top:1px solid var(--line);flex:1}
.stage-body h3{font-size:var(--fs-2)}
.stage-body .offer{font-weight:600;margin-top:-4px;min-height:calc(4em * var(--lh-text))}  /* the offer line and its Thai: four lines reserved, so the tagline sits level across the three cards */
.stage-body .offer .th{font-weight:500}
.stage-body .tag{font-family:var(--font-display);font-style:italic;color:var(--ink-2);min-height:calc(2em * var(--lh-text))}
.stage-body h4{margin:6px 0 -4px}
.stage-body ul{display:flex;flex-direction:column;gap:6px;color:var(--ink-2)}
.stage-body li{display:flex;gap:9px;align-items:flex-start}
.stage-body li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--red);margin-top:9px}
.stage-body li b{color:var(--ink);font-weight:600}
.stage-body > p{color:var(--ink-2)}
/* the footer has one fixed height in every card, so its rule and its button sit on the same line across the row */
.stage-foot{margin-top:auto;height:88px;border-top:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding-bottom:2px}
.stage-foot .price{min-width:0;font-size:var(--fs-5);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-foot .price b{display:block;color:var(--ink);font-size:var(--fs-4)}
.fine{font-size:var(--fs-5);color:var(--muted);margin-top:16px}

/* ---------- how the stages connect ---------- */
.flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.flow div{padding:18px 18px 20px;border-left:3px solid var(--red);background:var(--tint-paper);border-radius:0 var(--r2) var(--r2) 0}
.flow b{display:block;font-family:var(--font-display);font-weight:600;font-size:var(--fs-3);line-height:var(--lh-head);margin-bottom:8px}
.flow p{color:var(--ink-2)}

/* ---------- closing call ---------- */
.call{margin-top:56px;border-top:1px solid var(--ink);background:var(--tint-cream)}
.call .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr);gap:30px;align-items:center;padding-block:40px}
.call h2{font-weight:500}
.call p{color:var(--ink-2);margin-top:10px}
.call .cta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.call img{max-height:220px;width:100%;object-fit:contain;object-position:center bottom}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);background:var(--bg-2)}
footer .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 24px;padding-block:16px;font-size:var(--fs-5);color:var(--muted)}
.powered{display:flex;align-items:center;gap:10px}
.powered small{font-size:var(--fs-5);font-weight:700;letter-spacing:.14em;color:var(--muted);line-height:var(--lh-ui)}
.powered img{height:13px;opacity:.85}

/* ---------- responsive ---------- */
@media (max-width:980px){
  .hero .wrap{grid-template-columns:1fr}
  .hero-art{height:260px;order:-1;padding-top:0}
  .hero-txt{padding-bottom:36px}
  .facts .wrap{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stages,.flow,.path{grid-template-columns:1fr}
  .path li+li{padding-left:0;padding-top:0}
  .path li+li::before{display:none}
  .stage-body .offer,.stage-body .tag{min-height:0}
  .call .wrap{grid-template-columns:1fr}
  .call img{order:-1;max-height:160px}
  .mast nav{display:none}
}
@media (max-width:560px){
  .facts .wrap{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mast .wrap{gap:12px}
  .mast .cta{display:none}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* ---------- one line height for interface text (labels, navigation, buttons, chips, cells) ---------- */
.btn,.chip,.lang button,.mast nav a,.brand b,.brand small,.facts span,.path li,.path b,.path small,.stage-foot .price,.stage-foot .price b,.stage-body h4,.crumb,.ft th,.ft td,.ft tbody th small,.pn small,.pn span,.steps3 .n,.stage-art .n,.tabs small,.legend,.th,.offer,.stage-body .offer .th{line-height:var(--lh-ui)}
h1,h2,h3,.serif,.stage-body h3,.flow b,.steps3 b,.tabs b,.pn b,.facts b{line-height:var(--lh-head)}
p,li,.lead,.tag,.fine,.sec-h p,.hero .lead,.call p,.flow p,.feat p,.callout,.rung li,.ft td li{line-height:var(--lh-text)}

/* ---------- picture slots for the graphic team: hidden unless <html class="slots"> (open any page with ?slots=1) ---------- */
.art-slot{display:none}
html.slots .art-slot{display:flex;flex-direction:column;justify-content:flex-end;position:relative;margin:0 0 20px;padding:12px 14px;border:2px dashed var(--red);border-radius:var(--r2);background:rgba(184,40,29,.05);color:var(--ink);aspect-ratio:var(--ar,3/2);min-height:120px;max-width:100%;box-sizing:border-box;overflow:hidden}
html.slots .art-slot::before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom right,transparent calc(50% - 1px),rgba(184,40,29,.25),transparent calc(50% + 1px)),linear-gradient(to bottom left,transparent calc(50% - 1px),rgba(184,40,29,.25),transparent calc(50% + 1px))}
html.slots .art-slot figcaption{position:relative;font-size:var(--fs-5);line-height:var(--lh-ui);background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:8px 10px;max-width:560px}
html.slots .art-slot figcaption b{color:var(--red)}
html.slots .art-slot figcaption span{display:block;color:var(--ink-2);margin-top:3px}
html.slots .art-slot.wide{aspect-ratio:var(--ar,16/5);width:100%}
html.slots .art-slot.half{width:min(100%,460px);margin-bottom:20px}
html.slots .art-slot.side{position:absolute;right:0;top:0;width:280px;aspect-ratio:3/2;margin:0}
html.slots .page-h.with-slot{position:relative;padding-right:300px;min-height:200px}
html.slots .art-slot.sq{width:160px;aspect-ratio:1;margin:0 auto 14px}
html.slots .art-slot.portrait{width:min(100%,260px);aspect-ratio:4/5;margin:0 0 16px}
html.slots .art-slot.icons{aspect-ratio:auto;min-height:0;padding:10px 14px;margin:0;border-radius:0;border-left:0;border-right:0}
html.slots .art-slot.row{aspect-ratio:auto;min-height:0;justify-content:flex-start;gap:10px}
html.slots .art-slot.row::before{display:none}
html.slots .sq-row{display:flex;flex-wrap:wrap;gap:10px}
html.slots .sq-row i{display:block;width:64px;height:64px;border:1px dashed var(--red);border-radius:var(--r);background:#fff}
html.slots .empty{display:flex;flex-direction:column;align-items:center}

/* Option A: a placeholder filled with a picture from the illustration set (js/slots.js, ART) */
.art-fill{display:flex;justify-content:center;align-items:flex-end;gap:32px;margin:0 0 28px}
.art-fill img{display:block;max-width:100%;height:auto;width:auto;object-fit:contain}
.art-fill.wide img{max-height:300px}
.art-fill.half img{max-height:280px}
.art-fill.pair img{flex:1 1 0;min-width:0;max-height:250px}
@media (max-width:640px){.art-fill{gap:12px}.art-fill.wide img,.art-fill.half img{max-height:200px}.art-fill.pair img{max-height:150px}}

/* the hero text column may shrink below its longest word on narrow phones, so nothing pushes the page sideways */
.hero .wrap > *{min-width:0}
.hero h1,.hero .kicker{overflow-wrap:break-word}
@media (max-width:560px){.hero .btn{white-space:normal;text-align:center;max-width:100%}}

/* option A: softer card corners everywhere (cards, tiles, callouts, portal panels) */
html[data-art="a"]{--r2:16px}

/* option A: every button lights up red under the pointer or keyboard focus, and darkens a touch while pressed */
html[data-art="a"] .btn{transition:background-color .18s,border-color .18s,color .18s,transform .18s,box-shadow .18s}
html[data-art="a"] .btn:hover,html[data-art="a"] .btn:focus-visible,
html[data-art="a"] .btn.ghost:hover,html[data-art="a"] .btn.ghost:focus-visible{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 10px 22px -14px rgba(184,40,29,.75)}
html[data-art="a"] .btn:active{background:var(--red-dark);border-color:var(--red-dark);transform:translateY(1px);box-shadow:none}

/* option A: no divider inside the rounded EN/TH switch (it curved into the pill) */
html[data-art="a"] .lang button+button{border-left:0}
