/* Road Ruay landing (design/brand: colors.md, typography.md, graphic-system.md).
   "A drive down the selling street at night": asphalt ground, sodium street
   lights, cream type, Safety Yellow for one focus per view. Devices with a
   job only: Signal Block (focus), Road Line (movement, dash 30 / gap 22),
   Ticket + #NNN (orders), Awning (the shop at the end of the road).
   Motion moves forward: down the road, or to the right. */
:root {
  --asphalt: #1b1a17;
  --deep: #14130f;
  --dark-2: #3b3833;
  --dark-3: #24221e;
  --cream: #f4edde;
  --cream-100: #faf6ec;
  --neutral-100: #eae1cc;
  --neutral-200: #d8cdb4;
  --neutral-300: #b9b2a4;
  --muted: #6b665c;
  --yellow: #ffc400;
  --yellow-300: #ffd84d;
  --sodium: #ff9d2e;
  --orange: #f4581c;
  --blue: #2456a6;
  --green: #1e7b4f;
  --concrete: #4a4843;
  --concrete-joint: rgba(20, 19, 15, 0.32);
  --gold: #d9b25f;
  --gold-300: #f2d28b;
  --gold-sheen: rgba(242, 210, 139, 0.16);
  --mint: #7fd3a6;
  --white: #ffffff;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
/* The page still scrolls; it just shows no scroll bar. */
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--asphalt);
  font: 400 17px/1.6 'Anuphan', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: 'Kanit', 'Anuphan', sans-serif; line-height: 1.12; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.num { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; letter-spacing: 0.01em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--yellow); padding: 8px 12px; }
.eyebrow { font: 600 13px/1 'Anuphan', sans-serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--neutral-300); }

/* ---------- Signal Block CTA (pentagon head, text in the flat zone) ---------- */
.cta {
  --h: 56px;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--h);
  padding: 0 calc(var(--h) * 0.75) 0 26px;
  background: var(--yellow);
  color: var(--asphalt);
  font: 800 18px/1 'Kanit', sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--h) * 0.5) 0, 100% 50%, calc(100% - var(--h) * 0.5) 100%, 0 100%);
  transition: transform 0.35s var(--ease), background 0.2s;
}
.cta:hover { transform: translateX(6px); background: var(--yellow-300); }
.cta:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.cta.small { --h: 44px; font-size: 16px; padding-left: 18px; }
.cta.quiet { background: var(--asphalt); color: var(--cream); }
.cta.quiet:hover { background: var(--dark-2); }
/* A second choice beside the yellow one, on a dark scene. */
.cta.ghost { background: rgba(244, 237, 222, 0.16); color: var(--cream); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cta.ghost:hover { background: rgba(244, 237, 222, 0.28); }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* ---------- Header: one dark bar, the road's colour ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: color-mix(in srgb, var(--deep) 78%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 237, 222, 0.07);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.top .logo img { height: 24px; width: auto; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { text-decoration: none; font-weight: 500; color: var(--neutral-300); position: relative; padding-block: 6px; transition: color 0.2s; }
.top nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: repeating-linear-gradient(to right, var(--yellow) 0 6px, transparent 6px 10px); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.top nav a:hover, .top nav a.on { color: var(--cream); }
.top nav a:hover::after, .top nav a.on::after { transform: scaleX(1); }
@media (max-width: 860px) { .top nav { display: none; } .top .cta { margin-left: auto; } }

/* ---------- Scene 1: the drive ---------- */
.drive { position: relative; height: 300vh; background: var(--deep); color: var(--cream); }
.drive .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; }
.sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(70% 45% at 50% 64%, rgba(255, 157, 46, 0.16), transparent 70%),
    linear-gradient(#0e0d0a 0%, #14130f 55%, #1b1a17 100%);
}
.road { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.drive .copy {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: safe center;
  justify-items: center;
  text-align: center;
  padding: 120px var(--gutter) 30vh;
  will-change: transform, opacity;
}
.drive .copy::before {
  /* A soft dark halo keeps the headline readable over the busy street. */
  content: '';
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(1100px, 110vw);
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(14, 13, 10, 0.72), rgba(14, 13, 10, 0));
  z-index: -1;
  pointer-events: none;
}
.drive .eyebrow { color: var(--cream); letter-spacing: 0.14em; }
.eyebrow-sub { margin-top: 8px; color: var(--neutral-300); font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; }
.drive h1 { font-weight: 900; font-size: clamp(52px, min(9vw, 14vh), 140px); line-height: 1.06; margin: 14px 0 16px; }
.drive h1 .line { display: block; position: relative; width: fit-content; margin-inline: auto; }
.drive .lede { font-size: clamp(19px, 2.2vw, 24px); color: var(--neutral-100); max-width: 30ch; }
.drive .actions { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.drive .actions .link { color: var(--cream); }

/* The headline is uncovered by a Signal Block driving through it: the
   words appear left to right behind the block's tail. */
.reveal-line .txt { display: inline-block; clip-path: inset(-0.4em calc(100% + 0.9em) -0.4em -0.4em); }
.reveal-line::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: -0.9em;
  width: 0.9em;
  opacity: 0;
  background: var(--yellow);
  clip-path: polygon(0 0, calc(100% - 0.38em) 0, 100% 50%, calc(100% - 0.38em) 100%, 0 100%);
}
.go .reveal-line .txt { animation: uncover 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0s) - 0.45s); }
.go .reveal-line::after { animation: drive-through 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0s) - 0.45s); }
@keyframes uncover { to { clip-path: inset(-0.4em -0.4em -0.4em -0.4em); } }
@keyframes drive-through {
  0% { left: -0.9em; opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% + 0.4em); opacity: 0; }
}
.drive h1 .hi { color: var(--yellow); }
.cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; color: var(--neutral-300); font-size: 13px; letter-spacing: 0.16em; }
.cue i { width: 14px; height: 18px; background: var(--yellow); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 50% { transform: translateY(6px); } }

/* Things arrive moving forward. */
.rise { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.rise.in { opacity: 1; transform: none; }

/* Section titles are opened by a passing Signal Block (the wipe). */
.wipe { position: relative; width: fit-content; }
.wipe .t { clip-path: inset(0 100% 0 0); transition: clip-path 0.7s var(--ease) 0.25s; display: inline-block; }
.wipe::after {
  content: '';
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: -4px;
  width: 0.7em;
  background: var(--yellow);
  clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%);
  transform: translateX(-120%);
  opacity: 0;
}
.wipe.in .t { clip-path: inset(-0.2em -1em -0.2em 0); }
.wipe.in::after { animation: pass 1s var(--ease) forwards; }
@keyframes pass {
  0% { transform: translateX(-120%); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(calc(var(--w, 600px) + 20%)); opacity: 0; }
}
.center .wipe { margin-inline: auto; }

