/* =========================================================
   Kiatekaa marketing site — shared styles
   Brand source: Kiatekaa Website Brief v01 (§3)
   ========================================================= */

/* ---------- 1. Brand tokens ---------- */
:root {
  /* Palette (§3) */
  --kt-blue: #1A31EB;        /* Kiatekaa Blue — primary */
  --kt-blue-deep: #1224B8;   /* hover / pressed */
  --kt-ink: #0B1033;         /* body text, footer */
  --kt-sky: #DDE3FF;         /* supporting tint */
  --kt-porch: #FFB020;       /* accent — one highlight per view */
  --kt-slate: #4B5270;       /* secondary text */
  --kt-line: #CDD1DE;        /* 1px borders */
  --kt-mist: #F2F4F9;        /* alternate sections */
  --kt-white: #FFFFFF;
  --kt-success: #127A45;  --kt-success-tint: #E3F4EA;
  --kt-warning: #8F5A00;  --kt-warning-tint: #FFF4DB;

  /* Semantic roles (light) */
  --bg: var(--kt-white);
  --bg-alt: var(--kt-mist);
  --card: var(--kt-white);
  --panel: var(--kt-mist);
  --text: var(--kt-ink);
  --text-2: var(--kt-slate);
  --border: var(--kt-line);
  --link: var(--kt-blue);
  --link-hover: var(--kt-blue-deep);
  --focus: var(--kt-blue);
  --icon-bg: var(--kt-sky);
  --icon-fg: var(--kt-blue);
  --header-bg: var(--kt-white);

  /* Type */
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* 8pt spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;

  /* Layout */
  --container: 1200px;
  --margin: 16px;            /* mobile < 768 */
  --gutter: 24px;
  --section-y: 64px;         /* 96 from 768 up */

  --radius-btn: 4px;
  --radius-card: 8px;
  --shadow-dialog: 0 8px 24px rgba(11, 16, 51, .16);
}

@media (min-width: 768px) {
  :root { --margin: 32px; --section-y: 96px; }
}

/* Dark mode follows the device setting (§3 dark colours) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080C24;
    --bg-alt: #121940;
    --card: #1A2250;
    --panel: #1A2250;
    --text: #EEF0F8;
    --text-2: #A9AFCB;
    --border: #2C3468;
    --link: #A4AEFF;
    --link-hover: #DDE3FF;
    --focus: #A4AEFF;
    --icon-bg: #2C3468;
    --icon-fg: #EEF0F8;
    --header-bg: #121940;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;   /* paragraph text: 14px (changed from the brief's 16px for clearer hierarchy) */
  line-height: 22px;
  font-weight: 400;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
