:root {
  --bg: #0b0c0e;
  --surface: #141518;
  --surface-2: #1b1d21;
  --border: #2a2d33;
  --border-strong: #383c45;
  --text: #e8e9eb;
  --muted: #9aa0a8;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --accent-text: #60a5fa;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #38bdf8;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "LINE Seed Sans TH", "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--accent-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.brand-logo:hover {
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav > a:not(.btn) {
  color: var(--muted);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.94rem;
}

.main-nav > a:not(.btn).active,
.main-nav > a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.nav-pill {
  background: rgba(37, 99, 235, 0.16);
  color: var(--accent-text);
  border: 1px solid rgba(37, 99, 235, 0.35);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.83em;
  margin-left: 4px;
}

.inline-form {
  display: inline;
}

.main-content {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 56px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Surfaces & Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.card-danger {
  border-color: rgba(239, 68, 68, 0.55);
}

.section {
  margin-top: 44px;
}

.home-section {
  margin-top: 64px;
}

.section-head {
  margin-bottom: 24px;
  max-width: 64ch;
}

.section-head h2,
.section-card h2,
.section-card h3 {
  margin-top: 0;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.52rem;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-link {
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}

.section-card {
  margin-bottom: 20px;
}

/* Scroll Reveal */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms ease, transform 260ms ease;
}

html.js-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Hero (Mobile-first single column, 2-col on desktop) */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 8px;
}

.hero-v4 {
  padding-top: 8px;
}

.hero-copy,
.hero-console {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 2.05rem;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero h1 span {
  display: block;
}

.hero-sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.02rem;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta-line strong {
  color: var(--text);
}

/* Hero Interactive Terminal Console */
.hero-console {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 150ms ease;
}

.hero-console:hover {
  border-color: var(--border-strong);
}

.console-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

.console-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  min-width: 0;
  overflow-wrap: anywhere;
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  display: inline-block;
  flex-shrink: 0;
}

.console-tag {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  white-space: nowrap;
}

.hero-term-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
}

.term-prompt-line {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
  min-height: 44px;
}

.term-sigil {
  color: var(--accent-text);
  font-weight: 600;
  user-select: none;
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  background: var(--accent-text);
  vertical-align: -2px;
  animation: termBlink 1s steps(1, end) infinite;
}

.hero-term-hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 2px 4px;
}

.hero-term-hint.is-hidden {
  display: none;
}

@keyframes termBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-server-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease, border-color 150ms ease;
}

.hero-server-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hsc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hsc-host {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.98rem;
  color: #ffffff;
}

.hsc-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.hsc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.hsc-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hsc-label {
  font-size: 0.74rem;
  color: var(--muted);
}

.hsc-timer {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill .s-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: inline-block;
}

