/* Ommer public pricing — light marketing surface aligned with console brand */

:root {
  --bg: #f4f6f8;
  --bg-elevated: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e6eaf0;
  --border-strong: #d0d7e2;
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --brand: #0d9488;
  --brand-hover: #0f766e;
  --brand-soft: #ccfbf1;
  --brand-ink: #134e4a;
  --danger: #dc2626;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warn-soft: #fffbeb;
  --warn: #b45309;
  --info-soft: #eff6ff;
  --out-soft: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --font: Inter, "Noto Sans Khmer", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 0.5rem;
}

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.3);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
}
.mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2dd4bf, var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.mark.sm { width: 22px; height: 22px; font-size: 0.65rem; border-radius: 6px; }
.top-nav {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
  flex: 1;
}
.top-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.top-nav a:hover { color: var(--brand-ink); }
.top-actions { display: flex; gap: 0.5rem; align-items: center; }

@media (max-width: 800px) {
  .top-nav { display: none; }
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.flag { font-size: 1rem; }
.hero h1 {
  margin: 0 auto 1rem;
  max-width: 18ch;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 auto 1.5rem;
  max-width: 54ch;
  color: var(--text-secondary);
  font-size: 1.05rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Strip */
.strip {
  max-width: var(--max);
  margin: 0 auto 1rem;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.strip-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.strip-item strong { font-size: 0.78rem; color: var(--brand-ink); text-transform: uppercase; letter-spacing: 0.04em; }
.strip-item span { font-size: 0.88rem; color: var(--text-secondary); }

@media (max-width: 800px) {
  .strip { grid-template-columns: 1fr 1fr; }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.section-head {
  margin-bottom: 1.5rem;
  text-align: center;
}
.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.section-head > p {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--text-secondary);
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  margin-top: 1.25rem;
  padding: 0.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  gap: 0.15rem;
  box-shadow: var(--shadow-sm);
}
.toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.toggle-btn.active {
  background: var(--brand);
  color: #fff;
}
.toggle-btn .pill {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}
.toggle-btn:not(.active) .pill {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.billing-hint { margin-top: 0.65rem; font-size: 0.85rem; }

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.plan {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13, 148, 136, 0.15);
  transform: translateY(-4px);
}
.plan-ribbon {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.plan-tag {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
  margin: 1.1rem 0 0.25rem;
}
.currency { font-weight: 700; color: var(--brand-ink); font-size: 1.1rem; }
.amount {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.per { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.price-sub { margin: 0 0 1rem; font-size: 0.82rem; color: var(--muted); }
.plan-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}
.plan-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.plan-cta { width: 100%; }
.plan-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
}

/* Compare card */
.card-soft {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.compare-price {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.compare-price h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.mini-table th,
.mini-table td {
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.mini-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--bg-subtle);
}
.mini-table td:first-child { font-weight: 600; color: var(--text); width: 28%; }

@media (max-width: 800px) {
  .compare-price { grid-template-columns: 1fr; }
}

/* KH pack */
.kh-pack {
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(13, 148, 136, 0.08), transparent 60%),
    transparent;
}
.kh-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.kh-grid h2 {
  margin: 0 0 0.65rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  color: var(--text-secondary);
}
.check-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.kh-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.kh-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.chip-live {
  background: var(--brand-soft);
  border-color: #99f6e4;
  color: var(--brand-ink);
}

@media (max-width: 800px) {
  .kh-grid { grid-template-columns: 1fr; }
}

/* Matrix */
.legend {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.35rem 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot.live { background: var(--success); }
.dot.road { background: var(--warn); }
.dot.out { background: #94a3b8; }
.dot.bh { background: #6366f1; }

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.84rem;
}
.matrix th,
.matrix td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.matrix th {
  position: sticky;
  top: 0;
  background: var(--bg-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}
.matrix .th-sub {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}
.matrix td.feat,
.matrix th.feat {
  text-align: left;
  font-weight: 600;
  min-width: 200px;
}
.matrix th.note,
.matrix td.note {
  text-align: left;
  color: var(--muted);
  font-size: 0.78rem;
  min-width: 160px;
}
.matrix tr.group td {
  text-align: left;
  background: linear-gradient(90deg, var(--brand-soft), transparent 70%);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.85rem;
  padding-bottom: 0.5rem;
}
.matrix tbody tr:hover td:not(.group td) {
  background: rgba(13, 148, 136, 0.03);
}

.cell-live,
.cell-yes,
.cell-soft,
.cell-road,
.cell-out {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cell-live {
  background: var(--success-soft);
  color: var(--success);
}
.cell-yes {
  background: #eef2ff;
  color: #4338ca;
}
.cell-soft {
  background: var(--info-soft);
  color: #1d4ed8;
}
.cell-road {
  background: var(--warn-soft);
  color: var(--warn);
}
.cell-out {
  background: var(--out-soft);
  color: #64748b;
}

/* Who */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.who-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.who-card h3 { margin: 0 0 0.4rem; }
.who-card p { margin: 0; color: var(--text-secondary); font-size: 0.92rem; }

@media (max-width: 800px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}
.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq p {
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  max-width: var(--max);
  margin: 1rem auto 2.5rem;
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.05)),
    var(--bg-elevated);
  border: 1px solid #99f6e4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
}
.cta-band h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Footer */
.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.foot-links a:hover { color: var(--brand); }
