/* ButeTec temporary website.
   Layout: black header + hero carrying the logo's palette, then white/tinted bands of
   ruled lists (no cards), a black enquiry band, plain contact block. */
:root {
  --black: #000;
  --ink: #161216;
  --muted: #5d5460;
  --line: #e4dce1;
  --paper: #fff;
  --tint: #f7f3f5;
  --brand: #9b005c;
  --brand-hover: #b3006b;
  --brand-light: #e0479e;
  --status-bg: #f8e8f1;
  --status-ink: #5c0037;
  --ok: #1f7a4d;
  --err: #b3261e;
  --on-dark: #fff;
  --on-dark-muted: #c9bfc6;
  --dark-line: #2e262c;
  --dark-field: #120e11;

  --f-display: "Nunito", ui-rounded, system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(44px, 6vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-weight: 800; font-size: 1.06rem; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 8px 12px; font-weight: 600;
}
.skip:focus { top: 8px; }

.eyebrow {
  font: 600 0.78rem/1.3 var(--f-body);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  font: 600 0.95rem/1 var(--f-body);
  text-decoration: none; border-radius: 3px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { color: var(--on-dark); border-color: #5a4f57; }
.btn-ghost:hover { color: var(--on-dark); border-color: var(--on-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black); color: var(--on-dark);
  border-bottom: 1px solid var(--dark-line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--on-dark); }
.brand-mark { width: 36px; height: 36px; }
.brand-word { width: 104px; height: 21px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.site-nav ul a:hover { color: var(--on-dark); }
.btn-login { min-height: 38px; padding: 0 16px; background: transparent; color: var(--on-dark); border-color: var(--brand-light); }
.btn-login:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-toggle {
  display: none; background: none; color: var(--on-dark);
  border: 1px solid #5a4f57; border-radius: 3px; min-height: 38px; padding: 0 14px;
  font: 600 0.9rem var(--f-body); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--black); border-bottom: 1px solid var(--dark-line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--dark-line); font-size: 1rem; }
  .btn-login { margin-top: 14px; min-height: 44px; }
}

/* Hero */
.hero { background: var(--black); color: var(--on-dark); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(40px, 6vw, 76px);
}
.hero .eyebrow { color: var(--brand-light); }
.hero h1 { margin-bottom: 18px; }
.hero h1::after {
  content: ""; display: block; width: 64px; height: 5px; margin-top: 18px;
  background: var(--brand);
}
.hero p { color: var(--on-dark-muted); max-width: 60ch; }
.hero p + p { margin-top: 12px; }
.hero .lead { color: var(--on-dark); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Call path: a dial-plan style trace of one inbound call */
.callpath { margin: 0; border: 1px solid var(--dark-line); background: #0b080a; padding: 20px 22px 22px; }
.callpath figcaption {
  font: 600 0.75rem/1.3 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-muted); margin-bottom: 14px;
}
.callpath ol { list-style: none; margin: 0; padding: 0; position: relative; }
.callpath ol::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--brand);
}
.callpath li {
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px;
  padding: 9px 0 9px 24px; border-bottom: 1px dashed var(--dark-line); font-size: 0.92rem;
}
.callpath li:last-child { border-bottom: 0; }
.callpath li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 12px;
  background: #0b080a; border: 2px solid var(--brand-light); border-radius: 50%;
}
.cp-k { font: 600 0.78rem/1.6 var(--f-mono); color: var(--brand-light); text-transform: uppercase; letter-spacing: 0.03em; }
.cp-v { color: var(--on-dark); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .callpath li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Status band */
.status-band { background: var(--status-bg); color: var(--status-ink); border-bottom: 1px solid #edd0df; }
.status-band .wrap { padding-block: 14px; font-size: 0.95rem; }

/* Sections */
.section { padding-block: var(--sec-y); }
.section-alt { background: var(--tint); border-block: 1px solid var(--line); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 48px; align-items: end; margin-bottom: 26px;
}
.section-intro { color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* Status tags */
.tag {
  display: inline-block; font: 600 0.7rem/1 var(--f-body); letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 7px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap;
}
.tag-upcoming { color: var(--brand); }
.tag-available { color: var(--ok); }
.tag-future { color: var(--muted); }

.legend {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.88rem; color: var(--muted);
}
.legend li { display: flex; align-items: center; gap: 8px; }

/* Ruled service lists (shared by telephone + software) */
.svc-list, .sw-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.sw-list { border-top-color: var(--muted); }
.svc-list li, .sw-list li {
  display: grid; grid-template-rows: auto 1fr auto; gap: 6px;
  padding: 18px 22px 18px 0; border-bottom: 1px solid var(--line);
}
.svc-list li p, .sw-list li p { color: var(--muted); font-size: 0.94rem; }
.svc-list .tag, .sw-list .tag { justify-self: start; margin-top: 6px; }
@media (min-width: 981px) {
  .svc-list li:not(:nth-child(3n+1)), .sw-list li:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 980px) and (min-width: 621px) {
  .svc-list, .sw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list li:nth-child(2n), .sw-list li:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .svc-list, .sw-list { grid-template-columns: minmax(0, 1fr); }
  .svc-list li, .sw-list li { padding-right: 0; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px 64px; align-items: start; }
.about-grid h2 { margin-bottom: 16px; }
.about-grid p { max-width: 62ch; }
.about-grid p + p { margin-top: 12px; }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* Register (dark band) */
.section-dark { background: var(--black); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--brand-light); }
.section-dark a { color: var(--brand-light); }
.reg-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 32px 64px; align-items: start; }
.reg-side h2 { margin-bottom: 14px; }
.reg-side > p { color: var(--on-dark-muted); }
.privacy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--dark-line); font-size: 0.86rem; color: var(--on-dark-muted); }
.privacy h3 { font-size: 0.95rem; color: var(--on-dark); margin-bottom: 8px; }
.privacy p + p { margin-top: 8px; }
@media (max-width: 860px) { .reg-grid { grid-template-columns: minmax(0, 1fr); } }

