/* ===== SPMigrator website — Microsoft 365 / Fluent inspired ===== */
:root {
  --brand: #0F6CBD;
  --brand-hover: #115EA3;
  --brand-pressed: #0C3B5E;
  --brand-soft: #EBF3FC;
  --brand-2: #0078D4;
  --teal: #03787C;
  --teal-soft: #E6F4F4;
  --purple: #5B5FC7;
  --purple-soft: #EEEFFB;
  --navy: #0A1F3D;
  --navy-2: #102A54;

  --ink: #1B1B1F;
  --ink-2: #424242;
  --muted: #616161;
  --line: #E3E6EB;
  --bg: #FFFFFF;
  --bg-tint: #F5F8FC;

  --ok: #107C10;
  --bad: #C50F1F;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 8px 24px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .05);
  --shadow-lg: 0 30px 60px -12px rgba(10, 31, 61, .35), 0 18px 36px -18px rgba(10, 31, 61, .4);

  --font: "Segoe UI Variable Text", "Segoe UI", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "Noto Sans Thai", system-ui, sans-serif;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(15, 108, 189, .6); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: 0 10px 22px -8px rgba(15, 108, 189, .7); }
.btn--primary .i { transition: transform .18s; }
.btn--primary:hover .i { transform: translateX(3px); }
.btn--outline { background: #fff; color: var(--brand); border-color: #C7DDF3; }
.btn--outline:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.6); }
.btn--white { background: #fff; color: var(--brand); }
.btn--white:hover { background: var(--brand-soft); }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  transition: background-color .25s, box-shadow .25s, border-color .25s;
  border-bottom: 1px solid transparent; color: #fff;
}
.nav.is-scrolled { background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-color: var(--line); color: var(--ink); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand__mark img { width: 32px; height: 32px; display: block; }
.nav:not(.is-scrolled) .nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; opacity: .9; transition: background-color .15s, opacity .15s; }
.nav__links a:hover { opacity: 1; background: rgba(127,127,127,.12); }
.nav__links .nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.lang { font: inherit; color: inherit; background: transparent; cursor: pointer; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(127,127,127,.35); font-size: 13px; font-weight: 700; letter-spacing: .04em; transition: background-color .15s; }
.lang:hover { background: rgba(127,127,127,.15); }
.nav__toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; color: inherit; }
.nav__toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 72px) 0 56px;
  background: radial-gradient(1200px 600px at 85% -10%, #1B5FB4 0%, transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0E3A6E 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 520px; height: 520px; background: #0078D4; top: -160px; right: -80px; animation: float 16s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: #5B5FC7; bottom: -200px; left: -120px; opacity: .4; animation: float 20s ease-in-out infinite reverse; }
.blob--3 { width: 300px; height: 300px; background: #03A6A1; top: 40%; right: 30%; opacity: .25; animation: float 24s ease-in-out infinite; }
.grid-lines {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px, 24px) scale(1.06); } }

