/* =========================================================
   StoryPhone — component styles
   Colours are sampled from the official logo (brown outline,
   sand badge, mascot blue) plus navy/action blue for UI.
   ========================================================= */
:root {
  --navy: #13294B;
  --ink: #14213A;
  --action: #1F6FB8;
  --action-dk: #185A97;
  --sky: #DDF2FF;
  --sky-2: #EEF8FF;
  --mascot: #699BCC;
  --paper: #FAFCFF;
  --brown: #725732;
  --brown-dk: #543C1D;
  --sand: #F0D3B1;
  --sand-2: #FBF1E4;
  --line: #06C755;
  --line-dk: #05A948;
  --ok: #168A50;
  --muted: #5B6B82;
  --rule: #DCE6F0;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: 16px;
  --header-h: 72px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --header-h: 84px; --gutter: 40px; } }

body { background: var(--paper); color: var(--ink); font-family: "IBM Plex Sans Thai", "Noto Sans Thai", sans-serif; }
.proto-bar { padding: 7px 16px; text-align: center; font-size: 13px; font-weight: 500; color: var(--brown-dk); background: var(--sand-2); border-bottom: 1px dashed var(--sand); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
::selection { background: var(--sand); color: var(--brown-dk); }

.container-x { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 8px; }

/* ---------- icons ---------- */
.ic, .ic-sm, .ic-lg, .ic-xl,
.check-dot svg, .qt-icon svg, .trust-ic, .svc-ic svg, .svc-points svg, .social-btn svg, .dlg-badge svg {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 26px; height: 26px; }
.ic-xl { width: 40px; height: 40px; stroke-width: 1.6; }

/* ---------- type ---------- */
.h2 {
  font-family: Prompt, sans-serif; font-weight: 700; color: var(--navy);
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.22; letter-spacing: -.01em;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-weight: 600; font-size: 15px; color: var(--brown);
}
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--brown); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.75; }
/* brushed underline taken from the logo's motion stroke */
.title-swash {
  display: block; width: 68px; height: 10px; margin-top: 14px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 10'%3E%3Cpath d='M3 6.5C20 3 44 2.5 65 4.5' stroke='%23F0B46A' stroke-width='5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- buttons ---------- */
.btn {
  --btn-shadow: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1.25; text-align: left;
  border: 2px solid transparent; cursor: pointer; user-select: none;
  box-shadow: 0 4px 0 var(--btn-shadow);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--btn-shadow); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--btn-shadow); transition-duration: .06s; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-xl { min-height: 64px; padding: 12px 26px; font-size: 18px; border-radius: 14px; }
.btn-primary { background: var(--navy); color: #fff; --btn-shadow: #0A1830; }
.btn-primary:hover { background: #1A3763; }
.btn-line { background: var(--line); color: #fff; --btn-shadow: #04913E; }
.btn-line:hover { background: var(--line-dk); }
.btn-line-outline { background: #fff; color: var(--navy); border-color: var(--navy); --btn-shadow: var(--navy); }
.btn-line-outline .ic { color: var(--line-dk); }
.btn-line-outline:hover { background: #F2FBF5; }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: none; padding-inline: 12px; }
.btn-ghost:hover { background: var(--sky-2); box-shadow: none; transform: none; }
.btn-ghost:active { transform: none; box-shadow: none; }
.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-arrow { transition: transform .2s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: var(--navy);
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--sky-2); }

.link-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--action); border-bottom: 2px solid transparent;
  transition: gap .2s var(--ease-out), border-color .2s;
}
.link-cta:hover { gap: 12px; border-color: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(19,41,75,.5); }
.brand-link { display: block; position: relative; }
.brand-logo {
  width: auto; height: 66px; margin-top: 2px;
  transition: height .3s var(--ease-out), margin .3s var(--ease-out);
}
@media (min-width: 1024px) {
  /* the badge overhangs the header like a sticker, then tucks in on scroll */
  .brand-logo { height: 104px; margin-top: 30px; margin-bottom: -10px; filter: drop-shadow(0 6px 10px rgba(84,60,29,.18)); }
  .is-scrolled .brand-logo { height: 70px; margin-top: 4px; margin-bottom: 0; }
}
.nav-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-weight: 500; font-size: 15.5px; color: var(--ink); border-radius: 8px; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px;
  background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--action); }
