/* naka-ai landing — light, premium video-tool look.
   Hero draws the product → script/voice → clip flow as connected nodes;
   the template rail lets visitors open a flow in one click. */

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --ink: #0d1b33;
  --ink-2: #4a5872;
  --ink-3: #7b879c;
  --line: #e3e8f1;
  --brand: #2459d6;
  --brand-ink: #173f9e;
  --cyan: #14b3d6;
  --grad: linear-gradient(115deg, #2459d6 0%, #3d6cf0 45%, #14b3d6 100%);
  --shadow-sm: 0 1px 2px rgba(13, 27, 51, .06), 0 4px 14px rgba(13, 27, 51, .05);
  --shadow-lg: 0 2px 4px rgba(13, 27, 51, .05), 0 24px 60px rgba(20, 45, 110, .14);
  --radius: 20px;
  /* "AI factory" accents (light): steel panels, blueprint grid, safety amber, status LED */
  --fx-steel: #eef2f7;
  --fx-steel-2: #e2e8f1;
  --fx-rail: #c9d3e1;
  --fx-grid: rgba(36, 89, 214, .07);
  --fx-amber: #ffb800;
  --fx-amber-ink: #8a5a00;
  --fx-ok: #12b07a;
  --fx-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --fx-hazard: repeating-linear-gradient(-45deg, var(--fx-amber) 0 10px, #1b2436 10px 20px);
  font-family: "Anuphan", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "IBM Plex Sans Thai", sans-serif; margin: 0; }
.shell { width: min(100% - 64px, 1200px); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 12px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.btn span { font-weight: 400; font-size: 18px; line-height: 1; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(36, 89, 214, .32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(36, 89, 214, .4); }
.btn-ghost { color: var(--brand-ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: #c9d5ea; }
.btn-light { color: var(--brand-ink); background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- nav ---------- */
.landing-nav.glass-nav { --glass-rgb: 247, 248, 251; --glass-line: 13, 27, 51; --glass-shadow: 0 8px 24px rgba(13, 27, 51, .08); }
.nav-row { height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: "IBM Plex Sans Thai", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.05em; color: var(--ink); }
.brand img { border-radius: 10px; }
.brand span span { font-weight: 500; }
.brand b { color: var(--cyan); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.menu-button { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; border: 0; background: none; color: var(--ink); }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 36px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 110%; z-index: -1; background:
  radial-gradient(40% 50% at 78% 35%, rgba(20, 179, 214, .16), transparent 70%),
  radial-gradient(45% 55% at 62% 60%, rgba(36, 89, 214, .14), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(20, 179, 214, .5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(20, 179, 214, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 179, 214, 0); } }
.hero h1 { font-size: clamp(50px, 5.6vw, 80px); line-height: 1.08; letter-spacing: -.055em; font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 500px; margin: 22px 0 0; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.quickstart { margin-top: 30px; max-width: 540px; }
.quickstart label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.quickstart-row { display: flex; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); transition: border-color .18s; }
.quickstart-row:focus-within { border-color: #9dbaf5; }
.quickstart-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 16px; color: var(--ink); }
.quickstart-row input::placeholder { color: var(--ink-3); }
.quickstart-row input:focus { outline: none; }
.trial-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.trial-notes li { display: inline-flex; align-items: center; gap: 6px; }
.trial-notes li::before { content: "✓"; color: var(--brand); font-weight: 700; }

/* flow board: two input nodes wired into the clip node */
.flow-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; align-items: center; height: 520px; padding: 30px; border: 1px solid var(--line); border-radius: 28px; background:
  radial-gradient(circle, rgba(13, 27, 51, .09) 1px, transparent 1.2px) 0 0 / 22px 22px,
  linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .6));
  box-shadow: var(--shadow-lg); }
.flow-inputs { display: flex; flex-direction: column; justify-content: space-between; height: 460px; }
.node { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.node header { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; font-size: 13px; font-weight: 700; color: var(--ink); }
.node-tag { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 6px; background: #eef3ff; color: var(--brand); font-size: 11px; font-weight: 700; }
.node-tag-live { background: var(--grad); color: #fff; }
.node-photo, .node-script { height: 214px; }
.node-photo-frame { margin: 10px 14px 14px; height: 154px; border-radius: 12px; overflow: hidden; background: #eef1f6; }
.node-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.node-script { display: flex; flex-direction: column; padding-bottom: 14px; }
.script-line { margin: 10px 14px 0; padding: 9px 12px; border-radius: 10px; background: #f5f7fb; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.script-line b { color: var(--brand); margin-right: 6px; }
.wave { display: flex; align-items: center; gap: 4px; height: 38px; margin: auto 14px 0; }
.wave i { flex: 1; height: 30%; border-radius: 3px; background: var(--grad); animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 95%; } }
.flow-wires { width: 72px; height: 460px; overflow: visible; }
.flow-wires path { fill: none; stroke: #8fb0f2; stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: wire 1.4s linear infinite; }
@keyframes wire { to { stroke-dashoffset: -22; } }
.node-clip { padding-bottom: 14px; }
.clip-phone { position: relative; width: 232px; aspect-ratio: 9 / 16; margin: 10px 14px 0; border-radius: 16px; overflow: hidden; background: #0b1630; }
.clip-phone video { width: 100%; height: 100%; object-fit: cover; }
.clip-badge { position: absolute; left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11px; font-weight: 700; }
.flow-mascot { position: absolute; right: -26px; bottom: -34px; width: 132px; height: auto; filter: drop-shadow(0 14px 18px rgba(20, 45, 110, .22)); pointer-events: none; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.platforms b { font-family: "IBM Plex Sans Thai", sans-serif; font-size: 17px; color: #97a2b6; letter-spacing: -.02em; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--brand); }
.section-head h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.04em; }

/* templates rail */
.templates { background: #fff; border-block: 1px solid var(--line); }
.rail-controls { display: flex; gap: 8px; }
.rail-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; transition: border-color .18s, background-color .18s; }
.rail-arrow:hover { border-color: #b9c8e4; background: var(--bg); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 264px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(32px, calc((100vw - 1200px) / 2)); padding: 6px max(32px, calc((100vw - 1200px) / 2)) 22px; scrollbar-width: thin; }
.tpl { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0b1630; scroll-snap-align: start; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.tpl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpl-media, .tpl-media img, .tpl-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 34, 0) 42%, rgba(6, 14, 34, .88) 100%); }
.kenburns { animation: kenburns 9s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.14) translate(-3%, -2%); } }
.tpl-chip { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 700; }
.tpl-chip-new { background: var(--grad); color: #fff; }
.tpl-chip-live { background: #f43f5e; color: #fff; }
.tpl-body { position: absolute; inset: auto 0 0; z-index: 1; padding: 18px; color: #fff; }
.tpl-body h3 { font-size: 20px; letter-spacing: -.02em; }
.tpl-body p { margin: 6px 0 12px; font-size: 13px; line-height: 1.6; color: #d4def0; }
.tpl-try { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--brand-ink); font-size: 13px; font-weight: 700; transition: background-color .18s; }
.tpl:hover .tpl-try { background: #e8efff; }
.sample-note { margin-top: 4px; font-size: 12px; color: var(--ink-3); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.step-no { display: inline-block; margin-bottom: 18px; font-family: "IBM Plex Sans Thai", sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -.04em; }
.step-no { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 21px; letter-spacing: -.02em; }
.steps p { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* why */
.why { background: #fff; border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-grid article { padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.why-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.why-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.why-grid h3 { font-size: 18px; letter-spacing: -.02em; }
.why-grid p { margin: 8px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 20px; }
.price-card { display: flex; flex-direction: column; gap: 6px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.price-card-main { border-color: #b9ccf5; box-shadow: var(--shadow-lg); }
.price-name { margin: 0; font-weight: 700; color: var(--brand); }
.price-value { margin: 0 0 8px; font-family: "IBM Plex Sans Thai", sans-serif; font-size: 36px; font-weight: 700; letter-spacing: -.04em; }
.price-card ul { flex: 1; margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.price-card li::before { content: "✓"; margin-right: 10px; color: var(--brand); font-weight: 700; }
.price-card .btn { align-self: flex-start; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

/* closing */
.closing { padding: 0 0 96px; }
.closing-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 52px 56px; border-radius: 32px; background: var(--grad); color: #fff; box-shadow: 0 30px 70px rgba(36, 89, 214, .3); }
.closing-card h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.04em; }
.closing-card p { margin: 12px 0 0; color: #e3ecff; }
.closing-actions { display: grid; justify-items: center; gap: 14px; }
.closing-call { font-size: 14px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .6); }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding: 28px 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; color: var(--ink-2); }
.footer-copy { margin-left: auto; font-size: 13px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flow-board { max-width: 640px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1200px); }
  .nav-links, .nav-cta { display: none; }
  .menu-button { display: block; }
  .mobile-nav:not([hidden]) { display: grid; padding: 4px 0 14px; }
  .mobile-nav a { padding: 13px 4px; border-top: 1px solid var(--line); font-weight: 600; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(42px, 12vw, 56px); }
  .lead { font-size: 16px; }
  .quickstart-row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .quickstart-row input { min-height: 48px; }
  /* the board becomes a vertical chain */
  .flow-board { grid-template-columns: 1fr; height: auto; gap: 26px; padding: 20px; justify-items: stretch; }
  .flow-inputs { height: auto; gap: 26px; }
  .flow-wires { display: none; }
  .node { position: relative; }
  .node:not(.node-clip)::after { content: ""; position: absolute; left: 50%; bottom: -26px; height: 26px; border-left: 2px dashed #8fb0f2; }
  .node-clip { justify-self: center; }
  .clip-phone { width: min(232px, 62vw); }
  .flow-mascot { width: 96px; right: -8px; bottom: -20px; }
  .section { padding: 68px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .rail { grid-auto-columns: 72vw; scroll-padding-inline: 16px; padding-inline: 16px; }
  .steps, .why-grid, .price-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid { gap: 8px; }
  .closing-card { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  .closing-actions { justify-items: start; }
  .footer-copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .wave i, .flow-wires path, .kenburns { animation: none; }
  .btn, .tpl { transition: none; }
}

/* ---------- product menu (desktop dropdowns) ---------- */
.nav-links { align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-trigger, .nav-plain { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.nav-trigger span { font-size: 10px; transition: transform .18s; }
.nav-trigger:hover, .nav-plain:hover, .nav-trigger[aria-expanded="true"] { color: var(--ink); background: rgba(13, 27, 51, .05); }
.nav-trigger[aria-expanded="true"] span { transform: rotate(180deg); }
.nav-panel { position: absolute; top: calc(100% + 10px); left: 50%; width: 320px; transform: translateX(-50%); padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); z-index: 60; }
.nav-panel::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-panel p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.nav-panel .panel-title { margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.panel-title em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-style: normal; font-size: 11px; vertical-align: 2px; }
.panel-links { display: flex; gap: 10px; margin-top: 14px; }
.panel-links a { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 700; text-align: center; color: var(--ink); }
.panel-links a:hover { border-color: #b9c8e4; background: var(--bg); }
.panel-links .panel-start { border-color: transparent; background: var(--grad); color: #fff; }
.panel-links .panel-start:hover { background: var(--grad); filter: brightness(1.05); }
/* factory dressing: the four products read as numbered production lines, the video wall is the
   lit-up "factory floor" link, and a slow conveyor runs along the bottom edge of the bar */
.landing-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 18px, transparent 18px 30px, var(--cyan) 30px 44px, transparent 44px 56px); background-size: 56px 2px; opacity: .35; animation: fx-conveyor 2.4s linear infinite; pointer-events: none; will-change: transform; }
@keyframes fx-conveyor { to { background-position: 56px 0; } }
.brand-tag { align-self: center; margin-left: 2px; padding: 3px 7px; border: 1px solid var(--fx-rail); border-radius: 6px; background: var(--fx-steel); font-family: var(--fx-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; color: var(--ink-2); }
.fx-led { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fx-ok); box-shadow: 0 0 0 3px rgba(18, 176, 122, .18); animation: fx-led 2.2s ease-in-out infinite; will-change: transform; }
@keyframes fx-led { 50% { box-shadow: 0 0 0 5px rgba(18, 176, 122, .06); } }
.nav-factory { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; padding: 7px 13px 7px 11px; border: 1px solid var(--fx-rail); border-radius: 999px; background: linear-gradient(180deg, #fff, var(--fx-steel)); box-shadow: inset 0 -2px 0 rgba(13, 27, 51, .04); color: var(--ink); font-size: 14px; font-weight: 700; transition: border-color .18s, box-shadow .18s; }
.nav-factory:hover { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 89, 214, .1); }
.line-no { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--fx-steel-2); font-family: var(--fx-mono); font-size: 10.5px; font-style: normal; font-weight: 700; color: var(--ink-3); transition: background-color .18s, color .18s; }
.nav-trigger:hover .line-no, .nav-trigger[aria-expanded="true"] .line-no { background: var(--brand); color: #fff; }
.nav-panel { overflow: hidden; padding-top: 0; }
.nav-panel .panel-line { display: flex; justify-content: space-between; align-items: center; margin: 0 -18px 14px; padding: 12px 18px 9px; border-top: 4px solid transparent; border-image: var(--fx-hazard) 4; background: var(--fx-steel); font-family: var(--fx-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; line-height: 1.4; color: var(--ink-3); }
.panel-line span:last-child { display: inline-flex; align-items: center; gap: 7px; font-family: "Anuphan", sans-serif; letter-spacing: 0; color: #0c7a55; }
.mobile-nav .line-no { margin-right: 8px; vertical-align: 1px; }
.mobile-nav .mobile-factory b { display: inline-flex; align-items: center; gap: 9px; }
.mobile-nav .mobile-factory { border-top: 0; }
/* glass-nav.css tints the open mobile menu dark navy; on this light page it stays light frost */
.landing-nav.glass-nav .mobile-nav:not([hidden]) { background: rgba(247, 248, 251, .96); }
.brand, .nav-factory, .nav-trigger, .nav-plain { flex: none; white-space: nowrap; }
.nav-trigger { gap: 7px; }
@media (max-width: 1280px) { .brand-tag { display: none; } .nav-row { gap: 20px; } }
@media (max-width: 1080px) { .nav-factory { padding: 6px 10px; font-size: 13px; } .nav-trigger .line-no { display: none; } }
@media (prefers-reduced-motion: reduce) { .landing-nav::after, .fx-led { animation: none; } }
.mobile-nav a { display: grid; gap: 2px; }
.mobile-nav small { font-weight: 500; font-size: 12px; color: var(--ink-3); }
.mobile-nav .mobile-cta { margin-top: 8px; padding: 13px; border: 0; border-radius: 14px; background: var(--grad); color: #fff; text-align: center; }

/* ---------- product rows ---------- */
.products { padding-top: 72px; background: #fff; border-top: 1px solid var(--line); }
.product-row + .product-row { margin-top: 72px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.row-head h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.2; letter-spacing: -.035em; }
.row-sub { max-width: 620px; margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.row-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.pill { margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11px; letter-spacing: 0; vertical-align: 1px; }
.products .rail { grid-auto-columns: 232px; }

/* "make your own" card closes every row */
.tpl-create { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 24px; border: 2px dashed #c4d3ee; background: linear-gradient(160deg, #f4f7ff, #eef8fc); color: var(--ink); box-shadow: none; }
.tpl-create:hover { border-color: var(--brand); }
.tpl-create h3 { font-size: 20px; letter-spacing: -.02em; }
.tpl-create p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.tpl-create .tpl-try { align-self: flex-start; margin-top: 6px; background: var(--grad); color: #fff; }
.create-plus { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); color: var(--brand); font-size: 26px; }

/* chat demo cards (bot and live comments) */
.tpl-chat { display: flex; flex-direction: column; padding: 18px 16px; background: linear-gradient(180deg, #f5f8ff, #eaf1fd); color: var(--ink); border: 1px solid var(--line); }
.tpl-chat:hover { transform: none; }
.chat-head { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; animation: pulse 2s infinite; }
.chat-log { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.chat-log li { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.55; transition: opacity .35s ease, transform .35s ease; }
.chat-log .in { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-log .out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.chat-log .note { align-self: center; max-width: 100%; padding: 6px 10px; border-radius: 999px; background: rgba(13, 27, 51, .06); color: var(--ink-2); font-size: 11.5px; text-align: center; }
.chat-log li.is-pending { opacity: 0; transform: translateY(6px); }
.chat-foot { margin: auto 0 0; padding-top: 12px; font-size: 12px; color: var(--ink-3); }

@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-trigger, .nav-plain { padding: 8px; font-size: 13px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-button { display: block; }
  .mobile-nav:not([hidden]) { display: grid; padding: 4px 0 14px; }
  .mobile-nav a { padding: 12px 4px; border-top: 1px solid var(--line); font-weight: 600; }
}
@media (max-width: 760px) {
  .row-head { flex-direction: column; align-items: flex-start; }
  .products .rail { grid-auto-columns: 64vw; }
  .product-row + .product-row { margin-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .chat-log li { transition: none; }
}

/* ---------- social showcase ---------- */
.social { background: var(--bg); }
.platform-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 26px; }
.platform-filter button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; transition: background-color .18s, color .18s, border-color .18s; }
.platform-filter button:hover { border-color: #b9c8e4; color: var(--ink); }
.platform-filter button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.post { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #0b1630; color: #fff; box-shadow: var(--shadow-sm); }
.post[hidden] { display: none; }
.post-media, .post-media img, .post-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .78) 100%); }
.plat { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #fff; }
.plat-tiktok { background: #000; box-shadow: -2px 0 0 #25f4ee, 2px 0 0 #fe2c55; }
.plat-facebook { background: #1877f2; }
.plat-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af); }
.plat-youtube { background: #ff0000; }
.plat-shopee { background: #ee4d2d; }
.post-side { position: absolute; right: 12px; bottom: 96px; z-index: 1; display: grid; gap: 16px; }
.post-side i { display: block; width: 26px; height: 26px; background: #fff; opacity: .92; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ic-heart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.2C1 8.7 2.9 5 6.6 5c2.1 0 3.6 1.2 4.4 2.5C11.8 6.2 13.3 5 15.4 5c3.7 0 5.6 3.7 4.2 6.8C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
.ic-comment { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H9l-5 4V5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }
.ic-share { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 4l8 7-8 7v-4c-5 0-8 1.5-11 5 1-5 4-9.5 11-10.5z'/%3E%3C/svg%3E"); }
.post-bottom { position: absolute; inset: auto 56px 0 0; z-index: 1; padding: 16px; }
.post-bottom b { font-size: 14px; }
.post-bottom p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: #eef2fa; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 12px; font-weight: 600; }
.shop-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-bar em { flex: none; color: #ee4d2d; font-style: normal; font-weight: 700; }
@media (max-width: 1080px) { .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .post { border-radius: 16px; }
  .post-bottom { right: 44px; padding: 12px; }
  .post-bottom p { font-size: 12px; }
  .post-side { right: 8px; gap: 12px; bottom: 80px; }
  .post-side i { width: 20px; height: 20px; }
  .platform-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; }
  .platform-filter button { flex: none; }
}

/* ---------- pricing packages ---------- */
.pricing-head { text-align: center; margin-bottom: 36px; }
.pricing-head h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.04em; }
.pricing-head .row-sub { margin-inline: auto; }
.billing-toggle { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); }
.billing-toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.billing-toggle button span { padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 11px; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.plan h3 { font-size: 22px; letter-spacing: -.02em; }
.plan-for { margin: 6px 0 18px; font-size: 14px; color: var(--ink-2); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.plan-price .amount { font-family: "IBM Plex Sans Thai", sans-serif; font-size: 42px; font-weight: 700; letter-spacing: -.04em; }
.plan-price .amount::before { content: "฿"; margin-right: 2px; font-size: 24px; vertical-align: 10px; }
.plan-price .unit { font-size: 14px; color: var(--ink-3); }
.plan-was { align-self: center; font-size: 16px; font-weight: 600; color: var(--ink-3); text-decoration-thickness: 2px; text-decoration-color: #e2365a; }
.plan-was::before { content: "฿"; }
.plan.on-sale .plan-price .amount { color: #d63a2f; }
.plan-off { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #ffe9e3; color: #b8321f; font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: 4px; }
.plan-bill { min-height: 20px; margin: 4px 0 18px; font-size: 13px; color: var(--ink-3); }
.plan-cta { width: 100%; }
.plan ul { display: grid; gap: 11px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.plan li { position: relative; padding-left: 24px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan li b { margin-right: 6px; color: var(--ink); }
.plan-perk-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.6; vertical-align: 1px; }
.plan-perk-tag.soon { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px currentColor; }
.plan-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pricing-note { margin: 26px 0 0; text-align: center; font-size: 13px; color: var(--ink-3); }
.pricing-note a { color: var(--brand); font-weight: 600; }
@media (max-width: 1080px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- trust: stats + guarantees ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); overflow: hidden; }
.stat-band div { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; padding: 28px 16px; text-align: center; }
.stat-band div + div { border-left: 1px solid var(--line); }
.stat-band dt { font-size: 14px; color: var(--ink-2); }
.stat-band dd { margin: 0; font-family: "IBM Plex Sans Thai", sans-serif; font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-band small { margin-left: 6px; font-size: 16px; letter-spacing: 0; }
.guarantee-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guarantee-grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.guarantee-grid h3 { font-size: 18px; letter-spacing: -.02em; }
.guarantee-grid p { margin: 8px 0 0; font-size: 14px; line-height: 1.75; color: var(--ink-2); }
.why-icon svg { fill: none; }
@media (max-width: 900px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-band div:nth-child(3) { border-left: 0; }
  .stat-band div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .guarantee-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .guarantee-grid { grid-template-columns: 1fr; } .stat-band dd { font-size: 36px; } }

/* ---------- account menu on the light nav (public/account-menu.js) ---------- */
.nav-account { display: inline-flex; }
.nav-account:empty { display: none; }
.landing-nav .acct-login { min-height: 40px; padding: 0 16px; border-color: var(--line); background: #fff; color: var(--ink); font-size: 14px; }
.landing-nav .acct-login:hover { background: var(--bg); border-color: #b9c8e4; }
.landing-nav .acct-trigger { color: var(--ink); }
.landing-nav .acct-trigger:hover, .landing-nav .acct-trigger[aria-expanded="true"] { background: rgba(13, 27, 51, .05); border-color: var(--line); }
.landing-nav .acct-chevron { color: var(--ink-3); }
/* Signed in: the account entry replaces the "try free" pill. */
body.acct-signed-in .landing-nav .nav-cta { display: none; }
@media (max-width: 900px) {
  .nav-account { margin-left: auto; }
  .nav-account + .nav-cta + .menu-button, .nav-account ~ .menu-button { margin-left: 8px; }
}

/* ---------- Naka video factory: light "AI factory" video wall (markup from creative/unsloth-reel/build-reel.cjs) ---------- */
.reel { --reel-mono: var(--fx-mono), "Anuphan", sans-serif; position: relative; isolation: isolate; padding: 88px 0 64px; overflow: hidden; background: linear-gradient(180deg, var(--fx-steel) 0%, var(--bg) 70%); border-block: 1px solid var(--line); }
/* blueprint grid (28px minor, 140px major lines) that fades out toward the bottom */
.reel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--fx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px),
    linear-gradient(var(--fx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px; background-position: center top;
  -webkit-mask-image: radial-gradient(130% 70% at 50% 0%, #000 35%, transparent 85%); mask-image: radial-gradient(130% 70% at 50% 0%, #000 35%, transparent 85%); }
.reel-shell { width: min(100% - 64px, 1280px); margin-inline: auto; }

/* header: line plate with status LED, title, machine status chips */
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 32px; }
.reel-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 6px 12px 6px 10px; border: 1px solid var(--fx-rail); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); font-family: var(--reel-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ink-2); }
.reel-led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fx-ok); box-shadow: 0 0 0 3px rgba(18, 176, 122, .2); animation: reel-led 2.4s ease-in-out infinite; will-change: transform; }
@keyframes reel-led { 50% { box-shadow: 0 0 0 6px rgba(18, 176, 122, 0); opacity: .7; } }
:is(.reel, .fx-lines) h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.04em; color: var(--ink); }
:is(.reel, .fx-lines) h2 em, .reel-feature h3 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:is(.reel, .fx-lines) .row-sub { color: var(--ink-2); }
.reel-status { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 460px; margin: 0; padding: 0; list-style: none; }
.reel-status li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--fx-rail); border-radius: 8px; background: rgba(255, 255, 255, .9); font-family: var(--reel-mono); font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.reel-status li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }

/* the wall: 5 columns, featured tile 2x2 */
.reel-wall { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
:is(.reel, .fx-lines) .tpl { border-radius: var(--radius); background: #fff; border: 1px solid var(--fx-rail); box-shadow: var(--shadow-sm); scroll-snap-align: none; }
:is(.reel, .fx-lines) .tpl:hover { transform: translateY(-4px); border-color: #b3c1d6; box-shadow: var(--shadow-lg); }
:is(.reel, .fx-lines) .tpl-media { inset: 5px; width: auto; height: auto; border-radius: calc(var(--radius) - 5px); overflow: hidden; background: var(--fx-steel-2); }
:is(.reel, .fx-lines) .tpl-media::after { content: none; }
.reel-link { position: absolute; inset: 0; color: inherit; border-radius: inherit; }
.reel-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

/* ticket: "#NN" + category, top-left on the video */
:is(.reel, .fx-lines) .reel-ticket { position: absolute; top: 13px; left: 13px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 26px); padding: 4px 9px 4px 4px; border-radius: 7px; background: rgba(255, 255, 255, .93); color: var(--ink); box-shadow: 0 2px 8px rgba(13, 27, 51, .12); font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.reel, .fx-lines) .reel-ticket i { flex: none; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--reel-mono); font-style: normal; font-size: 10.5px; letter-spacing: .04em; }
:is(.reel, .fx-lines) .reel-ticket.tpl-chip-live i { background: #f43f5e; }
:is(.reel, .fx-lines) .reel-ticket.tpl-chip-new i { background: var(--brand); }
.reel-card:has(.reel-sound) .reel-ticket { max-width: calc(100% - 72px); }

/* caption: white frosted panel so the text stays readable over any frame */
:is(.reel, .fx-lines) .tpl-body { inset: auto 12px 12px; padding: 11px 12px 12px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 13px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 6px 18px rgba(13, 27, 51, .14); color: var(--ink); }
:is(.reel, .fx-lines) .tpl-body h3 { font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
:is(.reel, .fx-lines) .tpl-body p { margin: 3px 0 7px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
:is(.reel, .fx-lines) .tpl-try { padding: 0; border-radius: 0; background: none; color: var(--brand); font-size: 12.5px; }
:is(.reel, .fx-lines) .tpl:hover .tpl-try { background: none; text-decoration: underline; text-underline-offset: 3px; }

/* featured tile: the production line itself */
.reel-feature { position: relative; grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; align-items: flex-start; padding: 42px 34px 58px; border: 1px solid var(--fx-rail); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff 50%, var(--fx-steel) 100%); box-shadow: var(--shadow-lg); }
.reel-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--fx-hazard); }
.reel-feature::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--fx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); }
.reel-feature > * { position: relative; z-index: 1; }
.rf-kicker { margin: 0; font-family: var(--reel-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--fx-amber-ink); }
.reel-feature h3 { margin-top: 16px; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.18; letter-spacing: -.035em; color: var(--ink); }
.rf-steps { display: grid; gap: 20px; margin: 34px 0 32px; padding: 0; list-style: none; }
.rf-steps li { position: relative; display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.rf-steps li + li::before { content: ""; position: absolute; left: 18px; top: -20px; height: 20px; border-left: 2px dashed var(--fx-rail); }
.rf-steps b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--fx-rail); border-radius: 10px; background: linear-gradient(180deg, #fff, var(--fx-steel-2)); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(13, 27, 51, .08); font-family: var(--reel-mono); font-size: 14px; color: var(--brand); }
.rf-steps li:last-child b { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(36, 89, 214, .28); }
.rf-steps span { display: grid; gap: 2px; }
.rf-steps small { font-family: var(--reel-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.reel-feature .btn { margin-top: auto; }
.reel-feature .rf-naka { position: absolute; right: 6px; bottom: 16px; z-index: 0; width: min(300px, 62%); height: auto; filter: drop-shadow(0 18px 24px rgba(20, 45, 110, .2)); pointer-events: none; }

/* conveyor belt along the bottom of the featured tile; the mascot stands on it */
.reel-feature .rf-belt { position: absolute; inset: auto 0 0; z-index: 0; height: 22px; border-top: 2px solid var(--fx-rail); background: radial-gradient(circle, #fff 0 2.5px, var(--fx-rail) 3px 6px, transparent 6.5px) 0 50% / 24px 22px repeat-x, var(--fx-steel-2); animation: reel-belt 1.4s linear infinite; will-change: transform; }
@keyframes reel-belt { to { background-position: 24px 50%, 0 0; } }

/* open slot: fills the last row so the wall never ends with a hole */
.reel-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; padding: 48px 18px 20px; border: 2px dashed var(--fx-rail); border-radius: var(--radius); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .75) 0 12px, rgba(226, 232, 241, .45) 12px 24px); color: var(--ink); text-align: center; transition: border-color .18s ease, transform .25s ease; }
.reel-slot:hover { border-color: var(--brand); transform: translateY(-4px); }
.reel-slot:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.reel-slot .reel-ticket i { background: var(--fx-amber); color: #1b2436; }
.slot-plus { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--fx-rail); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); color: var(--brand); font-size: 26px; }
.reel-slot b { font-size: 15px; line-height: 1.4; }
.slot-cta { font-size: 13px; font-weight: 700; color: var(--brand); }
.reel-slot[data-d="0"] { display: none; }
.reel-slot[data-d="2"] { grid-column: span 2; }
.reel-slot[data-d="3"] { grid-column: span 3; }
.reel-slot[data-d="4"] { grid-column: span 4; }

/* "from this image": the exact first frame an H3 clip started from */
.reel-from { position: absolute; top: 58px; right: 13px; z-index: 2; width: 56px; margin: 0; pointer-events: none; transform: rotate(3deg); }
.reel-from img { display: block; width: 100%; height: auto; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(13, 27, 51, .25); }
.reel-from figcaption { margin-top: 4px; padding: 2px 3px; border-radius: 5px; background: rgba(255, 255, 255, .93); color: var(--ink); font-size: 10px; font-weight: 700; text-align: center; }
.reel-sound { position: absolute; top: 13px; right: 13px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--fx-rail); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(13, 27, 51, .14); cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; }
.reel-sound:hover { border-color: var(--brand); color: var(--brand); }
.reel-sound[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.reel-sound:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 2px; }
.reel-sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reel-sound .spk { fill: currentColor; }
.reel-sound .on, .reel-sound[aria-pressed="true"] .off { display: none; }
.reel-sound[aria-pressed="true"] .on { display: inline; }
.reel-note { margin-top: 20px; font-size: 12px; color: var(--ink-3); }

@media (max-width: 1080px) {
  .reel-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .reel-status { justify-content: flex-start; max-width: none; }
  .reel-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reel-feature { grid-column: 1 / -1; grid-row: auto; }
  .reel-slot[data-d] { display: flex; grid-column: auto; }
  .reel-slot[data-t="0"] { display: none; }
  .reel-slot[data-t="2"] { grid-column: span 2; }
}
@media (max-width: 760px) {
  .reel { padding: 64px 0 44px; }
  .reel-shell { width: min(100% - 32px, 1280px); }
  .reel-head { margin-bottom: 22px; }
  .reel-status li { padding: 6px 10px; font-size: 11px; }
  .reel-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reel-feature { padding: 34px 20px 44px; }
  .reel-feature .rf-belt { height: 16px; background-size: 18px 16px, auto; }
  .reel-feature h3 { font-size: 30px; }
  .rf-steps { margin: 22px 0 24px; gap: 12px; }
  .rf-steps li { font-size: 14px; }
  .rf-steps li + li::before { top: -12px; height: 12px; }
  .reel-feature .rf-naka { width: 132px; right: 0; bottom: 12px; }
  :is(.reel, .fx-lines) .tpl { border-radius: 16px; }
  :is(.reel, .fx-lines) .tpl-media { inset: 4px; border-radius: 12px; }
  :is(.reel, .fx-lines) .reel-ticket { top: 10px; left: 10px; max-width: calc(100% - 20px); font-size: 10.5px; }
  :is(.reel, .fx-lines) .tpl-body { inset: auto 8px 8px; padding: 8px 9px 9px; border-radius: 10px; }
  :is(.reel, .fx-lines) .tpl-body h3 { font-size: 13.5px; }
  :is(.reel, .fx-lines) .tpl-body p { margin: 2px 0 5px; font-size: 11px; }
  :is(.reel, .fx-lines) .tpl-try { font-size: 11.5px; }
  .reel-slot { border-radius: 16px; min-height: 0; padding: 40px 12px 16px; }
  .reel-slot[data-d] { display: flex; grid-column: auto; }
  .reel-slot[data-m="0"] { display: none; }
  .reel-sound { top: 10px; right: 10px; width: 32px; height: 32px; }
  .reel-from { top: 50px; right: 10px; width: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-led, .reel-feature .rf-belt { animation: none; }
  .reel-slot { transition: none; }
}

/* H3 clips in the product rails (markup from creative/unsloth-reel/build-reel.cjs) */
.h3-card .reel-link { display: block; }
.h3-note { margin-top: 28px; font-size: 12px; color: var(--ink-3); }

/* ---------- product lines: the four product rows as factory video walls (same parts as #reel) ---------- */
.products.fx-lines { --reel-mono: var(--fx-mono), "Anuphan", sans-serif; position: relative; isolation: isolate; padding: 72px 0 80px; background: linear-gradient(180deg, var(--bg) 0%, var(--fx-steel) 45%, var(--bg) 100%); border-top: 0; }
.products.fx-lines::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--fx-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fx-grid) 1px, transparent 1px);
  background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.fx-lines .product-row + .product-row { margin-top: 64px; padding-top: 56px; border-top: 1px dashed var(--fx-rail); }
.fx-lines h2 { font-size: clamp(28px, 2.8vw, 38px); }
.fx-lines .reel-head { margin-bottom: 26px; }
.fx-lines .reel-kicker .pill { margin-left: 2px; font-family: "Anuphan", sans-serif; letter-spacing: 0; }
.fx-lines .row-actions { flex-direction: column; align-items: flex-end; gap: 14px; }
.fx-lines .reel-status { max-width: 520px; }

/* cards: number each clip like a production ticket (#01, #02 …) without extra markup */
.prod-wall { counter-reset: line-card; }
.prod-wall > .tpl:not(.tpl-create):not(.tpl-chat) { counter-increment: line-card; }
.fx-lines .tpl-chip { top: 13px; left: 13px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 26px); padding: 4px 9px 4px 4px; border-radius: 7px; background: rgba(255, 255, 255, .93); color: var(--ink); box-shadow: 0 2px 8px rgba(13, 27, 51, .12); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-lines .tpl-chip::before { content: "#" counter(line-card, decimal-leading-zero); flex: none; padding: 2px 5px; border-radius: 4px; background: var(--ink); color: #fff; font-family: var(--reel-mono); font-size: 10.5px; letter-spacing: .04em; }
.fx-lines .tpl-chip.tpl-chip-live::before { background: #f43f5e; }
.fx-lines .tpl-chip.tpl-chip-new::before { background: var(--brand); }
.fx-lines .h3-card:has(.reel-sound) .tpl-chip { max-width: calc(100% - 72px); }

/* chat demos sit on the wall as light steel panels */
:is(.reel, .fx-lines) .tpl.tpl-chat { background: linear-gradient(180deg, #fff, var(--fx-steel)); }
:is(.reel, .fx-lines) .tpl.tpl-chat:hover { transform: none; box-shadow: var(--shadow-sm); }

/* the "make your own" card is the open slot at the end of the wall; landing.js sets --slot so it
   spans whatever cells are left in the last row (so the wall never ends with a hole) */
:is(.reel, .fx-lines) .tpl.tpl-create { grid-column: span var(--slot, 1); aspect-ratio: auto; min-height: 220px; align-items: center; justify-content: center; text-align: center; border: 2px dashed var(--fx-rail); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .75) 0 12px, rgba(226, 232, 241, .45) 12px 24px); box-shadow: none; }
:is(.reel, .fx-lines) .tpl.tpl-create:hover { border-color: var(--brand); transform: translateY(-4px); box-shadow: none; }
:is(.reel, .fx-lines) .tpl-create p { max-width: 260px; }
:is(.reel, .fx-lines) .tpl-create .tpl-try { align-self: center; padding: 8px 14px; border-radius: 999px; background: var(--grad); color: #fff; }
:is(.reel, .fx-lines) .tpl:hover.tpl-create .tpl-try { text-decoration: none; }

@media (max-width: 1080px) {
  .fx-lines .row-actions { align-items: flex-start; }
}
@media (max-width: 760px) {
  .products.fx-lines { padding: 52px 0 60px; }
  .fx-lines .product-row + .product-row { margin-top: 44px; padding-top: 40px; }
  .fx-lines .tpl-chip { top: 10px; left: 10px; max-width: calc(100% - 20px); font-size: 10.5px; }
  :is(.reel, .fx-lines) .tpl.tpl-create { min-height: 0; padding: 22px 14px; }
}
