/* Website Design side — modelled on withsupafast.com.
   Cream paper, heavy black caps, one yellow highlight, 2px ink borders. */

:root[data-theme="design"] {
  color-scheme: light;
  --bg: #EEF3EC;
  --surface: #FFFFFF;
  --ink: #0C0C0B;
  --ink-soft: #45443F;
  --ink-muted: #6B6960;
  --line: rgba(12, 12, 11, 0.14);
  --accent: #39FF14;
  --focus: #0C0C0B;
  --header-bg: rgba(238, 243, 236, 0.82);
  --stroke: 2px solid var(--ink);

  --font-display: "Archivo Black", "Noto Sans Thai", "Arial Black", sans-serif;
  --font-body: "Inter", "Noto Sans Thai", system-ui, sans-serif;
  --font-mono: "Fragment Mono", "Noto Sans Thai", ui-monospace, monospace;
  --display-weight: 400;
  --display-tracking: -0.02em;
  --display-leading: 0.92;
  --display-case: uppercase;

  --text-body: 17px;
  --text-h1: clamp(40px, 6.6vw, 104px);
  --text-h2: clamp(28px, 3.6vw, 52px);
  --text-h3: clamp(20px, 2vw, 26px);

  --max-width: 1240px;
  --section-y: clamp(64px, 7vw, 104px);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 999px;

  --toggle-bg: var(--surface);
  --toggle-border: var(--stroke);
  --toggle-ink: var(--ink);
  --toggle-ink-hover: var(--ink);
  --toggle-active-bg: var(--ink);
  --toggle-active-ink: var(--accent);
  --toggle-active-shadow: none;
  --toggle-font: 400 12px/1 var(--font-mono);
  --toggle-case: uppercase;
  --toggle-tracking: 0.02em;

  --btn-font: 400 15px/1 var(--font-display);
  --btn-tracking: -0.02em;
  --btn-case: uppercase;

  /* Motion + frame tokens */
  --ease-out: cubic-bezier(.22, 1, .36, 1);    /* text, tabs, small UI */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);    /* big block rises */
  --ease-pop: cubic-bezier(.34, 1.45, .64, 1); /* overshoot: stickers, icon spin */
  --frame: 4px;                                /* chunky ink frame */
  --frame-stroke: var(--frame) solid var(--ink);
}

[data-theme="design"] body { line-height: 1.45; }

[data-theme="design"] ::selection { background: var(--accent); color: var(--ink); }

/* Buttons */
[data-theme="design"] .btn { border: var(--stroke); padding-right: 8px; }
[data-theme="design"] .btn--primary { background: var(--accent); color: var(--ink); }
[data-theme="design"] .btn--ghost { background: var(--surface); color: var(--ink); padding-right: 20px; }
[data-theme="design"] .btn--dark { background: var(--ink); color: var(--accent); }
[data-theme="design"] .btn { box-shadow: 0 4px 0 var(--ink); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s ease, color .2s ease; }
[data-theme="design"] .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
[data-theme="design"] .btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); transition-duration: .08s; }
.btn__icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--accent);
}
.btn--dark .btn__icon { background: var(--accent); color: var(--ink); }
.btn__icon svg { width: 14px; height: 14px; }

