/* DataMind Labs — Switchboard brand
   Ink #111111 · Bone #F6F5F1 · Live red #E5432D · Red text #C8321E · Grey (on ink) #BDBBB4 */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/assets/fonts/archivo-latin.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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/ibm-plex-mono-latin.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;
}

:root {
  --ink: #111111;
  --bone: #F6F5F1;
  --red: #E5432D;
  --red-text: #C8321E;
  --grey: #BDBBB4;
  --line-dark: #3A3A3A;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1440px;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bone); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */
.label { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.display { font-weight: 900; font-stretch: 112%; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.94; }
.h1 { font-size: clamp(40px, 6.6vw, 96px); }
.h1-sm { font-size: clamp(36px, 5.6vw, 84px); }
.h2 { font-size: clamp(32px, 3.9vw, 56px); line-height: 0.98; }
.h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; font-stretch: 108%; line-height: 1.2; }
.lede { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.5; max-width: 620px; }
.muted { color: var(--grey); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(40px, 5vw, 72px) var(--pad); border-bottom: 2px solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 2.5vw, 32px); }
.dark { background: var(--ink); color: var(--bone); }
.dark a:hover { color: var(--red); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border: 2px solid var(--ink); font-family: var(--sans); font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); }
.btn:hover { color: var(--ink); background: #ECEAE4; }
.btn-red { background: var(--red); font-weight: 800; }
.btn-red:hover { background: #F05A45; }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: #2A2A2A; color: var(--bone); }
.btn-group { display: flex; flex-wrap: wrap; }
.btn-group .btn + .btn { border-left: 0; }

/* ---------- switch mark ---------- */
.switch { display: inline-block; flex-shrink: 0; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bone); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; padding: 0 var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-name { font-size: 22px; font-weight: 800; font-stretch: 112%; white-space: nowrap; }
.nav { display: flex; gap: 40px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.menu-btn { display: none; width: 44px; height: 44px; border: 2px solid var(--ink); background: transparent; padding: 0; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--bone); display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; border-bottom: 2px solid var(--bone); }
.mobile-menu .menu-btn { display: inline-flex; border-color: var(--bone); color: var(--bone); }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; height: 84px; padding: 0 20px; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-size: 40px; font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em; text-transform: uppercase; }
.mobile-menu nav a[aria-current="page"] { color: var(--red); }
.mobile-menu .foot { margin-top: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: 7fr 5fr; border-bottom: 2px solid var(--ink); }
.hero-main { padding: clamp(32px, 5.5vw, 80px) var(--pad) clamp(36px, 5vw, 72px); border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: clamp(20px, 2.2vw, 32px); }
.channels-head { display: flex; justify-content: space-between; padding: 24px 40px; border-bottom: 2px solid var(--ink); }
.channel { display: flex; justify-content: space-between; align-items: center; min-height: 84px; padding: 0 40px; border-bottom: 1px solid var(--ink); }
.channel span:first-child { font-size: 26px; font-weight: 700; font-stretch: 108%; }
.channel .state { display: flex; align-items: center; gap: 12px; }
.channels-note { padding: 24px 40px; font-size: 16px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 2px solid var(--ink); }
.stat { padding: 36px 40px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.stat:first-child { padding-left: var(--pad); }
.stat:last-child { border-right: 0; }
.stat b { font-size: clamp(44px, 5vw, 72px); font-weight: 900; font-stretch: 115%; line-height: 1; }
.stat .red { color: var(--red-text); }

/* ---------- numbered rows ---------- */
.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 1fr 4fr 7fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--ink); align-items: baseline; }
.row .num { font-family: var(--mono); font-size: 16px; }
.row h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; font-stretch: 108%; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--ink); }
.plan { padding: 40px 48px 44px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 20px; }
.plan:first-child { padding-left: var(--pad); }
.plan:last-child { border-right: 0; padding-right: var(--pad); }
.plan.featured { background: var(--ink); color: var(--bone); }
.plan .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { background: var(--red); color: var(--ink); padding: 2px 8px; }
.price { font-size: clamp(52px, 5.5vw, 80px); font-weight: 900; font-stretch: 115%; line-height: 1; }
.price small { font-size: 18px; font-weight: 500; font-stretch: 100%; }
.plan ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; }
.plan li { padding: 12px 0; border-bottom: 1px solid currentColor; font-size: 16px; }
.plan.featured li, .plan.featured ul { border-color: #5A5A5A; }
.plan .btn { margin-top: auto; }
.plan.featured .btn-red { border-color: var(--red); }
.note-bar { padding: 16px var(--pad); border-bottom: 2px solid var(--ink); }

.plans-compact { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); }
.plans-compact > a { padding: 28px; border-right: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; text-decoration: none; }
.plans-compact > a:last-child { border-right: 0; }
.plans-compact > a.featured { background: var(--ink); color: var(--bone); }
.plans-compact strong { font-size: 22px; font-weight: 800; display: block; }
.plans-compact .amt { font-size: clamp(28px, 2.8vw, 40px); font-weight: 900; font-stretch: 112%; white-space: nowrap; }

