/* Components. Uses tokens only. Mobile first; header switches to the full row at 900px. */

/* ---------- Placeholder marker (preview builds) ---------- */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  outline: 1px dashed var(--ph-line);
  border-radius: 3px;
  padding: 0 0.2em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--tap-lg);
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--bg-alt); color: var(--ink); }
.btn .ph { background: var(--ph-bg); color: var(--ph-ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
/* Mobile: [logo][lang][toggle] on one row, menu panel full width below. */
.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: var(--tap);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo__mark { flex: none; width: 36px; height: 36px; color: var(--accent); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: var(--fs-small);
}
.lang-switch__item {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 var(--space-4);
  color: var(--ink);
  text-decoration: none;
}
.lang-switch__item[aria-current] { background: var(--ink); color: var(--bg); font-weight: 600; }
a.lang-switch__item:hover { background: var(--bg-alt); color: var(--ink); }
a.lang-switch__item:focus-visible { outline-offset: -3px; }

/* Toggle: only shown when JS is running (html.js) and below 900px */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.site-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--accent); text-decoration: underline; }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 899.98px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-menu { display: none; padding-bottom: var(--space-3); }
  .js .site-menu[data-open] { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav li + li { border-top: 1px solid var(--line); }
  .site-menu__cta { align-self: stretch; }
}

/* Very narrow screens: show only the language you can switch to */
@media (max-width: 479.98px) {
  .lang-switch__item[aria-current] { display: none; }
  .lang-switch { border-radius: var(--radius-sm); }
}

@media (min-width: 900px) {
  .site-header__inner { display: flex; gap: var(--space-5); padding-block: var(--space-4); }
  .logo { flex: none; font-size: 1.1875rem; }
  .site-menu { display: contents; }
  .site-nav { order: 1; margin-inline: auto; }
  .lang-switch { order: 2; }
  .site-menu__cta { order: 3; white-space: nowrap; }
  .site-nav a { font-size: 0.9375rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark-2);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-7);
}
.site-footer p { margin: 0 0 var(--space-1); }
.site-footer__name { color: var(--bg); font-size: 1.125rem; font-weight: 700; }
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--accent-on-dark); }
.site-footer :focus-visible { outline-color: var(--focus-on-dark); }
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__nav a { display: inline-flex; align-items: center; min-height: var(--tap); }

/* ---------- Pending links (contact value or target page not ready) ---------- */
/* Preview builds only: a production build of a launch page cannot contain these (npm run check). */
[data-env="preview"] .is-pending {
  outline: 2px dashed var(--ph-line);
  outline-offset: 2px;
  cursor: not-allowed;
}

/* ---------- More buttons ---------- */
.icon { flex: none; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--bg-dark-card); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--bg-alt); color: var(--ink); }
.btn--outline-light { background: transparent; color: var(--bg); border-color: var(--bg); }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.1); color: var(--bg); }
.btn--block { display: flex; width: 100%; }


/* ---------- Bands and section helpers ---------- */
.band-dark { background: var(--bg-dark); color: var(--bg); }
.band-dark :focus-visible { outline-color: var(--focus-on-dark); }
.band-white { background: var(--bg); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; }
.section-head h2 { margin-bottom: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-6); }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark); max-width: var(--measure); margin: 0; }
.lead-muted { font-size: var(--fs-lead); color: var(--ink-2); margin: 0; }
.eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
:lang(km) .eyebrow { letter-spacing: 0; text-transform: none; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-5);
}
.split { display: flex; flex-wrap: wrap; gap: var(--space-7); align-items: center; }
.split--top { align-items: flex-start; }
.split__main { flex: 1 1 520px; min-width: 0; }
.split > :not(.split__main) { flex: 1 1 340px; }

/* ---------- Hero + gateway ---------- */
.hero__inner { padding-block: var(--space-8) var(--space-7); display: flex; flex-direction: column; gap: var(--space-7); }
.hero__text { max-width: var(--measure-wide); }
.hero h1 { margin-bottom: var(--space-4); }
.gateway__title { font-size: 1.125rem; margin-bottom: var(--space-4); }
.gateway__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--space-4);
}
.gateway-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--bg-dark-card);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  color: var(--bg);
  text-decoration: none;
}
a.gateway-card:hover { border-color: var(--accent-on-dark); color: var(--bg); }
.gateway-card__title { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem); font-weight: 700; line-height: 1.25; }
.gateway-card__text { color: var(--on-dark-2); }
.gateway-card__more { margin-top: var(--space-1); font-weight: 600; color: var(--accent-on-dark); }
.gateway__founders { margin: var(--space-4) 0 0; }
.link-on-dark { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--bg); font-weight: 500; text-decoration: underline; }
.link-on-dark:hover { color: var(--accent-on-dark); }

/* ---------- Licence strip ---------- */
.licence-strip { background: var(--bg); border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.9375rem; }
.licence-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5);
}
.licence-strip__item { margin: 0; }
.licence-strip__item--main { display: flex; align-items: center; gap: var(--space-2); }
.licence-strip__item--main .icon { color: var(--accent); }
.licence-strip strong { color: var(--ink); }