/* ---------- Section frame ---------- */
section.block { padding-block: clamp(96px, 13vw, 170px); position: relative; }
.cream { background: var(--cream); color: var(--asphalt); }
.dark { background: var(--asphalt); color: var(--cream); }
.deep { background: var(--deep); color: var(--cream); }
.sec-head { display: grid; gap: 14px; margin-bottom: 56px; max-width: 820px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head h2 { font-weight: 800; font-size: clamp(38px, 5.8vw, 72px); }
.sec-head h2 em { font-style: normal; color: var(--yellow); }
.cream .sec-head h2 em, .types-scene .sec-head h2 em { color: inherit; background: linear-gradient(transparent 62%, var(--yellow) 62% 92%, transparent 92%); }
.sec-head p { color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); }
.dark .sec-head p, .deep .sec-head p { color: var(--neutral-300); }

/* ---------- Scene 2: an order's journey ---------- */
.journey { position: relative; height: 260vh; background: linear-gradient(var(--deep), var(--asphalt) 30%); color: var(--cream); }
.journey .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 66px; }
.journey .sec-head { margin-bottom: 26px; }
.trip { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 5vw, 80px); min-height: min(60vh, 540px); }
.trip .path { position: absolute; inset: 0; pointer-events: none; }
.trip .path svg { width: 100%; height: 100%; overflow: visible; }
.trip .path path { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-dasharray: 14 10; opacity: 0.45; }
.steps-say { display: grid; gap: 14px; max-width: 300px; justify-self: center; align-self: end; margin-bottom: 4vh; }
.steps-say li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; opacity: 0.35; transition: opacity 0.4s, transform 0.4s var(--ease); }
.steps-say li.on { opacity: 1; transform: translateX(6px); }
.steps-say .num { font-size: 40px; line-height: 0.9; color: var(--yellow); }
.steps-say b { display: block; font: 700 19px/1.3 'Kanit', sans-serif; }
.steps-say span { color: var(--neutral-300); font-size: 15px; }
.steps-say { margin: 0; padding: 0; }
.device {
  position: relative;
  background: #0c0b09;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px #3b3833;
}
.device .screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #f3f2ee; color: var(--asphalt); }
.device.phone { width: min(240px, 24vh + 40px); aspect-ratio: 9 / 19; border-radius: 34px; padding: 9px; }
.device.phone .screen { border-radius: 26px; font-size: 11px; line-height: 1.35; }
.device.phone .notch { position: absolute; top: 9px; left: 50%; width: 30%; height: 18px; margin-left: -15%; border-radius: 99px; background: #0c0b09; z-index: 3; }
.device.tablet { width: min(430px, 34vw); aspect-ratio: 4 / 3; border-radius: 26px; padding: 12px; }
.device.tablet .screen { border-radius: 16px; font-size: 11px; line-height: 1.35; }
/* Inside the devices: the app's own look (warm page, white cards, dark band). */
.ui-band { background: var(--asphalt); color: #fff; padding: 40px 14px 12px; }
.tablet .ui-band { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.ui-band b { display: block; font: 700 15px/1.1 'Kanit', sans-serif; }
.ui-band span { font-size: 10px; color: var(--neutral-300); }
.ui-body { padding: 10px; display: grid; gap: 8px; }
.ui-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-card { background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 2px 6px rgba(27, 26, 23, 0.07); }
.ui-card .ph { height: 46px; border-radius: 8px; margin-bottom: 6px; background: linear-gradient(135deg, #f6d38a, #e9a35c); }
.ui-card .ph.b { background: linear-gradient(135deg, #b7d9a8, #6ea27a); }
.ui-card .ph.c { background: linear-gradient(135deg, #f0b8a2, #d0705a); }
.ui-card .ph.d { background: linear-gradient(135deg, #c9c2f0, #8a7fd0); }
.ui-card .ph { display: grid; place-items: center; overflow: hidden; }
.ui-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.ui-card b { display: block; font-weight: 600; font-size: 11px; }
.ui-card .pr { color: var(--muted); font-size: 10px; }
.ui-card.picked { box-shadow: 0 0 0 2px var(--asphalt); }
.ui-pay { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 38px; border-radius: 12px; background: var(--yellow); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font: 700 12px/1 'Kanit', sans-serif; transition: transform 0.3s var(--ease); }
.ui-pay.pressed { transform: scale(0.95); }
.ui-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; height: calc(100% - 46px); }
.ui-col { background: #e9e6df; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.ui-col h4 { margin: 0 0 2px; font: 600 10px/1 'Anuphan', sans-serif; display: flex; align-items: center; gap: 5px; }
.ui-col h4 i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ui-tk { background: #fff; border-radius: 8px; padding: 6px 7px; display: flex; align-items: center; gap: 6px; box-shadow: 0 1px 2px rgba(27, 26, 23, 0.08); }
.ui-tk .num { font-size: 17px; line-height: 1; }
.ui-tk small { font-size: 9px; color: var(--muted); line-height: 1.2; }
.ui-tk.arrive { animation: arrive 0.6s var(--ease); box-shadow: 0 0 0 2px var(--orange); }
@keyframes arrive { from { transform: translateY(-14px) scale(0.9); opacity: 0; } }
/* The order ticket that travels from the phone to the board. */
.flying {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  width: 150px;
  padding: 12px 14px 10px;
  background: var(--cream);
  color: var(--asphalt);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  mask:
    radial-gradient(circle 8px at 0 64%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 8px at 100% 64%, #0000 98%, #000) right / 51% 100% no-repeat;
  will-change: transform, opacity;
  opacity: 0;
}
.flying .num { font-size: 40px; line-height: 0.9; display: block; }
.flying small { display: block; font-size: 12px; color: var(--muted); border-top: 2px dashed var(--neutral-200); margin-top: 8px; padding-top: 6px; }
@media (max-width: 900px) {
  .journey { height: auto; }
  .journey .stage { position: static; height: auto; padding-block: 110px 80px; }
  .trip { grid-template-columns: 1fr; justify-items: center; }
  .device.tablet { width: min(430px, 100%); }
  .trip .path, .flying { display: none; }
  .steps-say li { opacity: 1; }
}

/* ---------- Scene 3: เงินมา งานเดิน (board + receipt tape) ---------- */
.scene { position: relative; height: 320vh; background: var(--asphalt); color: var(--cream); }
.scene .stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 66px; }
.scene .sec-head { margin-bottom: 26px; }
.desk { display: grid; grid-template-columns: 1fr 240px; gap: 22px; align-items: start; }
.board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: clamp(340px, 50vh, 440px); }
.col { position: relative; border-radius: 22px; background: var(--dark-3); padding: 16px; display: flex; flex-direction: column; gap: 10px; border: 1px solid rgba(244, 237, 222, 0.05); }
.col h3 { font: 600 15px/1 'Anuphan', sans-serif; display: flex; align-items: center; gap: 8px; color: var(--neutral-100); }
.col h3 i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.col .count { margin-left: auto; color: var(--neutral-300); }
.track { position: absolute; inset: 52px 0 0 0; pointer-events: none; }
.chip {
  position: absolute;
  left: 0;
  top: 0;
  width: calc((100% - 28px) / 3 - 32px);
  background: var(--cream);
  color: var(--asphalt);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  will-change: transform;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.chip .num { font-size: 30px; line-height: 1; }
.chip .what { font-size: 13px; line-height: 1.3; }
.chip .what b { display: block; font-weight: 600; }
.chip .bar { margin-left: auto; width: 6px; align-self: stretch; border-radius: 3px; }
/* The day's receipt prints as orders are handed over. */
.receipt {
  position: relative;
  background: var(--cream-100);
  color: var(--asphalt);
  padding: 16px 16px 22px;
  font-size: 13px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.receipt h4 { margin: 0 0 8px; font: 700 14px/1.2 'Kanit', sans-serif; text-align: center; }
.receipt .rows { display: grid; gap: 4px; min-height: 20px; }
.receipt .row { display: flex; justify-content: space-between; animation: print 0.5s var(--ease); }
@keyframes print { from { opacity: 0; transform: translateY(-6px); } }
.receipt .total { margin-top: 10px; border-top: 2px dashed var(--neutral-200); padding-top: 8px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.receipt .total b { font: 800 26px/1 'Kanit', sans-serif; }
.scene .caption { margin-top: 24px; display: flex; gap: 28px; flex-wrap: wrap; color: var(--neutral-300); font-size: 16px; }
.scene .caption b { color: var(--cream); font-weight: 600; }
@media (max-width: 900px) {
  .scene { height: auto; }
  .scene .stick { position: static; height: auto; padding-block: 100px; }
  .desk { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; height: auto; }
  .col { min-height: 120px; }
  .track { display: none; }
  .chip.static { position: static; width: auto; }
}

/* ---------- Scene 4: shops along the road (horizontal) ---------- */
.types-scene { position: relative; height: 300vh; background: var(--cream); }
.types-scene .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 66px; }
.types-road { position: relative; }
.types-road::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 9px;
  background: repeating-linear-gradient(to right, var(--asphalt) 0 30px, transparent 30px 52px);
  background-position: var(--road-x, 0) 0;
  opacity: 0.25;
}
.types-track { display: flex; gap: 28px; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); will-change: transform; }
.type {
  position: relative;
  flex: none;
  width: min(440px, 82vw);
  background: var(--white);
  border-radius: 28px;
  padding: 34px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 390px;
  box-shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 22px 50px rgba(27, 26, 23, 0.10);
}
.type .ic { width: 60px; height: 60px; border-radius: 16px; background: var(--asphalt); display: grid; place-items: center; }
.type .ic svg { width: 30px; height: 30px; stroke: var(--cream); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.type .k { font: 600 13px/1 'Anuphan', sans-serif; letter-spacing: 0.14em; color: var(--muted); }
.type h3 { font-size: 32px; font-weight: 800; }
.type p { color: var(--muted); }
.type ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.type li::before { content: ''; display: inline-block; width: 12px; height: 9px; margin-right: 10px; background: var(--asphalt); clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%); }
.type.end { background: var(--asphalt); color: var(--cream); }
.type.end p { color: var(--neutral-300); }
.type.end h3 { font-size: 30px; }
@media (max-width: 760px) {
  .types-scene { height: auto; }
  .types-scene .stage { position: static; height: auto; padding-block: 100px; }
  .types-track { flex-direction: column; padding-inline: var(--gutter); transform: none !important; }
  .type { width: auto; min-height: 0; }
  .types-road::before { display: none; }
}

/* ---------- Features (a street light follows the pointer) ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.feat {
  position: relative;
  background: var(--dark-3);
  border-radius: 24px;
  padding: 30px;
  display: grid;
  gap: 10px;
  align-content: start;
  overflow: hidden;
  border: 1px solid rgba(244, 237, 222, 0.05);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.feat::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 168, 60, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feat:hover { transform: translateY(-4px); border-color: rgba(255, 196, 0, 0.25); }
.feat:hover::after { opacity: 1; }
.feat .n { color: var(--yellow); font-size: 22px; }
.feat h3 { font-size: 23px; font-weight: 700; }
.feat p { color: var(--neutral-300); font-size: 16px; }

/* ---------- Steps along the road ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 48px; }
.steps::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 9px;
  background: repeating-linear-gradient(to right, var(--asphalt) 0 30px, transparent 30px 52px);
  clip-path: inset(0 var(--road, 100%) 0 0);
}
.steps .car {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 32px;
  background: var(--yellow);
  clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%);
  transform: translateX(var(--car, 0px));
}
.step { display: grid; gap: 10px; }
.step .num { font-size: 72px; line-height: 0.9; }
.step h3 { font-size: 26px; font-weight: 700; }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps::before, .steps .car { display: none; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--white); color: var(--asphalt); border-radius: 24px; padding: 30px 24px; display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; transition: transform 0.4s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan.pick { border-color: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 196, 0, 0.14); }
.plan .flag { position: absolute; top: -14px; left: 22px; background: var(--yellow); color: var(--asphalt); font: 700 13px/1 'Kanit', sans-serif; padding: 8px 22px 8px 12px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.plan h3 { font-size: 24px; font-weight: 700; }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price b { font: 800 46px/1 'Kanit', sans-serif; }
.plan .price s { color: var(--muted); font-size: 18px; }
.plan .price b.price-soon { font-size: 26px; line-height: 1.2; }
.plan .price span { color: var(--muted); }
.plan .note { font-size: 14px; color: var(--muted); min-height: 21px; }
.plan .trial { align-self: flex-start; background: #dcf2e6; color: var(--green); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ''; flex: none; width: 12px; height: 9px; background: var(--asphalt); clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%); }
.plan li.no { color: var(--muted); opacity: 0.6; text-decoration: line-through; }
.plan li.no::before { background: var(--neutral-200); }
.plan .cta { margin-top: auto; align-self: flex-start; }
.plan .cta.quiet { --h: 48px; }

/* The two top plans look like their roads: concrete slabs, and the rich
   road in black and gold. */
.plan.road-pro, .plan.road-business { color: var(--cream); }
.plan.road-pro {
  background-color: var(--concrete);
  background-image:
    linear-gradient(var(--concrete-joint) 2px, transparent 2px),
    linear-gradient(90deg, var(--concrete-joint) 2px, transparent 2px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
    radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1.5px);
  background-size: 100% 140px, 50% 100%, 9px 9px, 13px 13px;
  background-position: 0 70px, 50% 0, 0 0, 4px 6px;
}
.plan.road-business {
  border-color: var(--gold);
  background-color: var(--deep);
  background-image: linear-gradient(110deg, transparent 35%, var(--gold-sheen) 50%, transparent 65%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  animation: gold-sheen 6s linear infinite;
}
@keyframes gold-sheen { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.plan.road-business h3, .plan.road-business .price b { color: var(--gold-300); }
.plan.road-business .flag { background: var(--gold); color: var(--cream); }
.plan.road-business li::before { background: var(--gold); }
.plan.road-pro li::before { background: var(--yellow); }
.plan.road-pro .note, .plan.road-business .note,
.plan.road-pro .price span, .plan.road-business .price span,
.plan.road-pro .price s, .plan.road-business .price s,
.plan.road-pro li.no, .plan.road-business li.no { color: var(--neutral-300); }
.plan.road-pro .per-month, .plan.road-business .per-month { color: var(--mint); }
.plan.road-business .cta.quiet { background: var(--gold); color: var(--asphalt); }
.price-src { margin-top: 22px; color: var(--neutral-300); font-size: 15px; }
.cream .price-src { color: var(--muted); }

.pay-msg { margin-top: 24px; text-align: center; color: var(--asphalt); font-weight: 600; min-height: 1.5em; }

/* Monthly / yearly switch: a pill with a yellow knob that slides. */
.period { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(380px, 100%); margin: 0 auto 44px; padding: 5px; border-radius: 999px; background: var(--asphalt); }
.period button { position: relative; z-index: 1; border: 0; background: none; color: var(--neutral-300); font: 600 16px/1 'Anuphan', sans-serif; padding: 13px 10px; border-radius: 999px; cursor: pointer; transition: color 0.3s; }
.period button[aria-checked='true'] { color: var(--asphalt); }
.period .save { display: inline-block; margin-left: 4px; font-size: 12px; padding: 3px 7px; border-radius: 999px; background: var(--green); color: var(--white); }
.period .knob { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--yellow); transition: transform 0.45s var(--ease); }
.period[data-on='year'] .knob { transform: translateX(100%); }
.plan .per-month { color: var(--green); font-weight: 600; }
/* Coming soon: a plan not on sale yet, or a feature not built yet. */
.soon-tag { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--asphalt); font: 600 11px/1.4 'Anuphan', sans-serif; vertical-align: middle; white-space: nowrap; text-decoration: none; }
.plan.soon .price, .plan.soon .per-month, .plan.soon ul { opacity: 0.55; }
.plan.teaser { justify-content: center; align-items: center; text-align: center; }
.plan.teaser .price { justify-content: center; opacity: 1; }
.plan.teaser .price b { font-size: 38px; }
.plan.teaser .cta { margin-top: 8px; align-self: center; }
.plan .cta.off { pointer-events: none; opacity: 0.55; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border-radius: 24px; background: var(--white); box-shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 20px 50px rgba(27, 26, 23, 0.08); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--neutral-100); font-size: 15px; }
.compare thead th { font: 700 18px/1.2 'Kanit', sans-serif; background: var(--asphalt); color: var(--cream); position: sticky; top: 0; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--asphalt); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover { background: var(--cream-100); }
.compare .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.compare .yes::after { content: ''; width: 6px; height: 11px; border: solid var(--white); border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.compare .no { color: var(--neutral-300); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--white); border-radius: 18px; padding: 4px 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 12px; margin-top: 8px; background: var(--asphalt); clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ---------- Destination: the road ends at your shop ---------- */
.destination { position: relative; background: var(--deep); color: var(--cream); overflow: hidden; isolation: isolate; padding-top: clamp(90px, 12vw, 150px); }
.destination::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 30%, rgba(255, 157, 46, 0.16), transparent 70%);
}
/* Awning: one band, light ground rule on dark → yellow + cream stripes. */
.awning { width: min(820px, 92%); margin: 0 auto; }
.awning .stripes { height: 54px; border-radius: 10px 10px 0 0; background: repeating-linear-gradient(90deg, var(--yellow) 0 70px, var(--cream) 70px 140px); }
.awning .scallops { height: 26px; background: radial-gradient(circle at 35px 0, var(--yellow) 34px, transparent 35px) 0 0 / 140px 26px, radial-gradient(circle at 105px 0, var(--cream) 34px, transparent 35px) 0 0 / 140px 26px; }
.shopfront { width: min(820px, 92%); margin: 0 auto; background: var(--dark-3); border-radius: 0 0 24px 24px; padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 60px); text-align: center; border: 1px solid rgba(244, 237, 222, 0.06); border-top: 0; }
.shopfront h2 { font-weight: 900; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.08; margin-bottom: 26px; }
.shopfront h2 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.shopfront p { color: var(--neutral-300); margin-bottom: 30px; font-size: 18px; }
.destination .roadline {
  width: 9px;
  height: 120px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, var(--yellow) 0 30px, transparent 30px 52px);
  background-position: 0 var(--road-y, 0);
  opacity: 0.7;
}
.destination footer { border-top: 1px solid rgba(244, 237, 222, 0.08); margin-top: 60px; padding-block: 30px; }
.destination footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; color: var(--neutral-300); font-size: 15px; }
.destination footer img { height: 22px; width: auto; }
.destination footer nav { display: flex; gap: 20px; }
.destination footer a { text-decoration: none; }
.destination footer a:hover { color: var(--cream); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; font-size: 17px; line-height: 1.8; }
.legal h2 { font: 700 24px/1.3 'Kanit', sans-serif; margin: 40px 0 10px; }
.legal h3 { font: 600 18px/1.3 'Anuphan', sans-serif; margin: 22px 0 6px; }
.legal p, .legal ul { margin: 0 0 12px; color: #3b3833; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal .draft { background: #fdebc8; color: #8a5300; border-radius: 14px; padding: 14px 18px; font-weight: 600; }

/* ---------- Pricing page ---------- */
.page-hero { background: var(--deep); color: var(--cream); padding-block: 150px 70px; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 100%, rgba(255, 157, 46, 0.18), transparent 70%); }
.page-hero h1 { font-weight: 900; font-size: clamp(48px, 9vw, 110px); margin-top: 14px; }
.page-hero h1 .wipe { margin-inline: auto; }
.page-hero p { color: var(--neutral-300); font-size: 20px; margin: 16px auto 0; max-width: 46ch; }

/* Short screens (a laptop with the browser's bars): the opening keeps its
   copy inside the screen; main.js shrinks the other pinned scenes to fit. */
@media (max-height: 860px) {
  .drive .copy { padding: 100px var(--gutter) 14vh; }
  .drive h1 { font-size: clamp(42px, min(9vw, 12.5vh), 124px); margin: 8px 0 10px; }
  .drive .lede { font-size: clamp(16px, 2.6vh, 22px); }
  .drive .actions { margin-top: 16px; }
  .cue { display: none; }
}
@media (max-height: 760px) {
  .type { min-height: 0; padding: 26px; }
  .types-scene .sec-head, .scene .sec-head, .journey .sec-head { margin-bottom: 18px; }
}
@media (max-height: 560px) {
  .drive .eyebrow-sub { display: none; }
  .drive .lede { display: none; }
}
@media (max-width: 400px) {
  .top .cta.small { --h: 40px; font-size: 14px; padding-left: 14px; white-space: nowrap; }
  .top .logo img { height: 20px; }
}
.fit { transform-origin: 50% 50%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-line .txt { clip-path: none; }
  .reveal-line::after, .wipe::after { display: none; }
  .wipe .t { clip-path: none; }
  .rise { opacity: 1; transform: none; }
  .drive, .journey, .scene, .types-scene { height: auto; }
  .drive .stage { position: relative; height: 100vh; }
  .journey .stage, .scene .stick, .types-scene .stage { position: static; height: auto; padding-block: 110px; }
  .steps::before { clip-path: none; }
  .flying { display: none; }
}

/* ---------- The website's own sign-in (decided 2026-10-25) ---------- */
.top .wrap { position: relative; }
.top .who { display: flex; align-items: center; gap: 10px; color: var(--neutral-300); font-size: 14px; }
.top .who span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream); font-weight: 600; }
.top .who button { border: 1px solid rgba(244, 237, 222, 0.35); background: transparent; color: var(--cream); font: 600 14px/1 'Anuphan', sans-serif; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.top .who button:hover { background: rgba(244, 237, 222, 0.12); }
.signin-menu { position: absolute; top: 62px; right: var(--gutter); width: min(320px, calc(100vw - 32px)); background: var(--white); color: var(--asphalt); border-radius: 18px; padding: 18px; display: grid; gap: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.signin-menu p { font-size: 14px; color: var(--muted); }
.signin-menu button { border: 0; border-radius: 12px; padding: 13px; font: 700 15px/1 'Anuphan', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; }
.signin-menu[hidden] { display: none; }
.signin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.signin-menu .signin-close { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--cream); color: var(--asphalt); font-size: 20px; line-height: 1; }
.signin-menu [data-kind='line'] { background: #06c755; color: var(--white); }
.signin-menu [data-kind='google'] { background: var(--white); color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; }
.store-bar[hidden] { display: none; }
/* Payment paused for a beta (2026-11-02): the note shows, paying parts hide. */
.period[hidden], .faq details[data-paid][hidden], .beta-note[hidden] { display: none; }
.beta-note { width: fit-content; max-width: 100%; margin: 0 auto 28px; padding: 10px 18px; border-radius: 14px;
  background: var(--yellow-300); color: var(--asphalt); font-weight: 600; text-align: center; }
.store-bar { max-width: 860px; margin: 0 auto 30px; padding: 14px 18px; border-radius: 16px; background: var(--white); color: var(--asphalt); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; box-shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 12px 30px rgba(27, 26, 23, 0.08); }
.store-bar label { font-weight: 700; }
.store-bar select { font: 600 15px/1.2 'Anuphan', sans-serif; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--neutral-200); background: var(--cream-100); }
.store-bar .now { color: var(--muted); font-size: 14px; }
.store-bar a { margin-left: auto; }
button.cta { border: 0; }
@media (max-width: 860px) { .top .who span { display: none; } }

/* ---------- Popups: a confirm, and the plan celebration (party.js) ---------- */
.pop-back { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(20, 19, 15, 0.62); opacity: 0; transition: opacity 0.22s; }
.pop-back.in { opacity: 1; }
.pop { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--cream-100); color: var(--asphalt); border-radius: 24px; padding: 26px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); transform: translateY(14px) scale(0.96); transition: transform 0.32s var(--ease); }
.pop-back.in .pop { transform: none; }
.pop h2 { font-size: 24px; font-weight: 700; }
.pop-lines { display: grid; gap: 6px; color: var(--muted); }
.pop-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.pop-actions .cta { cursor: pointer; border: 0; }

.party .pop { text-align: center; justify-items: center; transform: scale(0.7); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.party .pop-actions { justify-content: center; }
.party-plan.plan { width: 100%; padding: 22px 20px; gap: 4px; border-radius: 18px; align-items: center; clip-path: inset(0 100% 0 0 round 18px); }
.party.in .party-plan { animation: pave 0.7s var(--ease) 0.15s forwards; }
@keyframes pave { to { clip-path: inset(0 0 0 0 round 18px); } }
.party-plan.road-free, .party-plan.road-starter { background: var(--asphalt); color: var(--cream); }
.party-plan.road-starter { background-image: repeating-linear-gradient(to right, var(--yellow) 0 22px, transparent 22px 40px); background-size: 100% 4px; background-repeat: no-repeat; background-position: 0 calc(100% - 12px); }
.party-plan h3 { font-size: 34px; }
.party-shop, .party-until { font-size: 14px; color: var(--neutral-300); }
.party-plan.road-pro .party-until, .party-plan.road-free .party-until, .party-plan.road-starter .party-until { color: var(--mint); }
.party-plan.road-business .party-until { color: var(--gold-300); }
.party-what { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.party-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; justify-self: stretch; }
.party-list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--white); opacity: 0; transform: translateY(8px); }
.party.in .party-list li { animation: unlock 0.4s var(--ease) var(--d, 0.5s) forwards; }
@keyframes unlock { to { opacity: 1; transform: none; } }
.party-list li::before { content: '✓'; flex: none; color: var(--green); font-weight: 800; }
.party-stripes { position: fixed; inset: 0; z-index: 91; width: 100vw; height: 100vh; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .pop, .party .pop { transition: none; transform: none; }
  .party-plan.plan { clip-path: none; }
  .party.in .party-plan, .party.in .party-list li { animation: none; }
  .party-list li { opacity: 1; transform: none; }
}
.party .pop { width: min(560px, 100%); }
.party-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; }
.party-list li { padding: 8px 12px; font-size: 14px; line-height: 1.35; }

/* The payment choice (party.js askPay). */
.pop .pop-shop { color: var(--muted); margin-top: -8px; }
/* ---------- Checkout (decided 2026-10-28): its own page, not a popup ---------- */
.co-body { background: var(--cream); }
.co-body .top .wrap { gap: 14px; }
.co-secure { color: var(--neutral-300); font-size: 14px; margin-right: auto; }
.co-body .top .co-lock { margin-left: 6px; background: var(--neutral-300); }
.co-lock { display: inline-block; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Crect x='4' y='10' width='16' height='12' rx='3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3Crect x='4' y='10' width='16' height='12' rx='3'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Back to the plans: the top left of the content. */
.co-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 600 15px/1 'Anuphan', sans-serif; text-decoration: none; padding: 6px 0; transition: color 0.2s, transform 0.25s var(--ease); }
.co-back:hover { color: var(--asphalt); transform: translateX(-4px); }
.co-back > span[aria-hidden] { font-size: 20px; line-height: 1; }
.co-body .top .who { margin-left: auto; }
@media (max-width: 640px) {
  .co-secure, .co-body .top .co-lock { display: none; }
}
.checkout { padding: 90px 0 120px; min-height: 100vh; }
.checkout > .wrap:first-child { margin-bottom: 14px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.co-grid.co-in, .co-grid:has(.sk) { opacity: 1; transform: none; }
.co-grid:has(> .co-notice) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .co-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

.co-eyebrow { font: 600 14px/1.2 'Anuphan', sans-serif; color: var(--muted); }
.co-title { font: 800 clamp(34px, 5vw, 52px)/1.05 'Kanit', sans-serif; margin: 12px 0 28px; }
.co-step { background: var(--white); border-radius: 22px; padding: 22px 24px 24px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(27, 26, 23, 0.05), 0 14px 34px rgba(27, 26, 23, 0.06); }
.co-step h2 { display: flex; align-items: center; gap: 12px; font: 700 19px/1.2 'Kanit', sans-serif; margin-bottom: 16px; }
.co-n { display: inline-grid; place-items: center; width: 30px; height: 30px; padding-right: 6px; background: var(--asphalt); color: var(--yellow); font: 700 15px/1 'Barlow Condensed', sans-serif;
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%); }
.co-hint { margin-top: 12px; color: var(--muted); font-size: 14px; }

.co-shop { display: flex; align-items: center; gap: 14px; }
.co-shop-mark { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--cream); font: 800 20px/1 'Kanit', sans-serif; }
.co-shop b { display: block; font-size: 18px; }
.co-shop span { color: var(--muted); font-size: 14px; }


