/* naka-ai public look "ฟ้าใส" (clear sky), in the same house as Naka Studio
   (apps/studio/frontend/app/assets/studio.css): a sky-tinted blue ground, cloud-navy ink, Naka's
   own cobalt for accents and links, and the studio's orange kept for ONE job: buttons. Kanit for
   headings, IBM Plex Sans Thai for text. The hero opens on a clear shader sky with bright clouds
   (sky-gl.js over sky.css), the closing band shares the CSS sky, the clip library sits on a frosted sky band. Loaded LAST on every public page: it restyles what the
   page stylesheets lay out and adds the home page's own sections (st- studio menus, g- library,
   s- steps, t- trust, c- closing). Inner pages add ui-pages.css.
   Contrast (computed): ink on ground 12.9:1, --ink-2 5.7:1, --ink-3 5.2:1 (4.9:1 on the clip band), cobalt on --u-sky 6.1:1.
   Orange buttons carry dark text: white on #f97316 is 2.8:1, cloud-navy is 5.6:1. */

@import url('/brand-tokens.css?v=1');

:root {
  --bg: #dfeaf7;
  --surface: var(--naka-surface);
  --ink: var(--naka-ink);
  --ink-2: var(--naka-ink-secondary);
  --ink-3: var(--naka-ink-muted);
  --line: var(--naka-line);
  --action: var(--naka-action);
  --action-hover: var(--naka-action-hover);
  --brand: var(--naka-brand);
  --brand-ink: var(--naka-brand-text);
  --brand-on-dark: #8daeff;
  --logo-blue: #1d50be;
  /* --night stays for journey.css; the home page no longer uses a dark band */
  --night: #14233b;
  --night-2: #1c2d48;
  --night-line: rgba(255, 255, 255, .09);
  --night-ink: #f4f5f7;
  --night-ink-2: #a9b6ca;
  --grad: linear-gradient(0deg, #1d50be, #1d50be);
  --shadow-sm: none;
  --shadow-lg: 0 20px 50px rgba(20, 45, 90, .12);
  --radius: var(--naka-radius-panel);
  --u-display: var(--naka-font-display);
  --u-text: var(--naka-font-body);
  --u-gray: var(--naka-surface-soft);
  --u-gray-2: var(--naka-surface-hover);
  --u-sky: #cadcf3;
  --u-glass: rgba(255, 255, 255, .72);
  --u-glass-line: rgba(255, 255, 255, .9);
  --u-float: var(--naka-shadow-nav);
  --home-nav-height: 76px;
}
body { background: var(--bg); color: var(--ink); font-family: var(--u-text); }
h1, h2, h3 { font-family: var(--u-display); font-weight: 600; }
.nw { white-space: nowrap; }
:focus-visible { outline: 3px solid #2d66d6; outline-offset: 3px; border-radius: 10px; }

/* ---------- buttons: pills; black is the default action, cobalt the sign-up ---------- */
.btn { min-height: 48px; padding: 0 22px; gap: 10px; border-radius: var(--naka-radius-control); font-family: var(--u-text); font-weight: 600; box-shadow: none; }
.btn:hover { transform: none; }
.btn span { font-size: 16px; }
.btn-primary, .btn-primary:hover, .btn-blue, .btn-blue:hover { background: var(--action); color: var(--ink); box-shadow: none; }
.btn-primary:hover, .btn-blue:hover { background: var(--action-hover); }
.btn-ghost { background: var(--u-gray); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--naka-line-strong); background: var(--u-gray-2); }
.btn-dark, .btn-dark:hover { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2e33; }
.btn-light { background: #fff; color: var(--ink); }
/* frosted second action on the sky bands */
.btn-glass { border-color: var(--u-glass-line); background: var(--u-glass); color: var(--ink); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .92); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- floating nav: transparent header, one white rounded bar ---------- */
.landing-nav.glass-nav, .landing-nav.glass-nav.is-dense {
  padding-top: 12px; background: transparent; border-bottom: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none;
}
.landing-nav::after { display: none; }
.landing-nav .nav-row, .landing-nav .mobile-nav { pointer-events: auto; }
.landing-nav .nav-row {
  width: min(100% - 32px, 1240px); height: 64px; gap: 14px; padding: 0 10px 0 18px;
  border: 1px solid var(--u-glass-line); border-radius: var(--naka-radius-panel); background: var(--naka-glass); box-shadow: var(--u-float);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); transition: box-shadow .25s ease, background-color .25s ease;
}
.landing-nav.is-dense .nav-row { background: var(--naka-glass-dense); box-shadow: var(--naka-shadow-raised); border-color: var(--line); }
@media (prefers-reduced-transparency: reduce) {
  .landing-nav .nav-row { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.landing-nav .brand { font-family: var(--u-display); font-size: 21px; letter-spacing: -.03em; }
.landing-nav .brand b { color: var(--logo-blue); }
.brand-tag, .landing-nav .line-no, .landing-nav .fx-led { display: none; }
.landing-nav .nav-links { gap: 2px; margin: 0 auto; padding: 4px; border-radius: var(--naka-radius-control); background: transparent; font-size: 14px; }
.landing-nav .nav-factory, .landing-nav .nav-trigger, .landing-nav .nav-plain {
  margin: 0; padding: 8px 14px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--ink-2); font-weight: 600;
}
.landing-nav .nav-factory { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 22, 38, .08); }
.landing-nav .nav-trigger:hover, .landing-nav .nav-trigger[aria-expanded="true"], .landing-nav .nav-plain:hover { background: #fff; color: var(--ink); }
.landing-nav .nav-panel { top: calc(100% + 16px); padding: 20px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(14, 22, 38, .16); }
.landing-nav .nav-panel .panel-line { display: none; }
.landing-nav .nav-panel .panel-title { font-family: var(--u-display); font-size: 17px; }
.landing-nav .panel-title em { background: var(--u-sky); color: var(--brand-ink); }
.landing-nav .panel-links a { border: 0; border-radius: 999px; background: var(--u-gray); }
.landing-nav .panel-links a:hover { background: var(--u-gray-2); }
.landing-nav .panel-links .panel-start, .landing-nav .panel-links .panel-start:hover { background: var(--ink); color: #fff; filter: none; }
.landing-nav .nav-cta { background: var(--action); color: var(--ink); }
.landing-nav .nav-cta:hover { background: var(--action-hover); }
.landing-nav .acct-login { border-color: transparent; background: var(--u-gray); }
.landing-nav .acct-login:hover { border-color: transparent; background: var(--u-gray-2); }
.landing-nav .menu-button { border-radius: 999px; }
.landing-nav.glass-nav .mobile-nav:not([hidden]) {
  width: min(100% - 32px, 1240px); margin-top: 8px; padding: 6px 18px 16px; border-radius: 20px;
  background: #fff; box-shadow: var(--u-float); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.landing-nav .mobile-nav a { border-top-color: var(--line); }
.landing-nav .mobile-nav .mobile-factory { border-top: 0; }
.landing-nav .mobile-nav .mobile-cta { border-radius: 999px; background: var(--action); color: var(--ink); }

/* ---------- hero: the same conveyor under the clear sky (sky-gl.js, sky.css as the fallback) ---------- */
.hero-line { background: var(--bg); margin-top: calc(-1 * var(--home-nav-height)); padding-top: var(--home-nav-height); }
.hero-line .hl-arm { top: 0; z-index: 0; width: calc(420px * var(--k, 1)); height: calc(400px * var(--k, 1)); opacity: .85; }
.hero-line .hl-arm-r { right: auto; }
.hero-line::before { display: none; }
.hl-copy { padding-top: 52px; }
.hero-line .eyebrow { border: 1px solid var(--u-glass-line); background: var(--u-glass); box-shadow: none; color: var(--ink-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-line .pulse { background: var(--brand); box-shadow: 0 0 0 0 rgba(29, 80, 190, .45); animation-name: sky-pulse; }
@keyframes sky-pulse { 70% { box-shadow: 0 0 0 8px rgba(29, 80, 190, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 80, 190, 0); } }
.hero-line h1 { max-width: 920px; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
.hero-line .lead { max-width: 620px; margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.hero-line .hl-scene { margin-top: 16px; }
.hero-explore { width: min(100%, 860px); margin-top: 16px; }
.hero-explore summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; color: var(--brand-ink); font-size: 14px; cursor: pointer; list-style: none; }
.hero-explore summary::-webkit-details-marker { display: none; }
.hero-explore summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.hero-explore[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.hero-explore summary:hover { color: var(--ink); }
.hero-explore .hero-menus { margin: 8px auto 0; }
.hero-line .quickstart-row.hero-cta { gap: 10px; padding: 0; border: 0; background: none; box-shadow: none; }
/* the second action is frosted glass on the sky, never a grey slab */
.hero-line .hero-cta .btn-ghost { border-color: rgba(20, 35, 59, .08); background: var(--u-glass); box-shadow: 0 6px 18px rgba(20, 45, 90, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero-line .hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .92); }
.hero-line .platforms { justify-content: center; border-top: 0; }
.hero-line .platforms span { font-size: 13px; color: var(--ink-3); }
.hero-line .platforms b { font-family: var(--u-display); font-size: 20px; font-weight: 600; color: #5d6f8b; letter-spacing: -.01em; }

/* ---------- shared section head ---------- */
.u-kicker { display: inline-flex; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--u-sky); color: var(--brand-ink); font-size: 13px; font-weight: 600; }
.u-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.u-head h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.25; letter-spacing: -.01em; }
.u-head p { margin: 14px auto 0; max-width: 620px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }

/* the way into the studio stays in the bar after sign-in (landing.css hides the old sign-up pill then) */
body.acct-signed-in .landing-nav .nav-cta { display: inline-flex; }

/* ---------- Naka Studio menus: cards in the studio's own style (white, hairline, 20px corners) ---------- */
.st-menus { padding: 104px 0; background: var(--bg); }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.st-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.st-card:hover { border-color: #9dbcef; transform: translateY(-2px); box-shadow: var(--u-float); }
.st-card:focus-visible { outline-offset: 2px; }
.st-text { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.st-go { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }

/* ---------- clip library (#reel, generated by creative/unsloth-reel/build-reel.cjs) ---------- */
/* the clip library is the one dark band on the page: the site's cloud-navy ink as ground, a cobalt glow at the top,
   so the clips (the proof) and the orange buttons stand out; light again before and after it.
   Text on it (computed): white 15.8:1, --night-ink-2 7.7:1, #8DB4FF 7.6:1, #CFE0FF on its pill 8.8:1. */
.g-gallery { position: relative; margin: 24px 16px; padding: 72px 0; border-radius: 32px; border: 1px solid rgba(255, 255, 255, .12); color: #fff; background:
  radial-gradient(60% 420px at 50% 0%, rgba(29, 80, 190, .55), rgba(29, 80, 190, 0) 70%),
  linear-gradient(180deg, #14233b 0%, #172b4f 40%, #14233b 100%); }
.g-gallery :focus-visible { outline-color: #8db4ff; }
.g-shell { width: min(100% - 48px, 1280px); margin-inline: auto; }
.g-anchor { position: absolute; top: 0; left: 0; scroll-margin-top: 0; }
.g-head { max-width: 780px; text-align: center; }
.g-kicker { display: inline-flex; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #cfe0ff; font-size: 13px; font-weight: 600; }
.g-head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.2; letter-spacing: -.01em; color: #fff; }
.g-head h2 em { font-style: normal; color: #8db4ff; }
.g-sub { max-width: 620px; margin: 16px auto 0; font-size: 17px; line-height: 1.7; color: var(--night-ink-2); }
/* one section per studio menu: its real name, what it makes and its button, then a grid of clips.
   Two rows show; rails.js opens two more per press of "ดูอีก N คลิป" (no sideways scrolling). */
.g-head { margin-bottom: 8px; }
.g-head .st-trial { margin-top: 14px; }
.g-rail { position: relative; margin-top: 40px; scroll-margin-top: 96px; }
.g-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.g-rail-copy { max-width: 760px; }
.g-menu { display: inline-flex; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #cfe0ff; font-size: 13px; font-weight: 600; }
.g-rail-head h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: #fff; }
.g-count { margin-left: 6px; font-family: var(--u-text); font-size: 14px; font-weight: 600; color: var(--night-ink-2); white-space: nowrap; }
.g-count b { font-weight: 700; color: #8db4ff; }
.g-rail-head p:not(.g-menu) { margin: 6px 0 0; font-size: 15px; line-height: 1.65; color: var(--night-ink-2); }
.g-rail-ctl { display: flex; flex: none; align-items: center; gap: 8px; }
.g-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; width: min(100% - 48px, 1280px); margin-inline: auto; }
.g-card[hidden] { display: none; }
/* Match rails.js's initial single row before JavaScript is ready. */
.g-gallery:not([data-ready]) .g-track > .g-card:nth-child(n+7) { display: none; }
.g-more { margin-top: 18px; text-align: center; }
.g-more-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.g-more-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .36); }
.g-more-btn[hidden] { display: none; }
.g-more-menus .st-more { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.g-more-menus .st-clip.is-mascot { aspect-ratio: 1; }
.g-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: var(--night-2); color: #fff; box-shadow: 0 12px 30px rgba(20, 45, 90, .14); }
.g-card video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 12, 24, .35) 0%, rgba(8, 12, 24, 0) 22%, rgba(8, 12, 24, 0) 48%, rgba(8, 12, 24, .9) 100%); }
.g-card:hover video { transform: scale(1.04); }
.g-chip { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 70px); padding: 5px 11px; border-radius: 999px; background: rgba(14, 20, 36, .72); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.g-chip.is-live { background: #e5484d; }
.g-chip.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #fff; vertical-align: 2px; }
.g-card .reel-sound { top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; border: 0; background: rgba(14, 20, 36, .72); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.g-card .reel-sound:hover { color: #fff; background: rgba(14, 20, 36, .9); }
.g-card .reel-sound[aria-pressed="true"] { background: var(--action); color: var(--ink); }
.g-from { position: absolute; top: 58px; right: 12px; z-index: 2; width: 52px; margin: 0; transform: rotate(3deg); pointer-events: none; }
.g-from img { display: block; width: 100%; height: auto; border: 2px solid #fff; border-radius: 8px; }
.g-from figcaption { margin-top: 4px; padding: 2px 3px; border-radius: 5px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 10px; font-weight: 700; text-align: center; }
.g-cap { padding: 14px; }
.g-cap .g-title { display: block; font-family: var(--u-display); font-weight: 600; font-size: 16px; line-height: 1.35; letter-spacing: -.01em; }
.g-cap p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: #c9d3e6; }
.g-use { display: inline-flex; align-items: center; min-height: 36px; margin-top: 10px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; }
.g-use::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.g-card:hover .g-use { background: var(--u-sky); }
.g-use:focus-visible { outline: none; }
.g-use:focus-visible::after { border-radius: 20px; box-shadow: inset 0 0 0 3px #8db4ff; }
/* chat demos: frosted glass cards, the customer in pearl, the bot in Naka's cobalt */
.g-card.g-chat { aspect-ratio: auto; justify-content: flex-start; padding: 16px 14px; border: 1px solid var(--u-glass-line); background: var(--u-glass); color: var(--ink); box-shadow: 0 12px 30px rgba(20, 45, 90, .08); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.g-chat::before { content: none; }
.g-chat .chat-head { margin: 0 0 12px; color: var(--ink-2); }
.g-chat .chat-log li { font-size: 12.5px; }
.g-chat .chat-log .in { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 45, 90, .08); }
.g-chat .chat-log .out { background: var(--brand); color: #fff; }
.g-chat .chat-log .note { background: rgba(20, 35, 59, .06); color: var(--ink-2); }
.g-chat-foot { margin: auto 0 0; padding-top: 12px; font-size: 11.5px; color: var(--ink-3); }
.g-note { margin-top: 28px; text-align: center; font-size: 12px; line-height: 1.7; color: var(--night-ink-2); }

/* ---------- how it works: three steps ---------- */
.s-steps { padding: 80px 0; background: var(--bg); }
.s-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.s-step { display: flex; flex-direction: column; padding: 12px 12px 26px; border-radius: 28px; background: #fff; }
.s-media { position: relative; display: block; aspect-ratio: 1 / 1; margin-bottom: 22px; border-radius: 20px; overflow: hidden; background: var(--u-gray); }
.s-media video, .s-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.s-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(14, 22, 38, .78); color: #fff; font-size: 12px; font-style: normal; font-weight: 600; }
.s-step > div { padding: 0 14px; }
.s-no { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.s-step h3 { font-size: 22px; line-height: 1.35; letter-spacing: -.015em; }
.s-step p { margin: 8px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.s-cta { margin-top: 36px; text-align: center; }

/* ---------- trust: numbers, then the guarantees as one compact list ---------- */
.t-trust { padding: 80px 0; background: #eef4fb; }
.t-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 64px; }
.t-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; text-align: center; }
.t-stats dt { font-size: 14px; color: var(--ink-2); }
.t-stats dd { margin: 0; font-family: var(--u-display); font-size: clamp(46px, 5vw, 72px); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.t-stats small { margin: 0 4px; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.t-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin: 0; padding: 0; list-style: none; }
.t-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.t-list .why-icon { margin: 0; border-radius: 999px; background: var(--u-sky); box-shadow: none; }
.t-list h3 { font-size: 17px; line-height: 1.4; }
.t-list p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }

/* ---------- faq: the trust facts as questions (answers repeat the page text word for word) ---------- */
.f-faq { padding: 104px 0; }
.f-list { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.f-list details { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.f-list summary { cursor: pointer; padding: 16px 20px; font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.f-list summary::marker { color: var(--brand-ink); }
.f-list details[open] summary { border-bottom: 1px solid var(--line); }
.f-list p { margin: 0; padding: 14px 20px 18px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

/* ---------- closing + footer: the hero's sky again, then a pale footer to end on ---------- */
.c-end { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 64px; background: var(--bg); color: var(--ink); text-align: center; }
.c-end > .shell { position: relative; z-index: 1; }
.c-end h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.c-end p { max-width: 560px; margin: 16px auto 0; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.c-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.closing-mascot { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 auto 16px; }
.mascot-extras { margin-bottom: 24px; }
.mascot-extras summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; color: var(--brand-ink); font-size: 14px; }
.mascot-extras .c-mascots { margin-top: 20px; }
.u-footer { border-top: 1px solid var(--line); background: #d6e4f3; color: var(--ink-2); overflow: hidden; }
.u-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding: 64px 0 40px; }
.u-foot-brand p { max-width: 300px; margin: 16px 0 0; font-size: 14px; line-height: 1.75; }
.u-footer .brand { font-family: var(--u-display); color: var(--ink); }
.u-footer .brand b { color: var(--logo-blue); }
.u-foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; }
.u-foot-col p { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.u-foot-col a { color: var(--ink-2); }
.u-foot-col a:hover { color: var(--brand-ink); }
.u-foot-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; }
.u-foot-bottom .footer-copy { margin: 0; color: var(--ink-2); }
.u-foot-bottom a:hover { color: var(--brand-ink); }
.u-wordmark { margin: 0 0 -.22em; font-family: var(--u-display); font-weight: 700; font-size: clamp(88px, 22vw, 340px); line-height: 1; letter-spacing: -.05em; text-align: center; color: rgba(29, 80, 190, .07); user-select: none; white-space: nowrap; }

@media (max-width: 1080px) {
  .g-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-gallery:not([data-ready]) .g-track > .g-card:nth-child(n+5) { display: none; }
  .landing-nav .nav-links { margin: 0 auto 0 8px; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .u-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --home-nav-height: 66px; }
  .landing-nav.glass-nav { padding-top: 8px; }
  .landing-nav .nav-row { height: 58px; padding: 0 8px 0 14px; border-radius: 18px; }
  .hl-copy { padding-top: 32px; }
  .hero-line h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .hero-line .lead { font-size: 15px; }
  .hero-lead-break { display: none; }
  .hero-line .quickstart-row.hero-cta { flex-direction: column; }
  .g-gallery { margin: 16px 8px; padding: 56px 0; border-radius: 24px; }
  .g-rail { margin-top: 32px; }
  .g-rail-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
  .g-rail-head p:not(.g-menu) { font-size: 14px; }
  .g-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100% - 32px, 1280px); }
  .g-gallery:not([data-ready]) .g-track > .g-card:nth-child(n+3) { display: none; }
  .g-more-menus .st-more { grid-template-columns: 1fr; }
  .g-shell { width: min(100% - 32px, 1280px); }
  .g-sub { font-size: 15px; }
  .g-card { border-radius: 16px; }
  .g-cap { padding: 10px; }
  .g-cap .g-title { font-size: 14px; }
  .g-cap p { display: none; }
  .g-use { min-height: 32px; margin-top: 8px; padding: 0 12px; font-size: 12px; }
  .g-from { top: 52px; right: 10px; width: 42px; }
  .g-card .reel-sound { width: 34px; height: 34px; }
  .s-steps, .t-trust, .f-faq, .st-menus { padding: 56px 0; }
  .st-grid { grid-template-columns: 1fr; gap: 8px; }
  .u-head { margin-bottom: 28px; }
  .u-head p { font-size: 15px; }
  .s-list { grid-template-columns: 1fr; gap: 10px; }
  .s-step { flex-direction: row; align-items: center; gap: 14px; padding: 10px; border-radius: 22px; }
  .s-media { flex: none; width: 96px; aspect-ratio: 3 / 4; margin: 0; border-radius: 16px; }
  .s-tag { left: 6px; bottom: 6px; padding: 2px 7px; font-size: 10px; }
  .s-step > div { padding: 0; }
  .s-no { margin-bottom: 2px; font-size: 12.5px; }
  .s-step h3 { font-size: 17px; }
  .s-step p { margin-top: 4px; font-size: 13.5px; line-height: 1.6; }
  .s-cta { margin-top: 24px; }
  .t-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; margin-bottom: 40px; }
  .t-stats dd { font-size: 42px; }
  .t-list { grid-template-columns: 1fr; gap: 18px; }
  .c-end { padding: 72px 0 56px; }
  .c-end p { font-size: 15px; }
  .c-actions .btn { width: 100%; }
  .u-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding-top: 48px; }
  .u-foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-nav .nav-row, .g-card video { transition: none; }
  .g-card:hover video { transform: none; }
}

/* ---------- Naka Studio menus: every card shows a clip. The review video leads with the real Thai iced tea
   clip; drama and AI Live show real outputs; viral clone, seller and marketer show Naka clips tagged as
   illustration. Clips play only on screen (landing.js) and stay on their poster under reduced motion. ---------- */
.st-trial { display: inline-flex; align-items: center; gap: 10px; margin: 18px auto 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.st-badge { padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 13px; }
.st-grid { grid-template-columns: 1.15fr 1fr 1fr; }
.st-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 16px; align-items: start; padding: 14px 18px 14px 14px; }
.st-card h3 { grid-column: 2; margin: 2px 0 0; font-size: 18px; line-height: 1.4; }
.st-card .st-text { grid-column: 2; margin-top: 6px; font-size: 13.5px; line-height: 1.65; }
.st-card .st-go { grid-column: 2; align-self: end; padding-top: 10px; }
.st-clip { position: relative; grid-row: 1 / span 3; display: block; width: 92px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0d1830; }
.st-clip video, .st-clip img, .st-shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-clip em { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 4px; border-radius: 6px; background: rgba(14, 22, 38, .8); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; line-height: 1.4; text-align: center; }
.st-clip.is-illus { background: var(--u-gray); }
.st-clip.is-illus em { background: rgba(255, 255, 255, .92); color: var(--ink-2); }
.st-start { grid-row: span 3; }
.st-start .st-card, .st-proof .st-card { display: flex; flex-direction: column; align-items: stretch; }
.st-start .st-card { padding: 0; overflow: hidden; }
.st-start h3 { font-size: 23px; }
.st-shot { position: relative; display: block; flex: 1; min-height: 300px; overflow: hidden; background: #0d1830; }
.st-shot video { object-position: 50% 40%; }
.st-shot em { position: absolute; left: 12px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(14, 22, 38, .78); color: #fff; font-size: 12px; font-style: normal; font-weight: 600; }
.st-body { display: flex; flex-direction: column; padding: 18px 22px 20px; }
.st-body .st-go { padding-top: 14px; }
.st-flag { align-self: flex-start; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--u-sky); color: var(--brand-ink); font-size: 12.5px; font-weight: 600; }
.st-proof .st-card { padding: 16px 18px; }
.st-stack { display: flex; margin-bottom: 12px; }
.st-stack img { width: 40px; height: 64px; object-fit: cover; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(20, 45, 90, .14); }
.st-stack img + img { margin-left: -12px; }
.st-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 22px; }
.st-note p { margin: 0; width: 100%; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.st-note a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.st-note a:hover { border-color: #9dbcef; }
@media (max-width: 1080px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-start { grid-column: 1 / -1; grid-row: auto; }
  .st-start .st-card { flex-direction: row; }
  .st-shot { flex: 0 0 220px; min-height: 360px; }
}
@media (max-width: 760px) {
  .st-grid { grid-template-columns: 1fr; gap: 8px; }
  .st-card { grid-template-columns: 64px minmax(0, 1fr); column-gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; }
  .st-clip { width: 64px; border-radius: 10px; }
  .st-clip em { font-size: 9px; }
  .st-card h3 { font-size: 16px; }
  .st-card .st-text { margin-top: 2px; font-size: 13px; line-height: 1.55; }
  .st-card .st-go { display: none; }
  .st-start .st-card { flex-direction: row; }
  .st-shot { flex: 0 0 116px; min-height: 206px; }
  .st-shot em { left: 6px; right: 6px; bottom: 6px; padding: 3px 6px; font-size: 10px; text-align: center; }
  .st-body { padding: 12px 14px; }
  .st-start h3 { font-size: 17px; }
  .st-body .st-go { display: inline; padding-top: 8px; font-size: 13.5px; }
  .st-proof .st-card { padding: 12px 14px; }
  .st-stack { margin-bottom: 8px; }
}

/* ---------- the studio's menus: in the top bar (they jump to their examples) and as chips under the hero
   buttons (they open the studio), like a tool's skill picker. Seven menus need room: below 1240px the top
   bar folds them into the phone menu. ---------- */
.hero-cta .reel-open { margin-top: 0; min-height: 48px; padding-right: 20px; }
.hero-menus { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; margin-top: 18px; }
.hero-menus a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 16px 4px 4px; border: 1px solid var(--u-glass-line); border-radius: 999px;
  background: var(--u-glass); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(20, 45, 90, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .2s ease, transform .2s ease; }
.hero-menus a:hover { background: #fff; transform: translateY(-1px); }
.hero-menus img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.hero-menus .hero-menus-all { padding-left: 16px; background: transparent; border-color: rgba(20, 35, 59, .12); box-shadow: none; color: var(--brand-ink); }
.g-more-menus li { scroll-margin-top: 96px; }
.landing-nav .nav-plain { padding: 8px 12px; }
@media (max-width: 1240px) {
  .hero-line .hl-arm { display: none; }
  .landing-nav .nav-links { display: none; }
  .landing-nav .menu-button { display: block; }
  .landing-nav.glass-nav .mobile-nav:not([hidden]) { display: grid; }
}
@media (max-width: 760px) {
  .hero-menus { gap: 6px; }
  .hero-menus a { min-height: 40px; padding-right: 12px; font-size: 13px; }
  .hero-menus img { width: 30px; height: 30px; }
  .hero-cta .reel-open { width: 100%; justify-content: center; }
}

/* ---------- sales channels with their marks (assets/platforms.svg): the hero row and "ก่อนเริ่ม" ---------- */
.pf-logo { display: block; flex: none; width: 20px; height: 20px; }
.hero-line .platforms b { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; color: var(--ink-2); }
.t-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -36px 0 64px; padding: 0; list-style: none; }
.t-platforms li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink); }
.t-platforms .pf-logo { width: 22px; height: 22px; }
@media (max-width: 760px) {
  .hero-line .platforms b { font-size: 14px; gap: 5px; }
  .hero-line .platforms .pf-logo { width: 16px; height: 16px; }
  .t-platforms { gap: 8px; margin: -24px 0 40px; }
  .t-platforms li { min-height: 40px; padding: 0 12px 0 10px; font-size: 14px; }
}

/* light text for the bits of the library that sit on its dark band */
.g-gallery .st-trial { color: #fff; }
.g-gallery .st-note p { color: var(--night-ink-2); }
.g-gallery .g-sub a { color: #cfe0ff; }
/* chat demos: nearly solid white, frosted glass over navy reads as grey */
.g-gallery .g-card.g-chat { background: rgba(255, 255, 255, .95); }
/* the white menu cards keep dark ink (the band's white text would vanish on them) */
.g-gallery .st-card { color: var(--ink); }

/* ---------- closing band: every Naka clip as a round tile, captioned (showcase/menu/mascot-*.mp4).
   Sixteen on a computer (two rows of eight), the first eight on a phone. They play only on screen (landing.js). ---------- */
.c-mascots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 18px 12px; max-width: 960px; margin: 0 auto 36px; padding: 0; list-style: none; }
.c-mascots li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.c-m { position: relative; display: block; width: 100%; max-width: 104px; aspect-ratio: 1; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #e8eef4; box-shadow: 0 10px 22px rgba(20, 45, 90, .16); }
.c-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .c-mascots li { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
  .c-mascots li:hover { transform: translateY(-4px); }
}
@media (max-width: 760px) {
  .c-mascots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; margin-bottom: 28px; }
  .c-mascots li { font-size: 11.5px; }
  .c-mascots li:nth-child(n+9) { display: none; }
}
