:root {
  --ink: #17263a;
  --muted: #5f6f83;
  --blue: #087bc7;
  --blue-dark: #115581;
  --teal: #177b82;
  --teal-dark: #0e555b;
  --pink: #d91b7d;
  --red: #b7282e;
  --gold: #bd8731;
  --paper: #ffffff;
  --wash: #f3f7fb;
  --line: #dce6ef;
  --shadow: 0 20px 55px rgba(29, 58, 88, .12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
  font-size: 18px;
  line-height: 1.72;
}

a { color: inherit; }

b, strong { font-weight: 800; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
}

.skip-link:focus { top: 10px; }

.hero {
  min-height: 720px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 110, 220, .15), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(214, 155, 29, .18), transparent 29%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(241, 247, 255, .96));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1480px;
  margin: auto;
  padding: 18px 34px;
  border-bottom: 1px solid #dce6ef;
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 180px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
}

.top-nav-links a {
  color: #146da6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.top-nav-links a:hover { color: var(--red); }

.top-nav-links .nav-cta {
  padding: 9px 16px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #178c98, #0a6672);
  box-shadow: 0 8px 22px rgba(10, 102, 114, .22);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, .8fr);
  align-items: center;
  gap: 62px;
  max-width: 1480px;
  margin: auto;
  padding: 70px 42px 120px;
}

.hero-copy { position: relative; z-index: 2; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 25px;
  padding: 10px 17px;
  border: 1px solid #c9e7db;
  border-radius: 14px;
  color: #17664f;
  background: #e6f5ef;
  box-shadow: 0 9px 24px rgba(39, 123, 97, .1);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
}

.hero-status span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #27a678;
  box-shadow: 0 0 0 5px rgba(39, 166, 120, .11);
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 12px 0 22px;
  color: #172033;
  font-size: clamp(58px, 6vw, 88px);
  line-height: 1.03;
  letter-spacing: -.025em;
}

.hero h1 span { color: var(--blue); }

.lead {
  max-width: 770px;
  color: #5b687b;
  font-size: 21px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 25px rgba(8, 123, 199, .24);
}

.button.ghost {
  border: 1px solid #9bb9d0;
  color: #146da6;
  background: rgba(255, 255, 255, .78);
}

.hero-meta {
  margin-top: 25px;
  color: #586679;
  font-size: 14px;
}

.hero-showcase {
  position: relative;
  min-height: 560px;
}

.phone-frame {
  position: absolute;
  padding: 25px 8px 9px;
  overflow: hidden;
  border: 1px solid #bfcbd7;
  border-radius: 38px;
  background: #111;
  box-shadow: 0 30px 70px rgba(34, 65, 95, .24);
}

.phone-frame::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 34%;
  height: 9px;
  border-radius: 999px;
  background: #2e2e2e;
  content: "";
  transform: translateX(-50%);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
  background: #fff;
}

.phone-main {
  top: 2px;
  right: 1%;
  width: 260px;
  transform: rotate(2.3deg);
}

.phone-secondary {
  bottom: 2px;
  left: 2%;
  width: 190px;
  transform: rotate(-4.2deg);
}

.platform-chip {
  position: absolute;
  right: 0;
  bottom: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: #172f4d;
  box-shadow: 0 10px 25px rgba(23, 47, 77, .2);
  font-size: 13px;
  font-weight: 800;
}

.page-shell {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  max-width: 1480px;
  margin: -58px auto 0;
  padding: 0 28px 90px;
}

.toc {
  position: sticky;
  top: 22px;
  max-height: calc(100vh - 44px);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 14px;
  border-radius: 14px;
  color: #d5e8e5;
  background: #103e45;
  box-shadow: var(--shadow);
  scrollbar-gutter: stable;
}

.toc-guide-title {
  margin: 0 12px 2px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.toc-title {
  margin: 0 12px 10px;
  color: #e7c36f;
  font-weight: 800;
}

.toc a {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 15px;
}

.toc a:hover,
.toc a.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

main { min-width: 0; }

.section {
  margin-bottom: 26px;
  padding: 52px 58px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 10px 32px rgba(23, 66, 70, .05);
}

.section.feature { border-top: 6px solid var(--teal); }

.section-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.step-number {
  display: grid;
  flex: 0 0 60px;
  height: 60px;
  place-items: center;
  border-radius: 14px;
  color: var(--teal);
  background: #e4f2f0;
  font-size: 22px;
  font-weight: 900;
}

.section h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.24;
}