.enquiry { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--on-dark); }
.req { color: var(--brand-light); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--on-dark);
  background: var(--dark-field); border: 1px solid #4a4048; border-radius: 3px;
  padding: 11px 12px; min-height: 46px; color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-light); outline-offset: 0; border-color: var(--brand-light); }
.field [aria-invalid="true"] { border-color: #ff8a80; }
.field .err { color: #ff8a80; font-size: 0.84rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-note { font-size: 0.84rem; color: var(--on-dark-muted); }
.enquiry .btn { justify-self: start; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-left: 4px solid; font-size: 0.95rem; }
.form-status.is-ok { border-color: #4fc38a; background: #0e1f17; }
.form-status.is-err { border-color: #ff8a80; background: #2a1112; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.contact-card { font-style: normal; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 40px; border-top: 2px solid var(--ink); padding-top: 16px; }
.contact-lines { display: grid; gap: 8px; }
.cl-k { display: inline-block; min-width: 6.5em; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.contact-lines a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .contact-card { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--black); color: var(--on-dark-muted); font-size: 0.86rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px; }
.footer-links { display: flex; gap: 20px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--on-dark); }

/* Phones: status tag beside the heading to keep the lists compact */
@media (max-width: 620px) {
  .svc-list li, .sw-list li { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; padding-block: 14px; }
  .svc-list li h3, .sw-list li h3 { grid-column: 1; grid-row: 1; }
  .svc-list .tag, .sw-list .tag { grid-column: 2; grid-row: 1; margin-top: 2px; align-self: start; }
  .svc-list li p, .sw-list li p { grid-column: 1 / -1; }
}

.bt-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Single in-development notice for the telephone services */
.dev-notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-items: start;
  margin: 0 0 24px; padding: 16px 20px;
  background: var(--status-bg); color: var(--status-ink);
  border: 1px solid #e6bfd3; border-left: 6px solid var(--brand);
}
.dev-notice-label {
  font: 800 0.8rem/1 var(--f-body); letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: 7px 10px; white-space: nowrap;
}
@media (max-width: 560px) { .dev-notice { grid-template-columns: minmax(0, 1fr); } .dev-notice-label { justify-self: start; } }
.svc-list li { grid-template-rows: auto 1fr; }
@media (max-width: 620px) { .svc-list li { grid-template-columns: minmax(0, 1fr); } }