.maths { display: grid; grid-template-columns: 5fr 7fr; border-bottom: 2px solid var(--ink); }
.maths-text { padding: 64px var(--pad); border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 20px; }
.compare { display: flex; flex-direction: column; }
.compare > div { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 12px var(--pad) 12px 48px; border-bottom: 1px solid var(--ink); font-size: 20px; }
.compare > div.split { border-bottom-width: 2px; }
.compare > div:last-child { border-bottom: 0; }
.compare b { font-weight: 800; }
.compare .saving { flex-grow: 1; min-height: 100px; background: var(--red); }
.compare .saving b { font-size: clamp(28px, 3.3vw, 48px); font-weight: 900; font-stretch: 115%; }

/* ---------- about ---------- */
.about-hero { display: grid; grid-template-columns: 7fr 5fr; border-bottom: 2px solid var(--ink); }
.about-hero .text { padding: 72px var(--pad) 64px; border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 24px; }
.about-hero picture, .about-hero img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: 40% center; }
.quote { padding: clamp(40px, 5.5vw, 80px) var(--pad); display: flex; flex-direction: column; gap: 24px; }
.quote p { font-size: clamp(26px, 3.6vw, 52px); font-weight: 800; font-stretch: 108%; line-height: 1.1; letter-spacing: -0.02em; max-width: 1180px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.trio > div { padding: 32px 40px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.trio > div:first-child { padding-left: 0; }
.trio > div:last-child { border-right: 0; padding-right: 0; }
.trio p { font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps > div { border: 2px solid var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.steps > div + div { border-left: 0; }
.steps > div.live { background: var(--red); }
.steps p { font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 5fr 7fr; border-bottom: 2px solid var(--ink); }
.faq-intro { padding: 72px 48px 72px var(--pad); border-right: 2px solid var(--ink); display: flex; flex-direction: column; gap: 24px; }
.faq-list details { border-bottom: 1px solid var(--ink); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 32px var(--pad) 32px 48px; font-size: clamp(19px, 1.9vw, 26px); font-weight: 800; font-stretch: 108%; line-height: 1.25; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .sign { flex-shrink: 0; width: 36px; height: 36px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 20px; }
.faq-list summary .sign::before { content: '+'; }
.faq-list details[open] summary .sign { background: var(--red); }
.faq-list details[open] summary .sign::before { content: '−'; }
.faq-list details p { padding: 0 var(--pad) 32px 48px; max-width: 820px; font-size: 18px; }

/* ---------- CTA band ---------- */
.cta { background: var(--red); padding: clamp(40px, 5.5vw, 80px) var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); }
.cta .text { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.cta h2 { font-size: clamp(34px, 5vw, 72px); }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; font-stretch: 108%; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--ink); }
.prose p, .prose li { font-size: 17px; margin: 0 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */
.site-footer .wrap { padding: 56px var(--pad); display: grid; grid-template-columns: 5fr 3fr 2fr 2fr; gap: 24px; }
.site-footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer .col a, .site-footer .linklike { text-decoration: none; color: var(--bone); }
.site-footer .linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.site-footer .linklike:hover { color: var(--red); }
.site-footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .legal a { color: var(--grey); }

/* ---------- live dot ---------- */
.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: min(440px, calc(100% - 32px)); background: var(--ink); color: var(--bone); border: 2px solid var(--bone); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.cookie[hidden] { display: none; }
.cookie p { font-size: 15px; line-height: 1.5; }
.cookie a { color: var(--bone); }
.cookie .actions { display: flex; }
.cookie .btn { flex: 1; min-height: 48px; padding: 0 16px; font-size: 15px; border-color: var(--bone); color: var(--bone); }
.cookie .btn + .btn { border-left: 0; }
.cookie .btn-red { color: var(--ink); border-color: var(--red); }
.cookie .btn:not(.btn-red):hover { background: #2A2A2A; color: var(--bone); }

/* =================== responsive =================== */
@media (max-width: 1100px) {
  .nav { gap: 24px; }
  .plans-compact { grid-template-columns: 1fr; }
  .plans-compact > a { border-right: 0; border-bottom: 2px solid var(--ink); }
  .plans-compact > a:last-child { border-bottom: 0; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .brand-name { font-size: 17px; }
  .brand .switch { width: 40px; height: 22px; }
  .nav, .site-header .header-cta { display: none; }
  .menu-btn { display: inline-flex; }

  .hero, .about-hero, .maths, .faq { grid-template-columns: 1fr; }
  .hero-main, .about-hero .text, .maths-text, .faq-intro { border-right: 0; border-bottom: 2px solid var(--ink); }
  .hero-main .btn-group, .cta .btn { width: 100%; }
  .hero-main .btn-group { flex-direction: column; }
  .hero-main .btn-group .btn + .btn { border-left: 2px solid var(--ink); border-top: 0; }
  .channels-head, .channels-note { padding-left: 20px; padding-right: 20px; }
  .channel { min-height: 56px; padding: 0 20px; }
  .channel span:first-child { font-size: 19px; }
  .channel .state .label { display: none; }
  .channel .switch { width: 40px; height: 22px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 24px 20px; border-bottom: 1px solid var(--ink); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  .stat b { font-size: clamp(34px, 10vw, 44px); white-space: nowrap; }
  .stat .label { font-size: 11px; }

  .row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .row .num { font-size: 13px; }

  .plans { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; }
  .plan, .plan:first-child, .plan:last-child { padding: 20px; border: 2px solid var(--ink); }
  .plans-compact > a { padding: 20px; }

  .maths-text { padding: 36px 20px; }
  .compare > div { padding: 12px 20px; min-height: 52px; font-size: 15px; }
  .compare .label { font-size: 11px; }

  .about-hero .text { padding: 32px 20px; order: 1; }
  .about-hero picture { order: 2; }
  .about-hero picture, .about-hero img { min-height: 0; height: 260px; }

  .trio { grid-template-columns: 1fr; }
  .trio > div, .trio > div:first-child, .trio > div:last-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .steps { grid-template-columns: 1fr; }
  .steps > div { padding: 18px; }
  .steps > div + div { border-left: 2px solid var(--ink); border-top: 0; }

  .faq-intro { padding: 32px 20px; }
  .faq-list summary { padding: 16px 20px; }
  .faq-list summary .sign { width: 32px; height: 32px; }
  .faq-list details p { padding: 0 20px 20px; font-size: 15px; }

  .cta { flex-direction: column; align-items: stretch; }


  .site-footer .wrap { grid-template-columns: 1fr 1fr; padding: 36px 20px; }
  .site-footer .about-col { grid-column: 1 / -1; }

  .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
