/* Janric. Colours are named here; change them once and the whole site follows. */
:root {
  --ink: #16202b;
  --slate: #2e3844;
  --slate-light: #445364;
  --text: #2c3640;
  --muted: #5b6875;
  --line: #e2e6ea;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --good: #1f6b3a;
  --bad: #9a3324;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 20; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand strong { font-size: 1.6rem; letter-spacing: -.02em; display: block; }
.brand span { font-size: .8rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-header nav a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--slate); font-weight: 600; font-size: .98rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { background: var(--bg-alt); color: var(--ink); }
.site-header nav li:last-child a { background: var(--accent); color: #fff; }
.site-header nav li:last-child a:hover { background: var(--accent-dark); }

/* Type */
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin: 0 0 18px; }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); line-height: 1.2; letter-spacing: -.01em; color: var(--ink); margin: 0 0 14px; }
h3 { font-size: 1.18rem; color: var(--ink); margin: 26px 0 6px; }
p, li { max-width: 68ch; }
.lede { font-size: 1.22rem; color: var(--muted); }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .8rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 10px; }
.crumbs { font-size: .9rem; color: var(--muted); padding: 20px 0 0; margin: 0; }
.crumbs a { color: var(--muted); }
code { font-size: .92em; background: var(--bg-alt); padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; }

/* Sections */
section { padding: 56px 0; }
main > section + section, main > .wrap > section + section { border-top: 1px solid var(--line); }
main > .wrap > section.first { padding-top: 22px; }
section.alt { background: var(--bg-alt); }
section.intro { padding-top: 40px; }

/* Hero */
.hero { background: var(--slate); color: #e8edf2; padding: 72px 0 64px; border: 0; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: #cfd8e1; max-width: 56ch; }
.hero .kicker { color: #f6b48a; }
.hero .btn-sub { color: #fff; border-color: #8a98a8; }
.hero .btn-sub:hover { color: #fff; border-color: #fff; }
.hero small { display: block; margin-top: 18px; color: #aab6c3; font-size: .92rem; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn { padding: 13px 24px; border-radius: 6px; text-decoration: none; font-weight: 700; border: 2px solid transparent; display: inline-block; }
.btn-main { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-main:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-sub { background: transparent; color: var(--ink); border-color: #b8c1cb; }
.btn-sub:hover { border-color: var(--ink); color: var(--ink); }

/* Proof strip */
.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 22px; }
.proof li { border-left: 3px solid var(--accent); padding-left: 14px; }
.proof strong { display: block; color: var(--ink); font-size: 1.1rem; }
.proof span { color: var(--muted); font-size: .95rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; margin-top: 28px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card > div { padding: 20px 22px 24px; }
.card h2, .card h3 { font-size: 1.22rem; margin: 0 0 8px; }
.card h2 a, .card h3 a { text-decoration: none; color: var(--ink); }
.card h2 a:hover, .card h3 a:hover { color: var(--accent-dark); }
.card p { margin: 0 0 12px; font-size: .98rem; }
.card .meta { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 6px; }
.card img { border-bottom: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.card img.icon { object-fit: contain; padding: 22px; background: var(--bg-alt); }
.card .price { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 0 0 12px; line-height: 1.1; }
.card .price small { font-size: .9rem; font-weight: 400; color: var(--muted); }
.card.pick { border: 2px solid var(--accent); }
.card .tag { display: inline-block; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; margin-bottom: 10px; }
.card ul { padding-left: 20px; margin: 12px 0 0; font-size: .98rem; }

/* Lists */
.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: "\2713"; position: absolute; left: 4px; color: var(--good); font-weight: 700; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 24px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; color: var(--ink); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 26px; }
blockquote { margin: 0; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; }
blockquote p { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }
blockquote footer, blockquote cite { font-style: normal; font-size: .9rem; color: var(--muted); }

/* Facts strip (case studies) */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 30px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--bg-alt); border-radius: 8px; overflow: hidden; }
.facts li { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts strong { color: var(--ink); }

/* Before and after */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 26px 0 0; }
.compare.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.compare.phones { grid-template-columns: repeat(auto-fit, minmax(200px, 300px)); }
figure { margin: 0; }
figure img { border: 1px solid #ccd0d4; box-shadow: 0 4px 16px rgba(0,0,0,.08); border-radius: 4px; }
figcaption { font-size: .92rem; color: var(--muted); padding-top: 10px; }
figcaption b { color: var(--bad); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; margin-right: 6px; }
figcaption b.after { color: var(--good); }
.todo { border: 2px dashed #b9c0c7; background: var(--bg-alt); color: var(--muted); padding: 26px 20px; text-align: center; font-size: .95rem; min-height: 180px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
p.todo { min-height: 0; text-align: left; display: block; }

/* Tables */
.tablewrap { overflow-x: auto; margin-top: 22px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .98rem; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--slate); color: #fff; font-weight: 600; }
tbody th { font-weight: 600; color: var(--ink); width: 26%; }
tbody tr:nth-child(even) { background: var(--bg-alt); }

/* Questions */
details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 68ch; }
summary { font-weight: 700; color: var(--ink); cursor: pointer; }
details p { margin: 10px 0 0; }

/* Customers grid */
.customers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 28px; }
.customers a { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: block; background: #fff; }
.customers a:hover { border-color: var(--accent); }
.customers img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--bg-alt); }
.customers span { display: block; padding: 12px 16px 16px; font-size: .95rem; }
.customers b { display: block; color: var(--ink); font-size: 1.05rem; }
.customers em { font-style: normal; color: var(--accent-dark); font-weight: 600; font-size: .85rem; }

/* Call to action */
.cta, .cta-band { background: var(--slate); color: #dfe6ec; }
.cta-band { padding: 60px 0; border: 0 !important; }
.cta { padding: 34px 30px; margin: 10px 0 56px; border-radius: 8px; }
.cta h2, .cta-band h2 { color: #fff; }
.cta a:not(.btn), .cta-band a:not(.btn) { color: #f6b48a; }
.cta .btn-sub, .cta-band .btn-sub { color: #fff; border-color: #8a98a8; }
.cta .btn-sub:hover, .cta-band .btn-sub:hover { border-color: #fff; color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #b9c4cf; font-size: .95rem; padding: 48px 0 26px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #dfe6ec; }
.site-footer .brand strong { color: #fff; }
.site-footer .small { border-top: 1px solid #2c3947; margin-top: 30px; padding-top: 18px; font-size: .88rem; }
.site-footer .small p { max-width: none; margin: 0; }

/* Cookie bar */
#cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--ink); color: #fff; padding: 16px 18px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.3); z-index: 30; font-size: .95rem; }
#cookie-bar p { margin: 0 0 12px; }
#cookie-bar div { display: flex; gap: 10px; }
#cookie-bar button { font: inherit; font-weight: 700; padding: 8px 20px; border-radius: 6px; border: 2px solid #fff; background: #fff; color: var(--ink); cursor: pointer; }

@media (max-width: 640px) {
  section { padding: 42px 0; }
  .hero { padding: 48px 0 44px; }
  .site-header nav a { padding: 6px 9px; font-size: .92rem; }
  .btns { flex-direction: column; }
  .btn { text-align: center; }
}