.section-lead {
  color: #416267;
  font-size: 21px;
}

.tap-instruction {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 25px 0 12px;
  padding: 14px 18px;
  border: 1px solid #b9d8ef;
  border-radius: 11px;
  color: #135987;
  background: #eef7fe;
}

.tap-instruction span {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.shot {
  margin: 30px auto 8px;
}

.phone-shot { max-width: 330px; }

.phone-shot.compact { max-width: 280px; }

.shot button {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(11, 55, 60, .16);
  cursor: zoom-in;
}

.shot button::after {
  position: absolute;
  right: 13px;
  bottom: 13px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 11px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
}

.callout {
  margin: 27px 0;
  padding: 18px 22px;
  border-left: 5px solid;
  border-radius: 5px;
  background: #f7fbfa;
}

.callout b { margin-right: 8px; }
.callout.info { border-color: var(--teal); }
.callout.warning { border-color: #d28c28; background: #fff8e9; }
.callout.neutral { border-color: #8aa0a3; color: #526c70; }

.field-table {
  overflow: hidden;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.field-table > div {
  display: grid;
  grid-template-columns: 230px 1fr;
  border-bottom: 1px solid var(--line);
}

.field-table > div:last-child { border-bottom: 0; }
.field-table b,
.field-table span { padding: 14px 18px; }
.field-table b { color: var(--teal-dark); background: #eaf5f3; }

.guide-steps { display: grid; gap: 22px; }

.guide-step {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .55fr);
  align-items: start;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdfd;
}

.guide-step-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: sticky;
  top: 28px;
}

.mini-number {
  display: grid;
  flex: 0 0 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.guide-step h3,
.purchase-grid h3 {
  margin: 1px 0 8px;
  color: var(--teal-dark);
  font-size: 25px;
  line-height: 1.35;
}

.guide-step p { margin: 0; color: var(--muted); }
.guide-step .shot { margin-top: 0; }

.steps {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfd;
}

.steps li > span {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-weight: 900;
}

.steps p { margin: 2px 0 0; color: var(--muted); }

.gallery-two,
.gallery-three,
.purchase-grid {
  display: grid;
  align-items: start;
  gap: 24px;
}

.gallery-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-two .phone-shot { max-width: 300px; }
.gallery-three .phone-shot { max-width: 260px; }
.purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }

.purchase-grid > article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfdff, #f8fbfd);
}

.purchase-grid > article:nth-child(2) {
  border-color: #c7e1dd;
  background: linear-gradient(180deg, #f4fbf9, #fff);
}

.purchase-grid p { color: var(--muted); }

.journey-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
  padding: 20px;
  border: 1px solid #c9e3df;
  border-radius: 13px;
  color: var(--teal-dark);
  background: #edf7f5;
  font-weight: 800;
}

.journey-strip span {
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(23, 66, 70, .07);
}

.journey-strip i {
  color: var(--gold);
  font-size: 25px;
  font-style: normal;
  font-weight: 900;
}

.summary-section {
  border-top: 6px solid var(--gold);
  background: linear-gradient(150deg, #fff, #fffaf0);
}

.summary-note { text-align: center; color: #465f64; }

details {
  margin: 11px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfd;
}

summary {
  padding: 16px 18px;
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 800;
}

details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

.support-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid #c7e0eb;
  border-radius: 12px;
  background: #eff8fc;
}

.support-card b { grid-column: 1 / -1; color: var(--blue-dark); font-size: 21px; }
.support-card a { color: var(--blue); font-weight: 800; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(30px, calc((100vw - 1420px) / 2));
  color: #c7dcd9;
  background: #0b3036;
}

footer div { display: flex; flex-direction: column; }
footer nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
footer a { color: #e7c36f; }

dialog#lightbox {
  width: min(97vw, 1800px);
  height: min(96vh, 1100px);
  max-height: 96vh;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #0b2227;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

dialog#lightbox[open] {
  display: flex;
  flex-direction: column;
}

dialog::backdrop { background: rgba(1, 15, 18, .84); }

.lightbox-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding: 8px 14px 8px 22px;
  border-bottom: 1px solid #34545a;
  color: #d7e8e5;
  background: #102f35;
}

.lightbox-toolbar > span { font-weight: 800; }

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.lightbox-toolbar button,
.open-original {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 4px 13px;
  border: 1px solid #70969a;
  border-radius: 6px;
  color: #fff;
  background: #183f45;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.lightbox-toolbar button:hover,
.lightbox-toolbar button.active {
  border-color: #d19a38;
  color: #112b30;
  background: #d19a38;
}

.lightbox-toolbar .close-lightbox {
  min-width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
}

.lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  overflow: auto;
  padding: 18px;
  background: #07191d;
  text-align: center;
}

.lightbox-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .4);
}