.status-creating {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.status-creating .s-dot {
  background: var(--warn);
}

.status-ready,
.status-running {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.status-ready .s-dot,
.status-running .s-dot {
  background: var(--success);
}

.status-stopped {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.status-stopped .s-dot {
  background: var(--muted);
}

/* Section 2: Live Deploy Demo & Bangkok Ping */
.live-demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.ping-card,
.deploy-sandbox-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ping-card:hover,
.deploy-sandbox-card:hover,
.usecase-reco-card:hover,
.slider-panel:hover,
.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.ping-head,
.sandbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sandbox-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.ping-location {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.94rem;
}

.bkk-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.bkk-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1.5px solid var(--success);
  opacity: 0;
  animation: bkkPulse 2.2s ease-out infinite;
}

@keyframes bkkPulse {
  0% {
    transform: scale(0.7);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.ping-readout {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ping-readout > span {
  color: var(--muted);
  font-size: 0.94rem;
}

.ping-metric-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ping-ms-val {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.ping-unit {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 600;
}

.ping-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 36px;
  margin: 14px 0 12px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.ping-bar {
  flex: 1;
  height: 30%;
  border-radius: 3px;
  background: var(--border-strong);
  transition: height 220ms ease, background-color 220ms ease;
}

.ping-bar.is-measured {
  background: var(--accent-text);
}

.sandbox-os-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.sandbox-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 6px 11px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.sandbox-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.sandbox-pill.is-selected {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff;
}

.sandbox-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.sandbox-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.sandbox-step .step-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--border-strong);
}

.sandbox-step.is-active {
  color: #fcd34d;
}

.sandbox-step.is-active .step-dot {
  background: var(--warn);
}

.sandbox-step.is-done {
  color: #6ee7b7;
}

.sandbox-step.is-done .step-dot {
  background: var(--success);
}

.sandbox-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sandbox-output code {
  border: 0;
  padding: 0;
  background: transparent;
  overflow-wrap: anywhere;
}

/* Section 3: Use-Case Switcher */
.usecase-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.usecase-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  padding: 9px 16px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.usecase-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.usecase-tab.is-selected {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff;
}

.usecase-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.usecase-preview-wrap {
  display: grid;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.usecase-preview-panel {
  grid-area: 1 / 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  visibility: hidden;
  min-width: 0;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.usecase-preview-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  min-width: 0;
}

.preview-chrome > span:nth-child(2) {
  overflow-wrap: anywhere;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-text);
  flex-shrink: 0;
}

.preview-badge {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.72rem;
  white-space: nowrap;
}

.wp-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.wp-skel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skel-bar {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: #2b303a;
  border: 1px solid #383e4b;
}

.skel-logo {
  width: 56px;
  height: 10px;
  background: rgba(37, 99, 235, 0.35);
  border-color: rgba(59, 130, 246, 0.6);
  margin-right: auto;
}

.skel-link {
  width: 34px;
}

.wp-skel-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid #2e333d;
  border-radius: 6px;
  background: #101216;
}

.skel-title {
  width: 62%;
  height: 12px;
  background: #444b59;
}

.skel-line {
  width: 88%;
}

.skel-line.short {
  width: 52%;
}

.wp-skel-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wp-skel-box {
  height: 36px;
  border-radius: 6px;
  background: #171a20;
  border: 1px solid #2e333d;
}

.preview-log {
  margin: 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.shop-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-order-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.82rem;
}

.preview-foot {
  font-size: 0.8rem;
  color: var(--muted);
}

.usecase-reco-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.uc-reco-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.uc-plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
}

.uc-desc {
  margin: 0;
  font-size: 0.92rem;
}

.uc-spec {
  font-size: 0.9rem;
  color: var(--text);
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.uc-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-text);
}

/* Section 4: Price Slider & Featured Plans */
.slider-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
}

.slider-controls,
.slider-output {
  min-width: 0;
}

.slider-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.slider-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

.slider-ram-readout {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
}

.range-wrap {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
  margin: 8px 0 12px;
}

.range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  pointer-events: none;
}

.range-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 150ms ease;
}

#ram-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  height: 34px;
  background: transparent;
  position: relative;
  z-index: 2;
  cursor: pointer;
}

#ram-slider:focus {
  outline: none;
}

#ram-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid var(--accent);
  cursor: pointer;
}

#ram-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid var(--accent);
  cursor: pointer;
}

#ram-slider:focus-visible::-webkit-slider-thumb {
  border-color: var(--accent-text);
}

.slider-stops {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 16px;
}

.slider-stop {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  padding: 6px 1px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.slider-stop:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.slider-stop.is-active {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff;
}

.slider-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.slider-spec-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slider-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slider-output-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.slider-plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.slider-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.slider-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-text);
}

.slider-price-num {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}

.featured-plans-block {
  margin-top: 34px;
}

.featured-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.featured-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

/* Pricing Grid */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.plan-card-featured {
  border-color: var(--accent);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-name {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.plan-price {
  margin: 6px 0 14px;
}

.price-num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-text);
}

.price-unit {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-hourly {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--border);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.spec-list li span {
  color: var(--muted);
}

/* Section 5: How It Works (3 steps + scroll progress rail) */
.steps-track-wrap {
  position: relative;
  --steps-progress: 0.34;
}

.steps-rail {
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
  overflow: hidden;
}

.steps-rail-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(var(--steps-progress));
  transition: transform 90ms linear;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-left: 44px;
}

.step-node {
  position: relative;
  min-width: 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.step-node.is-active .step-num {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.step-node h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.step-node p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 36ch;
}

/* Section 6: OS Marquee */
.os-marquee {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 0;
}

.os-marquee-track {
  display: flex;
  width: max-content;
  animation: osMarquee 28s linear infinite;
  will-change: transform;
}

.os-marquee:hover .os-marquee-track,
.os-marquee:focus-within .os-marquee-track {
  animation-play-state: paused;
}

.os-marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}

@keyframes osMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.os-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease;
}

.os-chip:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

/* Section 7: FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 150ms ease;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 200ms ease, color 150ms ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-text);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel-inner {
  overflow: hidden;
}

.faq-panel-inner p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.94rem;
}

/* Section 8: Final CTA & Pricing Page Header */
.final-cta-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-color: var(--border-strong);
}

.final-cta-copy h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #ffffff;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pricing-head h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  color: #ffffff;
}

.pricing-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-grid-section {
  margin-bottom: 12px;
}

