/* Xtreme Zambia storefront. Tokens: see notes in the design plan. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --forest: #0C3326;
  --forest-2: #134232;
  --forest-3: #1d5541;
  --copper: #E8711A;
  --copper-hover: #F0852F;
  --leaf: #1E7A4C;
  --leaf-bg: #E3F1E8;
  --paper: #F4F7F5;
  --white: #FFFFFF;
  --ink: #17241E;
  --muted: #54645C;
  --line: #D3DDD7;
  --red: #C8102E;
  --red-bg: #FBE9EC;
  --on-dark: #E9F1EC;
  --on-dark-muted: #A7BDB1;

  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* ── Type ─────────────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  color: var(--forest);
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.05rem; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 52ch; }
.section-head .lede, .page-head .lede { max-width: 80ch; }
.small { font-size: 0.875rem; color: var(--muted); }

/* ── Top strip + header ───────────────────────────────── */
.strip { height: 5px; background: var(--forest); display: flex; justify-content: flex-end; }
.strip span { width: 28px; }
.strip .r { background: var(--red); }
.strip .b { background: #000; }
.strip .c { background: var(--copper); margin-right: var(--gutter); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 0; padding-top: 6px; padding-bottom: 4px; }
.brand { display: flex; align-items: center; flex-shrink: 1; min-width: 0; }
.brand img { height: 92px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; font-size: 15.5px; color: var(--ink); }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--forest); box-shadow: inset 0 -3px 0 var(--copper); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.basket-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border: 1.5px solid var(--forest); border-radius: var(--radius); color: var(--forest); }
.basket-link:hover { background: var(--forest); color: var(--white); }
.basket-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--copper); color: var(--forest); font-size: 13px; display: inline-grid; place-items: center; font-weight: 700; }
.client-link { white-space: nowrap; font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 10px; }
.client-link:hover { text-decoration: underline; }

.menu { display: none; margin-left: auto; flex-shrink: 0; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; border-radius: var(--radius); border: 1.5px solid var(--line); line-height: 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--paper); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 12px 24px rgba(12, 51, 38, 0.08); }
.menu-panel a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }

@media (max-width: 1000px) {
  .nav, .header-actions .client-link { display: none; }
  .menu { display: block; }
  .header-actions { margin-left: auto; flex-shrink: 0; }
  .menu { margin-left: 0; }
  .site-header .wrap { gap: 12px; min-height: 68px; }
  .brand img { height: auto; max-height: 52px; max-width: 100%; }
}

/* ── Buttons, forms, flashes ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 0;
  background: var(--copper); color: var(--forest); font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--copper-hover); }
.btn-dark { background: var(--forest); color: var(--white); }
.btn-dark:hover { background: var(--forest-3); }
.btn-line { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1.5px var(--forest); }
.btn-line:hover { background: var(--forest); color: var(--white); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14.5px; }
.link-btn:hover { color: var(--red); }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--muted); margin: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: 4px;
}
textarea.input { min-height: 140px; resize: vertical; }
.input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(232, 113, 26, 0.35); }
.input[aria-invalid="true"] { border-color: var(--red); }
.err { color: var(--red); font-size: 14px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--forest); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash { padding: 14px 18px; border-radius: var(--radius); margin: 24px 0 0; font-weight: 500; border-left: 4px solid; }
.flash-ok { background: var(--leaf-bg); border-color: var(--leaf); color: #124d30; }
.flash-err { background: var(--red-bg); border-color: var(--red); color: #8a0b20; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding: clamp(24px, 3vw, 40px) 0 clamp(36px, 5vw, 64px); }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: clamp(20px, 3vw, 32px); }
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); margin-bottom: 16px; }

/* ── Hero with the domain search ──────────────────────── */
.hero { background: var(--forest); color: var(--on-dark); padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 4.5vw, 56px); overflow: hidden; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lede { color: var(--on-dark-muted); margin: 22px 0 0; }