.co-code { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.co-code[hidden], .co-chip[hidden] { display: none; }
.co-code input { min-width: 0; height: 50px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--neutral-100); background: var(--cream-100); color: var(--asphalt); font: 600 18px/1 'Barlow Condensed', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.co-code input::placeholder { font: 500 15px/1 'Anuphan', sans-serif; letter-spacing: 0; text-transform: none; color: var(--muted); }
.co-code input:focus { outline: none; border-color: var(--asphalt); background: var(--white); }
.co-code-apply { height: 50px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--asphalt); color: var(--cream); font: 700 15px/1 'Anuphan', sans-serif; cursor: pointer; }
.co-code-apply:hover { background: var(--dark-2); }
.co-code-msg { margin-top: 8px; font-size: 14px; color: var(--muted); }
.co-code-msg:empty { display: none; }
.co-code-msg.bad { color: var(--orange); font-weight: 600; }
.co-chip { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #e3f4ea; color: var(--green); font-weight: 600; animation: co-pop 0.35s var(--ease); }
.co-chip-code { font: 700 17px/1 'Barlow Condensed', sans-serif; letter-spacing: 0.08em; padding: 6px 12px 6px 8px; background: var(--green); color: var(--white); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.co-chip span:nth-child(2) { flex: 1; font-size: 14px; }
.co-chip-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(30, 123, 79, 0.12); color: var(--green); font-size: 20px; line-height: 1; cursor: pointer; }
@keyframes co-pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* The summary: a ticket for the plan, the sums, the button. */
.co-side { position: sticky; top: 90px; }
.co-summary { background: var(--white); border-radius: 26px; padding: 14px 14px 22px; box-shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 24px 60px rgba(27, 26, 23, 0.12); display: grid; gap: 16px; }
.co-ticket { position: relative; border-radius: 18px; padding: 20px 20px 22px; background: var(--neutral-100); color: var(--asphalt); overflow: hidden; }
.co-ticket-kicker { font: 600 13px/1 'Anuphan', sans-serif; opacity: 0.85; }
.co-ticket h3 { font: 800 30px/1.1 'Kanit', sans-serif; margin-top: 8px; }
.co-ticket-change { position: absolute; top: 16px; right: 16px; font-size: 13px; font-weight: 600; color: inherit; opacity: 0.85; }
.co-rows { margin: 0; padding: 0 10px; display: grid; gap: 10px; }
.co-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.co-row dt { color: var(--muted); }
.co-row dd { margin: 0; font-weight: 600; text-align: right; }
.co-row s { color: var(--muted); font-weight: 400; }
.co-save { color: var(--green); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 10px; padding-top: 16px;
  background: repeating-linear-gradient(90deg, var(--neutral-200) 0 10px, transparent 10px 16px) top / 100% 2px no-repeat; }
.co-total span { font-weight: 700; }
.co-total b { font: 700 44px/1 'Barlow Condensed', sans-serif; }
.co-next { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.co-next li { display: flex; gap: 8px; }
.co-next li::before { content: ''; flex: none; margin-top: 7px; width: 10px; height: 8px; background: var(--neutral-200); clip-path: polygon(0 0, 62% 0, 100% 50%, 62% 100%, 0 100%); }
.co-next li.warn { color: #8a5300; }
.co-error { margin: 0 10px; padding: 12px 14px; border-radius: 12px; background: #fde5d8; color: #9a3412; font-weight: 600; font-size: 14px; }
.co-pay { --h: 60px; width: calc(100% - 20px); margin: 4px 10px 0; justify-content: center; padding: 0 30px 0 18px; font-size: 19px; }
.co-pay:disabled { opacity: 0.6; cursor: progress; transform: none; }
.co-legal, .co-omise { margin: 0 10px; font-size: 13px; color: var(--muted); text-align: center; }
.co-legal a { color: var(--asphalt); font-weight: 600; }
.co-omise { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: -6px; }
.co-bar { display: none; }
@media (max-width: 960px) {
  .co-side { position: static; }
  .co-summary .co-pay { display: none; }
  .co-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; position: fixed; inset: auto 0 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -10px 30px rgba(27, 26, 23, 0.1); }
  .co-bar span { display: block; font-size: 13px; color: var(--muted); }
  .co-bar b { font: 700 30px/1 'Barlow Condensed', sans-serif; }
  .co-bar .co-pay { width: auto; margin: 0; --h: 54px; font-size: 17px; }
}

/* One message: waiting, the QR, done, or what went wrong. */
.co-notice { max-width: 560px; margin: 30px auto 0; text-align: center; background: var(--white); border-radius: 28px; padding: 44px clamp(22px, 5vw, 48px); display: grid; justify-items: center; gap: 12px; box-shadow: 0 1px 2px rgba(27, 26, 23, 0.06), 0 24px 60px rgba(27, 26, 23, 0.12); }
.co-notice h1 { font: 800 clamp(26px, 3.4vw, 34px)/1.2 'Kanit', sans-serif; text-wrap: balance; }
.co-notice p { color: var(--muted); }
.co-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 14px; }
.co-signin { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 14px; padding: 13px 20px; font: 700 15px/1 'Anuphan', sans-serif; cursor: pointer; width: 100%; }
.co-signin svg, .co-signin img { width: 22px; height: 22px; flex: none; }
.co-signin:hover { filter: brightness(0.96); }
.co-notice.signin { max-width: 440px; }
.co-notice.signin .co-actions { display: grid; width: min(300px, 100%); gap: 10px; }
/* The page asks for sign-in itself; the header's button would say it twice. */
.co-body:has(.co-notice.signin) .top .who { display: none; }
.co-signin.line { background: #06c755; color: var(--white); }
.co-signin.google { background: var(--white); color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; }
.co-wait { display: flex; gap: 8px; margin: 6px 0; }
.co-wait i { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: co-dot 1s var(--ease) infinite; }
.co-wait i:nth-child(2) { animation-delay: 0.15s; }
.co-wait i:nth-child(3) { animation-delay: 0.3s; }
@keyframes co-dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-6px); opacity: 1; } }
.co-check { width: 84px; height: 84px; border-radius: 50%; background: var(--green); position: relative; animation: co-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); margin-bottom: 6px; }
.co-check::after { content: ''; position: absolute; left: 27px; top: 22px; width: 18px; height: 32px; border: solid var(--white); border-width: 0 6px 6px 0; transform: rotate(45deg); }