.nav-link.is-active { color: var(--navy); font-weight: 600; }
.nav-link.is-active::after, .nav-link:hover::after { transform: scaleX(1); }

.mobile-nav { border-top: 1px solid var(--rule); background: #fff; overflow: hidden; }
.mobile-nav-list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-family: Prompt, sans-serif; font-weight: 600; font-size: 19px; color: var(--navy);
  border-bottom: 1px solid var(--rule);
}
.mobile-nav-list .ic { color: var(--mascot); }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 5vw, 56px); padding-bottom: 8px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-curve { position: absolute; inset: 0; width: 100%; height: calc(100% - 70px); color: var(--sky); }
.hero-arc { position: absolute; width: 760px; right: -120px; top: -120px; color: rgba(31,111,184,.18); }
@media (max-width: 1023px) { .hero-curve { height: calc(100% - 40px); } }

.hero-grid { display: grid; gap: 8px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 24px; min-height: 520px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 8px;
  background: #fff; border: 1.5px solid var(--sand); color: var(--brown); font-weight: 600; font-size: 14px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 3px rgba(6,199,85,.2); }
.hero-title {
  margin-top: 18px; font-family: Prompt, sans-serif; font-weight: 800; color: var(--navy);
  font-size: clamp(36px, 6.3vw, 68px); line-height: 1.16; letter-spacing: -.015em;
}
.hero-line { display: block; }
.hero-line-2 { color: var(--action); }
.hero-title .sep { font-style: normal; color: var(--sand); margin-inline: .16em; -webkit-text-stroke: 2px var(--brown); paint-order: stroke fill; }
.hero-sub { margin-top: 16px; font-size: clamp(18px, 2vw, 21px); color: var(--ink); font-weight: 500; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.hero-checks li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.check-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--action); color: #fff; }
.check-dot svg { width: 15px; height: 15px; stroke-width: 3; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-visual { position: relative; }
@media (max-width: 639px) {
  .hero-ctas .btn { flex: 1 1 100%; justify-content: flex-start; }
  .hero-ctas { margin-top: 26px; gap: 12px; }
  .hero-stage { max-width: 360px; margin-top: 8px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .hero-stage { max-width: 520px; } }
.hero-stage { position: relative; max-width: 640px; margin-inline: auto; }
.hero-halo {
  position: absolute; left: 50%; top: 48%; width: 82%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: var(--sand); opacity: .55;
}
.hero-img { position: relative; width: 100%; transform-origin: 60% 95%; will-change: transform; }

.quick-tiles { display: grid; gap: 12px; margin-top: clamp(16px, 3vw, 8px); position: relative; z-index: 2; }
@media (min-width: 768px) { .quick-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.quick-tile {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 18px;
  background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-md);
  transition: border-color .2s, transform .25s var(--ease-out);
}
.quick-tile b { display: block; font-family: Prompt, sans-serif; font-weight: 600; font-size: 17px; color: var(--navy); }
.quick-tile small { display: block; font-size: 14px; color: var(--muted); }
.quick-tile:hover { border-color: var(--mascot); transform: translateY(-3px); }
.qt-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--sky-2); color: var(--action); flex: none; }
.qt-icon svg { width: 26px; height: 26px; }
.qt-chev { margin-left: auto; color: var(--mascot); }
.quick-tile--primary { background: var(--navy); border-color: var(--navy); }
.quick-tile--primary b { color: #fff; }
.quick-tile--primary small { color: #B8CBE3; }
.quick-tile--primary .qt-icon { background: rgba(255,255,255,.12); color: #fff; }
.quick-tile--primary:hover { border-color: var(--navy); }
@media (min-width: 768px) { .quick-tile--primary { display: none; } .quick-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quick-tiles { grid-template-columns: repeat(2, minmax(0, 300px)); margin-top: -24px; } }

/* ---------- trust strip ---------- */
.trust { padding-top: 36px; }
.trust-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff;
  border: 1.5px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
}
@media (min-width: 1024px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px 18px; }
.trust-item + .trust-item { border-left: 1px solid var(--rule); }
@media (max-width: 1023px) {
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (min-width: 1024px) { .trust-item { padding: 26px 28px; } }
.trust-ic { width: 34px; height: 34px; color: var(--action); flex: none; stroke-width: 1.8; }
.trust-item b { display: block; font-family: Prompt, sans-serif; font-weight: 600; font-size: 17px; color: var(--navy); }
.trust-item span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
@media (max-width: 420px) { .trust-item { flex-direction: column; gap: 8px; padding: 18px 16px; } }

/* ---------- estimator ---------- */
.estimate-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .estimate-grid { grid-template-columns: 5fr 7fr; gap: 56px; } }
.estimate-intro .lead { margin-top: 18px; }
.est-points { display: grid; gap: 10px; margin-top: 22px; }
.est-points li { display: flex; gap: 10px; align-items: center; font-weight: 500; color: var(--navy); }
.est-points .ic { color: var(--action); }
.estimate-mascot { display: none; width: 72%; max-width: 340px; margin: 18px 0 0 10%; }
@media (min-width: 1024px) { .estimate-mascot { display: block; } }

.est-card {
  position: relative; background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: 0 30px 60px -48px rgba(19,41,75,.55);
}
.est-head { padding: 22px 22px 0; }
@media (min-width: 640px) { .est-head { padding: 28px 32px 0; } }
.est-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.est-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.est-steps span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: Prompt, sans-serif; font-weight: 600; font-size: 15px;
  background: var(--sky-2); color: var(--muted); border: 2px solid transparent;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.est-steps em { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 500; }
.est-steps li.is-current span { background: #fff; color: var(--navy); border-color: var(--navy); transform: scale(1.08); }
.est-steps li.is-current em { color: var(--navy); font-weight: 600; }
.est-steps li.is-done span { background: var(--navy); color: #fff; }
.est-progress { height: 4px; border-radius: 4px; background: var(--sky-2); margin-top: 16px; overflow: hidden; }
.est-progress i { display: block; height: 100%; width: 0; background: var(--action); border-radius: inherit; transition: width .5s var(--ease-out); }

.est-body { position: relative; padding: 22px; min-height: 380px; }
@media (min-width: 640px) { .est-body { padding: 26px 32px; } }
.est-panel { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.est-panel.is-active { display: block; }
.est-q { font-family: Prompt, sans-serif; font-weight: 600; font-size: 21px; color: var(--navy); margin-bottom: 18px; }
.est-q-sub { display: block; font-family: "IBM Plex Sans Thai", sans-serif; font-weight: 500; font-size: 15px; color: var(--muted); margin-top: 2px; }

.brand-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .brand-pick { grid-template-columns: repeat(3, 1fr); } }
.pick {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  border: 1.5px solid var(--rule); border-radius: 14px; background: #fff; text-align: left;
  font-weight: 600; color: var(--navy);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease-out);
}
.pick:hover { border-color: var(--mascot); background: var(--sky-2); }
.pick:active { transform: scale(.98); }
.pick[aria-pressed="true"] { border-color: var(--navy); background: var(--sky-2); box-shadow: inset 0 0 0 1px var(--navy); }
.pick-thumb { width: 26px; height: 52px; flex: none; }
.pick-name { font-family: Prompt, sans-serif; font-size: 17px; }
.pick small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
@media (max-width: 400px) { .brand-pick .pick small { display: none; } .est-steps em { font-size: 12px; } .brand-pick .pick-thumb { height: 88px; } }

.opt-list { display: grid; gap: 8px; max-height: 330px; overflow-y: auto; padding-right: 4px; }
@media (min-width: 640px) { .opt-list { grid-template-columns: 1fr 1fr; } }
.opt-list .pick { min-height: 52px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row .pick { min-width: 110px; justify-content: center; font-family: Prompt, sans-serif; font-size: 18px; }

.cond-list { display: grid; gap: 10px; }
.cond-list .pick { align-items: flex-start; padding: 14px 16px; }
.cond-grade {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  font-family: Prompt, sans-serif; font-weight: 700; background: var(--sand-2); color: var(--brown); border: 1.5px solid var(--sand);
}

.est-loading { display: grid; justify-items: center; gap: 18px; padding: 50px 0; color: var(--muted); font-weight: 500; }
.scan-phone { position: relative; width: 58px; height: 100px; border-radius: 12px; border: 3px solid var(--navy); overflow: hidden; background: var(--sky-2); }
.scan-phone i { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: linear-gradient(transparent, rgba(31,111,184,.45)); border-bottom: 2px solid var(--action); animation: scan 1s ease-in-out infinite alternate; }
@keyframes scan { to { transform: translateY(80px); } }

.est-result .demo-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 700; color: var(--brown-dk); background: var(--sand-2); border: 1px dashed var(--brown);
}
.result-device { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.result-device img { width: 44px; }
.result-device b { display: block; font-family: Prompt, sans-serif; font-size: 20px; color: var(--navy); }
.result-device span { color: var(--muted); font-size: 15px; }
.result-price {
  margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--sky-2); border: 1.5px solid #CBE6F8;
}
.result-price small { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.result-price strong { display: block; font-family: Prompt, sans-serif; font-weight: 800; font-size: clamp(30px, 5vw, 40px); color: var(--navy); line-height: 1.2; margin-top: 4px; }
.result-price p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.result-contact { margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--sand-2); border: 1.5px solid var(--sand); }
.result-contact strong { font-family: Prompt, sans-serif; font-size: 22px; color: var(--brown-dk); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.result-actions .btn-line { flex: 1 1 240px; }

.est-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px 18px; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .est-foot { padding: 14px 32px 20px; } }
.est-note { font-size: 13px; color: var(--muted); text-align: right; }

/* ---------- services ---------- */
.services { background: linear-gradient(var(--paper), #fff); }
.svc-grid { display: grid; gap: 18px; }
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; gap: 22px; }
  .svc--feature { grid-row: span 2; }
}
.svc {
  position: relative; overflow: hidden; background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg);
  transition: border-color .25s;
}
.svc:hover { border-color: var(--mascot); }
.svc:target, .svc.is-highlight { border-color: var(--action); box-shadow: 0 0 0 4px rgba(31,111,184,.14); }
.svc-media { overflow: hidden; background: var(--sky); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.svc:hover .svc-media img { transform: scale(1.03) translateY(-4px); }
.svc-body { position: relative; padding: 22px 22px 24px; }
@media (min-width: 640px) { .svc-body { padding: 26px 30px 30px; } }
.svc-ic {
  position: absolute; top: -28px; left: 22px; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 16px; background: #fff; color: var(--action); border: 1.5px solid var(--rule);
}
@media (min-width: 640px) { .svc-ic { left: 30px; } }
.svc-ic svg { width: 30px; height: 30px; }
.svc h3 { margin-top: 26px; font-family: Prompt, sans-serif; font-weight: 700; font-size: 24px; color: var(--navy); }
.svc-body > p { margin-top: 4px; color: var(--muted); font-size: 16.5px; }
.svc .link-cta { margin-top: 12px; }

.svc--feature .svc-media { aspect-ratio: 16 / 10; }
.svc--feature h3 { font-size: clamp(26px, 3vw, 32px); }
.svc-points { display: grid; gap: 10px; margin: 18px 0 22px; }
.svc-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.svc-points svg { width: 20px; height: 20px; color: var(--ok); margin-top: 3px; flex: none; stroke-width: 2.6; }

.svc--side { display: grid; }
.svc--side .svc-media { aspect-ratio: 16 / 9; }
@media (min-width: 640px) and (max-width: 1023px) { .svc--side { grid-template-columns: 1fr 1fr; } .svc--side .svc-media { aspect-ratio: auto; } }
@media (min-width: 1024px) {
  .svc--side { grid-template-columns: 1fr 1.15fr; }
  .svc--side .svc-media { aspect-ratio: auto; }
  .svc--side .svc-ic { top: 24px; left: auto; right: 20px; width: 48px; height: 48px; }
  .svc--side h3 { margin-top: 4px; padding-right: 54px; font-size: 22px; }
  .svc--side .svc-body { padding: 26px 24px; display: flex; flex-direction: column; }
  .svc--side .link-cta { margin-top: auto; padding-top: 10px; align-self: flex-start; }
}
.repair-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  min-height: 36px; padding: 4px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--rule); color: var(--navy); background: #fff; transition: all .2s;
}
.tag:hover { border-color: var(--mascot); }
.tag[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- brands ---------- */
.brands { background: #fff; }
.brand-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 14px;
  max-width: 1280px; margin-inline: auto; padding: 4px var(--gutter) 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.brand-rail::-webkit-scrollbar { display: none; }
@media (max-width: 1023px) { .brand-rail { grid-auto-columns: 46%; } }
@media (max-width: 560px) { .brand-rail { grid-auto-columns: 64%; } }
.brand-card {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column; align-items: stretch;
  padding: 18px 18px 0; border-radius: var(--r-lg); background: var(--sky-2); border: 1.5px solid transparent;
  overflow: hidden; text-align: left; transition: border-color .25s, background-color .25s;
  min-height: 300px;
}
.brand-card:hover { border-color: var(--mascot); background: var(--sky); }
.brand-word { font-family: Prompt, sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: .01em; }
.brand-card small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.brand-phones { position: relative; height: 200px; margin-top: auto; }
.brand-phones img { position: absolute; bottom: -26px; width: 92px; transition: transform .5s var(--ease-out); }
.brand-phones img:first-child { left: 50%; translate: -88% 0; rotate: -6deg; }
.brand-phones img:last-child { left: 50%; translate: -12% 0; rotate: 5deg; bottom: -40px; }
.brand-card:hover .brand-phones img:first-child { transform: translateY(-10px); }
.brand-card:hover .brand-phones img:last-child { transform: translateY(-6px); }
.brand-go {
  position: absolute; right: 14px; top: 16px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--action); transition: transform .25s var(--ease-out);
}
.brand-card:hover .brand-go { transform: translateX(3px); }

/* ---------- shop ---------- */
.shop-title { display: flex; align-items: flex-end; gap: 14px; }
.shop-mascot { width: 92px; flex: none; margin-bottom: -6px; }
@media (min-width: 768px) { .shop-mascot { width: 128px; } }
.shop-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: #fff; color: var(--navy); border: 1.5px solid var(--rule); transition: all .2s;
}
.chip:hover { border-color: var(--mascot); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.demo-banner {
  margin-bottom: 20px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--brown-dk);
  background: var(--sand-2); border: 1px dashed var(--brown);
}
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1200px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
.product { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.product:hover { border-color: var(--mascot); }
.product-media { position: relative; display: grid; place-items: center; height: 170px; background: var(--sky-2); }
.product-media img { height: 140px; width: auto; transition: transform .5s var(--ease-out); }
.product:hover .product-media img { transform: translateY(-6px) rotate(-2deg); }
.product-grade { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: #fff; color: var(--brown); border: 1px solid var(--sand); }
.product-body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.product-body h3 { font-family: Prompt, sans-serif; font-weight: 600; font-size: 16.5px; color: var(--navy); line-height: 1.35; }
.product-body p { font-size: 13.5px; color: var(--muted); }
.product-price { margin-top: auto; padding-top: 8px; font-family: Prompt, sans-serif; font-weight: 700; font-size: 19px; color: var(--navy); }
.product-price small { font-family: "IBM Plex Sans Thai", sans-serif; font-weight: 500; font-size: 12px; color: var(--brown); display: block; }
.product .btn { margin: 0 14px 14px; min-height: 44px; font-size: 15px; padding: 6px 12px; }

/* ---------- how it works ---------- */
.how { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.12);
}
.how .h2 { color: #fff; }
.how-head { max-width: 720px; }
.how-steps { position: relative; display: grid; gap: 0; margin-top: 44px; counter-reset: step; }
@media (min-width: 1024px) {
  .how-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
  .how-steps::before {
    content: ""; position: absolute; left: 40px; right: 12%; top: 40px; height: 0; border-top: 2px dashed rgba(240,211,177,.45);
  }
}
.how-step { position: relative; display: flex; gap: 18px; padding-bottom: 28px; }
@media (max-width: 1023px) {
  .how-step:not(:last-child)::before { content: ""; position: absolute; left: 39px; top: 84px; bottom: 6px; border-left: 2px dashed rgba(240,211,177,.45); }
}
@media (min-width: 1024px) { .how-step { flex-direction: column; padding: 0; } }
.how-num {
  position: relative; display: grid; place-items: center; width: 80px; height: 80px; flex: none;
  font-family: Prompt, sans-serif; font-weight: 800; font-size: 42px; line-height: 1;
  color: var(--sand); background: var(--navy);
  border: 3px solid var(--sand); border-radius: 22px;
  box-shadow: 5px 5px 0 var(--brown);
}
.how-step h3 { font-family: Prompt, sans-serif; font-weight: 600; font-size: 20px; margin-top: 4px; }
.how-step p { margin-top: 6px; color: #B8CBE3; line-height: 1.7; }
.how-foot {
  display: flex; align-items: center; gap: 22px; margin-top: 24px; padding: 18px 22px; border-radius: var(--r-lg);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.how-mascot { width: 110px; height: auto; margin: -40px 0 -18px; }
.how-foot-title { font-family: Prompt, sans-serif; font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.how .btn-primary { background: #fff; color: var(--navy); --btn-shadow: var(--sand); }
@media (max-width: 560px) { .how-foot { flex-direction: column; text-align: center; } .how-mascot { margin: -50px 0 0; } }

/* ---------- reviews ---------- */
.demo-pill { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--brown-dk); background: var(--sand-2); border: 1px dashed var(--brown); }
.review-layout { display: grid; gap: 22px; }
@media (min-width: 1024px) { .review-layout { grid-template-columns: 5fr 7fr; gap: 32px; align-items: stretch; } }
.review-shot { display: flex; flex-direction: column; }
.shot-frame { flex: 1; padding: 14px; border-radius: var(--r-lg); background: var(--sand); }
.shot-slot {
  height: 100%; min-height: 280px; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center;
  border-radius: 16px; border: 2px dashed var(--brown); background: var(--sand-2); color: var(--brown); font-weight: 600; padding: 20px;
}
.shot-slot small { font-weight: 400; color: var(--brown-dk); }
.review-shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.review-list { display: grid; gap: 14px; }
@media (max-width: 767px) {
  .review-list { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .review { scroll-snap-align: start; }
}
.review { position: relative; padding: 22px 24px; background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-md); }
.review:nth-child(2) { margin-left: 0; }
@media (min-width: 1024px) { .review:nth-child(2) { margin-left: 40px; } }
.review-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--action); background: var(--sky-2); padding: 3px 10px; border-radius: 6px; }
.review blockquote { margin-top: 12px; font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.review-who { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 600; color: var(--muted); font-size: 14.5px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sky); color: var(--action); font-weight: 700; }

/* ---------- final CTA ---------- */
.final-cta { padding-bottom: clamp(64px, 9vw, 112px); }
.cta-panel {
  position: relative; display: grid; overflow: hidden; border-radius: 28px; background: var(--action); color: #fff;
  padding: 36px 24px 0;
}
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.15fr 1fr; padding: 64px 64px; align-items: center; } }
.cta-lines { position: absolute; width: 360px; left: -40px; bottom: 26px; color: rgba(255,255,255,.1); }
.cta-copy { position: relative; z-index: 1; }
.cta-title { font-family: Prompt, sans-serif; font-weight: 800; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.2; }
.cta-copy p { margin-top: 14px; font-size: 18px; color: #DCEBFA; }
.cta-copy .btn-line { --btn-shadow: #037A33; }
.cta-art { position: relative; display: grid; place-items: end center; min-height: 260px; margin-top: 18px; }
@media (min-width: 900px) { .cta-art { position: absolute; right: 30px; bottom: -10px; width: 46%; height: 112%; margin: 0; } }
.cta-disc { position: absolute; bottom: -30%; left: 50%; width: 110%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--sand); }
@media (min-width: 900px) { .cta-disc { width: 92%; bottom: -24%; } }
.cta-art img { position: relative; width: min(320px, 78%); transform-origin: 50% 100%; }
@media (min-width: 900px) { .cta-art img { width: 82%; max-width: 420px; } }

/* ---------- footer ---------- */
.site-footer { background: #0D1E38; color: #C9D6E8; padding-top: 64px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr 1fr; } }
.footer-brand img { width: 110px; }
.footer-brand p { margin-top: 14px; line-height: 1.7; }
.site-footer h3 { font-family: Prompt, sans-serif; font-weight: 600; color: #fff; font-size: 17px; margin-bottom: 14px; }
.site-footer nav a { display: inline-flex; min-height: 40px; align-items: center; transition: color .2s; }
.site-footer nav a:hover { color: #fff; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ic { color: var(--mascot); margin-top: 3px; }
.ph { color: #8FA3BF; font-style: italic; }
.social { display: flex; gap: 10px; }
.social-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.18); color: #fff; transition: background-color .2s, border-color .2s; }
.social-btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.social-btn svg { width: 22px; height: 22px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-block: 22px 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; color: #8FA3BF; }
@media (max-width: 1023px) { .site-footer { padding-bottom: 76px; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform .35s var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 52px; padding-inline: 12px; white-space: nowrap; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- LINE dialog ---------- */
.line-dialog { width: min(520px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); }
.line-dialog::backdrop { background: rgba(13,30,56,.55); }
.line-dialog[open] { animation: dlg-in .3s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-inner { position: relative; padding: 28px 24px 24px; }
.dlg-close { position: absolute; right: 10px; top: 10px; }
.dlg-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--line); color: #fff; }
.dlg-badge svg { width: 30px; height: 30px; }
.line-dialog h2 { margin-top: 14px; font-family: Prompt, sans-serif; font-weight: 700; font-size: 22px; color: var(--navy); }
.dlg-sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.line-dialog textarea {
  width: 100%; margin-top: 16px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--rule); background: var(--paper);
  font: inherit; font-size: 15.5px; line-height: 1.65; resize: vertical;
}
.line-dialog textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(31,111,184,.15); }
.dlg-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--brown-dk); background: var(--sand-2); border: 1px dashed var(--brown); }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---------- motion helpers ---------- */
.mascot-float { animation: bob 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.2deg); } }

/* JS adds .js to <html>; without JS, everything is visible */
.js .reveal, .js .reveal-group > * { opacity: 0; transform: translateY(28px); }
.js.no-motion .reveal, .js.no-motion .reveal-group > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* reviews: hand-off to the shop's real review channels */
.review-cta { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r-lg); background: var(--sand-2); border: 1.5px solid var(--sand); }
.review-cta img { width: 140px; margin-inline: auto; }
.review-cta-title { font-family: Prompt, sans-serif; font-weight: 700; font-size: clamp(22px, 2.6vw, 28px); color: var(--navy); margin-bottom: 8px; }
@media (min-width: 768px) { .review-cta { grid-template-columns: 180px 1fr; padding: 32px 40px; } .review-cta img { width: 170px; } }

/* ---------- no-pictogram pass ---------- */
.qt-mascot { width: 64px; height: 64px; object-fit: contain; flex: none; margin: -10px 0 -10px -6px; }
.quick-tile--primary .qt-mascot { filter: drop-shadow(0 2px 0 rgba(255,255,255,.25)); }
.trust-item { display: block; position: relative; padding-top: 30px; }
.trust-item::before { content: ""; position: absolute; left: inherit; top: 20px; width: 26px; height: 4px; border-radius: 4px; background: var(--sand); box-shadow: 0 0 0 1px var(--brown) inset; }
.trust-item > div { margin-top: 6px; }
@media (min-width: 1024px) { .trust-item::before { top: 24px; } .trust-item { padding-top: 38px; } }
.est-points li { padding-left: 18px; position: relative; }
.est-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--action); }
.contact-list li { padding-left: 16px; position: relative; }
.contact-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--mascot); }
.social { flex-wrap: wrap; }
.social-btn { width: auto; height: 44px; padding: 0 16px; font-weight: 600; font-size: 14.5px; }
.svc h3 { margin-top: 0; }
.svc--side h3 { padding-right: 0; }