/* Type helpers */
.d-h1 { font-size: var(--text-h1); }
.d-h2 { font-size: var(--text-h2); }
.d-h3 { font-size: var(--text-h3); line-height: 1.05; }
.d-muted { color: var(--ink-muted); }
.d-lede { font-size: clamp(17px, 1.45vw, 21px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: rgba(12, 12, 11, .6); max-width: 52ch; }
.d-label { font: 400 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.d-center { text-align: center; margin-inline: auto; }

/* Hero: 3-line h1 at desktop, work marquee in the first viewport */
.d-hero { position: relative; padding-top: clamp(40px, 4vw, 56px); text-align: center; }
.d-hero h1 { max-width: 18ch; margin-inline: auto; position: relative; line-height: .9; }
.d-hero .d-lede { max-width: 60ch; margin: clamp(20px, 2.2vw, 28px) auto 0; }
.d-hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: clamp(28px, 2.8vw, 36px); }
.d-sticker {
  position: absolute; top: -0.5em; left: 4%; width: clamp(48px, 5vw, 72px); aspect-ratio: 1;
  display: grid; place-items: center; background: var(--accent); border: var(--stroke);
  border-radius: 18px; transform: rotate(-12deg); box-shadow: 4px 4px 0 var(--ink);
}
.d-sticker img { width: 50%; height: auto; }
.d-h1__end { position: relative; white-space: nowrap; }
.d-burst { position: absolute; left: 100%; bottom: 0.1em; width: 0.42em; margin-left: 0.06em; color: var(--ink); animation: d-spin 12s linear infinite; }
@keyframes d-spin { to { transform: rotate(360deg); } }
@media (max-width: 599px) {
  .d-hero h1 { font-size: clamp(38px, 10.4vw, 44px); }
  .d-sticker { position: relative; top: auto; left: auto; display: grid; margin: 0 auto 20px; }
  .d-burst { left: auto; right: -0.3em; bottom: 0.6em; width: 0.5em; }
  .d-hero__ctas { flex-direction: column; align-items: stretch; }
  .d-hero__ctas .btn { width: 100%; }
}

/* Hero work marquee (framed screenshots, ~560×350 at 1440, ~90px/s, no hover pause) */
.hero-marquee { --mq-gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(36px, 3.4vw, 48px); padding-block: 4px 12px; }
.hero-marquee__card {
  flex: none; width: clamp(280px, 38.9vw, 560px); aspect-ratio: 16 / 10; overflow: hidden;
  border: var(--frame-stroke); border-radius: 24px; background: var(--surface);
}
.hero-marquee__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* [data-loop] cards: motion.js lays a muted loop over the poster after load; it fades in once playing */
.hero-marquee__card[data-loop] { position: relative; }
.hero-marquee__card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.hero-marquee__card.is-playing video { opacity: 1; }
.js-motion:not(.intro-done) .d-hero :is(.d-lede, .d-hero__ctas) { opacity: 0; transform: translateY(80px) scale(.94); }
.js-motion:not(.intro-done) .d-sticker { opacity: 0; transform: scale(.4); }
.js-motion:not(.intro-done) .hero-marquee { opacity: 0; }
.intro-go:not(.intro-done) .d-lede { animation: rise .6s var(--ease-expo) both .45s; }
.intro-go:not(.intro-done) .d-hero__ctas { animation: rise .6s var(--ease-expo) both .55s; }
.intro-go:not(.intro-done) .d-sticker { animation: pop .6s var(--ease-pop) both .9s; }
.intro-go:not(.intro-done) .hero-marquee { animation: fade .8s ease both .7s; }
/* The burst lands with the last word. A transition (not an animation) so its
   endless spin never restarts when the intro rules switch off. */
.js-motion:not(.intro-go):not(.intro-done) .d-burst { opacity: 0; }
.js-motion .d-burst { transition: opacity .45s var(--ease-out) .6s; }

/* Trusted by: logo marquee (~60px/s, edge fade; wraps and centres without motion) */
.d-logos { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.d-logos__mq { --mq-gap: clamp(48px, 5vw, 72px); width: 100%; padding-block: 6px; }
.js-motion .d-logos__mq {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.d-logos__mq .marquee__track { align-items: center; row-gap: 20px; }
.d-logos li { flex: none; display: grid; place-items: center; height: 56px; }
.d-logos img { height: 28px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .78; transition: opacity .25s ease; }
.d-logos img[alt="Siam Sports Society"] { height: 50px; }
.d-logos img[alt="J.D. Pools"] { height: 54px; }
.d-logos img[alt="Calkub"] { height: 30px; }
@media (hover: hover) { .d-logos li:hover img { opacity: 1; } }
@media (max-width: 599px) {
  .d-logos__mq { --mq-gap: 40px; }
  .d-logos img { height: 24px; }
  .d-logos li { height: 48px; }
  .d-logos img[alt="Siam Sports Society"] { height: 42px; }
  .d-logos img[alt="J.D. Pools"] { height: 46px; }
  .d-logos img[alt="Calkub"] { height: 26px; }
}

/* Section eyebrows: mono label led by a neon dot (one system across section heads) */
.d-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.d-eyebrow::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink); }

/* Work: editorial head row, featured card, then three across (a swipe strip below 1024) */
.d-split.d-work__head { margin-bottom: clamp(32px, 4vw, 56px); }
.d-work__title { display: grid; gap: 16px; justify-items: start; }
.d-work__head h2 { max-width: 21ch; text-wrap: balance; }
@media (min-width: 900px) { .d-split.d-work__head { grid-template-columns: max-content minmax(0, 1fr); } }
.work-card { position: relative; display: grid; gap: 14px; align-content: start; }
.work-card__media {
  aspect-ratio: 16 / 10; overflow: hidden; border: var(--frame-stroke); border-radius: var(--radius-lg); background: var(--surface);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease-expo); }
