/* KoMold site styles, shared by every page. */
  :root {
    --ink: #0e1419;
    --ink-soft: #4a5663;
    --ink-faint: #7b8794;
    --paper: #f2f5f8;
    --surface: #ffffff;
    --line: #d6dde5;
    --grid: rgba(37, 99, 235, 0.07);
    --steel: #1d5fd6;
    --steel-soft: #e3ecfb;
    --amber: #e9a826;
    --amber-soft: #fdf3dc;
    --ok: #1f8a5b;
    --ok-soft: #e2f4eb;
    --bad: #c43d3d;
    --bad-soft: #fbeaea;
    --draft-bg: #fff7e0;
    --draft-ink: #6b4a00;
    --display: 'Chakra Petch', 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
    --body: 'IBM Plex Sans Thai', 'Noto Sans Thai', 'Sarabun', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --section: 56px;
    --cta-bg: #1d5fd6;
    --cta-btn-ink: #133f94;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --cta-bg: #1b3f86; --cta-btn-ink: #1b3f86;
      --ink: #e6edf3; --ink-soft: #a9b6c3; --ink-faint: #7f8c99;
      --paper: #0b1016; --surface: #121a23; --line: #25313d; --grid: rgba(110, 168, 255, 0.07);
      --steel: #6ea8ff; --steel-soft: #16243a; --amber: #f5c451; --amber-soft: #2a2412;
      --ok: #4cc58f; --ok-soft: #10261c; --bad: #f07a7a; --bad-soft: #2b1515;
      --draft-bg: #2a2412; --draft-ink: #f5d98a;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
      --cta-bg: #1b3f86; --cta-btn-ink: #1b3f86;
    --ink: #e6edf3; --ink-soft: #a9b6c3; --ink-faint: #7f8c99;
    --paper: #0b1016; --surface: #121a23; --line: #25313d; --grid: rgba(110, 168, 255, 0.07);
    --steel: #6ea8ff; --steel-soft: #16243a; --amber: #f5c451; --amber-soft: #2a2412;
    --ok: #4cc58f; --ok-soft: #10261c; --bad: #f07a7a; --bad-soft: #2b1515;
    --draft-bg: #2a2412; --draft-ink: #f5d98a;
  }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; }
  .wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
  h1, h2, h3 { font-family: var(--display); line-height: 1.22; text-wrap: balance; margin: 0; }
  p { margin: 0; }
  a { color: var(--steel); }
  :focus-visible { outline: 2px solid var(--steel); outline-offset: 2px; border-radius: 4px; }
  .fill { background: var(--amber-soft); color: var(--draft-ink); padding: 0 4px; border-radius: 3px; font-size: 0.92em; }

  /* Buttons: one primary action everywhere (ขอนัดสาธิต), one quiet secondary. */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); padding: 15px 24px; border-radius: 10px; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
  .btn-primary { background: var(--steel); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--steel) 70%, transparent); }
  .btn-primary:hover { filter: brightness(1.08); }
  .btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
  .btn-ghost:hover { border-color: var(--steel); }
  .btn-sm { padding: 10px 16px; font-size: 14.5px; }
  .link-arrow { font-weight: 600; text-decoration: none; }
  .link-arrow:hover { text-decoration: underline; }

  header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; padding-block: 12px; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
  header.top.stuck { border-bottom-color: var(--line); }
  .intro-active header .brand { visibility: hidden; }
  .intro-landed header .brand { visibility: visible; }
  .intro-landed .brand-intro .splash-word { visibility: hidden; }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
  .brand svg { width: 30px; height: 30px; }
  .nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; flex-wrap: wrap; }
  .nav-links a { color: var(--ink-soft); text-decoration: none; }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a.btn-primary { color: #fff; }
  /* ฟีเจอร์ opens a dropdown of the feature pages: on hover or click on desktop, inline in the phone menu. */
  .nav-group { position: relative; }
  .nav-drop { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-soft); cursor: pointer; }
  .nav-drop:hover, .nav-group.open .nav-drop { color: var(--ink); }
  .nav-drop svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
  .nav-group.open .nav-drop svg { transform: rotate(180deg); }
  .nav-group:has([aria-current="page"]) .nav-drop { color: var(--ink); font-weight: 600; }
  .nav-sub { display: none; }
  @media (min-width: 861px) {
    /* The padding bridges the gap to the button, so the pointer can travel down without closing it. */
    .nav-sub { position: absolute; top: 100%; left: -16px; z-index: 5; padding-top: 12px; min-width: 240px; }
    .nav-sub::before { content: ""; position: absolute; inset: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 36px -18px rgba(14, 20, 25, 0.35); }
    .nav-group.open .nav-sub { display: grid; padding-bottom: 6px; }
    .nav-sub a { position: relative; margin: 0 6px; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
    .nav-sub a:first-child { margin-top: 6px; }
    .nav-sub a:hover { background: var(--paper); }
  }
  @media (min-width: 861px) and (hover: hover) {
    .nav-group:hover .nav-sub { display: grid; padding-bottom: 6px; }
    .nav-group:hover .nav-drop svg { transform: rotate(180deg); }
  }
  /* Phones and tablets: the links fold into a menu under the header, opened by the ☰ button. */
  .menu-btn { display: none; place-items: center; width: 40px; height: 40px; margin: -4px -8px -4px 0; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
  .menu-btn span { grid-area: 1 / 1; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease; }
  .menu-btn span:nth-child(1) { transform: translateY(-6px); }
  .menu-btn span:nth-child(3) { transform: translateY(6px); }
  /* Open, the header rises above the home intro's big word (z-index 50). */
  header.top.menu-open { z-index: 60; }
  .menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: rotate(-45deg); }
  @media (max-width: 860px) {
    .nav { flex-wrap: nowrap; }
    .menu-btn { display: grid; }
    .nav-links { position: absolute; left: 0; right: 0; top: 100%; display: grid; gap: 0; padding: 4px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -26px rgba(14, 20, 25, 0.5); font-size: 17px; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s; }
    .menu-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.25s ease; }
    .nav-links a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
    .nav-links a[aria-current="page"] { color: var(--steel); }
    .nav-drop { width: 100%; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
    .nav-drop svg { width: 14px; height: 14px; }
    .nav-group:has([aria-current="page"]) .nav-drop { color: var(--ink); font-weight: 400; }
    .nav-group.open .nav-sub { display: block; }
    .nav-sub a { padding-left: 18px; font-size: 16px; }
    .nav-links a.btn { margin-top: 16px; padding: 13px; border: 0; font-size: 16px; text-align: center; }
  }
  @media (prefers-reduced-motion: reduce) { .menu-btn span, .nav-links, .nav-drop svg { transition: none !important; } .ob-team .live-dot::before { animation: none; } }

  /* Hero */
  .hero { padding-block: 28px 48px; }
  .hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 44px; align-items: center; }
  .hero h1 { font-size: clamp(30px, 3.9vw, 44px); font-weight: 700; letter-spacing: -0.01em; }
  /* The old way, crossed out: เลิก… */
  .hero h1 s { text-decoration: none; color: var(--ink-faint); --strike: var(--bad); background: linear-gradient(var(--strike), var(--strike)) no-repeat 0 58% / 100% 0.08em; }
  .nw { white-space: nowrap; }
  .hero .lede { margin-top: 14px; font-size: 17.5px; color: var(--ink-soft); max-width: 33em; text-wrap: balance; }
  .hero .hero-sub { margin-top: 12px; font-size: clamp(20px, 2.2vw, 25px); font-weight: 600; line-height: 1.4; color: var(--steel); }
  .hero .actions { display: flex; gap: 18px; margin-top: 28px; flex-wrap: wrap; align-items: center; }

  .sheet { position: relative; background-color: var(--surface); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 22px 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .dim { position: absolute; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); z-index: 1; }
  .stage canvas { display: block; width: 100%; aspect-ratio: 5 / 4; touch-action: pan-y; cursor: grab; }
  .stage canvas:active { cursor: grabbing; }
  .stage .fallback { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 4; }
  .stage .fallback svg { width: 42%; height: auto; }
  .stage-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px 12px; border-top: 1px solid var(--line); background: var(--surface); }
  .legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
  .hint { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }

  /* The mold tells the tagline's story: one repair ticket from แจ้งซ่อม to อนุมัติปิดงาน,
     with the ticket card ticking through its steps as the mold is fixed. */
  .stage-body { position: relative; }
  .hud { position: absolute; top: 14px; left: 14px; width: min(244px, 44%); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; box-shadow: 0 8px 24px -14px rgba(14, 20, 25, 0.35); display: grid; gap: 8px; font-size: 13px; }
  .hud-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .hud-id { font-weight: 600; font-size: 13.5px; }
  .hud-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--ok); font-weight: 600; white-space: nowrap; }
  .hud-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
  @media (prefers-reduced-motion: no-preference) {
    .hud-live i { animation: live 1.6s ease-in-out infinite; }
    @keyframes live { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
    .hud-track li.current b { animation: arrive 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
    @keyframes arrive { from { opacity: 0; transform: translateX(-6px); } }
  }
  .hud-code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
  .hud-row { display: flex; align-items: center; gap: 8px; }
  .hud-status { white-space: nowrap; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); transition: background-color 0.3s ease, color 0.3s ease; }
  .hud[data-stage="0"] .hud-status { background: var(--bad-soft); color: var(--bad); }
  .hud[data-stage="1"] .hud-status { background: var(--steel-soft); color: var(--steel); }
  .hud[data-stage="2"] .hud-status, .hud[data-stage="3"] .hud-status { background: var(--amber-soft); color: var(--draft-ink); }
  /* Once the ticket closes, the card shows how long the whole job took. */
  .hud-took { display: none; font-size: 11.5px; font-weight: 600; color: var(--ok); white-space: nowrap; }
  .hud[data-stage="4"] .hud-took { display: inline; }
  @media (prefers-reduced-motion: no-preference) {
    .hud[data-stage="4"] .hud-took { animation: arrive 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
  }
  /* Over the mold: a pin on the defect (red, then green once fixed) and the notification
     each step sends. mold.js places the pin on the parting line every frame. */
  #mold-canvas { position: relative; }
  .hud-pin { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; transition: opacity 0.3s ease; }
  .hud-pin.behind { opacity: 0; }
  .hud-pin i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; box-sizing: border-box; }
  .hud-pin span { position: absolute; left: 10px; top: -30px; white-space: nowrap; font: 600 11.5px/1 var(--body); padding: 5px 9px; border-radius: 999px; background: var(--bad); color: #fff; box-shadow: 0 6px 14px -8px rgba(14, 20, 25, 0.5); }
  .hud-pin.fixed i, .hud-pin.fixed span { background: var(--ok); }
  .hud-toast { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; max-width: 62%; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(14, 20, 25, 0.45); font-size: 12.5px; font-weight: 500; color: var(--ink); }
  .hud-toast svg { width: 16px; height: 16px; flex: none; color: var(--steel); }
  @media (prefers-reduced-motion: no-preference) {
    .hud-pin:not(.fixed) i { animation: ping 1.2s ease-out infinite; }
    @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); } }
    .hud-toast.pop { animation: toast 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
    @keyframes toast { from { opacity: 0; transform: translateY(10px); } }
  }
  /* A vertical timeline: done steps get a check, the current one a ring, the rest stay faint. */
  .hud-track { list-style: none; margin: 0; padding: 0; display: grid; }
  .hud-track li { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 0 0 7px 22px; color: var(--ink-faint); }
  .hud-track li:last-child { padding-bottom: 0; }
  .hud-track li::before { content: ''; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); box-sizing: border-box; transition: background-color 0.3s ease, border-color 0.3s ease; }
  .hud-track li:not(:last-child)::after { content: ''; position: absolute; left: 5.25px; top: 17px; bottom: 1px; width: 1.5px; background: var(--line); }
  .hud-track li.done:not(:last-child)::after { background: var(--ok); }
  .hud-track b { font-weight: 600; font-size: 12.5px; }
  .hud-track span { grid-column: 1 / -1; font-size: 11.5px; }
  .hud-track time { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
  .hud-track li.done, .hud-track li.current { color: var(--ink-soft); }
  .hud-track li.done b, .hud-track li.current b { color: var(--ink); }
  .hud-track li.current::before { border-color: var(--steel); border-width: 3px; }
  .hud-track li.done::before { background: var(--ok); border-color: var(--ok); border-width: 1.5px; box-shadow: inset 0 0 0 2.5px var(--surface); }
  /* Only the current step carries its detail line; pending steps show just their name. */
  .hud-track li:not(.current) span, .hud-track li:not(.done):not(.current) time { display: none; }
  .steps-bar { display: flex; gap: 6px; flex-wrap: wrap; }
  .steps-bar button { font: 500 12.5px/1.2 var(--body); color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
  .steps-bar button:hover { border-color: var(--steel); color: var(--ink); }
  .steps-bar button[aria-pressed="true"] { background: var(--steel); border-color: var(--steel); color: #fff; }
  .speed { font-size: 11.5px; color: var(--ink-faint); }

  /* Credibility, straight under the hero */

  section { padding-block: var(--section); }
  .band { background: var(--surface); border-block: 1px solid var(--line); }
  .head { max-width: 42em; margin-bottom: 28px; }
  .head.center { margin-inline: auto; text-align: center; }
  .kicker { font-size: 14px; font-weight: 600; color: var(--steel); margin-bottom: 8px; }
  .head h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; }
  .head p { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }

  /* Dashboard preview, big, with numbered callouts that point into the board */
  .preview { display: grid; gap: 24px; }
  .board-sheet { padding: 18px; }
  .band .board-sheet { background-color: var(--paper); }
  .sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .sheet-head strong { font-family: var(--display); font-size: 19px; }
  .sheet-head span { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
  /* The padding keeps the corner pins of the right-hand cards from being clipped. */
  .board-scroll { overflow-x: auto; padding: 10px 10px 0 0; margin: -10px -10px 0 0; }
  .board { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; min-width: 780px; }
  .col-title { display: flex; justify-content: space-between; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 7px 10px; border-radius: 8px; margin-bottom: 10px; }
  .c-blue .col-title { background: var(--steel-soft); color: var(--steel); }
  .c-amber .col-title { background: var(--amber-soft); color: var(--draft-ink); }
  .c-gray .col-title { background: color-mix(in srgb, var(--ink-faint) 16%, transparent); color: var(--ink-soft); }
  .c-green .col-title { background: var(--ok-soft); color: var(--ok); }
  .col-title .n { font-family: var(--mono); font-weight: 500; }
  .cards { display: grid; gap: 10px; }
  .card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; font-size: 13px; line-height: 1.45; }
  .card .code { font-family: var(--mono); font-size: 13px; font-weight: 500; }
  .card .part { color: var(--ink-faint); font-size: 12.5px; }
  .card .who { color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
  .tag { display: inline-block; margin-top: 6px; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; background: var(--steel-soft); color: var(--steel); }
  .tag.urgent { background: var(--bad-soft); color: var(--bad); }
  .shots { margin-top: 7px; }
  .shots-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
  .shots-bar i { display: block; height: 100%; background: var(--amber); }
  .shots-num { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 3px; font-variant-numeric: tabular-nums; }
  .pin { position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--steel); color: #fff; font: 600 12px/22px var(--mono); text-align: center; box-shadow: 0 0 0 3px var(--surface); }
  .col-title .pin { position: static; display: inline-block; vertical-align: 1px; margin-left: 4px; box-shadow: none; width: 20px; height: 20px; line-height: 20px; font-size: 11px; }
  /* The ticket home.js walks across the board. */
  .card.mover { z-index: 1; border-color: var(--steel); box-shadow: 0 0 0 3px var(--steel-soft), 0 10px 20px -14px rgba(14, 20, 25, 0.55); }
  .tag.new { background: var(--steel); color: #fff; }
  .sample { margin-top: 12px; font-size: 12px; color: var(--ink-faint); text-align: right; }
  .callouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .callouts li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
  .callouts .num { width: 26px; height: 26px; border-radius: 50%; background: var(--steel); color: #fff; font: 600 13px/26px var(--mono); text-align: center; }
  .callouts h3 { font-family: var(--body); font-weight: 600; font-size: 16.5px; }
  .callouts p { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
  .callouts-cta { margin-top: 24px; text-align: center; }

  /* Digital forms: a sample tablet form and what forms can do */
  .forms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .tablet { background: var(--ink); border-radius: 26px; padding: 12px; box-shadow: 0 24px 48px -28px rgba(14, 20, 25, 0.55); }
  .screen { background: var(--surface); border-radius: 16px; overflow: hidden; }
  .form-top { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
  .form-top .t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
  .form-top strong { font-size: 15px; }
  .form-top .code { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
  .fsteps { display: flex; gap: 6px; font-size: 11.5px; flex-wrap: wrap; }
  .fsteps span { padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-faint); border: 1px solid var(--line); }
  .fsteps .done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
  .fsteps .now { background: var(--steel); color: #fff; border-color: var(--steel); }
  .form-body { padding: 12px 16px 16px; display: grid; gap: 12px; }
  .q { display: grid; gap: 6px; }
  .q > span { font-size: 14px; font-weight: 500; }
  .q .req { color: var(--bad); }
  .okng { display: flex; gap: 6px; }
  .okng b { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 0; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-faint); }
  .okng b.ok-on { background: var(--ok); border-color: var(--ok); color: #fff; }
  .okng b.ng-on { background: var(--bad); border-color: var(--bad); color: #fff; }
  .attach { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: var(--bad-soft); }
  .attach small { font-size: 12px; color: var(--bad); font-weight: 600; }
  .thumbs { display: flex; gap: 6px; }
  .thumbs i { width: 54px; height: 42px; border-radius: 7px; background: linear-gradient(135deg, #9aabbf 0%, #d3dde7 55%, #7d8ea3 100%); position: relative; }
  .thumbs i::after { content: ''; position: absolute; right: 9px; top: 12px; width: 18px; height: 3px; background: #c43d3d; transform: rotate(-18deg); border-radius: 2px; }
  .thumbs i + i::after { right: 14px; top: 18px; }
  .thumbs em { width: 54px; height: 42px; border-radius: 7px; border: 1.5px dashed var(--bad); color: var(--bad); font: normal 20px/40px var(--mono); text-align: center; }
  .fake-in { font-size: 13.5px; padding: 8px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); display: flex; justify-content: space-between; }
  .fake-in .u { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; }
  .form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-faint); }
  .form-foot b { font: 600 13.5px/1 var(--body); background: var(--steel); color: #fff; padding: 9px 14px; border-radius: 8px; }
  /* Home: the form fills itself in (home.js); without the script it shows finished. */
  #digital-form .forms, #photo-checklist .forms { align-items: center; }
  /* The photo section mirrors the form section: tablet left, text right on wide screens. */
  @media (min-width: 961px) { .forms.mirror > .tablet { order: -1; } }
  #digital-form .head { margin-bottom: 22px; }
  #digital-form .head p { text-wrap: balance; }
  .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
  .ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: 16px; }
  .ticks li::before { content: '✓'; position: absolute; left: 0; top: 0.15em; width: 20px; height: 20px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font: 700 12px/20px var(--body); text-align: center; }
  .live-form, .live-photos { width: 100%; max-width: 440px; justify-self: center; }
  .live-form .screen, .live-photos .screen { position: relative; display: flex; flex-direction: column; }
  .live-form .form-foot { margin-top: auto; }
  .live-form [hidden] { display: none !important; }
  .live-form .okng b { transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
  .lf-count, .pc-n { font-weight: 600; color: var(--ink); display: inline-block; }
  .lf-type.typing::after { content: ''; display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--steel); animation: caret 0.7s steps(1) infinite; }
  @keyframes caret { 50% { opacity: 0; } }
  .lf-saved { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 16px; background: var(--ok); color: #fff; font-size: 14px; font-weight: 600; transform: translateY(101%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
  .lf-saved svg { width: 18px; height: 18px; flex: none; }
  .live-form.saved .lf-saved, .live-photos.saved .lf-saved { transform: none; }
  /* The photo checklist as in the app: a card per required angle, guide drawing until taken. */
  .pc-sprite { position: absolute; width: 0; height: 0; }
  .pc-body { padding: 10px 14px; display: grid; gap: 10px; }
  .pc-gh { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; border-radius: 7px; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; }
  .pc-gh i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
  .pc-gn { font-family: var(--mono); font-weight: 500; font-size: 11.5px; }
  .g-blue .pc-gh { background: #eff6ff; color: #1e40af; } .g-blue .pc-gh i { background: #3b82f6; }
  .g-amber .pc-gh { background: #fffbeb; color: #92400e; } .g-amber .pc-gh i { background: #f59e0b; }
  .g-purple .pc-gh { background: #faf5ff; color: #6b21a8; } .g-purple .pc-gh i { background: #a855f7; }
  .pc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .pc { position: relative; display: flex; flex-direction: column; border: 1px solid; border-radius: 9px; overflow: hidden; background: #fff; transition: border-color 0.3s ease; }
  .g-blue .pc { border-color: #93c5fd; } .g-amber .pc { border-color: #fcd34d; } .g-purple .pc { border-color: #d8b4fe; }
  .pc-h { padding: 4px 7px; font-size: 10.5px; font-weight: 500; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid #e5e7eb; transition: background-color 0.3s ease; }
  .g-blue .pc-h { background: #eff6ff; } .g-amber .pc-h { background: #fffbeb; } .g-purple .pc-h { background: #faf5ff; }
  .pc-img { position: relative; height: 58px; background: linear-gradient(135deg, #f9fafb, #f3f4f6); display: flex; align-items: center; justify-content: center; }
  .pc-img svg { width: 100%; height: 100%; opacity: 0.85; }
  .pc-eg { position: absolute; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); color: #4b5563; font-size: 9.5px; }
  .pc-btn { padding: 5px; }
  .pc-btn > span { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 0; border-radius: 6px; color: #fff; font-size: 10.5px; font-weight: 500; }
  .pc-btn .i { width: 12px; height: 12px; flex: none; }
  .g-blue .take { background: #2563eb; } .g-amber .take { background: #d97706; } .g-purple .take { background: #a855f7; }
  .pc-btn .view { display: none; background: #0d9488; }
  /* Taken: the photo replaces the guide, the card turns green with a tick, ถ่ายรูป becomes ดูรูป. */
  .pc.done { border-color: #4ade80; }
  .pc.done .pc-h { background: #f0fdf4; }
  .pc.done .pc-img::after { content: '✓'; position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; color: #fff; font: 700 9px/14px var(--body); text-align: center; }
  .pc.done .pc-img { background: linear-gradient(140deg, #5d6b7c 0%, #aab6c3 38%, #78889b 62%, #4f5c6b 100%); }
  .pc.done .pc-img svg { opacity: 0.5; filter: grayscale(1) contrast(1.4); mix-blend-mode: multiply; }
  .pc.done .pc-eg, .pc.done .take { display: none; }
  .pc.done .view { display: flex; }
  .m-only { display: none; }
  .caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
  .caps li { display: grid; gap: 3px; }
  .caps h3 { font-family: var(--body); font-weight: 600; font-size: 16px; display: flex; gap: 8px; align-items: center; }
  .caps h3 svg { width: 18px; height: 18px; color: var(--steel); flex: none; }
  .caps p { font-size: 14.5px; color: var(--ink-soft); }
  .forms-cta { margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

  /* Paper form → digital form */
  .paper-flow { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
  .paper-flow .head h3 { font-size: clamp(22px, 2.6vw, 27px); display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
  .flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
  .flow .arrow { align-self: center; font-family: var(--mono); font-size: 22px; color: var(--ink-faint); }
  .flow-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; align-content: start; }
  .flow-card h4 { margin: 0; font-size: 15.5px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
  .flow-card p { font-size: 14px; color: var(--ink-soft); }
  .live { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 600 12px/1.6 var(--body); background: var(--ok-soft); color: var(--ok); white-space: nowrap; flex: none; }
  .paper { background: #fbfaf6; color: #2b2b2b; border: 1px solid #e3ded2; border-radius: 4px; padding: 12px 14px; transform: rotate(-1.4deg); box-shadow: 0 10px 18px -14px rgba(0, 0, 0, 0.45); font-size: 12.5px; display: grid; gap: 7px; background-image: repeating-linear-gradient(transparent 0 25px, #e8e4d8 25px 26px); }
  .paper .ph { font-weight: 600; text-align: center; font-size: 13px; }
  .paper .pr { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
  .paper .box { display: inline-flex; gap: 8px; }
  .paper .box span::before { content: '☐ '; }
  .paper .box span.x::before { content: '☒ '; }
  .hand { font-family: 'Mali', 'IBM Plex Sans Thai', cursive; color: #1f3f9a; font-size: 14px; }
  .detected { display: grid; gap: 6px; }
  .detected div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
  .detected em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--steel); white-space: nowrap; }
  .review { display: grid; gap: 6px; font-size: 13px; }
  .review div { display: flex; gap: 7px; align-items: center; }
  .review div::before { content: ''; width: 13px; height: 13px; border-radius: 4px; background: var(--ok); box-shadow: inset 0 0 0 2px var(--paper); flex: none; }
  .flow-note { margin-top: 16px; font-size: 14px; color: var(--ink-faint); max-width: 60em; }

  /* Problem → Solution → Business benefit */
  .psb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .psb article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
  .psb h3 { font-family: var(--body); font-weight: 600; font-size: 18px; }
  .psb dl { margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .psb dt { font-size: 12.5px; font-weight: 600; }
  .psb dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft); }
  .psb .p dt { color: var(--bad); }
  .psb .s dt { color: var(--steel); }
  .psb .b { background: var(--ok-soft); border-radius: 10px; padding: 10px 12px; margin-top: auto; }
  .psb .b dt { color: var(--ok); }
  .psb .b dd { color: var(--ink); font-weight: 500; }
  .band .psb article { background: var(--paper); }

  /* 3 steps */
  .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
  .steps li { position: relative; padding: 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
  .steps li::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--steel); color: #fff; font: 600 16px var(--mono); margin-bottom: 14px; }
  .steps h3 { font-family: var(--body); font-weight: 600; font-size: 18px; }
  .steps p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
  .steps .who { margin-top: 12px; font-size: 13px; color: var(--ink-faint); }

  /* Before vs after */
  .compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
  .compare tr:last-child td { border-bottom: 0; }
  .compare thead th { font-size: 14px; font-weight: 600; background: var(--paper); }
  .compare thead th.after-h { color: var(--steel); }
  .compare td:first-child { font-weight: 600; width: 22%; }
  .compare td.before { color: var(--ink-soft); }
  .compare td.after { background: color-mix(in srgb, var(--steel-soft) 55%, transparent); }
  .compare-wrap { overflow-x: auto; }


  /* CTA band, repeated between sections */
  .cta-band { padding-block: 40px; background: var(--cta-bg); color: #fff; }
  .cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
  .cta-band h2 { font-size: clamp(22px, 2.8vw, 28px); color: #fff; }
  .cta-band p { color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
  .cta-band .btn-primary { background: #fff; color: var(--cta-btn-ink); box-shadow: none; }
  .cta-band.alt { background: var(--surface); color: var(--ink); border-block: 1px solid var(--line); }
  .cta-band.alt h2 { color: var(--ink); }
  .cta-band.alt p { color: var(--ink-soft); }
  .cta-band.alt .btn-primary { background: var(--steel); color: #fff; }

  /* AI (coming soon) */
  .soon { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 600 12px/1.6 var(--body); background: var(--amber-soft); color: var(--draft-ink); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); white-space: nowrap; flex: none; }
  .ai { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
  .ai h2 { font-size: clamp(25px, 3.2vw, 32px); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
  .ai .intro { margin-top: 10px; color: var(--ink-soft); font-size: 16.5px; }
  .ai-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
  .ai-list li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
  .ai-list svg { width: 22px; height: 22px; color: var(--steel); margin-top: 3px; }
  .ai-list h3 { font-family: var(--body); font-weight: 600; font-size: 16.5px; }
  .ai-list p { margin-top: 2px; color: var(--ink-soft); font-size: 15px; }
  .ai-foot { margin-top: 18px; font-size: 14px; color: var(--ink-faint); }
  .insight { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .insight-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .insight-head strong { font-family: var(--mono); font-weight: 500; font-size: 14px; }
  .insight-head span { font-size: 13px; color: var(--ink-faint); }
  .insight-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
  .signal { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--bad-soft); }
  .signal b { color: var(--bad); font-weight: 600; }
  .shot-track { position: relative; height: 30px; }
  .shot-track .rail { position: absolute; left: 0; right: 0; top: 12px; height: 6px; border-radius: 3px; background: var(--line); }
  .shot-track .now { position: absolute; left: 0; top: 12px; height: 6px; width: 78%; border-radius: 3px; background: var(--steel); }
  .shot-track .mark { position: absolute; top: 6px; width: 2px; height: 18px; background: var(--bad); }
  .shot-track .advice { position: absolute; top: 6px; width: 2px; height: 18px; background: var(--ok); }
  .shot-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
  .insight h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-faint); }
  .insight ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 15px; }

  /* FAQ */
  .faq-grid { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 40px; align-items: start; }
  .faq-side h2 { font-size: clamp(25px, 3.2vw, 32px); font-weight: 700; }
  .faq-side p { margin-top: 10px; color: var(--ink-soft); }
  @media (min-width: 961px) { .faq-side { position: sticky; top: 96px; } }
  .faq-side .btn { margin-top: 18px; }
  .faq { display: grid; gap: 10px; }
  .faq h3.group { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--ink-faint); margin-top: 18px; }
  .faq h3.group:first-child { margin-top: 0; }
  .faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
  .band .faq details { background: var(--paper); }
  .faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: '+'; font-family: var(--mono); color: var(--ink-faint); }
  .faq details[open] summary::after { content: '−'; }
  .faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 15.5px; }

  /* Demo form */
  .demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
  .demo h2 { font-size: clamp(26px, 3.4vw, 34px); }
  .demo .points { margin-top: 16px; display: grid; gap: 8px; color: var(--ink-soft); padding-left: 20px; }
  form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; }
  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
  /* White fields with a clear edge, so they read as ready to type in rather than greyed out. */
  input, select, textarea { font: 400 15px/1.4 var(--body); color: var(--ink); background: var(--surface); border: 1px solid color-mix(in srgb, var(--ink-faint) 55%, var(--line)); border-radius: 8px; padding: 10px 12px; width: 100%; box-shadow: 0 1px 2px rgba(14, 20, 25, 0.06); transition: border-color 0.15s ease; }
  input:hover, select:hover, textarea:hover { border-color: var(--ink-faint); }
  input::placeholder, textarea::placeholder { color: var(--ink-faint); }
  textarea { min-height: 80px; resize: vertical; }
  input:focus, select:focus, textarea:focus { outline: 2px solid var(--steel); outline-offset: 0; border-color: var(--steel); }
  form .btn { width: 100%; }
  .form-msg { font-size: 14px; color: var(--ok); }
  .form-note { font-size: 13px; color: var(--ink-faint); text-align: center; }

  footer.site { padding-block: 28px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; }
  footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

  @media (max-width: 960px) {
    .hero-grid, .demo, .ai, .preview, .faq-grid, .forms { grid-template-columns: 1fr; gap: 28px; }
    /* Stacked: show the repair-ticket story before asking for the demo. */
    .hero-grid { gap: 0; }
    .hero-grid > div { display: contents; }
    .hero-grid .stage { order: 1; margin-top: 28px !important; }
    .hero .actions { order: 2; margin-top: 24px; }
    .flow { grid-template-columns: 1fr; }
    .flow .arrow { transform: rotate(90deg); justify-self: center; }
    .psb, .callouts { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 640px) {
    :root { --section: 44px; }
    .psb, .steps, .row, .callouts, .caps { grid-template-columns: 1fr; }
    .dim { display: none; }
    .hud { position: static; width: auto; margin: 0 12px 12px; box-shadow: none; }
    .hud-toast { left: 12px; right: 12px; bottom: 10px; max-width: none; }
    .hero .actions .btn { width: 100%; }
    /* Each headline line stays whole, so it shrinks with the screen instead of breaking. */
    .hero h1 { font-size: min(30px, 8.2vw); }
    .compare td:first-child { width: auto; }
  }

  /* Home on phones: headlines only, details stay on the linked pages. */
  @media (max-width: 640px) {
    .m-hide { display: none !important; }
    #preview .callouts { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
    #preview .callouts li { gap: 8px; }
    #preview .callouts h3 { font-size: 15px; }
    #preview .callouts p { display: none; }
    /* The board stacks its columns as rows (title left, up to three small cards right), so the
       whole section fits on one screen without swiping sideways. */
    #preview .head { margin-bottom: 18px; }
    #preview .preview { gap: 18px; }
    #preview .board-sheet { padding: 12px; }
    #preview .sheet-head { margin-bottom: 10px; }
    #preview .sheet-head strong { font-size: 16px; }
    #preview .board-scroll { overflow: visible; }
    #preview .board { grid-template-columns: 1fr; min-width: 0; gap: 7px; }
    #preview .col { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; }
    #preview .col-title { margin: 0; flex-direction: column; justify-content: center; gap: 1px; padding: 5px 7px; font-size: 11.5px; line-height: 1.3; }
    #preview .col-title { position: relative; }
    #preview .col-title .pin { position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; line-height: 16px; font-size: 9.5px; margin: 0; box-shadow: 0 0 0 2px var(--surface); }
    #preview .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    #preview .card { padding: 5px 7px; border-radius: 8px; font-size: 11px; line-height: 1.35; }
    #preview .card .code { font-size: 11px; }
    #preview .card .part { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #preview .card .who, #preview .card .tag:not(.urgent):not(.new), #preview .shots-num { display: none; }
    #preview .card .tag { margin-top: 3px; padding: 0 5px; font-size: 10px; }
    #preview .shots { margin-top: 4px; }
    #preview .card > .pin { top: -7px; right: -6px; width: 16px; height: 16px; line-height: 16px; font-size: 9.5px; box-shadow: 0 0 0 2px var(--surface); }
    #preview .sample { margin-top: 8px; }
    .m-only { display: block; }
    #digital-form .head, #photo-checklist .head { margin-bottom: 0; }
    /* Two groups are enough to show the idea and keep the section on one screen. */
    #photo-checklist .g-purple { display: none; }
    #photo-checklist .pc-img { height: 46px; }
    /* The card title already names the problem; swipe through the three cards. */
    #benefits .psb { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -20px; padding: 0 20px 6px; scroll-padding-inline: 20px; scrollbar-width: none; }
    #benefits .psb::-webkit-scrollbar { display: none; }
    #benefits .psb article { flex: 0 0 84%; scroll-snap-align: start; }
    #benefits .psb .p { display: none; }
    #how .steps { gap: 0; }
    #how .steps li { display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; padding: 14px 0; background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
    #how .steps li::before { grid-row: span 2; margin: 0; }
    #how .steps p:not(.who) { display: none; }
    #how .steps .who { margin-top: 2px; }
    #explore .explore { gap: 0; }
    #explore .explore a { grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
    #explore .viz { display: none; }
    #explore .explore h3, #explore .explore .go { margin: 0; padding: 0; }
  }
  /* Very narrow phones: each column's title sits above its cards so three cards still fit. */
  @media (max-width: 359px) {
    #preview .col { grid-template-columns: 1fr; gap: 4px; }
    #preview .col-title { flex-direction: row; justify-content: space-between; padding: 3px 8px; }
    #preview .col-title .pin { position: static; display: inline-block; vertical-align: 1px; margin-left: 4px; box-shadow: none; }
  }

  /* Home intro: "Keep Track of Your Molds" folds into "KoMold", then scrolls away */
  /* Fills the first screen under the sticky header, so the hero waits below the fold. */
  .brand-intro { position: relative; min-height: calc(100vh - 62px); min-height: calc(100svh - 62px); display: grid; place-items: center; padding-block: 32px; overflow: hidden; background-color: var(--paper); }
  .brand-intro::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
  .intro-inner { position: relative; display: grid; justify-items: center; gap: 18px; text-align: center; }
  .splash-word { display: flex; align-items: center; white-space: pre; font-family: var(--display); font-weight: 700; font-size: min(68px, calc((100vw - 40px) / 14)); line-height: 1.25; color: var(--ink); opacity: 0; translate: 0 10px; transition: opacity 0.5s ease, translate 0.6s cubic-bezier(0.22, 1, 0.36, 1), font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1); position: relative; z-index: 50; transform-origin: 0 0; will-change: transform; }
  .splash-word > span { display: inline-block; }
  .brand-intro.in .splash-word { opacity: 1; translate: 0 0; }
  .gap { overflow: hidden; color: var(--ink-faint); transition: max-width 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease; }
  .brand-intro.collapse .gap { opacity: 0; }
  .flip { height: 1.25em; overflow: hidden; }
  .flip span { display: block; height: 1.25em; transition: transform 0.38s cubic-bezier(0.65, 0, 0.35, 1); }
  .flip span:last-child { color: var(--steel); }
  .brand-intro.logo .keep { color: var(--steel); transition: color 0.3s ease; }
  .brand-intro.flipped .flip span { transform: translateY(-100%); }
  .sw-logo { width: 0; opacity: 0; overflow: hidden; margin-right: 0; transition: width 0.4s ease, opacity 0.4s ease, margin 0.4s ease; }
  .sw-logo svg { width: 1.2em; height: 1.2em; display: block; }
  .brand-intro.logo .sw-logo { width: 1.2em; opacity: 1; margin-right: 0.35em; }
  .intro-sub, .intro-cue { opacity: 0; translate: 0 6px; transition: opacity 0.5s ease, translate 0.5s ease; }
  .intro-sub { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2.3vw, 26px); line-height: 1.45; color: var(--ink); padding-inline: 20px; text-wrap: balance; }
  .intro-cue { font-size: 14px; font-weight: 600; color: var(--steel); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
  .intro-cue:hover { background: var(--steel-soft); }
  .intro-cue span { display: inline-block; }
  .brand-intro.settled .intro-sub, .brand-intro.settled .intro-cue { opacity: 1; translate: 0 0; }
  .brand-intro.settled .intro-cue { transition-delay: 0.15s; }
  @media (prefers-reduced-motion: no-preference) {
    .brand-intro.settled .intro-cue span { animation: cue 1.6s ease-in-out 0.8s infinite; }
    @keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
  }
  .brand-intro.instant *, .brand-intro.instant .splash-word { transition: none !important; }

  /* Hero entrance once it scrolls into view: lines rise in turn, then a line strikes out กระดาษและ Excel.
     intro.js adds .reveal, so without the script the hero simply shows. */
  .hero.reveal h1 > span { display: inline-block; }
  .hero.reveal h1 > span, .hero.reveal .hero-sub, .hero.reveal .lede, .hero.reveal .actions, .hero.reveal .stage {
    opacity: 0; transform: translateY(22px); filter: blur(6px);
    transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
  }
  .hero.reveal .stage { transform: translateY(12px) scale(0.98); }
  .hero.reveal.in h1 > span, .hero.reveal.in .hero-sub, .hero.reveal.in .lede, .hero.reveal.in .actions, .hero.reveal.in .stage { opacity: 1; transform: none; filter: none; }
  .hero.reveal h1 > span:nth-child(2) { transition-delay: 0.12s; }
  .hero.reveal .hero-sub { transition-delay: 0.7s; }
  .hero.reveal .lede { transition-delay: 0.85s; }
  .hero.reveal .actions { transition-delay: 1s; }
  .hero.reveal .stage { transition-delay: 0.3s; }
  .hero.reveal h1 s { background-size: 0% 0.08em; transition: background-size 0.55s cubic-bezier(0.65, 0, 0.35, 1) 0.45s, color 0.4s ease 0.6s; color: var(--ink); }
  .hero.reveal.in h1 s { background-size: 100% 0.08em; color: var(--ink-faint); }

  /* Sections rise in as they are scrolled to; site.js tags them (.rv alone, .rv-g staggers its
     children by --i) and skips it all under reduced motion, so without the script nothing hides. */
  .rv, .rv-g > * { opacity: 0; transform: translateY(20px); }
  /* Transitions sit on the .in state only, so hiding at load is instant rather than a fade out. */
  .rv.in, .rv-g.in > * {
    opacity: 1; transform: none;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  /* The board fills in: cards cascade across the columns, shot bars run up, then the pins pop. */
  .board-sheet.rv .card { opacity: 0; transform: translateY(8px) scale(0.97); }
  .board-sheet.rv .shots-bar i { transform: scaleX(0); transform-origin: left; }
  .board-sheet.rv .pin { transform: scale(0); }
  .board-sheet.rv.in .card { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: calc(0.25s + var(--c, 0) * 60ms); }
  .board-sheet.rv.in .shots-bar i { transform: none; transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s; }
  .board-sheet.rv.in .pin { transform: none; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) calc(1.1s + var(--p, 0) * 120ms); }
  /* Step numbers pop as each step arrives. */
  .steps.rv-g > li::before { transform: scale(0.4); }
  .steps.rv-g.in > li::before { transform: none; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(0.2s + var(--i, 0) * 90ms); }
  @media (max-width: 640px) {
    /* The text is sized for the full sentence; once folded, "KoMold" can be bigger. */
    .brand-intro.logo .splash-word { font-size: min(68px, calc((100vw - 40px) / 10)); }
  }

  /* Multi-page additions */
  .page-hero { padding-block: 40px 8px; }
  /* A shaded band right after it starts at a hard edge, so the hero needs its own breathing room. */
  .page-hero:has(+ .band) { padding-bottom: 44px; }
  .page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; }
  .page-hero .lede { margin-top: 12px; font-size: 18px; color: var(--ink-soft); max-width: 40em; }
  .page-hero .actions { display: flex; gap: 16px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
  .nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
  .more-link { margin-top: 20px; }
  .explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .explore a { display: grid; gap: 4px; padding: 0 0 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; }
  .explore a:hover { border-color: var(--steel); }
  .explore a:hover .viz > div { transform: translateY(-2px); }
  .explore h3 { font-family: var(--body); font-weight: 600; font-size: 17px; padding-inline: 18px; margin-top: 12px; }
  .explore .go { color: var(--steel); font-weight: 600; font-size: 14.5px; padding-inline: 18px; }
  /* Each card opens with a small picture of the thing it links to. */
  .viz { height: 176px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 18px 18px; }
  .viz > div { width: 78%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 7px; font-size: 12px; box-shadow: 0 10px 20px -16px rgba(14, 20, 25, 0.5); transition: transform 0.2s ease; }
  .mf-row { display: grid; grid-template-columns: 1fr 34px 34px; gap: 5px; align-items: center; }
  .mf-row b { text-align: center; font-size: 11px; padding: 3px 0; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-faint); font-weight: 600; }
  .mf-row b.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
  .mf-row b.ng { background: var(--bad); border-color: var(--bad); color: #fff; }
  .mf-photos { display: flex; gap: 5px; }
  .mf-photos i { width: 36px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, #9aabbf 0%, #d3dde7 55%, #7d8ea3 100%); }
  .mf-photos em { width: 36px; height: 26px; border-radius: 5px; border: 1.5px dashed var(--bad); color: var(--bad); font: normal 14px/24px var(--mono); text-align: center; }
  .ma-signal { padding: 5px 8px; border-radius: 7px; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
  .ma-track { position: relative; height: 6px; border-radius: 3px; background: var(--line); }
  .ma-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 78%; border-radius: 3px; background: var(--steel); }
  .ma-track b { position: absolute; top: -4px; width: 2px; height: 14px; left: 85%; background: var(--ok); }
  .ma-tip { color: var(--ok); font-weight: 600; }
  .ma-soon { justify-self: end; }
  .mini-steps span { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); }
  .mini-steps span i { font: 600 10.5px/18px var(--mono); font-style: normal; width: 18px; height: 18px; border-radius: 50%; text-align: center; background: var(--steel); color: #fff; }
  .mini-lock { display: flex; align-items: center; gap: 6px; margin-top: 2px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--steel); font-weight: 600; }
  .mini-lock svg { width: 14px; height: 14px; flex: none; }
  @media (prefers-reduced-motion: reduce) { .viz > div { transition: none; } }
  /* Capability lists: the plain spec-list look (icon beside short text, hairline between). */
  /* Trust page: what keeps a factory's data safe, as even cards. */
  /* Trust page, security: short points beside a mock of a ticket's change history. */
  .secure { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
  .assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .assure li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 10px 0; }
  .assure .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--steel-soft); color: var(--steel); }
  .assure .ic svg { width: 21px; height: 21px; }
  .assure b { display: block; font-weight: 600; font-size: 16.5px; }
  .assure li span:not(.ic) { color: var(--ink-soft); font-size: 15px; }
  .audit { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 24px 48px -30px rgba(14, 20, 25, 0.45); overflow: hidden; }
  .audit-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
  .audit-top b { font-weight: 500; color: var(--ink); }
  .audit-top code { font: 500 13px var(--mono); }
  .log { list-style: none; margin: 0; padding: 6px 18px; }
  .log li { position: relative; display: grid; grid-template-columns: 42px 32px 1fr; gap: 12px; align-items: start; padding: 12px 0; }
  .log li + li { border-top: 1px dashed var(--line); }
  .log time { font: 500 12.5px/32px var(--mono); color: var(--ink-faint); }
  .log b { font-weight: 600; font-size: 14.5px; }
  .log p { margin-top: 1px; font-size: 14px; color: var(--ink-soft); }
  .log s { color: var(--bad); }
  .log ins { text-decoration: none; color: var(--ok); font-weight: 600; }
  .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 600; font-size: 14px; color: #fff; background: var(--steel); }
  .av.tech { background: #0f766e; }
  .av.lead { background: #7c3aed; }
  .role { display: inline-block; padding: 0 7px; border-radius: 5px; font-size: 11.5px; vertical-align: 1px; background: var(--steel-soft); color: var(--steel); }
  .role.tech { background: color-mix(in srgb, #0f766e 12%, transparent); color: #0f766e; }
  .role.lead { background: color-mix(in srgb, #7c3aed 12%, transparent); color: #7c3aed; }
  .log .shots { display: flex; gap: 5px; margin-top: 7px; }
  .log .shots i { width: 34px; height: 24px; border-radius: 4px; background: linear-gradient(135deg, #9aa7b4, #5d6b78 55%, #c3ccd5); }
  .audit-foot { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-top: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-soft); }
  .audit-foot svg { width: 15px; height: 15px; color: var(--ok); }
  /* demos.js replays the history while it is on screen: entries arrive oldest first, the newest
     one flashes. Without it (reduced motion) the finished list shows. */
  .log li { transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
  .log li { z-index: 0; }
  .log li.pending { opacity: 0; transform: translateY(-8px); }
  .log li.fresh::before { content: ""; position: absolute; inset: 4px -10px; border-radius: 10px; background: var(--steel-soft); z-index: -1; animation: audit-new 1.8s ease both; }
  @keyframes audit-new { from { opacity: 0; } 25% { opacity: 1; } to { opacity: 0; } }

  /* Onboarding: three steps on a line that fills in as it comes into view, each with a small picture. */
  .onboard { position: relative; }
  .ob-viz { display: flex; align-items: center; gap: 10px; height: 64px; margin-bottom: 14px; }
  .ob-viz .arrow { width: 22px; height: 2px; background: var(--ink-faint); position: relative; }
  .ob-viz .arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 6px solid var(--ink-faint); border-right: 0; }
  .ob-import .xls { display: grid; place-items: center; width: 44px; height: 54px; border-radius: 6px; background: #1d6f42; color: #fff; font: 600 10.5px var(--mono); }
  .ob-import .rows { display: grid; gap: 4px; }
  .ob-import .rows b { padding: 2px 8px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); font: 500 11px var(--mono); }
  .ob-form .paper { display: grid; gap: 6px; align-content: center; width: 44px; height: 54px; padding: 0 8px; border-radius: 4px; background: #fbf8f1; border: 1px solid #e3dccb; transform: rotate(-4deg); }
  .ob-form .paper i { height: 2px; background: #c9bfa8; }
  .ob-form .pad { display: grid; gap: 4px; padding: 6px; border-radius: 9px; background: var(--ink); }
  .ob-form .pad em { font: normal 600 10.5px/1 var(--mono); padding: 3px 12px; border-radius: 4px; background: var(--ok-soft); color: var(--ok); }
  .ob-form .pad em.ng { background: var(--bad-soft); color: var(--bad); }
  .ob-team .av { width: 36px; height: 36px; border: 2px solid var(--paper); }
  .ob-team .av + .av { margin-left: -16px; }
  .ob-team .live-dot { margin-left: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12.5px; font-weight: 600; }
  .ob-team .live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
  @keyframes live-pulse { 50% { opacity: 0.3; } }
  /* demos.js walks through the steps while they are on screen: each picture builds in turn and
     its card is outlined. */
  .onboard li { transition: border-color 0.3s ease; }
  .onboard li.now { border-color: var(--steel); }
  .ob-viz > * { transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
  .ob-viz > :nth-child(2) { transition-delay: 0.2s; }
  .ob-viz > :nth-child(3) { transition-delay: 0.4s; }
  .ob-viz > :nth-child(4) { transition-delay: 0.6s; }
  .onboard li.pending .ob-viz > * { opacity: 0; transform: translateX(-6px); transition-delay: 0s; }
  @media (min-width: 961px) {
    .onboard li { padding-top: 22px; }
    .onboard li::before { position: absolute; top: 22px; right: 22px; margin: 0; }
  }
  @media (max-width: 960px) {
    .secure { grid-template-columns: 1fr; gap: 28px; }
    .audit { max-width: 560px; }
  }
  @media (max-width: 640px) {
    .assure li { padding: 7px 0; }
    .log { padding: 4px 14px; }
    .log li { grid-template-columns: 32px 1fr; gap: 10px; }
    .log time { position: absolute; right: 0; top: 12px; line-height: 20px; }
    .audit-top { padding: 12px 14px; flex-wrap: wrap; }
    /* Onboarding steps read as a numbered list rather than three tall cards. */
    .onboard { gap: 0; }
    .onboard li { display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; padding: 18px 0; background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
    .onboard li::before { grid-row: 1 / span 4; margin: 0; }
    .onboard li > * { grid-column: 2; }
    .ob-viz { height: auto; min-height: 56px; margin-bottom: 12px; }
    .onboard li.now { border-color: var(--line); }
  }
  .detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
  .detail article { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-block: 16px; border-top: 1px solid var(--line); }
  .detail article > svg { width: 22px; height: 22px; color: var(--steel); margin-top: 3px; }
  .detail h3 { font-family: var(--body); font-weight: 600; font-size: 16.5px; }
  .detail p { margin-top: 2px; color: var(--ink-soft); font-size: 15px; }
  .next-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: nx; }
  .next-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
  .next-steps li::before { counter-increment: nx; content: counter(nx); width: 28px; height: 28px; border-radius: 50%; background: var(--steel-soft); color: var(--steel); font: 600 13px/28px var(--mono); text-align: center; }
  .next-steps b { display: block; font-weight: 600; }
  .next-steps span { color: var(--ink-soft); font-size: 15px; }
  @media (max-width: 960px) { .explore, .detail { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .explore, .detail { grid-template-columns: 1fr; } }