/* brand picker: big phones, vertical cards */
.brand-pick { grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .brand-pick { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.brand-pick .pick {
  flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; text-align: center;
  min-height: 0; padding: 16px 8px 14px; overflow: hidden;
}
.brand-pick .pick-thumb { width: auto; height: 104px; transition: transform .35s var(--ease-out); }
@media (min-width: 640px) { .brand-pick .pick-thumb { height: 128px; } }
.brand-pick .pick:hover .pick-thumb, .brand-pick .pick[aria-pressed="true"] .pick-thumb { transform: translateY(-6px) rotate(-4deg); }
.brand-pick .pick-name { font-size: 17px; display: block; }
.brand-pick .pick small { font-size: 12.5px; }
.est-body { min-height: 0; }

/* ---------- services v2: three illustrated cards ---------- */
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; grid-template-rows: none; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.svc, .svc--feature, .svc--side { display: flex; flex-direction: column; grid-row: auto; }
.svc .svc-media { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px 18px 0; }
.svc .svc-media img { width: 100%; height: 100%; object-fit: contain; }
.svc--buy .svc-media { background: var(--sky); }
.svc--consign .svc-media { background: var(--sand-2); }
.svc--repair .svc-media { background: var(--sky-2); }
.svc:hover .svc-media img { transform: translateY(-6px); }
.svc .svc-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.svc-tag { font-size: 13.5px; font-weight: 700; color: var(--brown); }
.svc h3 { margin-top: 4px; font-size: 25px; padding: 0; }
.svc-points { gap: 8px; margin: 14px 0 20px; }
.svc-points li { position: relative; padding-left: 20px; }
.svc-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.svc .svc-body > .btn { margin-top: auto; align-self: flex-start; }
.svc .repair-tags { margin: 14px 0 20px; }
@media (min-width: 768px) and (max-width: 1099px) { .svc--buy { grid-column: span 2; flex-direction: row; } .svc--buy .svc-media { width: 50%; aspect-ratio: auto; } }

/* reviews illustration */
.review-cta img { width: 100%; max-width: 360px; }
@media (min-width: 768px) { .review-cta { grid-template-columns: minmax(260px, 380px) 1fr; } .review-cta img { width: 100%; } }

/* desktop never shows the menu button, whatever order Tailwind's CDN styles land in */
@media (min-width: 1024px) { #menuToggle { display: none; } }

/* final CTA: full-bleed band */
.final-cta { padding: 0; background: var(--action); overflow: hidden; }
.final-cta .container-x { position: relative; }
.cta-panel { border-radius: 0; background: transparent; overflow: visible; padding: 56px 0 0; }
@media (min-width: 900px) { .cta-panel { padding: 72px 0; min-height: 440px; } }
.cta-lines { left: -120px; }
@media (min-width: 900px) {
  .cta-art { right: 0; bottom: 0; width: 44%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
  .cta-disc { width: 86%; bottom: -34%; }
  .cta-art img { width: 74%; max-width: 400px; margin-bottom: 24px; }
}
.site-footer { margin-top: 0; }

/* ---------- mobile action dock ---------- */
.sticky-cta { display: none; }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
  background: #fff; border-top: 2px solid var(--brown); border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 30px -18px rgba(84,60,29,.45);
}
@media (min-width: 1024px) { .dock { display: none; } }
.dock-item { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 60px; padding-top: 2px; color: var(--navy); }
.dock-item b { font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.dock-pic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; overflow: hidden;
  background: var(--sky-2); border: 1.5px solid var(--rule); transition: transform .2s var(--ease-out), background-color .2s;
}
.dock-pic img { width: 120%; height: 120%; max-width: none; object-fit: cover; object-position: 50% 8%; margin-top: 14%; }
.dock-item:active .dock-pic { transform: scale(.92); }
.dock-item:hover .dock-pic { background: var(--sky); }
.dock-line { margin-top: -22px; }
.dock-line .dock-pic { width: 62px; height: 62px; border-radius: 50%; background: var(--line); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brown), 0 6px 14px -6px rgba(4,145,62,.6); }
.dock-line .dock-pic img { width: 110%; height: 110%; margin-top: 18%; }
.dock-line b { color: var(--line-dk); font-weight: 700; }
@media (max-width: 1023px) { .site-footer { padding-bottom: 96px; } }