/* Loading: the shapes of what is coming. */
.sk { border-radius: 22px; background: linear-gradient(90deg, var(--neutral-100) 25%, var(--cream-100) 50%, var(--neutral-100) 75%); background-size: 200% 100%; animation: sk-shine 1.4s linear infinite; }
.sk-title { height: 56px; width: 60%; margin: 26px 0 28px; }
.sk-block { height: 150px; margin-bottom: 16px; }
.sk-summary { height: 460px; border-radius: 26px; }
@keyframes sk-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- จัดการแพ็กเกจ (decided 2026-10-28): its own page ---------- */
.mg-flash { margin: -12px 0 16px; padding: 12px 16px; border-radius: 14px; background: #e3f4ea; color: var(--green); font-weight: 600; animation: co-pop 0.35s var(--ease); }
.mg-flash.bad { background: #fde5d8; color: #9a3412; }
.mg-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 18px 20px; border-radius: 20px; margin-bottom: 16px; background: var(--white); box-shadow: 0 1px 2px rgba(27, 26, 23, 0.05), 0 14px 34px rgba(27, 26, 23, 0.06); border-left: 6px solid var(--green); }
.mg-status b { display: block; font: 700 18px/1.3 'Kanit', sans-serif; }
.mg-status span { color: var(--muted); font-size: 15px; }
.mg-status.warn { border-left-color: var(--sodium); }
.mg-status.bad { border-left-color: var(--orange); }
.mg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mg-head h2 { margin: 0; font: 700 19px/1.2 'Kanit', sans-serif; }
.mg-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.mg-plan { position: relative; display: grid; gap: 6px; text-align: left; padding: 16px 18px 18px; border-radius: 18px; border: 2px solid transparent; background: var(--neutral-100); color: var(--asphalt); font: inherit; cursor: pointer; transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.2s; }
.mg-plan:hover:not(:disabled) { transform: translateY(-2px); }
.mg-plan:disabled { cursor: default; opacity: 0.82; }
.mg-plan.on { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.3); }
.mg-plan:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.mg-plan b { font: 800 22px/1.15 'Kanit', sans-serif; }
.mg-plan-tag { min-height: 18px; font-size: 13px; font-weight: 600; opacity: 0.8; }
.mg-plan-price { font: 700 24px/1 'Barlow Condensed', sans-serif; }
.mg-plan-price small { font: 500 14px/1 'Anuphan', sans-serif; opacity: 0.8; }
.mg-confirm:empty { display: none; }
.mg-confirm { margin-top: 14px; }
.mg-confirm-card { padding: 18px 20px; border-radius: 18px; background: var(--cream-100); border: 2px solid var(--neutral-100); display: grid; gap: 12px; animation: co-pop 0.3s var(--ease); }
.mg-confirm-card h3 { font: 700 20px/1.2 'Kanit', sans-serif; }
.mg-confirm-card .co-next, .mg-confirm-card .co-error { padding: 0; margin: 0; }
.mg-left { justify-content: flex-start; align-items: center; margin-top: 4px; }
.mg-text { border: 0; background: none; padding: 10px 4px; font: 600 15px/1 'Anuphan', sans-serif; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.mg-text.danger { color: #9a3412; padding-left: 0; }
.mg-stop h2 { margin-bottom: 6px; }
.mg-danger { background: var(--orange); color: var(--white); }
.mg-danger:hover { background: #d94a12; }
.co-card { min-height: 120px; }
.co-card-sk { height: 150px; border-radius: 14px; }
.mg-newcard { flex-basis: 100%; display: grid; gap: 10px; margin-top: 6px; }
.mg-newcard .cta { justify-self: start; }
.mg-card .mg-head { margin-bottom: 8px; }
.mg-card-now { font: 600 17px/1.4 'Anuphan', sans-serif; text-transform: capitalize; }
.mg-card .mg-newcard { margin-top: 14px; }

/* Plan surfaces on the checkout ticket and จัดการแพ็กเกจ's cards, as the
   price list draws them: the lower plans white, concrete slabs for
   ถนนคอนกรีต, black and gold for the rich road. */
.co-ticket.road-starter, .co-ticket.road-free, .mg-plan.road-starter, .mg-plan.road-free {
  color: var(--asphalt); background: var(--white); box-shadow: inset 0 0 0 2px var(--neutral-100);
}
.co-ticket.road-pro, .mg-plan.road-pro {
  color: var(--cream);
  background-color: var(--concrete);
  background-image:
    linear-gradient(var(--concrete-joint) 2px, transparent 2px),
    linear-gradient(90deg, var(--concrete-joint) 2px, transparent 2px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
    radial-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1.5px);
  background-size: 100% 140px, 50% 100%, 9px 9px, 13px 13px;
  background-position: 0 110px, 50% 0, 0 0, 4px 6px;
}
.co-ticket.road-business, .mg-plan.road-business {
  color: var(--gold-300);
  background-color: var(--deep);
  background-image: linear-gradient(110deg, transparent 35%, var(--gold-sheen) 50%, transparent 65%);
  background-size: 250% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 2px var(--gold);
  animation: gold-sheen 6s linear infinite;
}
.mg-plan.road-starter .mg-plan-tag, .co-ticket.road-starter .co-ticket-kicker { color: var(--muted); opacity: 1; }
.mg-sums { padding: 0; }
.mg-total { margin: 4px 0 0; }
.mg-total b { font-size: 36px; }
.mg-sums-sk { height: 96px; border-radius: 14px; }
/* จัดการแพ็กเกจ: the cost and button of a switch are in the summary on
   the right on wide screens, under the plans on phones. */
.co-summary .mg-sums { padding: 0 10px; }
.co-summary .mg-sums .mg-total { margin: 4px 0 0; }
.co-summary .mg-pay { width: calc(100% - 20px); margin: 4px 10px 0; justify-content: center; }
.co-summary .mg-sums-sk { margin: 0 10px; }
.mg-phone { display: none; }
@media (max-width: 960px) {
  .mg-phone { display: block; }
  .mg-phone .mg-pay { display: inline-flex; }
  .co-summary .mg-pay, .co-summary .mg-sums, .co-summary .mg-sums-sk { display: none; }
}
.mg-then { margin: 2px 0 0; font-size: 14px; color: var(--muted); text-align: right; }
/* Stripe's card fields one by one, in our boxes. */
.co-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.co-field { display: grid; gap: 6px; }
.co-field.wide { grid-column: 1 / -1; }
.co-field-label { font-weight: 600; font-size: 15px; }
.co-required { color: #c2410c; }
.co-field-box { padding: 14px 14px; border-radius: 14px; border: 2px solid var(--neutral-100); background: var(--cream-100); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.co-field-box.StripeElement--focus { border-color: var(--asphalt); background: var(--white); box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.35); }
.co-field-box.bad, .co-field-box.StripeElement--invalid { border-color: #c2410c; }
.co-summary .mg-then { margin: -6px 10px 0; }
.mg-then.warn { color: #8a5300; }
/* The charges to come: a cream box, dates on a yellow road line. */
.co-schedule { margin: 0 10px; padding: 14px 16px 6px; border-radius: 16px; background: var(--cream-100); border: 2px solid var(--neutral-100); }
.co-schedule-title { font: 700 14px/1 'Anuphan', sans-serif; color: var(--muted); margin-bottom: 10px; }
.co-schedule ol { list-style: none; margin: 0; padding: 0; position: relative; }
.co-schedule li { position: relative; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: start; padding-bottom: 12px; }
.co-schedule li:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 16px; bottom: -2px; width: 3px; background: repeating-linear-gradient(var(--yellow) 0 6px, transparent 6px 11px); }
.co-schedule-dot { width: 15px; height: 15px; margin-top: 3px; border-radius: 50%; background: var(--asphalt); box-shadow: inset 0 0 0 4px var(--yellow); }
.co-schedule-when { display: grid; gap: 4px; justify-items: start; }
.co-schedule-when b { font-size: 15px; }
.co-schedule-when small { color: var(--muted); font-size: 13px; }
.co-schedule-every { font: 600 12px/1 'Anuphan', sans-serif; padding: 4px 9px; border-radius: 999px; background: var(--asphalt); color: var(--cream); }
.co-schedule-amount { font: 700 26px/1 'Barlow Condensed', sans-serif; }
.mg-sums .co-schedule { margin: 6px 0 0; }
.mg-period { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--cream); }
.mg-period button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 600 14px/1 'Anuphan', sans-serif; color: var(--muted); cursor: pointer; transition: color 0.3s; white-space: nowrap; }
.mg-period button[aria-checked='true'] { color: var(--cream); }
.mg-period-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--asphalt); transition: transform 0.45s var(--ease); }
.mg-period[data-on='year'] .mg-period-knob { transform: translateX(100%); }
.mg-period-save { position: absolute; top: -12px; right: -8px; z-index: 2; font: 700 10px/1 'Anuphan', sans-serif; padding: 4px 7px; border-radius: 999px; background: var(--green); color: var(--white); white-space: nowrap; box-shadow: 0 2px 6px rgba(27, 26, 23, 0.18); pointer-events: none; }
.mg-period { margin-top: 8px; }
