/* CAETEC Home Electrics — "circuit schedule" print look.
   Paper, ink, amber signal colour and the UK cable colours as the only decoration. */

:root {
  --paper: #F3EFE6;
  --paper-2: #ECE6DA;
  --card: #FCFAF5;
  --ink: #1E2328;
  --ink-2: #4F565E;
  --ink-3: #6E747A;
  --rule: #D9D1C1;
  --amber: #E3A21A;
  --amber-ink: #1E2328;
  --copper: #A8522A;
  --ok: #2C7A53;
  --live: #8B5A2B;
  --neutral: #2F6DB5;
  --earth-a: #3E9B4F;
  --earth-b: #E9C832;
  --band: #1E2328;
  --band-ink: #EDE8DD;
  --band-2: #B3B0A8;
  --sans: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --cond: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171A;
    --paper-2: #1B1E22;
    --card: #1E2227;
    --ink: #EDE8DD;
    --ink-2: #B9B5AC;
    --ink-3: #97948D;
    --rule: #343A41;
    --amber: #F0B429;
    --copper: #E0935F;
    --ok: #6CC795;
    --live: #B07A45;
    --neutral: #5A92D6;
    --earth-a: #5DB56C;
    --band: #0E1012;
  }
}

*, *::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 { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font: 500 12.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }

/* Cable stripe */
.stripe { display: inline-flex; gap: 3px; vertical-align: middle; }
.stripe i { display: block; width: 22px; height: 5px; border-radius: 1px; }
.stripe .l { background: var(--live); }
.stripe .n { background: var(--neutral); }
.stripe .e { background: repeating-linear-gradient(90deg, var(--earth-a) 0 5.5px, var(--earth-b) 5.5px 11px); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 17px/1.2 var(--sans); }
.brand img { border-radius: 9px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-inline { display: flex; gap: 26px; }
.nav a { text-decoration: none; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 10px 0; display: inline-block; }
.nav a[aria-current="page"] { color: var(--copper); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--ink); padding: 12px 14px; border-radius: 4px; min-height: 44px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu ul { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--rule); border-radius: 6px; min-width: 200px; padding: 6px 0; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.nav-menu li a { display: block; padding: 14px 18px; }

/* Google Play button */
.play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 16px; border-radius: 6px; text-decoration: none; min-height: 56px; border: 1px solid var(--ink); }
.play span { display: flex; flex-direction: column; font: 600 18px/1.1 var(--sans); }
.play small { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.play-live { background: var(--ink); color: var(--paper); }
.play-live:hover { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.play-soon { color: var(--ink-2); border-style: dashed; cursor: default; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.kicker { font: 500 12.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); margin: 18px 0 24px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 30px 0 26px; }
.text-link { font: 500 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 12px 0; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { border: 1px solid var(--rule); background: var(--card); padding: 6px 12px; border-radius: 4px; font-size: 14px; }

.hero-board { position: relative; background: var(--card); border: 1px solid var(--ink); border-radius: 8px; margin-bottom: 120px; }
.board-head { border-radius: 7px 7px 0 0; display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--ink); color: var(--paper); font: 500 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.board { list-style: none; margin: 0; padding: 0; width: 62%; }
.board li + li { border-top: 1px solid var(--rule); }
.board a { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 4px 12px; padding: 12px 16px; text-decoration: none; min-height: 60px; }
.board .way { font: 500 20px/1 var(--mono); color: var(--copper); grid-row: span 2; }
.board .label { font: 600 15px/1.25 var(--sans); }
.board .rating { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.board a:hover .label { color: var(--copper); }
.hero-phone { position: absolute; right: -7%; top: 70px; width: 45%; margin: 0; }
.hero-phone img, .shot img { border-radius: 22px; border: 6px solid var(--ink); box-shadow: 0 20px 40px -18px rgba(0,0,0,.35); background: var(--ink); }

/* Section titles */
.section-title { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 8px; }
.section-title .mono { display: block; margin-bottom: 14px; }

/* Schedule rows */
.schedule { padding: clamp(56px, 7vw, 96px) 0 0; }
.way-row { border-top: 1px solid var(--rule); padding: clamp(40px, 5vw, 64px) 0; }
.way-row:first-of-type { margin-top: 36px; }
.way-grid { display: grid; grid-template-columns: 120px 1fr minmax(220px, 300px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.way-row.flip .way-grid { grid-template-columns: 120px minmax(220px, 300px) 1fr; }
.way-row.flip .way-copy { order: 3; }
.way-row.flip .shot { order: 2; }
.way-tag { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 16px 10px; text-align: center; position: sticky; top: 92px; }
.way-tag .n { display: block; font: 500 44px/1 var(--mono); }
.way-tag .r { display: block; font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-top: 8px; }
.way-copy h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; }
.way-lead { font-size: 19px; color: var(--ink-2); }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px dashed var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.shot { margin: 0; }

/* Landlords band */
.landlords { background: var(--band); color: var(--band-ink); padding: clamp(56px, 7vw, 96px) 0; margin-top: clamp(24px, 4vw, 48px); }
.landlord-grid { display: grid; grid-template-columns: 1fr minmax(220px, 320px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.landlords h2 { font-size: clamp(34px, 4.4vw, 56px); margin: 14px 0 18px; }
.landlords .lead { color: var(--band-2); }
.tag-light { color: #F0B429; }
.ticks-light li { border-top-color: #343A41; }
.ticks-light li::before { border-color: #6CC795; }
.small-note { margin-top: 22px; font-size: 14px; color: var(--band-2); }
.shot-dark img { border-color: #3A4048; }

/* Rating plate */
.spec { padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--rule); }
.spec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.spec p { color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.plate { width: 100%; border-collapse: collapse; background: var(--card); border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; }
.plate th, .plate td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.plate tr:last-child th, .plate tr:last-child td { border-bottom: 0; }
.plate th { font: 500 12px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); width: 44%; }
.plate td { font-weight: 600; }

/* FAQ */
.faq { padding: clamp(56px, 7vw, 96px) 0; }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 18px/1.35 var(--sans); min-height: 44px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 500 24px/1 var(--mono); color: var(--copper); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--ink-2); padding-bottom: 12px; max-width: 42em; }

/* Download */
.download { background: var(--amber); color: #1E2328; padding: clamp(40px, 5vw, 64px) 0; }
.download-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.download h2 { font-size: clamp(30px, 3.8vw, 48px); margin-bottom: 8px; }
.download p { margin: 0; }
.download .play { border-color: #1E2328; }
.download .play-soon { color: #1E2328; }
.download .play-live { background: #1E2328; color: #F3EFE6; }

/* Footer */
.site-footer { padding: 48px 0 40px; font-size: 15px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; max-width: 420px; }
.footer-brand img { border-radius: 10px; flex: none; }
.footer-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 36px; margin: 0; }
.footer-facts dt { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.footer-facts dd { margin: 4px 0 0; }
.footer-facts a { display: inline-block; padding: 6px 0; }
.footer-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13.5px; }
.footer-note .stripe { margin-bottom: 14px; }

/* Documents (privacy, 404) */
.doc { padding: clamp(40px, 6vw, 80px) 0; }
.doc-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.doc-aside { position: sticky; top: 92px; }
.doc-aside .mono { margin-bottom: 14px; }
.doc-aside .plate th { width: 48%; }
.doc-body { max-width: 44em; }
.doc-body h1 { font-size: clamp(40px, 5.5vw, 68px); margin-bottom: 24px; }
.doc-body h2 { font-size: 26px; margin: 40px 0 12px; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin-bottom: 6px; }
.notfound { max-width: 720px; }
.notfound h1 { font-size: clamp(40px, 6vw, 72px); margin: 16px 0; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .spec-grid, .faq-wrap, .doc-grid { grid-template-columns: 1fr; }
  .hero-board { max-width: 620px; }
  .way-grid, .way-row.flip .way-grid { grid-template-columns: 84px 1fr; }
  .way-grid .shot, .way-row.flip .shot { grid-column: 2; order: 4; max-width: 300px; }
  .way-row.flip .way-copy { order: 2; }
  .way-tag .n { font-size: 32px; }
  .doc-aside { position: static; }
}
@media (max-width: 760px) {
  .nav-inline { display: none; }
  .nav-menu { display: block; }
  .brand-text { font-size: 15px; }
  .board { width: 100%; }
  .board-head span + span { display: none; }
  .hero-board { margin-bottom: 0; }
  .hero-phone { position: static; width: 72%; max-width: 300px; margin: 8px auto 24px; }
  .landlord-grid { grid-template-columns: 1fr; }
  .landlord-grid .shot { max-width: 300px; }
  .footer-facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .way-grid, .way-row.flip .way-grid { grid-template-columns: 1fr; }
  .way-grid .shot, .way-row.flip .shot { grid-column: 1; margin: 0 auto; width: 78%; }
  .way-tag { position: static; display: inline-flex; align-items: baseline; gap: 12px; padding: 10px 14px; justify-self: start; }
  .way-tag .n { font-size: 24px; }
  .way-tag .r { margin: 0; }
  .brand img { width: 34px; height: 34px; }
  .play { width: 100%; justify-content: center; }
  .download .play { width: 100%; }
}