/* Home page: Lusaka photo under the brand green, solid behind the text and fading out to the right */
.hero-photo {
  background:
    linear-gradient(90deg, rgba(12, 51, 38, 0.95) 0%, rgba(12, 51, 38, 0.88) 36%, rgba(12, 51, 38, 0.45) 58%, rgba(12, 51, 38, 0.08) 80%, rgba(12, 51, 38, 0) 100%),
    url("../images/hero-lusaka-1600.webp?v=3") center 25% / cover no-repeat,
    var(--forest);
  background:
    linear-gradient(90deg, rgba(12, 51, 38, 0.95) 0%, rgba(12, 51, 38, 0.88) 36%, rgba(12, 51, 38, 0.45) 58%, rgba(12, 51, 38, 0.08) 80%, rgba(12, 51, 38, 0) 100%),
    image-set(url("../images/hero-lusaka-1600.webp?v=3") 1x, url("../images/hero-lusaka-2400.webp?v=3") 2x) center 25% / cover no-repeat,
    var(--forest);
  padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 3.5vw, 48px);
}
.hero-photo .lede { color: #CFDDD5; }
@media (max-width: 760px) {
  .hero-photo {
    background:
      linear-gradient(180deg, rgba(12, 51, 38, 0.93) 0%, rgba(12, 51, 38, 0.88) 100%),
      url("../images/hero-lusaka-800.webp?v=3") center / cover no-repeat,
      var(--forest);
  }
}

.search { margin-top: clamp(24px, 3.5vw, 36px); max-width: 680px; }
.search label { display: block; color: var(--on-dark-muted); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.search-row { display: flex; align-items: stretch; gap: 6px; background: var(--white); border-radius: 8px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22); }
.search-row:focus-within { box-shadow: 0 0 0 3px var(--copper), 0 10px 30px rgba(0, 0, 0, 0.22); }
.search-input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--forest);
  font: inherit; font-size: 1.125rem; font-weight: 500; padding: 0 12px; min-height: 50px;
}
.search-input::placeholder { color: #8A9A92; font-weight: 400; }
.search-input:focus { outline: none; }
.search-btn { margin: 0; min-height: 50px; padding: 0 26px; }
.tld-prices { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 16px 0 0; padding: 0; list-style: none; color: var(--on-dark-muted); font-size: 15.5px; }
.hero-photo .tld-prices { color: #CFDDD5; }
.tld-prices strong { color: var(--white); font-weight: 700; }
@media (max-width: 420px) {
  .search-btn { padding: 0 16px; }
  .search-input { padding: 0 8px; }
}

/* Light variant of the search (domains page) */
.search-light label { color: var(--muted); }
.search-light .search-row { box-shadow: none; border: 1.5px solid var(--line); }
.search-light .search-row:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(232, 113, 26, 0.35); }

/* ── Plans comparison table ───────────────────────────── */
.cycle-switch { display: inline-flex; border: 1.5px solid var(--copper); border-radius: var(--radius); padding: 3px; gap: 3px; margin-bottom: 28px; background: var(--white); }
.cycle-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cycle-switch label { padding: 8px 16px; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 15px; }
.cycle-switch input:checked + label { background: var(--copper); color: var(--forest); }
.cycle-switch input:focus-visible + label { outline: 3px solid var(--forest); outline-offset: 1px; }

.plans-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.plans { width: 100%; border-collapse: collapse; min-width: 640px; }
.plans th, .plans td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plans tbody th { font-weight: 500; color: var(--muted); font-size: 15.5px; width: 24%; position: sticky; left: 0; background: var(--white); }
.plans thead th { padding-top: 28px; border-bottom: 0; }
.plans thead th:first-child { position: sticky; left: 0; background: var(--white); }
.plan-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.35rem; color: var(--forest); letter-spacing: -0.01em; text-transform: capitalize; }
.plan-name.lower { text-transform: none; }
.plan-price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 2.1rem; line-height: 1; color: var(--forest); }
.plan-per { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.plans td { font-weight: 600; font-size: 16px; }
.plans tr.price-row td, .plans tr.price-row th { border-bottom: 0; padding-bottom: 8px; }
.plans tr.order-row td, .plans tr.order-row th { border-bottom: 0; padding-bottom: 28px; }
.plans .col-featured { background: #FBF4EC; }
.plans thead .col-featured { box-shadow: inset 0 4px 0 var(--copper); }
.plan-tag { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: #9a4a0e; }

/* ── Payment methods row ──────────────────────────────── */
.pay-row { display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pay-methods div { padding: 20px 20px 4px 0; }
.pay-methods dt { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.15rem; color: var(--forest); margin-bottom: 6px; }
.pay-methods dd { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 820px) { .pay-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pay-methods { grid-template-columns: 1fr; } .pay-methods div { border-bottom: 1px solid var(--line); padding: 16px 0; } }

/* ── Two services split ───────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.split > div { padding: clamp(28px, 4vw, 44px) clamp(0px, 3vw, 40px) 8px 0; }
.split > div + div { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.split h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 14px; }
.split ul { padding-left: 1.1em; margin: 0 0 22px; color: var(--muted); }
.split li { margin-bottom: 4px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

/* ── Domain results ───────────────────────────────────── */
.results { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.result { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.result:last-child { border-bottom: 0; }
.result-name { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--forest); word-break: break-all; }
.result-state { display: block; font-family: var(--body); font-stretch: 100%; font-weight: 600; font-size: 14px; margin-top: 2px; }
.is-free .result-state { color: var(--leaf); }
.is-taken .result-name { color: var(--muted); font-weight: 700; }
.is-taken .result-state { color: var(--red); }
.is-unknown .result-state { color: var(--muted); }
.result-price { font-weight: 700; text-align: right; }
.result-price small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.result.first { background: #FBF4EC; }
@media (max-width: 560px) { .result { grid-template-columns: 1fr auto; } .result form, .result .result-action { grid-column: 1 / -1; } .result .btn { width: 100%; } }

.price-list { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-list th, .price-list td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: right; }
.price-list th:first-child, .price-list td:first-child { text-align: left; }
.price-list thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--paper); }
.price-list td:first-child { font-weight: 700; color: var(--forest); }

/* ── Layout helpers for content pages ─────────────────── */
.cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel h2 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-bottom: 18px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; color: var(--copper); line-height: 1.1; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--leaf); border-bottom: 2.5px solid var(--leaf); transform: rotate(-45deg); }

/* ── Basket / checkout ────────────────────────────────── */
.basket { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.basket-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 20px; border-bottom: 1px solid var(--line); }
.basket-line:last-child { border-bottom: 0; }
.basket-line h3 { font-size: 1.15rem; }
.basket-line .detail { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.basket-line .amount { font-weight: 700; font-size: 1.1rem; text-align: right; }
.basket-tools { display: flex; gap: 16px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.basket-tools select { min-height: 38px; padding: 4px 10px; width: auto; font-size: 15px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 2px solid var(--forest); margin-bottom: 20px; }
.total-row .display { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.summary-list { list-style: none; padding: 0; margin: 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }

.choice { display: grid; gap: 10px; margin-bottom: 20px; }
.choice-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.choice-opt:has(input:checked) { border-color: var(--forest); box-shadow: inset 4px 0 0 var(--copper); }
.choice-opt input { margin-top: 5px; accent-color: var(--forest); width: 18px; height: 18px; flex-shrink: 0; }
.choice-opt strong { display: block; }
.choice-opt span { color: var(--muted); font-size: 15px; }
.choice-opt .opt-price { margin-left: auto; font-weight: 700; color: var(--forest); white-space: nowrap; }
.check-result { margin: 8px 0 0; font-weight: 600; font-size: 15px; min-height: 1.4em; }
.check-result.ok { color: var(--leaf); }
.check-result.no { color: var(--red); }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--forest); color: var(--on-dark-muted); padding: 64px 0 32px; margin-top: 0; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2 { font-size: 1rem; font-stretch: 112%; color: var(--white); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand p { max-width: 34ch; }
.footer-base { border-top: 1px solid rgba(233, 241, 236, 0.15); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.contact-band { background: var(--white); border-top: 1px solid var(--line); }
.contact-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.contact-band p { margin: 0; font-size: 1.1rem; }
.contact-band .btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
