/* MikroTik Support South Africa — site styles
   Hand-written, self-hosted, no framework and no CDN dependency.
   ~11KB uncompressed, one request, no JavaScript required to read the site. */

/* ---------- tokens ---------- */
:root {
  --ink:            #0d1420;
  --ink-2:          #1b2536;
  --slate:          #46536b;
  --muted:          #6b7891;
  --line:           #dfe4ec;
  --line-soft:      #edf0f5;
  --paper:          #ffffff;
  --paper-2:        #f5f7fa;
  --brand:          #0b5cd8;
  --brand-dark:     #0847a8;
  --brand-wash:     #eaf1fe;
  --signal:         #00a86b;
  --warn:           #b7791f;

  --measure:        68ch;
  --wrap:           1180px;
  --radius:         10px;
  --shadow:         0 1px 2px rgba(13,20,32,.06), 0 8px 24px rgba(13,20,32,.06);
  --shadow-lg:      0 2px 4px rgba(13,20,32,.06), 0 18px 48px rgba(13,20,32,.10);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.16rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--tint { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section--ink { background: var(--ink); color: #c6cede; }
.section--ink h2, .section--ink h3 { color: #fff; }

.lede { font-size: 1.14rem; color: var(--slate); }
.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .75em;
}
.section--ink .eyebrow { color: #7fb0ff; }
.center { text-align: center; }
.center p, .center h2 { margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand__mark { flex: none; width: 30px; height: 30px; }
.brand__name { font-size: 1.02rem; line-height: 1.15; }
.brand__name span { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--slate); text-decoration: none; font-size: .94rem; font-weight: 600;
  padding: 8px 13px; border-radius: 7px;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-wash); }
.nav__cta { margin-left: 8px; }
/* the .nav a rule above is more specific than .btn--primary, so restate it */
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; background: var(--brand); }
.nav a.btn--primary:hover { background: var(--brand-dark); }

.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: .96rem; font-weight: 650;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn--ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--slate); color: var(--ink); }
.btn--onink { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--onink:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 78% -12%, rgba(11,92,216,.16), transparent 60%),
    linear-gradient(180deg, #0d1420 0%, #141d2e 100%);
  color: #c6cede;
  padding: clamp(56px, 8vw, 104px) 0 clamp(52px, 7vw, 92px);
}
.hero h1 { color: #fff; max-width: 17ch; }
.hero p { color: #b3bdd0; font-size: 1.16rem; max-width: 56ch; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(0,168,107,.14); border: 1px solid rgba(0,168,107,.35);
  color: #6ee7b0; font-size: .82rem; font-weight: 650;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 3px rgba(0,168,107,.25);
}

/* terminal panel */
.termcard {
  background: #0a111c; border: 1px solid #26324a; border-radius: 12px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.termcard__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: #121b2b; border-bottom: 1px solid #26324a;
}
.termcard__bar i { width: 10px; height: 10px; border-radius: 50%; background: #33415c; }
.termcard__bar span { margin-left: 8px; font: 600 .74rem/1 var(--mono); color: #7b8aa6; letter-spacing: .04em; }
.termcard pre {
  margin: 0; padding: 18px 16px; overflow-x: auto;
  font: 400 .82rem/1.75 var(--mono); color: #9fb3d1; tab-size: 2;
}
.termcard .k { color: #7fb0ff; }
.termcard .g { color: #6ee7b0; }
.termcard .r { color: #ff8b8b; }
.termcard .y { color: #ffd479; }
.termcard .d { color: #5d6d8a; }

/* ---------- trust strip ---------- */
.strip { background: var(--ink-2); color: #aab5c9; padding: 20px 0; }
.strip ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px;
  font-size: .9rem; font-weight: 600;
}
.strip li { display: flex; align-items: center; gap: 9px; }
.strip svg { flex: none; color: var(--signal); }

/* ---------- cards ---------- */
/* lists default to a reading measure; layout lists must opt out of it */
.grid, .steps, .plans, .contacts { max-width: none; }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 40px; height: 40px; border-radius: 9px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--brand-wash); color: var(--brand);
}
.section--ink .card { background: #16202f; border-color: #26324a; color: #b3bdd0; box-shadow: none; }
.section--ink .card__icon { background: rgba(127,176,255,.14); color: #7fb0ff; }

/* ---------- checklist ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .46em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }

/* ---------- pricing ---------- */
/* stretch, so the three call-to-action buttons line up along the bottom */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.plan {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--brand); border-width: 2px; box-shadow: var(--shadow-lg); }
.plan__tag {
  position: absolute; top: -12px; left: 26px;
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.plan h3 { margin-bottom: .3em; }
.plan__price { font-size: 2rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.plan__price small { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.plan__for { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan .ticks { margin-top: 18px; font-size: .95rem; flex: 1; }
.plan .btn { margin-top: 22px; width: 100%; }

.note {
  border-left: 3px solid var(--warn); background: #fdf8ee;
  padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .93rem; color: #6b5518;
  max-width: var(--measure);
}
.note strong { color: #5a4512; }

/* ---------- steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.steps li { position: relative; padding-left: 56px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand-wash); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
}
/* four steps read better as 2x2 than as an orphaned 3+1 */
@media (min-width: 860px) { .steps.grid--2 { grid-template-columns: repeat(2, 1fr); column-gap: 48px; } }
.steps h3 { margin-bottom: .25em; }
.steps p { margin-bottom: 0; }

/* ---------- faq ---------- */
.faq { max-width: var(--measure); }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  cursor: pointer; padding: 16px 34px 16px 0; font-weight: 650; color: var(--ink);
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 0 16px; color: var(--slate); }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 650; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { min-height: 130px; resize: vertical; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 8px; font-size: .95rem; margin-bottom: 22px; max-width: 560px; }
.alert--ok  { background: #e9f9f1; border: 1px solid #a8e2c6; color: #04603c; }
.alert--bad { background: #fdecec; border: 1px solid #f3bcbc; color: #8d1f1f; }

/* ---------- contact tiles ---------- */
.contacts { display: grid; gap: 18px; }
.contact-tile {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--paper);
}
.contact-tile svg { flex: none; color: var(--brand); margin-top: 2px; }
.contact-tile strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-tile a { font-size: 1.05rem; font-weight: 650; text-decoration: none; }
.contact-tile span { display: block; font-size: .87rem; color: var(--muted); }

/* ---------- cta band ---------- */
.cta {
  background: linear-gradient(135deg, var(--brand-dark), #0b5cd8 55%, #1273e6);
  color: #fff; border-radius: 14px; padding: clamp(32px, 5vw, 52px);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: #d6e5ff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #8e9bb3; padding: 56px 0 30px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #b6c2d6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #26324a;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .split, .split--wide { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; margin-left: auto;
    width: 42px; height: 42px; background: none; border: 1px solid var(--line);
    border-radius: 8px; cursor: pointer; color: var(--ink);
  }
  .nav {
    display: none; position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav__cta { margin: 8px 0 0; }
  .field--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media print {
  .site-header, .site-footer, .cta, .btn { display: none !important; }
  body { font-size: 11pt; color: #000; }
}

/* ---------- utilities ----------
   The site sends a strict Content-Security-Policy with style-src 'self', which
   blocks inline style="" attributes. Every one-off style therefore lives here
   as a real class rather than on the element. */
.u-sm      { font-size: .95rem; }
.u-sm2     { font-size: .96rem; }
.u-xs      { font-size: .92rem; }
.u-flush   { margin-bottom: 0; }
.u-note    { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.u-note-ink{ margin-bottom: 0; color: #8e9bb3; font-size: .92rem; }
.u-muted-s { color: var(--muted); font-size: .93rem; }
.u-fineprint { font-size: .86rem; color: var(--muted); margin: 0; }
.u-center-row { justify-content: center; }
.u-pad-lg  { padding: 60px 0; }
.u-gap-16  { gap: 16px; }
.u-mt-lg   { margin-top: 22px; }
.u-mt-1-4  { margin-top: 1.4em; }
.u-mt-1-6  { margin-top: 1.6em; }
.u-mb-lg   { margin-bottom: 38px; }
.u-space-16 { height: 16px; }
.u-space-34 { height: 34px; }
.u-space-40 { height: 40px; }
.u-w-52    { max-width: 52ch; }
.u-w-54    { max-width: 54ch; }
.u-w-58    { max-width: 58ch; }
.u-w-60    { max-width: 60ch; color: #b3bdd0; }
.u-footer-blurb { color: #8e9bb3; max-width: 34ch; }
.u-onink   { color: #8e9bb3; }
.u-white   { color: #fff; }
.u-brand-footer { color: #fff; margin-bottom: 14px; }
.u-place   { font-size: 1.02rem; color: var(--ink); font-weight: 650; }