.cloud-crosslink {
  margin: 18px 0 0;
}

.pricing-switch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.pricing-switch-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.pricing-switch-tab:hover {
  text-decoration: none;
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.pricing-switch-tab.is-active {
  border-color: var(--accent-hover);
  background: #161c2a;
}

.pricing-switch-title {
  font-weight: 700;
  font-size: 1.04rem;
  color: #ffffff;
}

.pricing-switch-desc {
  font-size: 0.86rem;
  color: var(--muted);
}

.pricing-group-note {
  margin: 0 0 16px;
}

/* Facts Grid */
.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}

.fact-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.fact-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: #ffffff;
  background: var(--surface-2);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.btn:hover:not(:disabled) {
  text-decoration: none;
  background: #23262c;
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}

.btn-success {
  background: #059669;
  border-color: #059669;
}

.btn-warning {
  background: #d97706;
  border-color: #d97706;
}

.btn-danger {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--surface-2);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 11px 20px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.badge-lg {
  padding: 5px 12px;
  font-size: 0.88rem;
}

.badge-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.badge-warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.48);
  color: #fca5a5;
}

.badge-info {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.badge-accent {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--accent-text);
}

.badge-neutral {
  color: var(--muted);
}

/* Alerts & Credentials */
.alert {
  border-radius: 8px;
  padding: 13px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.5);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.5);
}

.alert-info {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}

.cred-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
}

.cred-title {
  font-size: 0.86rem;
  color: #6ee7b7;
  margin-bottom: 6px;
  font-weight: 600;
}

.cred-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Policy Pages */
.policy-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.policy-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.policy-tabs a {
  padding: 7px 13px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.policy-tabs a.active,
.policy-tabs a:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.14);
  text-decoration: none;
}

.policy-doc {
  padding: 24px;
}

.policy-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.policy-head h1 {
  margin: 0 0 8px;
  font-size: 1.55rem;
}

.policy-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.policy-section h2 {
  font-size: 1.08rem;
  margin: 0 0 10px;
}

.policy-para {
  margin: 0 0 10px;
  color: var(--text);
  white-space: pre-line;
}

.policy-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--muted);
}

.policy-foot-links {
  display: flex;
  gap: 14px;
}

/* Dashboard, Tables, Forms, Admin */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-head h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
}

.page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.kpi-value {
  font-size: 1.48rem;
  font-weight: 700;
  margin: 4px 0;
}

.mono-sm {
  font-size: 1.05rem;
}

.kpi-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-head-row h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.data-table tr.row-danger td {
  background: rgba(239, 68, 68, 0.14);
  border-bottom-color: rgba(239, 68, 68, 0.4);
}

.auth-wrap {
  max-width: 450px;
  margin: 24px auto;
}

.auth-card h1 {
  margin-top: 0;
}

.auth-switch {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--muted);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.field > span {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.94rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-hover);
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
}

.terms-check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.radio-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.radio-opt,
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.order-page-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.order-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.order-step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.order-step-head h2 {
  margin: 0 0 2px;
  font-size: 1.15rem;
  color: #ffffff;
}

.order-step-head p {
  margin: 0;
}