p { margin: 0 0 var(--s-3); max-width: 65ch; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-decoration: none; transition: color .15s ease; }
a:not(.btn):hover { color: var(--link-hover); }
a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* links inside running text are semibold so they stand out without an underline */
main p a:not(.btn), main li a:not(.btn), main dd a:not(.btn), .faq__a a { font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
strong { font-weight: 600; }

.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  background: var(--kt-blue); color: #fff; padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-btn); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Type scale (§3) ---------- */
h1, h2, h3, h4, .display { font-family: var(--font-head); margin: 0 0 var(--s-3); color: inherit; }
.display { font-size: 39px; line-height: 47px; font-weight: 700; letter-spacing: -0.02em; }
h1, .h1 { font-size: 39px; line-height: 47px; font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-size: 31px; line-height: 39px; font-weight: 700; letter-spacing: -0.015em; }
h3, .h3 { font-size: 25px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
h4, .h4 { font-size: 25px; line-height: 32px; font-weight: 600; letter-spacing: -0.005em; }
h5, .h5 { font-family: var(--font-body); font-size: 20px; line-height: 28px; font-weight: 600; margin: 0 0 var(--s-2); }
h6, .h6 { font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 var(--s-2); }
@media (min-width: 768px) {
  .display { font-size: 61px; line-height: 67px; }
  h1, .h1 { font-size: 49px; line-height: 56px; }
  h2, .h2 { font-size: 39px; line-height: 47px; }
  h3, .h3 { font-size: 31px; line-height: 39px; }
}
.lead { font-size: 20px; line-height: 28px; }
.small { font-size: 13px; line-height: 20px; letter-spacing: .005em; }
.caption {
  font-family: var(--font-body);
  font-size: 12px; line-height: 16px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
}
.muted { color: var(--text-2); }

/* ---------- 4. Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--margin)); margin-inline: auto; }
.section { padding-block: var(--section-y); background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 40px; }
.section__head p { color: var(--text-2); }

.grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 5. Buttons (§3: 48px, 16×24, radius 4, Inter 600 16px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-btn); border: 1px solid transparent;
  font: 600 16px/24px var(--font-body);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--kt-blue); color: #fff; }
.btn--primary:hover, .btn--primary:active { background: var(--kt-blue-deep); }
.btn--secondary { background: var(--card); color: var(--link); border-color: var(--link); }
.btn--secondary:hover { background: var(--bg-alt); }
.btn--ghost { background: transparent; color: var(--link); padding-inline: 0; }
.btn--ghost:hover { color: var(--link-hover); }
/* On Kiatekaa Blue */
.btn--on-blue { background: #fff; color: var(--kt-blue); }
.btn--on-blue:hover { background: var(--kt-sky); }
.btn--outline-on-blue { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-on-blue:hover { background: var(--kt-blue-deep); }
.on-blue :focus-visible { outline-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn--block { width: 100%; }

/* ---------- 6. Cards, panels, banners ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px;
  display: flex; flex-direction: column;
}
.card > :last-child { margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: 20px; }
.panel { background: var(--panel); border-radius: var(--radius-card); padding: var(--s-5); }
.panel > :last-child { margin-bottom: 0; }
.section--alt .panel { background: var(--card); border: 1px solid var(--border); }
.banner {
  border-left: 4px solid var(--kt-blue); background: var(--panel);
  padding: var(--s-3); border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}
.banner p { margin: 0; }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-2); align-items: start; }
.check-list svg { width: 24px; height: 24px; color: var(--link); }

.icon-tile {
  width: 48px; height: 48px; border-radius: var(--radius-card);
  background: var(--icon-bg); color: var(--icon-fg);
  display: grid; place-items: center; margin-bottom: 12px;
}
.icon-tile svg { width: 24px; height: 24px; }

/* Placeholder marker — clearly visible, never mistaken for real content */
.ph {
  display: inline-block; font: 500 13px/20px var(--font-body);
  background: var(--kt-warning-tint); color: var(--kt-warning);
  border: 1px dashed var(--kt-warning); border-radius: var(--radius-btn);
  padding: 0 var(--s-2); max-width: 100%; overflow-wrap: anywhere;
}
.ph-box {
  display: grid; place-items: center; text-align: center;
  background: var(--kt-warning-tint); color: var(--kt-warning);
  border: 1px dashed var(--kt-warning); border-radius: var(--radius-card);
  padding: var(--s-4); font: 500 13px/20px var(--font-body);
}

/* ---------- 7. Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; gap: var(--s-3); min-height: 72px; }
.brand { display: inline-flex; padding: var(--s-2) 0; flex-shrink: 0; }
.brand img { height: 32px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: var(--s-1); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-3);
  color: var(--text); text-decoration: none; font-weight: 500; border-radius: var(--radius-btn);
}
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] { color: var(--link); font-weight: 600; box-shadow: inset 0 -2px 0 var(--link); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.menu-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-btn); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 767px) {
  .site-header__bar { min-height: 64px; }
  .brand img { height: 28px; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { padding-inline: 16px; }
  .menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--header-bg); border-bottom: 1px solid var(--border);
    padding: var(--s-2) var(--margin) var(--s-3); margin: 0;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; }
  .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--link); }
  /* Without JavaScript the menu stays visible as a row under the logo */
  html:not(.js) .site-nav { position: static; border: 0; padding: 0; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; }
}
@media (max-width: 359px) {
  .brand img { height: 24px; }
  .site-header__bar { gap: var(--s-2); }
}

/* ---------- 8. Hero (Home) ---------- */
.hero { background: var(--kt-blue); color: #fff; padding-block: var(--s-7); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) {
  .hero { padding-block: var(--s-8); }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: var(--s-7); }
}
.eyebrow-chip {
  display: inline-block; background: var(--kt-porch); color: var(--kt-ink);
  border-radius: var(--radius-btn); padding: var(--s-1) var(--s-2); margin-bottom: var(--s-4);
}
.hero .lead { color: var(--kt-sky); margin-bottom: var(--s-5); max-width: 52ch; }

/* Phone mock-up: Ink device frame, radius 24, 6px bezel, sample data only */
.phone {
  width: min(300px, 100%); margin-inline: auto;
  background: var(--kt-ink); border-radius: 24px; padding: 6px;
}
.phone__screen {
  background: #fff; color: var(--kt-ink); border-radius: 18px; overflow: hidden;
  font-family: var(--font-body);
}
.phone__top {
  display: flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3); border-bottom: 1px solid var(--kt-line);
}
.phone__top img { width: 24px; height: 24px; }
.phone__top span { font-weight: 600; font-size: 13px; line-height: 20px; }
.phone__body { padding: var(--s-3); display: grid; gap: var(--s-2); background: var(--kt-mist); }
.phone__label { color: var(--kt-slate); margin: var(--s-1) 0 0; }
.phone__task {
  background: #fff; border: 1px solid var(--kt-line); border-radius: var(--radius-card);
  padding: 12px var(--s-3); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
}
.phone__task b { display: block; font-size: 13px; line-height: 20px; font-weight: 600; }
.phone__task small { display: block; font-size: 12px; line-height: 16px; color: var(--kt-slate); }
.phone__task svg { width: 16px; height: 16px; color: var(--kt-blue); flex-shrink: 0; }
.phone__prop {
  background: #fff; border: 1px solid var(--kt-line); border-radius: var(--radius-card); overflow: hidden;
}
.phone__photo { height: 72px; background: var(--kt-sky); display: grid; place-items: center; }
.phone__photo img { width: 40px; height: auto; }
.phone__prop div.meta { padding: 12px var(--s-3); }
.phone__prop b { display: block; font-size: 13px; line-height: 20px; font-weight: 600; }
.phone__prop small { display: block; font-size: 12px; line-height: 16px; color: var(--kt-slate); }
.status {
  display: inline-block; margin-top: var(--s-2); font: 500 12px/16px var(--font-body);
  padding: 2px var(--s-2); border-radius: var(--radius-btn);
}
.status--success { background: var(--kt-success-tint); color: var(--kt-success); }

/* ---------- 9. Home sections ---------- */
.points { padding-block: var(--s-6); background: var(--bg); border-bottom: 1px solid var(--border); }
.points ul { list-style: none; display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .points ul { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-2); font-weight: 600; }
.points svg { width: 24px; height: 24px; color: var(--link); }

.audience-card h3 { margin-bottom: var(--s-2); }
.audience-card .check-list { margin-top: var(--s-3); }

.steps { list-style: none; display: grid; gap: var(--gutter); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 2px solid var(--link); padding-top: var(--s-3); }
.step__num {
  display: block; font: 700 31px/39px var(--font-head); color: var(--link); margin-bottom: var(--s-2);
}
.steps p { color: var(--text-2); margin: 0; }
.steps-secondary { margin-top: var(--s-6); }

.feature h3 { font-family: var(--font-body); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-2); }
.feature p { color: var(--text-2); margin: 0; }

.managed-panel { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 768px) { .managed-panel { grid-template-columns: 1fr auto; } }
.managed-panel h2 { margin-bottom: var(--s-2); }
.managed-panel p { margin: 0; color: var(--text-2); }

.trust-list { list-style: none; display: grid; gap: var(--s-3) var(--gutter); }
@media (min-width: 768px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-list { grid-template-columns: repeat(3, 1fr); } }
.trust-list li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-2); }
.trust-list svg { width: 24px; height: 24px; color: var(--link); }

