/* iACC presentation decks — shared stylesheet.
   Used by presentations/*.html. Light+dark themed, print-ready (A4). */
:root{
    --paper:#EFF4F6; --surface:#FFFFFF; --surface-2:#F7FAFB;
    --ink:#0E2027; --ink-2:#254651; --muted:#5A757F; --line:#D3E0E5;
    --primary:#0A6E8A; --primary-deep:#063E50; --primary-wash:#E2EFF3;
    --gold:#9A6A18; --gold-wash:#F7EEDC;
    --good:#127054; --good-wash:#E0F0EA;
    --alert:#A8401C; --alert-wash:#F8E9E3;
    /* the deep band stays dark in BOTH themes — never derive it from --primary-deep,
       which lifts to a light tone in dark mode */
    --deep-bg:#063E50; --deep-fg:#EAF6FA; --deep-accent:#7FD3EA; --deep-soft:#C2E4EF;
    --shadow:0 1px 2px rgba(14,32,39,.06), 0 12px 32px -12px rgba(14,32,39,.18);
    --radius:14px;
    --font:"Sukhumvit Set","IBM Plex Sans Thai","Noto Sans Thai","Leelawadee UI",Thonburi,
           -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
    --maxw:1080px;
  }
  @media (prefers-color-scheme: dark){
    :root{
      --paper:#0A171C; --surface:#102630; --surface-2:#0D1F27;
      --ink:#E7F0F3; --ink-2:#BBD2DA; --muted:#8AA6B0; --line:#22414D;
      --primary:#5CBAD6; --primary-deep:#9AD8EA; --primary-wash:#12303C;
      --gold:#DCAC55; --gold-wash:#2E2515;
      --good:#5BC49E; --good-wash:#12302A;
      --alert:#E88A63; --alert-wash:#33190F;
      --deep-bg:#08222C; --deep-fg:#E4F2F7; --deep-accent:#79CDE4; --deep-soft:#AFD5E2;
      --shadow:0 1px 2px rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.7);
    }
  }
  :root[data-theme="dark"]{
    --paper:#0A171C; --surface:#102630; --surface-2:#0D1F27;
    --ink:#E7F0F3; --ink-2:#BBD2DA; --muted:#8AA6B0; --line:#22414D;
    --primary:#5CBAD6; --primary-deep:#9AD8EA; --primary-wash:#12303C;
    --gold:#DCAC55; --gold-wash:#2E2515;
    --good:#5BC49E; --good-wash:#12302A;
    --alert:#E88A63; --alert-wash:#33190F;
    --deep-bg:#08222C; --deep-fg:#E4F2F7; --deep-accent:#79CDE4; --deep-soft:#AFD5E2;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 14px 34px -14px rgba(0,0,0,.7);
  }
  :root[data-theme="light"]{
    --paper:#EFF4F6; --surface:#FFFFFF; --surface-2:#F7FAFB;
    --ink:#0E2027; --ink-2:#254651; --muted:#5A757F; --line:#D3E0E5;
    --primary:#0A6E8A; --primary-deep:#063E50; --primary-wash:#E2EFF3;
    --gold:#9A6A18; --gold-wash:#F7EEDC;
    --good:#127054; --good-wash:#E0F0EA;
    --alert:#A8401C; --alert-wash:#F8E9E3;
    --deep-bg:#063E50; --deep-fg:#EAF6FA; --deep-accent:#7FD3EA; --deep-soft:#C2E4EF;
    --shadow:0 1px 2px rgba(14,32,39,.06), 0 12px 32px -12px rgba(14,32,39,.18);
  }

  *{box-sizing:border-box}
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:var(--font); font-size:17px; line-height:1.72;
    -webkit-font-smoothing:antialiased;
  }
  img{max-width:100%; display:block}

  /* ---------- structure ---------- */
  .band{padding:76px 24px}
  .band--surface{background:var(--surface)}
  .band--deep{background:var(--deep-bg); color:var(--deep-fg)}
  .wrap{max-width:var(--maxw); margin:0 auto}
  .wrap--narrow{max-width:760px}

  .eyebrow{
    font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase;
    color:var(--primary); margin:0 0 14px;
  }
  .band--deep .eyebrow{color:var(--deep-accent)}

  h1{
    font-size:clamp(38px,6.4vw,62px); line-height:1.18; font-weight:800;
    letter-spacing:-.015em; margin:0 0 20px; text-wrap:balance;
  }
  h2{
    font-size:clamp(27px,3.6vw,38px); line-height:1.3; font-weight:800;
    letter-spacing:-.01em; margin:0 0 14px; text-wrap:balance;
  }
  h3{font-size:20px; font-weight:700; line-height:1.45; margin:0 0 8px}
  p{margin:0 0 16px; max-width:64ch}
  .lead{font-size:clamp(18px,2.1vw,21px); color:var(--ink-2); line-height:1.65}
  .band--deep .lead{color:var(--deep-soft)}
  .muted{color:var(--muted)}
  .sec-intro{margin-bottom:40px}

  /* ---------- cover ---------- */
  .cover{
    background:
      radial-gradient(120% 88% at 88% 4%, var(--primary-wash) 0%, transparent 60%),
      var(--surface);
    border-bottom:1px solid var(--line);
    padding:96px 24px 68px;
  }
  .cover h1{margin-bottom:24px}
  .cover .lead{max-width:44ch}
  .cover-marks{
    display:flex; flex-wrap:wrap; gap:10px; margin:34px 0 0; padding:0; list-style:none;
  }
  .cover-marks li{
    background:var(--primary-wash); color:var(--primary-deep);
    border:1px solid color-mix(in srgb, var(--primary) 26%, transparent);
    border-radius:999px; padding:7px 16px; font-size:15px; font-weight:600;
  }
  .disclaimer{
    margin-top:38px; padding:14px 18px; border-inline-start:3px solid var(--primary);
    background:var(--surface-2); border-radius:0 10px 10px 0;
    font-size:15px; color:var(--ink-2); max-width:62ch;
  }

  /* ---------- pain list ---------- */
  .pains{display:grid; gap:14px; margin:0; padding:0; list-style:none}
  .pain{
    display:flex; gap:16px; align-items:flex-start;
    background:var(--surface); border:1px solid var(--line);
    border-radius:12px; padding:18px 20px;
  }
  .pain .x{
    flex:0 0 auto; width:30px; height:30px; border-radius:8px;
    background:var(--alert-wash); color:var(--alert);
    display:grid; place-items:center; font-weight:800; font-size:17px; line-height:1;
  }
  .pain p{margin:0; font-size:17px}

  /* ---------- menu grid ---------- */
  .menu-grid{
    display:grid; gap:16px;
    grid-template-columns:repeat(auto-fit,minmax(232px,1fr));
  }
  .menu-card{
    background:var(--surface); border:1px solid var(--line);
    border-radius:12px; padding:22px 20px;
  }
  .menu-card .ic{
    width:38px; height:38px; border-radius:10px; background:var(--primary-wash);
    color:var(--primary); display:grid; place-items:center; margin-bottom:14px;
  }
  .menu-card .ic svg{width:21px; height:21px; stroke:currentColor; fill:none;
    stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round}
  .menu-card h3{font-size:17px; margin-bottom:5px}
  .menu-card p{font-size:15px; color:var(--muted); margin:0; line-height:1.62}

  /* ---------- steps ---------- */
  .steps{display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(228px,1fr))}
  .step{
    position:relative; background:var(--surface); border:1px solid var(--line);
    border-radius:12px; padding:24px 22px 22px;
  }
  .step .n{
    font-size:46px; font-weight:800; line-height:1; color:var(--primary);
    opacity:.9; margin-bottom:12px;
  }
  .step h3{font-size:18px}
  .step p{font-size:15px; color:var(--muted); margin:0; line-height:1.62}

  /* ---------- screen frame ---------- */
  .shot{margin:0 0 8px}
  .frame{
    background:var(--surface); border:1px solid var(--line);
    border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  }
  .frame-bar{
    display:flex; align-items:center; gap:9px;
    padding:11px 16px; background:var(--surface-2); border-bottom:1px solid var(--line);
  }
  .frame-bar i{width:9px; height:9px; border-radius:50%; background:var(--line); flex:0 0 auto}
  .frame-bar span{
    font-size:13px; color:var(--muted); margin-inline-start:8px; font-weight:600;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .frame img{width:100%; height:auto}
  .frame--crop img{height:auto; max-height:none}
  .caption{font-size:14px; color:var(--muted); margin:14px 0 0; max-width:70ch}

  /* screen section: question + shot + points */
  .screen{margin-bottom:0}
  .screen + .screen{margin-top:66px; padding-top:60px; border-top:1px solid var(--line)}
  .screen-head{margin-bottom:26px}
  .screen-head h2{margin-bottom:10px}
  /* two columns max — Thai wraps badly in narrow tracks, especially where an
     inline <strong> sits mid-sentence */
  .points{
    display:grid; gap:12px 30px; margin:26px 0 0; padding:0; list-style:none;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  @media (max-width:720px){ .points{grid-template-columns:1fr} }
  .points li{
    display:flex; gap:12px; align-items:flex-start;
    font-size:15.5px; line-height:1.6; color:var(--ink-2);
  }
  .points .tick{
    flex:0 0 auto; width:22px; height:22px; border-radius:6px; margin-top:3px;
    background:var(--good-wash); color:var(--good); display:grid; place-items:center;
  }
  .points .tick svg{width:13px; height:13px; stroke:currentColor; fill:none;
    stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round}

  /* ---------- note box ---------- */
  .note{
    background:var(--gold-wash); border:1px solid color-mix(in srgb, var(--gold) 32%, transparent);
    border-radius:12px; padding:20px 22px; margin:28px 0 0;
  }
  .note h3{color:var(--gold); font-size:16px; margin-bottom:6px}
  .note p{margin:0; font-size:15.5px; color:var(--ink-2)}

  /* ---------- phones ---------- */
  .phones{
    display:grid; gap:26px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    max-width:620px; margin-top:8px;
  }
  .phone{
    border:1px solid var(--line); border-radius:22px; overflow:hidden;
    background:var(--surface); box-shadow:var(--shadow); padding:8px;
  }
  .phone img{border-radius:15px}
  .phone-cap{
    text-align:center; font-size:13.5px; color:var(--muted);
    padding:10px 4px 3px; font-weight:600;
  }

  /* ---------- order channels ---------- */
  .status-pill{
    display:inline-flex; align-items:center; gap:8px; border-radius:999px;
    padding:5px 15px; font-size:13.5px; font-weight:700; margin-bottom:14px;
  }
  .status-pill::before{content:""; width:8px; height:8px; border-radius:50%; background:currentColor}
  .status-live{background:var(--good-wash); color:var(--good)}
  .status-soon{background:var(--gold-wash); color:var(--gold)}
  .chan-grid{
    display:grid; gap:20px; grid-template-columns:1.6fr 1fr;
    align-items:start; margin-top:22px;
  }
  .roadmap{
    display:grid; gap:16px; margin-top:22px;
    grid-template-columns:repeat(auto-fit,minmax(272px,1fr));
  }
  .rm-card{
    border:1.5px dashed color-mix(in srgb, var(--gold) 48%, transparent);
    background:var(--gold-wash); border-radius:12px; padding:22px 20px;
  }
  .rm-card h3{font-size:17px; margin-bottom:6px; color:var(--ink)}
  .rm-card p{font-size:15px; color:var(--ink-2); margin:0; line-height:1.62}
  @media (max-width:760px){ .chan-grid{grid-template-columns:1fr} }

  /* ---------- faq ---------- */
  .faq{display:grid; gap:0; border-top:1px solid var(--line)}
  .faq-item{padding:22px 0; border-bottom:1px solid var(--line)}
  .faq-item h3{font-size:17.5px; margin-bottom:7px; color:var(--primary-deep)}
  .faq-item p{margin:0; color:var(--ink-2); font-size:16px}

  /* ---------- price ---------- */
  .price-grid{display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); margin-top:8px}
  .price-card{
    background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.2);
    border-radius:14px; padding:26px 24px;
  }
  .price-card.is-best{background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.42)}
  .price-card .plan{font-size:14px; font-weight:700; letter-spacing:.1em;
    text-transform:uppercase; color:var(--deep-accent); margin:0 0 10px}
  .price-card .amt{
    font-size:42px; font-weight:800; line-height:1.05; letter-spacing:-.02em;
    font-variant-numeric:tabular-nums; margin:0;
  }
  .price-card .per{font-size:16px; font-weight:600; color:var(--deep-soft)}
  .price-card .sub{font-size:14.5px; color:var(--deep-soft); margin:10px 0 0}
  .badge-save{
    display:inline-block; margin-top:12px; background:#F4D9A0; color:#4A3208;
    border-radius:999px; padding:4px 13px; font-size:13.5px; font-weight:700;
  }

  .start-list{counter-reset:s; list-style:none; margin:26px 0 0; padding:0; display:grid; gap:14px}
  .start-list li{
    counter-increment:s; display:flex; gap:15px; align-items:flex-start; font-size:16.5px;
  }
  /* The li is a NOWRAP flex row, so inline text + <strong> would each become their
     own flex item and their min-content widths would SUM — forcing the grid track
     wider than the page at 320px. Keep the copy inside a single <span> child, and
     let that child shrink. Same reason .points li wraps its text in a span. */
  .start-list li > span{min-width:0; overflow-wrap:anywhere}
  .start-list li::before{
    content:counter(s); flex:0 0 auto; width:28px; height:28px; border-radius:8px;
    background:rgba(255,255,255,.16); color:var(--deep-fg); display:grid; place-items:center;
    font-size:14px; font-weight:800; margin-top:2px;
  }

  footer{
    padding:34px 24px 46px; background:var(--paper);
    border-top:1px solid var(--line); color:var(--muted); font-size:14px;
  }
  footer .wrap{display:flex; flex-wrap:wrap; gap:10px; justify-content:space-between}

  @media (max-width:640px){
    body{font-size:16px}
    .band{padding:54px 20px}
    .cover{padding:64px 20px 52px}
    .screen + .screen{margin-top:48px; padding-top:44px}
  }
  @media print{
    /* Paper always uses the light palette, whatever theme the viewer is in.
       Re-declaring the tokens (not the components) keeps one source of truth. */
    :root{
      --paper:#FFFFFF; --surface:#FFFFFF; --surface-2:#F6FAFB;
      --ink:#0E2027; --ink-2:#22434E; --muted:#4C6773; --line:#C2D4DB;
      --primary:#0A6E8A; --primary-deep:#063E50; --primary-wash:#E2EFF3;
      --gold:#7C5410; --gold-wash:#F7EEDC;
      --good:#0E5C45; --good-wash:#E0F0EA;
      --alert:#8C3416; --alert-wash:#F8E9E3;
      --deep-bg:#063E50; --deep-fg:#FFFFFF; --deep-accent:#93DAEE; --deep-soft:#D6EBF3;
      --shadow:none;
    }
    html,body{background:#fff}
    body{
      font-size:10.5pt; line-height:1.62;
      -webkit-print-color-adjust:exact; print-color-adjust:exact;
    }
    .band,.cover{padding:0 0 12mm; border-bottom:0}
    .cover{padding-top:0}
    /* the deep band paints a background, so it keeps real inner padding */
    .band--deep{padding:11mm 10mm; border-radius:3mm}
    .wrap,.wrap--narrow{max-width:none}
    h1{font-size:25pt} h2{font-size:16pt} h3{font-size:12pt}
    .lead{font-size:11pt}
    .screen-head{margin-bottom:6mm}
    .sec-intro{margin-bottom:8mm}

    .frame{box-shadow:none; border:1px solid var(--line)}
    /* keep a tall screenshot from running off the page */
    .frame img{max-height:185mm; width:auto; max-width:100%; margin-inline:auto}
    .phone img{max-height:150mm; width:auto}

    /* Chrome's print engine does not fragment a CSS grid container — a grid that
       does not fit is pushed WHOLE to the next page, leaving half a sheet blank.
       So on paper the stacking lists become block flow, and break-inside:avoid is
       applied to the ITEMS only, never to a grid container. */
    .pains{display:block}
    .pains .pain{margin-bottom:3.5mm}
    .faq{display:block}

    /* one screen per sheet. Break AFTER each screen rather than BEFORE the next —
       break-before left a clipped sliver of the following heading at the page foot. */
    /* must match the screen-vs-screen specificity of the base rule, or the
       on-screen divider + top padding survive onto paper */
    .screen + .screen{margin-top:0; padding-top:0; border-top:0}
    .screen:not(:last-child){break-after:page}
    .band--deep{break-before:page}
    .frame,.pain,.menu-card,.step,.faq-item,.price-card,.note,.phone,
    .rm-card,.points li{break-inside:avoid}
    .page-break{break-before:page}
    /* grid containers do not fragment on paper — stack them instead */
    .chan-grid{display:block}
    .chan-grid > * + *{margin-top:6mm}
    h1,h2,h3,.screen-head{break-after:avoid}
    footer{break-before:avoid}
  }

/* ---------- print / PDF button (screen only) ---------- */
.deck-print{
  position:fixed; right:18px; bottom:18px; z-index:50;
  background:var(--primary); color:#fff; text-decoration:none;
  border-radius:999px; padding:11px 20px; font-size:14.5px; font-weight:700;
  box-shadow:0 6px 20px -6px rgba(0,0,0,.45);
}
.deck-print:hover{background:var(--primary-deep); color:#fff}
.deck-print:focus-visible{outline:3px solid var(--gold); outline-offset:2px}
@media print{ .deck-print{display:none} }

/* ---------- language switch (built by assets/deck.js) ---------- */
.deck-lang{
  position:fixed; right:18px; top:18px; z-index:50;
  display:flex; gap:2px; padding:3px;
  background:var(--surface); border:1.5px solid var(--line);
  border-radius:999px; box-shadow:0 6px 20px -8px rgba(0,0,0,.35);
}
.deck-lang-btn{
  appearance:none; border:0; cursor:pointer;
  background:transparent; color:var(--muted);
  font-family:inherit; font-size:13.5px; font-weight:700; line-height:1;
  padding:8px 15px; border-radius:999px;
  transition:background .15s ease, color .15s ease;
}
.deck-lang-btn:hover{ color:var(--ink) }
.deck-lang-btn.is-on{ background:var(--primary); color:#fff }
.deck-lang-btn:focus-visible{ outline:3px solid var(--gold); outline-offset:2px }
@media print{ .deck-lang{display:none} }
@media (max-width:520px){
  .deck-lang{ right:12px; top:12px }
  .deck-lang-btn{ padding:7px 12px; font-size:13px }
}

/* ---------- roadmap / concept deck ---------- */
.concept-note{
  background:var(--gold-wash);
  border:1.5px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius:12px; padding:20px 22px; margin:24px 0 0;
}
.concept-note h3{color:var(--gold); font-size:16.5px; margin-bottom:6px}
.concept-note p{margin:0; font-size:15.5px; color:var(--ink-2)}
.wire{
  background:var(--surface-2); border:1.5px dashed var(--line);
  border-radius:12px; padding:22px; margin-top:20px;
}
.wire-title{
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); margin:0 0 16px;
}
.wire-rows{display:grid; gap:10px}
.wire-row{
  display:flex; align-items:center; gap:14px; background:var(--surface);
  border:1px solid var(--line); border-radius:10px; padding:13px 16px; font-size:15px;
}
.wire-row .wk{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px;
  color:var(--primary); background:var(--primary-wash); border-radius:6px;
  padding:3px 9px; white-space:nowrap; flex:0 0 auto;
}
.wire-row .wv{color:var(--ink-2)}
.wire-bar{height:10px; border-radius:5px; background:var(--primary-wash); overflow:hidden; flex:1}
.wire-bar span{display:block; height:100%; background:var(--primary)}
@media print{ .wire,.concept-note{break-inside:avoid} }

/* ---------- comparison table ---------- */
.tbl-wrap{overflow-x:auto; margin-top:22px; border:1px solid var(--line); border-radius:12px; background:var(--surface)}
table.cmp{border-collapse:collapse; width:100%; min-width:620px; font-size:15px}
table.cmp th, table.cmp td{padding:13px 16px; text-align:start; border-bottom:1px solid var(--line); vertical-align:top}
table.cmp thead th{background:var(--surface-2); font-size:13.5px; font-weight:700; color:var(--ink); white-space:nowrap}
table.cmp tbody th{font-weight:600; color:var(--muted); font-size:14px; white-space:nowrap}
table.cmp tr:last-child td, table.cmp tr:last-child th{border-bottom:0}
table.cmp .yes{color:var(--good); font-weight:700}
table.cmp .no{color:var(--alert); font-weight:700}
@media print{ .tbl-wrap{break-inside:avoid} table.cmp{min-width:0; font-size:10pt} }

/* ---------- status banner (concept decks) ---------- */
.status-banner{
  display:flex; flex-wrap:wrap; gap:14px; align-items:center;
  background:var(--gold-wash);
  border:1.5px solid color-mix(in srgb, var(--gold) 50%, transparent);
  border-radius:12px; padding:18px 22px; margin:30px 0 0;
}
.status-banner .bt{font-size:16px; font-weight:800; color:var(--gold)}
.status-banner .bd{font-size:15px; color:var(--ink-2); margin:0; flex:1 1 320px}
@media print{ .status-banner{break-inside:avoid} }

/* ---------- phased roadmap ---------- */
.phases{display:grid; gap:14px; margin-top:24px}
.phase{
  display:flex; gap:16px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--line);
  border-radius:12px; padding:18px 20px;
}
.phase .pn{
  flex:0 0 auto; min-width:66px; text-align:center; border-radius:8px;
  background:var(--primary-wash); color:var(--primary-deep);
  font-size:13px; font-weight:800; padding:6px 10px;
}
.phase h3{font-size:16.5px; margin-bottom:4px}
.phase p{font-size:14.5px; color:var(--muted); margin:0; line-height:1.6}
@media print{ .phase{break-inside:avoid} }