.order-step-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pick-radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.pick-card {
  position: relative;
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  min-width: 0;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.pick-card:hover:not(.is-disabled) {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.pick-card:has(> .pick-radio:checked),
.pick-card.is-selected {
  border-color: var(--accent-hover);
  background: #161c2a;
}

.pick-card:has(> .pick-radio:focus-visible) {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

.pick-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.order-type-grid,
.order-region-grid,
.order-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.order-os-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pick-card-type {
  align-items: flex-start;
  gap: 14px;
}

.pick-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-text);
  flex-shrink: 0;
}

.pick-type-body,
.pick-region-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.pick-type-name {
  font-size: 1.05rem;
  color: #ffffff;
}

.pick-card-region {
  align-items: center;
  gap: 12px;
  max-width: 340px;
}

.thai-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.order-nojs-group-label {
  margin: 4px 0 10px;
  font-size: 0.96rem;
  color: var(--muted);
}

html.js-ready .order-nojs-group-label {
  display: none;
}

.pick-card-plan {
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.order-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-plan-name {
  font-size: 1.06rem;
  color: #ffffff;
}

.order-plan-specs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.order-spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.order-spec-row svg {
  color: var(--muted);
  flex-shrink: 0;
}

.order-plan-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2px 0;
  width: 100%;
}

.order-plan-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-plan-price {
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1.2;
}

.order-plan-hourly {
  font-size: 0.82rem;
  color: var(--muted);
}

.pick-card-os {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px;
}

.order-os-name {
  font-size: 0.94rem;
  color: var(--text);
}

.order-config-card {
  margin-bottom: 0;
}

.order-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.order-sticky-plan {
  min-width: 0;
}

.order-sticky-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.order-sticky-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.order-sticky-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-sticky-price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.order-sticky-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order-sticky-actions .btn {
  width: 100%;
}

.order-insufficient-link {
  color: #fca5a5;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
}

.order-insufficient-link:hover {
  color: #fecaca;
}

.price-highlight {
  font-size: 1.3rem;
  color: var(--accent-text);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.stack-col {
  display: flex;
  flex-direction: column;
}

.kv-list {
  margin: 0;
}

.kv-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.kv-list dt {
  color: var(--muted);
}

.kv-list dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-zone {
  border-color: rgba(239, 68, 68, 0.45);
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg);
}

.notif-warning {
  border-left-color: var(--warn);
}

.notif-danger {
  border-left-color: var(--danger);
}

.notif-success {
  border-left-color: var(--success);
}

.notif-read {
  opacity: 0.72;
}

.notif-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.notif-body {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

.wallet-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-tabs a {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}

.admin-tabs a.active,
.admin-tabs a:hover {
  color: #ffffff;
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.16);
  text-decoration: none;
}

.inline-wallet-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.empty-state {
  text-align: center;
  padding: 28px 12px;
  color: var(--muted);
}

.error-card {
  max-width: 540px;
  margin: 36px auto;
  text-align: center;
}

.error-card .hero-actions {
  justify-content: center;
}

.error-code {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 6px;
}

.breadcrumb {
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.84rem;
}

.text-accent {
  color: var(--accent-text);
}

.text-success {
  color: #34d399;
}

.text-danger {
  color: #f87171;
}

/* Mobile-first Breakpoints */
@media (min-width: 640px) {
  .plan-grid,
  .facts-grid,
  .form-grid,
  .kpi-grid,
  .pricing-switch,
  .order-type-grid,
  .order-plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-os-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .usecase-tabs {
    display: inline-flex;
    flex-wrap: wrap;
  }

  .slider-panel {
    padding: 24px;
  }

  .slider-stop {
    font-size: 0.8rem;
    padding: 6px 4px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero h1 {
    font-size: 2.55rem;
  }
}

@media (min-width: 768px) {
  .live-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 34px;
  }
}

@media (min-width: 920px) {
  .home-section {
    margin-top: 90px;
  }

  .section-head h2 {
    font-size: 1.85rem;
  }

  .hero {
    grid-template-columns: 1.02fr 1.12fr;
    gap: 40px;
    margin-top: 16px;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  .usecase-stage {
    grid-template-columns: 1.35fr 1fr;
  }

  .slider-panel {
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
  }

  .steps-rail {
    left: 0;
    right: 0;
    top: 17px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .steps-rail-fill {
    transform-origin: left center;
    transform: scaleX(var(--steps-progress));
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-left: 0;
  }

  .plan-grid,
  .order-plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .plan-grid-4,
  .facts-grid,
  .kpi-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .kpi-grid:not(.kpi-grid-4) {
    grid-template-columns: repeat(3, 1fr);
  }

  .order-sticky-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
  }

  .order-sticky-actions {
    justify-content: flex-end;
  }

  .order-sticky-actions .btn {
    width: auto;
  }

  .detail-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .btn,
  .pick-card,
  .pricing-switch-tab,
  .hero-console,
  .hero-server-card,
  .sandbox-pill,
  .usecase-tab,
  .usecase-preview-panel,
  .range-fill,
  .slider-stop,
  .os-chip,
  .faq-item,
  .faq-icon,
  .faq-panel,
  .step-num,
  .steps-rail-fill,
  .ping-bar {
    transition: none;
  }

  .btn:hover:not(:disabled),
  .pick-card:hover:not(.is-disabled),
  .pricing-switch-tab:hover,
  .plan-card:hover,
  .ping-card:hover,
  .deploy-sandbox-card:hover,
  .slider-panel:hover,
  .usecase-reco-card:hover,
  .usecase-tab:hover,
  .os-chip:hover {
    transform: none;
  }

  .term-cursor,
  .bkk-pulse-dot::after,
  .os-marquee-track {
    animation: none;
  }

  .os-marquee {
    padding: 14px;
  }

  .os-marquee-track {
    width: auto;
  }

  .os-marquee-group {
    flex-wrap: wrap;
    padding-right: 0;
  }

  .os-marquee-group[aria-hidden="true"] {
    display: none;
  }
}