.work-card:hover .work-card__media { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.work-card:hover .work-card__media img { transform: scale(1.06); }
.work-card:focus-visible { outline: none; }
.work-card:focus-visible .work-card__media { outline: 3px solid var(--ink); outline-offset: 4px; }
.work-card h3 { font-size: var(--text-h3); line-height: 1.05; text-wrap: balance; }
.work-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 6px; padding-bottom: 12px; border-bottom: 2px solid var(--line);
  font: 400 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-muted);
  transition: color .2s ease, border-color .3s var(--ease-out);
}
.work-card__go {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--accent); transition: background-color .2s ease, color .2s ease;
}
.work-card__go svg { width: 14px; height: 14px; transition: transform .55s var(--ease-pop); }
.work-card:hover .work-card__meta { color: var(--ink); border-color: var(--ink); }
.work-card:hover .work-card__go { background: var(--accent); color: var(--ink); }
@media (hover: hover) { .work-card:hover .work-card__go svg { transform: rotate(45deg); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; font: 400 clamp(14px, 1.25vw, 17px)/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; border: 2px solid var(--ink); border-radius: var(--radius-full); background: var(--ink); color: var(--bg); }
.tag--accent { background: var(--accent); color: var(--ink); }
@media (min-width: 768px) { .work-card--featured .work-card__media { aspect-ratio: 16 / 8; } }

.d-work__more .work-card h3 { font-size: clamp(19px, 1.6vw, 23px); }
.d-work__more .tag { min-height: 30px; padding: 0 12px; font-size: 13px; }
@media (min-width: 1024px) {
  .d-work__more {
    width: min(100% - 64px, var(--max-width)); margin: clamp(48px, 5vw, 72px) auto 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 2.4vw, 32px);
  }
}
/* Below 1024 the three cards scroll sideways (like the timeline track), bleeding to the viewport edge. */
@media (max-width: 1023px) {
  .d-work__more {
    --pad: 32px;
    display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 20px;
    margin-top: 40px; padding: 4px var(--pad) 12px; scroll-padding-inline: var(--pad);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .d-work__more::-webkit-scrollbar { display: none; }
  .d-work__more > .work-card { scroll-snap-align: start; }
  /* Cards off to the side never reach the viewport observer; show them at rest. */
  .js-motion .d-work__more > .reveal:not(.visible) { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
  .d-work__more { --pad: 16px; grid-auto-columns: 80%; gap: 14px; margin-top: 32px; }
  .work-card--featured h3 { font-size: 20px; }
}

/* Dark inset panel (A5): sits outside the 1240 container, 16px in from the
   viewport edges. Put a .container inside it for the content measure.
   <section class="d-inset"><div class="container">…</div></section>
   Variants: .d-inset--cta (radius 36, 4px frame). */
.d-inset {
  margin-inline: 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg);
  padding-block: clamp(64px, 7vw, 96px);
}
.d-inset--cta { border-radius: 36px; border: var(--frame-stroke); }
.d-inset :is(h2, h3) { color: var(--bg); }
.d-inset :focus-visible { outline-color: var(--accent); }

/* Section heads */
.d-head { display: grid; gap: 16px; justify-items: center; text-align: center; }
.d-head h2 { max-width: 32ch; }

/* ---------- Shared bits ---------- */
.d-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.d-accent { color: var(--accent); }
.d-inset .d-muted { color: rgba(238, 243, 236, .5); }

/* Split section header: title left, lede right, bottom-aligned (45/55 ≥900px) */
.d-split { display: grid; gap: 16px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.d-split h2 { max-width: 18ch; }
.d-split__lede { color: var(--ink-soft); font-weight: 500; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; letter-spacing: -0.01em; max-width: 52ch; }
@media (min-width: 900px) {
  .d-split { grid-template-columns: 45fr 55fr; }
  .d-split__lede { padding-bottom: .3em; }
}

/* Sliding-thumb tabs (motion.js [data-tabs] / [data-timeline]).
   The thumb sits above each tab's own pill (::before) and below its label. */
.d-tabs {
  position: relative; isolation: isolate; display: flex; gap: 4px; padding: 4px;
  background: var(--ink); border-radius: var(--radius-full);
}
.d-tabs__tab {
  position: relative; flex: 1 1 0; display: grid; place-items: center;
  min-height: 40px; padding: 0 18px; border: 0; border-radius: var(--radius-full); background: none;
  font: 400 15px/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap;
  color: var(--bg); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .3s var(--ease-out);
}
.d-tabs__tab > span { position: relative; z-index: 2; }
.d-tabs__tab[aria-selected="true"] { color: var(--ink); }
.d-tabs__tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--bg); }
.d-tabs__thumb {
  position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 0;
  width: var(--thumb-w, 0px); transform: translateX(var(--thumb-x, 0px));
  border-radius: var(--radius-full); background: var(--accent);
}
.d-tabs.is-ready .d-tabs__thumb { transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
/* Before motion.js measures the thumb, the selected tab paints itself. */
.d-tabs:not(.is-ready) .d-tabs__tab[aria-selected="true"] { background: var(--accent); }

/* ---------- Problem (dark inset panel + falling stickers) ---------- */
.d-problem {
  position: relative; overflow: hidden;
  background: linear-gradient(256deg, #171d18, #0C0C0B);
  padding-block: clamp(64px, 7vw, 96px) 0;
}
.d-problem__copy { display: grid; justify-items: center; gap: 16px; text-align: center; }
.d-problem h2 { font-size: clamp(34px, 4.4vw, 64px); max-width: none; margin-bottom: 12px; }
.d-problem h2 .d-accent { display: block; }
.d-problem p { max-width: 40ch; color: rgba(238, 243, 236, .78); font-size: clamp(17px, 1.45vw, 20px); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.d-problem p:last-child { color: var(--bg); }

.stickers { position: relative; height: 290px; max-width: 1240px; margin: clamp(40px, 7vw, 104px) auto 0; }
.sticker {
  --px: var(--x); --py: var(--y); --pr: var(--r);
  position: absolute; left: var(--px); top: var(--py);
  transform: translate(-50%, 0) rotate(var(--pr));
  translate: var(--dx, 0px) var(--dy, 0px);
  padding: 10px 20px; border: 3px solid var(--bg); border-radius: var(--radius-full);
  background: var(--accent); color: var(--ink);
  font: 400 14px/1.05 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em;
  white-space: nowrap; box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}
.sticker--md { font-size: 17px; padding: 12px 22px; }
.sticker--lg { font-size: 22px; padding: 14px 28px; white-space: normal; text-wrap: balance; width: max-content; max-width: 18em; border-radius: 30px; text-align: left; }
.sticker--sm { font-size: 13px; padding: 8px 16px; }
.js-motion .stickers:not(.go) .sticker { opacity: 0; }
.stickers.go .sticker { animation: sticker-drop 1.1s both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes sticker-drop {
  0% { opacity: 1; transform: translate(-50%, -720px) rotate(calc(var(--pr) + 40deg)); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  62% { transform: translate(-50%, 0) rotate(var(--pr)); animation-timing-function: var(--ease-out); }
  78% { transform: translate(-50%, -22px) rotate(calc(var(--pr) - 4deg)); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  90% { transform: translate(-50%, 0) rotate(var(--pr)); }
  95% { transform: translate(-50%, -5px) rotate(var(--pr)); }
  100% { opacity: 1; transform: translate(-50%, 0) rotate(var(--pr)); }
}
/* Fine pointers can pick the stickers up (motion.js adds .is-draggable). */
.stickers.is-draggable .sticker { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.stickers.is-draggable .sticker.is-dragging { cursor: grabbing; z-index: 5; box-shadow: 0 24px 40px rgba(0, 0, 0, .45); }
@media (min-width: 768px) and (max-width: 1199px) {
  .stickers { height: 250px; margin-inline: 56px; }
  .sticker { font-size: 12px; }
  .sticker--md { font-size: 14px; }
  .sticker--lg { font-size: 17px; padding: 12px 22px; border-radius: 24px; }
}
@media (max-width: 767px) {
  .stickers { height: 420px; }
  .sticker { --px: var(--xm); --py: var(--ym); --pr: var(--rm); font-size: 12px; white-space: normal; width: max-content; max-width: min(19em, 80vw); border-radius: 20px; text-align: left; }
  .sticker--md { font-size: 14px; }
  .sticker--lg { font-size: 17px; max-width: 14em; padding: 12px 20px; border-radius: 24px; }
}

/* ---------- Questions: chip marquee ---------- */
.d-qs { padding-bottom: calc(var(--section-y) - 12px); }
.chips { --mq-gap: 16px; padding-block: 4px 12px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 26px 0 20px;
  border: var(--frame-stroke); border-radius: 16px;
  font: 400 24px/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap;
}
.chip svg { width: 26px; height: 26px; flex: none; }
.chip--light { background: var(--bg); color: var(--ink); }
.chip--dark { background: var(--ink); color: var(--accent); }
.chip--neon { background: var(--accent); color: var(--ink); }
@media (max-width: 599px) {
  .chip { height: 52px; padding: 0 18px 0 14px; font-size: 18px; border-radius: 14px; gap: 10px; }
  .chip svg { width: 20px; height: 20px; }
}

/* ---------- Services ---------- */
.d-services__grid { display: grid; gap: 20px; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 768px) { .d-services__grid { grid-template-columns: 1fr 1fr; } }
.d-tile {
  background: var(--surface); border: var(--frame-stroke); border-radius: var(--radius-md);
  padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start;
}
.d-tile.is-revealed, :where(html:not(.js-motion)) .d-tile { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.d-tile:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.d-tile p { color: var(--ink-soft); }
.d-tile__icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--accent); color: var(--ink);
  transform: rotate(-4deg); transition: transform .55s var(--ease-pop);
}
.d-tile:nth-child(even) .d-tile__icon { background: var(--ink); color: var(--accent); transform: rotate(4deg); }
.d-tile__icon svg { width: 28px; height: 28px; }
@media (hover: hover) { .d-tile:hover .d-tile__icon { transform: rotate(0) scale(1.06); } }
@media (max-width: 599px) {
  .d-tile { grid-template-columns: 48px 1fr; column-gap: 16px; align-items: center; }
  .d-tile__icon { width: 48px; height: 48px; margin: 0; border-radius: 14px; }
  .d-tile__icon svg { width: 24px; height: 24px; }
  .d-tile p { grid-column: 1 / -1; }
}

/* ---------- Pricing (tabs: one-time builds / retainers) ---------- */
.d-pricing__body { margin-top: clamp(28px, 3vw, 40px); }
.d-tabs--pricing { width: min(100%, 600px); margin: 0 auto clamp(48px, 5vw, 72px); }
.d-pricing__nojs { display: none; }
@media (scripting: enabled) { [data-tabs] [role="tabpanel"][data-tab-hidden] { display: none; } }
@media (scripting: none) {
  .d-tabs--pricing { display: none; }
  .d-pricing__nojs { display: block; text-align: center; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 48px; }
  .d-pricing__panel + .d-pricing__panel { margin-top: 80px; }
}
.d-pricing__panel:focus-visible { outline: 2px solid var(--ink); outline-offset: 12px; border-radius: 28px; }
.d-pricing__panel.is-leaving { opacity: 0; transition: opacity .15s ease; }
.d-pricing__panel.is-entering :is(.plan, .d-onepiece-wrap) { animation: tab-rise .45s var(--ease-expo) both; }
.d-pricing__grid > :nth-child(2) { --k: 1; }
.d-onepiece-wrap { --k: 2; }
.d-pricing__panel.is-entering :is(.plan, .d-onepiece-wrap) { animation-delay: calc(var(--k, 0) * 80ms); }
@keyframes tab-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.d-pricing__grid { display: grid; gap: 40px; max-width: 1100px; margin-inline: auto; }
@media (min-width: 900px) { .d-pricing__grid { grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; } }

.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); color: var(--ink);
  border: var(--frame-stroke); border-radius: 28px;
  padding: clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 28px);
}
.plan--featured { background: linear-gradient(200deg, #1b211c, var(--ink) 55%); color: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 2px var(--ink); }
.plan__chip {
  position: relative; overflow: hidden; width: 208px; aspect-ratio: 16 / 9; margin-bottom: 6px;
  display: flex; align-items: flex-end; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 14px;
  background: linear-gradient(135deg, #3a423b 0%, #121512 48%, #262c27 100%); color: var(--bg);
  font: 400 12px/1 var(--font-display); text-transform: uppercase; letter-spacing: 0;
  box-shadow: 0 6px 0 rgba(12, 12, 11, .12);
}
.plan__chip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 45%, transparent 60%); }
.plan__chip img { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; }
.plan--featured .plan__chip { background: linear-gradient(135deg, #B6FFA3 0%, #39FF14 45%, #25CF0B 100%); color: var(--ink); border-color: var(--accent); }
.plan__name { font: 400 clamp(18px, 1.6vw, 22px)/1 var(--font-display); text-transform: uppercase; color: var(--ink-muted); }
.plan--featured .plan__name { color: rgba(238, 243, 236, .6); }
.plan__price { font: 400 clamp(36px, 3.6vw, 50px)/.95 var(--font-display); text-transform: uppercase; letter-spacing: -0.03em; margin-top: -6px; }
.plan__price small { font-size: .5em; letter-spacing: -0.01em; margin-left: 2px; }
.plan__for { color: var(--ink-soft); max-width: 44ch; font-size: 16px; line-height: 1.45; }
.plan--featured .plan__for { color: rgba(238, 243, 236, .7); }
.plan__list { display: grid; gap: 11px; margin: 10px 0 12px; font-size: 16px; line-height: 1.35; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.plan__list li::before {
  content: ""; width: 20px; height: 20px; margin-top: 0; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l2.9 2.9 6-6.2' fill='none' stroke='%2339FF14' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.plan--featured .plan__list li::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l2.9 2.9 6-6.2' fill='none' stroke='%230C0C0B' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.plan .btn { width: 100%; margin-top: auto; }
.plan--featured .btn { box-shadow: 0 4px 0 var(--accent); border-color: var(--ink); }
.plan--featured .btn:hover { box-shadow: 0 6px 0 var(--accent); }
.plan--featured .btn:active { box-shadow: 0 0 0 var(--accent); }
.plan--featured :focus-visible { outline-color: var(--accent); }

/* Weeks badge: 16-point starburst overhanging the top-right corner */
.plan__badge {
  position: absolute; z-index: 2; top: -34px; right: -26px; width: 96px; height: 96px;
  display: grid; place-items: center; transform: rotate(12deg);
  transition: transform .55s var(--ease-pop);
}
.plan__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--accent); stroke: var(--ink); stroke-width: 2px; overflow: visible; }
.plan__badge span { position: relative; display: grid; justify-items: center; font: 400 11px/1 var(--font-display); text-transform: uppercase; color: var(--ink); }
.plan__badge strong { font-size: 22px; font-weight: 400; letter-spacing: -0.03em; margin-bottom: 2px; }
@media (hover: hover) { .plan:hover .plan__badge { transform: rotate(-4deg) scale(1.06); } }
@media (max-width: 599px) {
  .plan__badge strong { font-size: 19px; }
  .plan__chip { width: 176px; }
}
/* Below 768 the cards sit close to the viewport edge: tuck the badge in so it can't widen the page. */
@media (max-width: 767px) {
  .plan__badge { width: 80px; height: 80px; top: -26px; right: -4px; }
}


/* "Need just one piece?" — its own small centred card */
.d-onepiece-wrap { display: grid; justify-items: center; gap: 20px; margin-top: clamp(56px, 6vw, 80px); text-align: center; }
.d-onepiece-wrap__h { font-size: clamp(26px, 2.6vw, 36px); }
.d-onepiece {
  display: grid; gap: 10px; width: min(100%, 400px); padding: 18px 18px 20px; text-align: left;
  background: var(--surface); border: var(--frame-stroke); border-radius: 24px;
}
.d-onepiece__name { font: 400 18px/1.1 var(--font-display); text-transform: uppercase; }
.d-onepiece__price { font: 400 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 8px; }
.d-onepiece .btn { width: 100%; }

/* ---------- Timeline (tabs synced with a scroll-snap track) ---------- */
.d-tl { position: relative; }
.d-tabs--steps { max-width: min(82%, 1072px); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.d-tabs--steps::-webkit-scrollbar { display: none; }
.d-tabs--steps .d-tabs__tab { flex: 1 0 auto; min-height: 34px; padding: 0 16px; font-size: 14px; }
.d-tabs--steps .d-tabs__tab::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; background: #3A3E39; transition: background-color .2s ease; }
.d-tabs--steps .d-tabs__tab:hover::before { background: #4A4F48; }
@media (max-width: 479px) {
  .d-tabs--pricing .d-tabs__tab { padding: 0 8px; font-size: 12.5px; }
}
@media (max-width: 767px) {
  .d-tabs--steps { border-radius: 22px; }
  .d-tabs--steps .d-tabs__tab { flex: 0 0 auto; }
}
.d-tl__track {
  --pad: max(16px, calc((100% - 1240px) / 2));
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 1072px); gap: 24px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px var(--pad) 8px; scroll-padding-inline: var(--pad);
}
@media (min-width: 768px) { .d-tl__track { --pad: max(32px, calc((100% - 1240px) / 2)); } }
.d-tl__track::-webkit-scrollbar { display: none; }
.d-tl__card {
  position: relative; scroll-snap-align: start; min-height: clamp(300px, 26vw, 380px);
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.6vw, 36px); border: var(--frame-stroke); border-radius: 16px;
}
.d-tl__card--light { background: var(--surface); color: var(--ink); }
.d-tl__card--dark { background: linear-gradient(200deg, #1b211c, var(--ink) 60%); color: var(--bg); }
.d-tl__card--neon { background: var(--accent); color: var(--ink); }
.d-tl__card:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.d-tl__num { position: absolute; top: 18px; right: 26px; font: 400 72px/1 var(--font-display); letter-spacing: -0.04em; color: rgba(12, 12, 11, .1); }
.d-tl__card--dark .d-tl__num { color: rgba(238, 243, 236, .12); }
.d-tl__card--neon .d-tl__num { color: rgba(12, 12, 11, .16); }
.d-tl__title { font-size: clamp(30px, 3.6vw, 52px); padding-right: 120px; }
.d-tl__card--dark .d-tl__title { color: var(--bg); }
.d-tl__lead { margin-top: auto; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.d-tl__body { max-width: 48ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; color: var(--ink-soft); }
.d-tl__card--dark .d-tl__body { color: rgba(238, 243, 236, .66); }
.d-tl__card--neon .d-tl__body { color: rgba(12, 12, 11, .72); }
.d-tl__foot { position: relative; display: flex; align-items: center; margin-top: 28px; }
.d-tl__burst {
  position: absolute; z-index: 2; left: calc(min(82%, 1072px) - 78px); top: -96px;
  width: 136px; height: 136px; display: grid; place-items: center; transform: rotate(-10deg); pointer-events: none;
}
.d-tl__burst svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--accent); stroke: var(--ink); stroke-width: 2px; overflow: visible; }
.d-tl__burst span { position: relative; display: grid; justify-items: center; max-width: 9ch; text-align: center; font: 400 12px/1 var(--font-display); text-transform: uppercase; }
.d-tl__burst strong { font-size: 30px; font-weight: 400; letter-spacing: -0.04em; margin-bottom: 2px; }
@media (max-width: 767px) {
  .d-tl__burst { left: auto; right: 12px; top: -64px; width: 104px; height: 104px; }
  .d-tl__burst strong { font-size: 24px; }
  .d-tl__burst span { font-size: 10px; }
  .d-tl__track { grid-auto-columns: 86%; gap: 14px; }
  .d-tl__title { font-size: 26px; padding-right: 52px; }
  .d-tl__num { font-size: 44px; top: 16px; right: 16px; }
}

/* ---------- Cross-sell (inset panel) ---------- */
.d-cross { position: relative; overflow: hidden; background: #060B08; color: #fff; margin-block: 0; }
.d-cross::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(57,255,20,.35), transparent 65%); pointer-events: none; }
.d-cross__inner { position: relative; z-index: 1; display: grid; gap: 28px; align-items: center; }
.d-cross__inner > div { display: grid; gap: 12px; }
.d-cross h2 { color: #fff; }
.d-cross p { color: rgba(255,255,255,.7); max-width: 48ch; }
.d-cross .d-label { color: #39FF14; }
.d-cross :focus-visible { outline-color: #39FF14; }
.d-cross .btn { background: #39FF14; color: #041006; border-color: #39FF14; box-shadow: 0 4px 0 rgba(57,255,20,.35); justify-self: start; }
.d-cross .btn:hover { box-shadow: 0 6px 0 rgba(57,255,20,.35); }
.d-cross .btn .btn__icon { background: #041006; color: #39FF14; }
@media (min-width: 900px) { .d-cross__inner { grid-template-columns: 1.4fr auto; } .d-cross .btn { justify-self: end; } }
/* The 15px label is wider than a phone panel: full-width button, and the label may wrap. */
@media (max-width: 599px) {
  .d-cross .btn { justify-self: stretch; padding: 12px 8px 12px 16px; white-space: normal; text-align: center; font-size: 14px; }
}

/* ---------- FAQ: head left (sticky), questions right at >=1024; stacked and centred below ---------- */
.d-faq__head { display: grid; gap: 16px; justify-items: center; text-align: center; }
.d-faq__lede { max-width: 36ch; color: var(--ink-soft); font-weight: 500; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; letter-spacing: -0.01em; }
.d-faq__head .btn { margin-top: 8px; }
.d-faq .faq-list { margin-top: clamp(32px, 4vw, 52px); max-width: 900px; margin-inline: auto; gap: 10px; }
@media (max-width: 1023px) { .d-faq__head .btn { display: none; } }
@media (min-width: 1024px) {
  .d-faq__layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 88px); align-items: start; }
  .d-faq__head { position: sticky; top: 112px; justify-items: start; text-align: left; }
  .d-faq__head h2 { max-width: 10ch; }
  .d-faq .faq-list { margin: 0; max-width: none; }
}
.d-faq details {
  position: relative; overflow: hidden;
  background: var(--surface); border: 2px solid var(--ink); border-radius: 16px;
  padding-right: 56px;
}
.d-faq details::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 56px;
  background: var(--accent); border-left: 2px solid var(--ink); transition: background-color .2s ease;
}
.d-faq summary {
  min-height: 56px; padding: 16px 20px 16px 22px;
  font: 400 clamp(15px, 1.4vw, 18px)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em;
}
.d-faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; border-radius: 12px; }
@media (hover: hover) { .d-faq details:hover::after { background: #62FF45; } }
.d-faq .faq-list .faq-icon {
  position: absolute; z-index: 1; right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%; background: var(--ink); transform: none; transition: top .35s var(--ease-out);
}
.d-faq .faq-icon::before, .d-faq .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; border-radius: 2px;
  background: var(--accent); transform: translate(-50%, -50%); transition: transform .35s var(--ease-out);
}
.d-faq .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.d-faq details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.d-faq details p { padding: 0 22px 20px; margin-top: -2px; color: var(--ink-soft); max-width: 64ch; }
/* Expand/collapse height (progressive enhancement) */
@supports selector(::details-content) {
  .d-faq { interpolate-size: allow-keywords; }
  .d-faq details::details-content { block-size: 0; overflow-y: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .d-faq details[open]::details-content { block-size: auto; }
}

/* Ask AI about us */
.d-askai { display: grid; justify-items: center; gap: 24px; margin-top: clamp(64px, 7vw, 96px); text-align: center; }
.d-askai__h { font-size: clamp(28px, 3vw, 42px); }
.d-askai__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 28px; background: var(--ink); }
.d-askai__list a {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px;
  border-radius: var(--radius-full); background: var(--bg); color: var(--ink);
  font: 400 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.d-askai__list svg { width: 20px; height: 20px; transition: transform .55s var(--ease-pop); }
.d-askai__list a:hover { background: var(--accent); }
@media (hover: hover) { .d-askai__list a:hover svg { transform: rotate(-12deg) scale(1.12); } }
.d-askai__list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 599px) {
  .d-askai__list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 360px; border-radius: 26px; }
  .d-askai__list li:last-child { grid-column: 1 / -1; }
  .d-askai__list a { width: 100%; justify-content: center; }
}

/* ---------- Final CTA (neon inset panel, ribbons, bursts) ---------- */
.d-final {
  position: relative; display: flex; flex-direction: column;
  background: var(--accent); color: var(--ink);
  padding-block: clamp(64px, 7.5vw, 104px) clamp(120px, 12vw, 176px);
  margin-top: 0; text-align: center;
}
.d-final h2 { color: var(--ink); font-size: clamp(40px, 7vw, 96px); max-width: 12ch; margin: 0 auto 20px; }
.d-final :focus-visible { outline-color: var(--ink); }
.d-final__inner { position: relative; z-index: 1; }
.d-final .start-inline h3 { color: var(--ink); }
.d-final__lede { max-width: 44ch; margin: 0 auto clamp(28px, 3vw, 40px); font-size: clamp(17px, 1.45vw, 20px); font-weight: 500; line-height: 1.4; color: rgba(12, 12, 11, .72); }
.d-final__ribbons { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 32px; pointer-events: none; }
.ribbon {
  position: absolute; height: 64px; display: flex; align-items: center;
  -webkit-mask-image: none; mask-image: none;
  --mq-gap: 0px;
}
.ribbon .marquee__track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; align-items: center; }
.ribbon li { padding-inline: 18px; font: 400 40px/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; }
.ribbon .ribbon__plus { padding-inline: 4px; font-size: 34px; }
/* Both ribbons are centred on one crossing point, low on the right. */
.ribbon--ink, .ribbon--light { left: 84%; top: 87%; width: 2600px; margin: -32px 0 0 -1300px; }
.ribbon--ink { background: var(--ink); color: var(--bg); transform: rotate(-24deg); }
.ribbon--light { background: var(--bg); color: var(--ink); border-block: 3px solid var(--ink); transform: rotate(-9deg); }
.d-final__burst { position: absolute; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.d-final__burst svg.d-final__star { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ink); stroke: var(--accent); stroke-width: 2px; overflow: visible; }
.d-final__burst--go { top: -42px; right: clamp(24px, 4vw, 64px); width: 110px; height: 110px; }
.d-final__burst--go .d-final__star { animation: d-spin 18s linear infinite; }
.d-final__burst--go .d-final__icon { position: relative; width: 40px; height: 40px; color: var(--accent); }
.d-final__burst--logo { left: -12px; bottom: -72px; width: 200px; height: 200px; transform: rotate(-8deg); }
.d-final__burst--logo img { position: relative; width: 80px; height: 80px; }
@media (max-width: 767px) {
  .d-final { padding-block: 72px 0; }
  .d-final__ribbons { order: 2; position: relative; inset: auto; height: 210px; margin-top: 40px; border-radius: 0 0 32px 32px; }
  .ribbon { height: 48px; }
  .ribbon li { font-size: 26px; padding-inline: 12px; }
  .ribbon .ribbon__plus { font-size: 22px; }
  .ribbon--ink, .ribbon--light { left: 62%; top: 52%; width: 1400px; margin: -24px 0 0 -700px; }
  .d-final__burst--go { width: 84px; height: 84px; top: -30px; right: 16px; }
  .d-final__burst--go .d-final__icon { width: 30px; height: 30px; }
  .d-final__burst--logo { width: 116px; height: 116px; left: -6px; bottom: -40px; }
  .d-final__burst--logo img { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .d-final__burst--go .d-final__star { animation: none !important; } }

/* Inline enquiry flow (start.js mounts into [data-inline-start]).
   forms.css styles <body>, so it is not loaded here; everything is scoped. */
.start-inline {
  --err: #B91C1C;
  max-width: 640px; margin: clamp(8px, 2vw, 16px) auto 0; text-align: left;
  background: var(--surface); border: var(--stroke); border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(20px, 5vw, 44px);
}
.start-inline__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 16px; margin-bottom: clamp(20px, 3vw, 28px); border-bottom: 2px dashed var(--line);
}
.start-inline__head .d-label:first-child { display: inline-flex; align-items: center; gap: 8px; }
.start-inline__head .d-label:first-child::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--ink);
}
.start-inline__progress { padding: 6px 10px; border: 2px solid var(--ink); border-radius: var(--radius-full); background: var(--bg); }
.start-inline__progress:empty { display: none; }
.start-inline__noscript { margin-bottom: 20px; color: var(--ink-soft); }

.start-inline .form-stage h3 {
  font-size: clamp(22px, 3.2vw, 32px); line-height: 1.02; margin: 0 0 12px; outline: none;
}
.start-inline .form-stage p { color: var(--ink-soft); margin: 0 0 24px; }
.start-inline .form-stage h3 + label, .start-inline .form-stage h3 + .choice { margin-top: 20px; }

/* Fields */
.start-inline label { display: block; margin-bottom: 20px; }
.start-inline label > span { display: block; font: 500 15px/1.4 var(--font-body); color: var(--ink); margin-bottom: 8px; }
.start-inline .hint { font-weight: 400; font-size: 13px; line-height: 1.45; color: var(--ink-muted); margin: -2px 0 10px; }
.start-inline .req { color: var(--err); margin-left: 2px; }
.start-inline input[type="text"], .start-inline input[type="email"], .start-inline textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 16px;
  border: 2px solid var(--ink); border-radius: 12px; background: #FFFFFF; color: var(--ink);
  font: 400 16px/1.4 var(--font-body);
}
.start-inline textarea { min-height: 120px; resize: vertical; }
.start-inline input:focus-visible, .start-inline textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Choice rows */
.start-inline .choice {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 56px; margin-bottom: 10px; padding: 14px 18px;
  border: 2px solid var(--ink); border-radius: 12px; background: #FFFFFF; color: var(--ink);
  font: 500 16px/1.35 var(--font-body); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.start-inline .choice::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; background: transparent;
}
.start-inline .choice input { position: absolute; opacity: 0; pointer-events: none; }
.start-inline .choice:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.start-inline .choice.selected { background: var(--ink); color: var(--accent); }
.start-inline .choice.selected::before { background: var(--accent); box-shadow: inset 0 0 0 3px var(--ink); }
.start-inline .choice:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Actions */
.start-inline .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.start-inline .secondary + .primary { margin-left: auto; }
/* Call screen without a booking link: two stacked full-width buttons. */
.start-inline .actions:has(.primary + .primary) { flex-direction: column; align-items: stretch; }
.start-inline button {
  cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.start-inline button.primary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 26px;
  border: 2px solid var(--ink); border-radius: var(--radius-full); background: var(--ink); color: var(--accent);
  font: 400 14px/1.2 var(--font-display); text-align: center; text-transform: uppercase; letter-spacing: 0.01em;
  transition: transform .15s ease, box-shadow .2s ease;
}
.start-inline button.primary:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent), 4px 4px 0 2px var(--ink); }
.start-inline button.primary:active:not(:disabled) { transform: none; box-shadow: none; }
.start-inline button.secondary {
  min-height: 44px; padding: 10px 4px; border: 0; background: none; color: var(--ink-soft);
  font: 500 15px/1.3 var(--font-body); text-align: left;
}
.start-inline button.secondary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.start-inline button:disabled { opacity: 0.35; cursor: not-allowed; }
.start-inline button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Errors */
.start-inline .form-error {
  margin: 0 0 16px; padding: 12px 16px; border: 2px solid var(--err); border-radius: 12px;
  background: #FEF2F2; color: #991B1B; font-size: 14px; font-weight: 500;
}

/* Call screen */
.start-inline .form-stage ul { display: grid; gap: 12px; margin: 0 0 4px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 16px; background: var(--bg); }
.start-inline .form-stage li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink); line-height: 1.45; }
.start-inline .form-stage li::before {
  content: ""; width: 22px; height: 22px; margin-top: -1px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230C0C0B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

@media (max-width: 479px) {
  .start-inline .actions { gap: 8px; }
  .start-inline button.primary { order: -1; flex: 1 1 100%; margin-left: 0; padding: 12px 18px; }
  .start-inline button.secondary { flex: 1 1 100%; text-align: center; }
  .start-inline .secondary + .primary { margin-left: 0; }
}

/* ---------- Footer (dark inset panel + halftone wordmark) ---------- */
.d-footer { margin-top: var(--section-y); padding: 0 16px 16px; }
.d-footer__panel {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(256deg, #1a211b, #0C0C0B 70%); color: var(--bg);
  padding-top: clamp(40px, 4.5vw, 64px);
}
.d-footer__top { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .d-footer__top { grid-template-columns: 1fr auto; } }
.d-footer .brand { color: var(--bg); font-size: 18px; }
.d-footer .brand__logo { height: 32px; }
.d-footer__tagline { margin-top: 28px; max-width: 21ch; font: 400 clamp(26px, 2.8vw, 40px)/.98 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; text-wrap: balance; }
.d-footer__cols { display: grid; grid-template-columns: repeat(2, auto); gap: 32px clamp(40px, 6vw, 96px); }
.d-footer__cols .d-label { color: rgba(238, 243, 236, .5); margin-bottom: 18px; }
.d-footer__cols ul { display: grid; gap: 14px; }
.d-footer__cols a { display: inline-flex; font: 400 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; transition: color .2s ease; }
.d-footer__cols a:hover { color: var(--accent); }
.d-footer :focus-visible { outline-color: var(--accent); }
.d-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(56px, 9vw, 136px); font: 400 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: rgba(238, 243, 236, .5); }
.d-footer__meta small { font-size: inherit; }
.d-footer__meta a { display: inline-flex; color: var(--bg); }
.d-footer__wordmark { display: block; width: calc(100% - 32px); max-width: none; height: auto; margin: clamp(16px, 2vw, 28px) auto calc(-1 * clamp(14px, 2.8vw, 44px)); pointer-events: none; }
@media (max-width: 599px) {
  .d-footer__cols { grid-template-columns: 1fr; }
  .d-footer__cols a { font-size: 18px; }
  .d-footer__wordmark { width: calc(100% - 24px); margin-bottom: -6px; }
}

/* Links inside running text */
[data-theme="design"] p a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }

/* Very narrow phones: the two pricing tabs must fit inside the track
   (flex items won't shrink below their nowrap label otherwise). */
@media (max-width: 359px) {
  .d-tabs--pricing .d-tabs__tab { min-width: 0; padding: 0 6px; font-size: 11px; letter-spacing: -0.01em; }
}

/* ---------- Thai pages ----------
   Archivo Black has one (heavy) weight and its rules say font-weight 400, so
   Thai, falling through to Noto Sans Thai, came out regular next to heavy
   Latin. Noto Sans Thai is loaded as a variable font: push its weight axis.
   Archivo Black isn't variable, so the Latin is untouched. */
html[lang="th"][data-theme="design"] :is(
  h1, h2, h3, h4, .btn, .tag, .d-tabs__tab, .sticker, .chip, .plan__chip, .plan__name,
  .plan__price, .plan__badge span, .d-onepiece__name, .d-onepiece__price, .d-tl__burst span,
  .d-faq summary, .d-askai__list a, .ribbon li, .start-inline button.primary,
  .d-footer__tagline, .d-footer__cols a
) { font-variation-settings: "wght" 800; }