.cta-band { background: var(--kt-blue); color: #fff; padding-block: var(--s-7); }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; }
.cta-band p { color: var(--kt-sky); margin: var(--s-2) 0 0; }

/* ---------- 10. Inner page header ---------- */
.page-head { background: var(--bg-alt); padding-block: var(--s-7); border-bottom: 1px solid var(--border); }
.page-head__accent { display: block; width: 48px; height: 4px; background: var(--kt-porch); border-radius: 2px; margin-bottom: var(--s-4); }
.page-head p { color: var(--text-2); margin-bottom: 0; }
.page-head .lead { color: var(--text-2); }

/* ---------- 11. Plans ---------- */
.plan-grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; }
.plan--popular { border: 2px solid var(--link); }
.plan__badge { align-self: flex-start; background: var(--kt-blue); color: #fff; padding: 2px var(--s-2); border-radius: var(--radius-btn); margin-bottom: var(--s-3); }
.plan__name { font-family: var(--font-body); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
.plan__price { font: 700 39px/47px var(--font-head); letter-spacing: -0.015em; margin: 0; }
.plan__per { color: var(--text-2); margin: 0 0 var(--s-3); }
.plan__limits { font-weight: 600; padding-block: var(--s-3); border-block: 1px solid var(--border); margin-bottom: var(--s-3); }
.plan__limits p { margin: 0; }
.plan .check-list { gap: var(--s-2); }

.managed-card { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .managed-card { grid-template-columns: 1fr 1fr; } }
.managed-card .plan__price { font-size: 31px; line-height: 39px; }
.who-does { display: grid; gap: var(--s-4); }
.who-does h3 { font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-2); }
.who-does ul { padding-left: 20px; display: grid; gap: var(--s-2); }

.notes { display: grid; gap: var(--gutter); margin-top: var(--s-6); }
@media (min-width: 768px) { .notes { grid-template-columns: 1fr 1fr; } }

/* FAQ accordion (native details/summary) */
.faq { max-width: 800px; display: grid; gap: var(--s-2); }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 48px; padding: var(--s-3) var(--s-4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  font-weight: 600; border-radius: var(--radius-card);
  font-size: 16px; line-height: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 10px; height: 10px;
  border-right: 2px solid var(--link); border-bottom: 2px solid var(--link);
  transform: rotate(45deg) translateY(-3px); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .faq__a { padding: 0 var(--s-4) var(--s-3); color: var(--text-2); }
.faq .faq__a p { margin: 0; }

/* ---------- 12. About ---------- */
.mission { margin: 0; border-left: 4px solid var(--kt-porch); padding-left: var(--s-4); }
.mission p { font: 600 25px/32px var(--font-head); letter-spacing: -0.005em; max-width: 30ch; margin: 0; }
@media (min-width: 768px) { .mission p { font-size: 31px; line-height: 39px; } }
.two-col { display: grid; gap: var(--s-6); }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; } }
.value-card h3 { font-family: var(--font-body); font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-2); }
.value-card .value-means { color: var(--text-2); }
.value-card .value-do { border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.country-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.country-list li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-btn); padding: var(--s-1) 12px; font-size: 13px; line-height: 20px; }
.team-slot .ph-box { aspect-ratio: 4 / 5; margin-bottom: var(--s-3); }
.photo-slot { aspect-ratio: 3 / 2; }
.contact-list { list-style: none; display: grid; gap: var(--s-3); }
.contact-list dt, .contact-list .label { font-weight: 600; font-size: 13px; line-height: 20px; }