/* ---------- Plan card ---------- */
.plan-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.plan-card--featured { border: 2px solid var(--accent); }
.plan-card > * { margin: 0; }
.plan-card__badge {
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
}
.plan-card__name { font-size: 1.5rem; }
.plan-card__promise { color: var(--ink-2); font-size: 0.9375rem; }
.plan-card__price { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; line-height: 1.2; }
.plan-card__price .ph { font-size: 1rem; font-weight: 600; }
.plan-card__period { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); }
.plan-card__list { padding-left: 1.25rem; font-size: 0.9375rem; line-height: 1.8; color: var(--ink-3); }
.plan-card__cta { margin-top: auto; padding-top: var(--space-2); }

/* ---------- Note box ---------- */
.note-box {
  padding: var(--space-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.note-box p { margin: 0; }
.note-box__title { font-weight: 700; color: var(--ink); margin-bottom: var(--space-1) !important; }

/* ---------- Licence card ---------- */
.licence-card { padding: var(--space-6); background: var(--bg-alt); border-radius: var(--radius-lg); }
.licence-card p { margin: 0 0 var(--space-1); }
.licence-card__label { font-size: var(--fs-small); font-weight: 600; color: var(--accent); }
.licence-card__number { font-size: 1.5rem; font-weight: 700; }
.licence-card__meta { font-size: 0.9375rem; color: var(--ink-2); }
.licence-card__link { font-weight: 600; }

/* ---------- Deadline list ---------- */
.deadline-list { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.deadline-list__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.deadline-list__item span { color: var(--ink-2); font-size: 0.9375rem; }
.deadline-list__checked { margin: var(--space-3) 0 0; }

/* ---------- Reminder card ---------- */
.reminder-card { padding: var(--space-6); border-radius: var(--radius-lg); }
.reminder-card p { color: var(--on-dark); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--bg); }
.cta-band :focus-visible { outline-color: var(--bg); }
.lead-on-accent { font-size: var(--fs-lead); color: var(--accent-soft); margin: 0; }

/* ---------- Bottom bar (mobile) ---------- */
.bottom-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -2px 12px rgb(21 34 43 / 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; padding: 0; list-style: none; }
.bottom-bar__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: var(--space-1) var(--space-2);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.bottom-bar li + li { border-left: 1px solid var(--line); }
.bottom-bar .icon { color: var(--accent); }
a.bottom-bar__action:hover { background: var(--bg-alt); color: var(--ink); }
.bottom-bar__action:focus-visible { outline-offset: -3px; }
body:has(.bottom-bar) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .bottom-bar { display: none; }
  body:has(.bottom-bar) { padding-bottom: 0; }
}

/* ---------- Foreign page ---------- */
.hero__inner--split { flex-direction: row; flex-wrap: wrap; align-items: center; }
.hero__inner--split .hero__text { flex: 1 1 560px; }
.hero__ctas { margin-top: var(--space-5); }
.btn--on-dark:focus-visible { outline-color: var(--focus-on-dark); }
.btn--static { cursor: text; user-select: all; }
.why-card {
  flex: 1 1 320px;
  padding: var(--space-6);
  background: var(--bg-dark-card);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}
.why-card__title { font-size: 1.125rem; margin-bottom: var(--space-3); }
.check-list { margin: 0; padding: 0; list-style: none; color: var(--on-dark); }
.check-list li { position: relative; padding-left: 1.75rem; margin-bottom: var(--space-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-on-dark); font-weight: 700; }
.problem-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.problem-list li {
  padding: var(--space-4) var(--space-5);
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps__item { display: flex; flex-direction: column; gap: var(--space-2); }
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}
.steps__title { font-size: 1.125rem; }
.steps__text { color: var(--ink-2); }

/* Package table: table from 700px, cards below */
.pk-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: none; }
.pk-table th, .pk-table td { padding: var(--space-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pk-table thead th { background: var(--bg-alt); font-size: 1rem; }
.pk-table tbody th { font-weight: 500; }
.pk-table__price td { font-size: 1.125rem; font-weight: 700; }
.pk-yes { color: var(--accent); font-weight: 700; }
.pk-no { color: var(--ink-muted); }
.pk-cards { display: grid; gap: var(--space-4); }
.pk-card { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.pk-card__name { font-size: 1.25rem; margin-bottom: var(--space-1); }
.pk-card__price { font-size: 1.25rem; font-weight: 700; }
.pk-card__list { margin: 0; padding: 0; list-style: none; }
.pk-card__list li { padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.pk-card__list li.is-no { color: var(--ink-muted); }
@media (min-width: 700px) {
  .pk-table { display: table; }
  .pk-cards { display: none; }
}
.small-print { font-size: 0.9375rem; color: var(--ink-2); margin: 0; }

.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.info-card { padding: var(--space-5); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.info-card__title { font-size: 1.125rem; margin-bottom: var(--space-2); }
.info-card p { margin: 0; color: var(--ink-2); }

.person-card { display: flex; gap: var(--space-5); align-items: flex-start; padding: var(--space-6); background: var(--bg-alt); border-radius: var(--radius-lg); }
.person-card__initials {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
  font-size: 1.5rem;
  font-weight: 700;
}
.person-card__photo { width: 80px; height: 80px; border-radius: var(--radius-pill); object-fit: cover; }
.person-card p { margin: 0 0 var(--space-1); }
.person-card__name { font-size: 1.25rem; font-weight: 700; }
.person-card__role, .person-card__bio { color: var(--ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--tap-lg);
  padding: var(--space-4) 0;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0 0 var(--space-4); color: var(--ink-2); max-width: var(--measure); }