#lightbox > p {
  display: flex;
  flex: 0 0 auto;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 20px;
  color: #d7e8e5;
  background: #102f35;
  text-align: center;
}

.top-nav-links a:focus-visible,
.button:focus-visible,
.zoom:focus-visible,
footer a:focus-visible,
summary:focus-visible {
  outline: 3px solid #e7c36f;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .top-nav-links { gap: 14px; }
  .top-nav-links a:nth-child(4),
  .top-nav-links a:nth-child(5) { display: none; }
  .hero-inner { grid-template-columns: 1fr 450px; }
  .gallery-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-showcase { min-height: 545px; max-width: 620px; }
  .phone-main { right: 8%; }
  .phone-secondary { left: 12%; }
  .page-shell { display: block; }
  .toc {
    position: relative;
    top: auto;
    display: flex;
    gap: 4px;
    max-height: none;
    margin-bottom: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
  }
  .toc-title,
  .toc-guide-title { display: none; }
  .toc a { flex: 0 0 auto; white-space: nowrap; }
  .guide-step { grid-template-columns: minmax(0, .8fr) minmax(260px, .55fr); }
}

@media (max-width: 820px) {
  .topbar { align-items: flex-start; }
  .top-nav-links a:not(.nav-cta) { display: none; }
  .guide-step,
  .gallery-two,
  .gallery-three,
  .purchase-grid { grid-template-columns: 1fr; }
  .guide-step-copy { position: static; }
  .gallery-three .phone-shot { max-width: 280px; }
  .support-card { grid-template-columns: 1fr; }
  .support-card b { grid-column: auto; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .topbar,
  .hero-inner { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding-top: 48px; }
  .hero h1 { font-size: 51px; }
  .lead { font-size: 18px; }
  .hero-status { font-size: 17px; }
  .hero-showcase { min-height: 430px; }
  .phone-main { right: 3%; width: 210px; }
  .phone-secondary { left: 2%; width: 155px; }
  .platform-chip { font-size: 11px; }
  .page-shell { margin-top: -32px; padding: 0 12px 55px; }
  .section { padding: 35px 20px; }
  .section h2 { font-size: 29px; }
  .section-heading { align-items: flex-start; gap: 14px; }
  .step-number { flex-basis: 50px; width: 50px; height: 50px; }
  .field-table > div { grid-template-columns: 1fr; }
  .field-table span { padding-top: 0; }
  .guide-step { gap: 16px; padding: 19px 14px; }
  .guide-step h3,
  .purchase-grid h3 { font-size: 22px; }
  .purchase-grid > article { padding: 19px 14px; }
  .phone-shot { max-width: 310px; }
  .phone-shot.compact { max-width: 270px; }
  .tap-instruction { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; }
  footer nav { align-items: flex-start; flex-direction: column; gap: 10px; }
  .lightbox-toolbar > span { display: none; }
  .lightbox-toolbar { justify-content: center; padding: 8px 58px 8px 8px; }
  .lightbox-controls { justify-content: center; flex-wrap: wrap; overflow-x: visible; }
  .lightbox-toolbar .close-lightbox { position: absolute; right: 8px; }
  .lightbox-stage { padding: 8px; }
}

@media (max-width: 520px) {
  .topbar { flex-wrap: wrap; padding: 14px 18px; }
  .brand-logo { width: 135px; max-height: 62px; }
  .top-nav-links { width: 100%; justify-content: flex-start; }
  .top-nav-links .nav-cta { flex: 1 1 180px; text-align: center; }
  .hero-inner { padding: 40px 18px 74px; }
  .hero h1 { font-size: 46px; }
  .hero-actions .button { width: 100%; }
  .hero-showcase { min-height: 355px; }
  .phone-main { width: 170px; }
  .phone-secondary { width: 125px; }
  .platform-chip { right: 3%; bottom: 0; }
  .journey-strip { justify-content: flex-start; }
  .journey-strip span { width: calc(100% - 34px); }
  .journey-strip i { width: 20px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