/* ---------- 13. Sign in ---------- */
.signin-card h2 { font-size: 25px; line-height: 32px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: var(--s-2); }
.install-steps { padding-left: 20px; display: grid; gap: var(--s-1); }

/* ---------- 14. Footer (Ink) ---------- */
.site-footer { background: var(--kt-ink); color: #EEF0F8; padding-block: var(--s-7) var(--s-5); }
@media (prefers-color-scheme: dark) { .site-footer { border-top: 1px solid #2C3468; } }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand img { height: 32px; width: auto; margin-bottom: var(--s-3); }
.footer-brand p { color: #A9AFCB; margin: 0; }
.site-footer h2 { font: 500 12px/16px var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: #A9AFCB; margin-bottom: var(--s-3); }
.footer-links { list-style: none; display: grid; gap: var(--s-1); }
.footer-links a, .footer-links span.link-text { display: inline-flex; align-items: center; min-height: 32px; }
.footer-contact { list-style: none; display: grid; gap: var(--s-2); }
.footer-bottom { border-top: 1px solid #2C3468; margin-top: var(--s-6); padding-top: var(--s-4); color: #A9AFCB; }
.footer-bottom { display: grid; gap: var(--s-2); }
.footer-bottom p { margin: 0; max-width: none; }
.footer-questions { color: #EEF0F8; }
.footer-questions a { font-weight: 600; }

/* ---------- 15. Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); }
.stack > * + * { margin-top: var(--s-3); }

/* ---------- 16. Blocks used by the site editor ---------- */
/* Kiatekaa Blue section (white text) */
.section--blue { background: var(--kt-blue); color: #fff; }
.section--blue p, .section--blue .muted, .section--blue .section__head p { color: var(--kt-sky); }
.section--blue a:not(.btn) { color: #fff; }
.section--blue :focus-visible { outline-color: #fff; }
/* Photos and images placed in the page */
.media { width: 100%; height: auto; border-radius: var(--radius-card); object-fit: cover; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }
.team-slot .media { margin-bottom: var(--s-3); }

/* Page heading area with an image (set from the site editor) */
/* 1. Image beside the heading */
.page-head--split .container { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 1024px) { .page-head--split .container { grid-template-columns: 7fr 5fr; gap: var(--s-7); } }
.page-head__media { margin: 0; }
.page-head__media .media { display: block; }
/* 2. Background photo with an Ink overlay so white text stays readable (WCAG AA) */
.page-head--photo { position: relative; overflow: hidden; background: var(--kt-ink); color: #fff; border-bottom: 0; }
.page-head--photo .page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head--photo::after { content: ""; position: absolute; inset: 0; background: rgba(11, 16, 51, .72); }
.page-head--photo .container { position: relative; z-index: 1; }
.page-head--photo p, .page-head--photo .lead { color: var(--kt-sky); }
.page-head--photo :focus-visible { outline-color: #fff; }
@media (min-width: 768px) { .page-head--photo { padding-block: var(--s-8); } }

/* ---------- 17. Legal pages (privacy notice, terms) ---------- */
.legal-layout { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 1024px) { .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-7); } }
.legal-toc { position: static; }
@media (min-width: 1024px) { .legal-toc { position: sticky; top: 96px; } }
.legal-toc ol { padding-left: 20px; display: grid; gap: var(--s-1); font-size: 13px; line-height: 20px; }
.legal-toc a { color: var(--text-2); }
.legal-toc a:hover { color: var(--link); }
.legal { max-width: 72ch; }
.legal h2 { font-size: 25px; line-height: 32px; font-weight: 600; letter-spacing: -0.005em; margin: var(--s-6) 0 var(--s-3); scroll-margin-top: 96px; }
.legal h3 { font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; margin: var(--s-4) 0 var(--s-2); }
.legal ul { padding-left: 20px; display: grid; gap: var(--s-2); margin-bottom: var(--s-3); }
.legal .contact-list { padding-left: 0; }
.banner--draft { border-left-color: var(--kt-porch); background: var(--kt-warning-tint); color: #5C3A00; }
.banner--draft strong { color: #5C3A00; }

/* ---------- 18. Custom button colours (set from the site editor) ---------- */
.btn[style*="--btn-bg"] { background: var(--btn-bg); }
.btn[style*="--btn-fg"] { color: var(--btn-fg); }
.btn[style*="--btn-bd"] { border-color: var(--btn-bd); }
.btn[style*="--btn-bg"]:hover, .btn[style*="--btn-bg"]:active { background: var(--btn-bg); filter: brightness(.9); }

/* Hero phone picture (home page) */
.hero__phone { display: block; width: 100%; max-width: 420px; height: auto; margin-inline: auto; }

/* Footer links: no underline, Porch Light on hover */
.site-footer a { text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--kt-porch); }
.site-nav a:hover { color: var(--link-hover); }

/* About · Where we work: heading, then the paragraph across the page, then the country list under it */
.where-grid { display: grid; gap: var(--s-4); }
.where-grid .section__head { margin-bottom: 0; }
.where-grid .section__head p { max-width: 960px; }

/* About · Contact us: the email and WhatsApp details sit under the Open the portal button */
.contact-stack { display: grid; gap: var(--s-4); justify-items: start; }
.contact-stack .contact-list { gap: var(--s-2); }

/* WhatsApp contact: icon in place of the word */
.wa { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wa-icon { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; }
.footer-questions .wa { vertical-align: middle; }
a.wa { font-weight: 600; }
.site-footer a.wa { color: #fff; }
.site-footer a.wa:hover { color: var(--kt-porch); }

.nowrap { white-space: nowrap; }

/* ---------- Pre-launch: launch bar and portal status ---------- */
.launch-bar { background: var(--kt-ink, #0B1033); color: #DDE3FF; font-size: 13px; line-height: 20px; }
.launch-bar .container { padding-top: 8px; padding-bottom: 8px; }
.launch-bar p { margin: 0; text-align: center; }
.launch-bar a { color: #FFFFFF; font-weight: 600; text-decoration: underline; }
.launch-bar[hidden], [data-when-live][hidden], [data-when-offline][hidden] { display: none !important; }
.hero__where { margin-top: 12px; font-size: 15px; line-height: 22px; opacity: .92; }
.status-card { max-width: 760px; }
.status-card h2 { margin-top: 8px; }
.status-card__tag { display: inline-block; background: var(--kt-warning-tint, #FFF4DB); color: #5C3A00; padding: 2px 8px; border-radius: 4px; }
.status-card .check-list { margin-top: 20px; }
.launch-bar .container { display: block; }
.status-card__tag { align-self: flex-start; }
.policy-list { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
@media (min-width: 1024px) { .notes { grid-template-columns: 1fr 1fr 1fr; } }