.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.eyebrow--light { color: #CFE4FA; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4CD3A5; box-shadow: 0 0 0 4px rgba(76,211,165,.2); }
.nw { white-space: nowrap; }
.hero h1 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; }
.grad-text { background: linear-gradient(90deg, #6CB8F6 0%, #A5A8F5 50%, #5FE0C9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.4vw, 18.5px); color: #C8D6EA; margin-top: 20px; max-width: 560px; }
.lead strong { color: #fff; font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: #B9CBE3; }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .i { width: 18px; height: 18px; color: #4CD3A5; stroke-width: 2.6; }

.hero__visual { position: relative; }
.window { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.18); }
.hero .window { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero .window:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #F3F4F6; border-bottom: 1px solid var(--line); }
.window__bar span { width: 11px; height: 11px; border-radius: 50%; background: #D1D5DB; }
.window__bar span:nth-child(1) { background: #FF5F57; } .window__bar span:nth-child(2) { background: #FEBC2E; } .window__bar span:nth-child(3) { background: #28C840; }
.window__bar em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window--light { box-shadow: var(--shadow); border-color: var(--line); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,.96); color: var(--ink); box-shadow: var(--shadow); font-size: 14px; line-height: 1.35;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14.5px; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.float-card__icon.ok { background: #E7F5E7; color: var(--ok); }
.float-card--a { left: -28px; bottom: 34px; }
.float-card--b { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.platforms {
  margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px);
}
.platforms__label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8FA6C6; font-weight: 600; margin: 0 4px; }
.platforms__arrow { width: 26px; height: 26px; stroke: #6CB8F6; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; margin: 0 6px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.chip--brand { background: #0F6CBD; border-color: #3A8EDB; }
.chip--teal { background: #03787C; border-color: #22A3A6; }
.platforms__note { width: 100%; text-align: center; font-size: 14px; color: #B9CBE3; }

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(170deg, var(--navy) 0%, #0D2B55 100%); color: #fff; position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(0,120,212,.35), transparent 65%); top: -300px; right: -200px; }
.section--dark > .container { position: relative; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(28px, 3.3vw, 42px); font-weight: 700; letter-spacing: -.02em; }
.section__head p { margin-top: 14px; color: var(--muted); font-size: 17.5px; }
.section__head--light p { color: #B9CBE3; }

/* compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare__col { border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); background: #fff; }
.compare__col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 18px; }
.compare__col h3 .i { width: 28px; height: 28px; padding: 5px; border-radius: 8px; stroke-width: 2.6; }
.compare__col--bad h3 .i { background: #FDE7E9; color: var(--bad); }
.compare__col--good { border-color: #B8D6F2; background: linear-gradient(180deg, #F3F8FE 0%, #fff 100%); box-shadow: var(--shadow); }
.compare__col--good h3 .i { background: #E7F5E7; color: var(--ok); }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare li { position: relative; padding-left: 26px; color: var(--ink-2); }
.compare li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: #E0A3A9; }
.compare__col--good li::before { background: var(--brand); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C7DDF3; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon .i { width: 24px; height: 24px; }
.c-blue { background: var(--brand-soft); color: var(--brand); }
.c-teal { background: var(--teal-soft); color: var(--teal); }
.c-purple { background: var(--purple-soft); color: var(--purple); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* steps + showcase */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 28px; position: relative; }
.step {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); transition: all .2s;
}
.step:hover { border-color: #B8D6F2; background: #FAFCFF; }
.step__num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--bg-tint); color: var(--brand); flex: none; transition: all .2s; }
.step__text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.step__text strong { font-size: 15.5px; }
.step__text small { font-size: 12.5px; color: var(--muted); }
.step.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(15,108,189,.12); }
.step.is-active .step__num { background: var(--brand); color: #fff; }

.showcase { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.showcase__text h3 { font-size: 26px; margin-bottom: 14px; }
.showcase__text p { color: var(--muted); font-size: 16.5px; }
.showcase__text { transition: opacity .25s; }
.showcase img { transition: opacity .25s; }
.is-swapping { opacity: 0; }

/* scope */
.scope { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.scope__copy h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.scope__copy > p { color: var(--muted); font-size: 17.5px; margin-top: 14px; }
.note { display: flex; gap: 12px; margin-top: 28px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.note .i { color: var(--brand); margin-top: 3px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: #fff; border-radius: 12px; border: 1px solid var(--line); font-weight: 500; font-size: 15.5px; line-height: 1.45;
}
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* comparison table */
.cmp { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.cmp__row { display: grid; grid-template-columns: 1fr 1.25fr 1fr; border-top: 1px solid var(--line); }
.cmp__row:first-child { border-top: 0; }
.cmp__row > span { padding: 16px 20px; font-size: 15.5px; line-height: 1.5; }
.cmp__row--head { background: var(--bg-tint); font-weight: 700; color: var(--ink-2); }
.cmp__brand { color: var(--brand); }
.cmp__feat { font-weight: 600; }
.cmp__ours { background: #F3F8FE; color: var(--ink); }
.cmp__free { color: var(--muted); }
.cmp__ours.yes, .cmp__free.no, .cmp__free.part { position: relative; padding-left: 46px !important; }
.cmp__ours.yes::before, .cmp__free.no::before, .cmp__free.part::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 11px; }
.cmp__ours.yes::before { background-color: var(--ok); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.cmp__free.no::before { background-color: #C8CDD4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.cmp__free.part::before { background-color: #E0A84E; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
@media (max-width: 640px) {
  .cmp__row--head { display: none; }
  .cmp__row { grid-template-columns: 1fr; }
  .cmp__row > span { padding: 10px 16px; font-size: 14.5px; }
  .cmp__feat { padding-top: 16px !important; background: var(--bg-tint); }
  .cmp__ours::after { content: " · SPMovegrator"; color: var(--brand); font-weight: 600; font-size: 12.5px; }
  .cmp__free { padding-bottom: 16px !important; }
  .cmp__free::after { content: " · Free tool"; font-size: 12.5px; }
}

/* upgrade targets */
.upgrade { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.upgrade__card { position: relative; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); box-shadow: var(--shadow-sm); }
.upgrade__card--online { border-top-color: var(--brand); }
.upgrade__from { display: flex; flex-wrap: wrap; gap: 6px; }
.upgrade__from span { padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.upgrade__arrow { width: 40px; height: 40px; padding: 8px; margin: 16px 0 12px; border-radius: 12px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: var(--teal); }
.upgrade__card--online .upgrade__arrow { background: var(--brand); }
.upgrade h3 { font-size: 22px; }
.upgrade__tag { color: var(--muted); margin: 4px 0 16px; }
.upgrade ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.upgrade li { position: relative; padding-left: 22px; color: var(--ink-2); }
.upgrade li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.upgrade__card--online li::before { background: var(--brand); }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust__item { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background-color .25s, border-color .25s; }
.trust__item:hover { background: rgba(255,255,255,.09); border-color: rgba(108,184,246,.4); }
.trust__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(108,184,246,.15); color: #8CC8FA; margin-bottom: 16px; }
.trust__icon .i { width: 24px; height: 24px; }
.trust h3 { font-size: 18.5px; margin-bottom: 8px; }
.trust p { color: #B9CBE3; font-size: 15.5px; }
.tested { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.tested__label { font-weight: 600; color: #8CC8FA; margin-right: 6px; font-size: 14.5px; }
.tested__item { padding: 7px 14px; border-radius: 999px; background: rgba(76,211,165,.12); border: 1px solid rgba(76,211,165,.3); color: #C9F2E3; font-size: 14px; }

/* audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.aud::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--brand), var(--purple), var(--teal)); }
.aud h3 { font-size: 19px; margin-bottom: 10px; }
.aud p { color: var(--muted); font-size: 15.5px; }

/* pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 460px); justify-content: center; gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.plan h3 { font-size: 21px; }
.plan__desc { color: var(--muted); font-size: 15px; margin-top: 6px; min-height: 2.4em; }
.plan__price { font-family: var(--font-display); font-size: 44px; font-weight: 700; margin: 18px 0 22px; letter-spacing: -.02em; line-height: 1.1; }
.plan__price .cur { font-size: 26px; vertical-align: top; margin-right: 2px; line-height: 1.4; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan__price--text { font-size: 34px; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.plan li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6CBD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan--featured { border: 2px solid var(--brand); box-shadow: 0 24px 48px -16px rgba(15,108,189,.35); transform: translateY(-8px); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--purple)); color: #fff; font-size: 13px; font-weight: 600; }
.pricing__foot { margin-top: 32px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14.5px; text-align: center; }
.terms-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.terms-note a { color: var(--brand); text-decoration: underline; }
html[lang="th"] [data-lang="en"], html:not([lang="th"]) [data-lang="th"] { display: none !important; }
.legal-page { background: var(--bg-tint); }
.legal { padding: calc(var(--nav-h) + 48px) 24px 72px; }
.legal article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 48px 56px; box-shadow: var(--shadow-sm); }
.legal h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; }
.legal__meta { color: var(--muted); font-size: 14px; margin: 8px 0 28px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 0; display: grid; gap: 6px; }
.legal__callout { margin: 4px 0 12px; padding: 16px 20px; border-radius: 12px; background: #FDF3F4; border: 1px solid #F1BBC1; color: #8A0F1C; }
@media (max-width: 640px) { .legal article { padding: 28px 20px; } .legal { padding-left: 16px; padding-right: 16px; } }
.pricing__foot .i { width: 18px; height: 18px; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #B8D6F2; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F6CBD' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* cta band */
.cta-band { padding: 0 0 104px; background: #fff; }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 52px 56px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0F6CBD 0%, #2A5DBF 45%, #5B5FC7 100%);
  box-shadow: 0 30px 60px -20px rgba(15,108,189,.5);
}
.cta-band__inner::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -200px; background: radial-gradient(circle, rgba(95,224,201,.45), transparent 65%); }
.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.cta-band p { color: #DCE8F8; margin-top: 8px; font-size: 17px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.footer { background: var(--navy); color: #B9CBE3; padding: 64px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer__contact { max-width: 340px; }
.footer__contact h4 { margin-bottom: 12px; }
.footer__contact .mail a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); transition: background-color .15s; }
.footer__contact .mail a:hover { background: rgba(255,255,255,.14); }
.brand--light { color: #fff; }
.footer__tag { margin-top: 14px; max-width: 320px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__grid > div > a:not(.brand) { display: block; padding: 4px 0; transition: color .15s; }
.footer__grid > div > a:not(.brand):hover { color: #fff; }
.footer__bottom a { color: #CFE4FA; text-decoration: underline; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8FA6C6; }

/* pricing trial button + checkout dialog */
.plan__trial { margin-top: 10px; }
.checkout { width: min(920px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 24px; overflow: auto; color: var(--ink); background: #fff; box-shadow: var(--shadow-lg); }
.checkout::backdrop { background: rgba(8, 26, 53, .6); backdrop-filter: blur(4px); }
.checkout__grid { display: grid; grid-template-columns: 1fr 1fr; }
.checkout__media { background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #E8EDF4 75%); display: grid; place-items: center; padding: 16px; }
.checkout__media img { width: 100%; max-width: 420px; }
.checkout__body { padding: 40px 36px 32px; display: flex; flex-direction: column; }
.checkout__body .eyebrow { align-self: flex-start; margin-bottom: 10px; }
.checkout h2 { font-size: 30px; letter-spacing: -.02em; }
.checkout__price { margin-top: 6px; color: var(--muted); }
.checkout__price strong { font-family: var(--font-display); font-size: 30px; color: var(--ink); margin-right: 4px; }
.checkout__desc { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.checkout__list { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 4px; }
.checkout__agree { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); cursor: pointer; font-size: 15px; }
.checkout__agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.checkout__agree a { color: var(--brand); text-decoration: underline; }
.checkout #coGo[aria-disabled="true"] { opacity: .45; box-shadow: none; }
.checkout__hint { margin-top: 10px; font-size: 13.5px; color: var(--bad); visibility: hidden; }
.checkout.show-hint.needs-consent .checkout__hint { visibility: visible; }
.checkout__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink-2); z-index: 1; }
.checkout__close:hover { background: rgba(0,0,0,.12); }
.checkout[data-mode="buy"] .co-trial, .checkout[data-mode="trial"] .co-buy { display: none !important; }
@media (max-width: 760px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .checkout__media { padding: 8px 8px 0; }
  .checkout__media img { max-width: 260px; }
  .checkout__body { padding: 20px 20px 24px; }
}

/* sticky mobile buy bar */
.buybar { display: none; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { text-align: center; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .hero__ctas, .hero__trust { justify-content: center; }
  .hero__visual { max-width: 760px; margin: 0 auto; width: 100%; }
  .hero .window { transform: none; }
  .features, .trust { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 24px; }
  .showcase__text { text-align: center; max-width: 680px; margin: 0 auto; }
  .scope { grid-template-columns: 1fr; gap: 36px; }
  .plan--featured { transform: none; order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .22s;
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: #fff; color: var(--ink); border-color: var(--line); }
  .nav.is-open   .nav.is-open   .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav__links .nav__cta-mobile { display: flex; margin-top: 8px; color: #fff; padding: 12px; }
  .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .steps { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 10px; margin: 0 -4px 20px; scrollbar-width: thin; }
  .step { scroll-snap-align: start; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .section__head p { font-size: 16px; }
  .hero { padding: calc(var(--nav-h) + 44px) 0 40px; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { flex-direction: column; align-items: center; gap: 8px; }
  .float-card { padding: 9px 12px; gap: 9px; }
  .float-card__icon { width: 30px; height: 30px; }
  .float-card--a { left: 8px; bottom: -22px; }
  .float-card--b { right: 8px; top: -26px; }
  .platforms { margin-top: 56px; padding: 16px; gap: 8px; }
  .platforms__label { width: 100%; text-align: center; margin: 4px 0 0; }
  .platforms__arrow { width: 100%; }
  .chip { font-size: 13px; }
  .compare, .features, .trust, .audience, .checklist, .upgrade { grid-template-columns: 1fr; }
  .compare__col, .feature, .trust__item, .aud, .plan, .upgrade__card { padding: 24px; }
  .cta-band { padding-bottom: 72px; }
  .cta-band__inner { padding: 36px 24px; text-align: center; justify-content: center; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding-bottom: 96px; }
  .buybar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border-radius: 16px; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); box-shadow: 0 12px 32px rgba(10,31,61,.25); border: 1px solid var(--line);
    transform: translateY(140%); transition: transform .3s;
  }
  .buybar.is-visible { transform: none; }
  .buybar strong { display: block; font-size: 14.5px; line-height: 1.3; }
  .buybar small { color: var(--muted); font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.legal .mail a { color: var(--brand); text-decoration: underline; }
