/* anyweb.uk: ANY-Domains system (Inter Tight only; brand red for primary action, active nav and prices). */
:root {
  --bg: #ffffff;
  --ink: #191b1e;
  --soft: #43474b;
  --muted: #797d81;
  --panel: #f7f7f6;
  --rule: #d9dad8;
  --rule-soft: #e9eae8;
  --control: #c5c7c6;
  --brand: #A32D2D;
  --brand-ink: #A32D2D;
  --on-brand: #ffffff;
  --foot-bg: #191b1e;
  --foot-ink: #b6bcb6;
  --foot-muted: #8b918b;
  --foot-rule: #2a2d30;
  --foot-strong: #ffffff;
  --focus: #2563eb;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151618;
    --ink: #ecedeb;
    --soft: #b8bbbe;
    --muted: #8a8e92;
    --panel: #1d1f22;
    --rule: #34373b;
    --rule-soft: #272a2d;
    --control: #4a4e52;
    --brand: #b23a3a;
    --brand-ink: #f08f8f;
    --on-brand: #ffffff;
    --foot-bg: #0e0f10;
    --foot-ink: #a9aeaa;
    --foot-muted: #7e837f;
    --foot-rule: #24272a;
    --foot-strong: #ecedeb;
    --focus: #7aa7ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151618;
  --ink: #ecedeb;
  --soft: #b8bbbe;
  --muted: #8a8e92;
  --panel: #1d1f22;
  --rule: #34373b;
  --rule-soft: #272a2d;
  --control: #4a4e52;
  --brand: #b23a3a;
  --brand-ink: #f08f8f;
  --on-brand: #ffffff;
  --foot-bg: #0e0f10;
  --foot-ink: #a9aeaa;
  --foot-muted: #7e837f;
  --foot-rule: #24272a;
  --foot-strong: #ecedeb;
  --focus: #7aa7ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 10; background: var(--bg); padding: 8px 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule-soft); }
.site-header .wrap { min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 14px 0; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }
.brand-name { font-size: 18px; letter-spacing: -0.01em; }
.brand-name strong { font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--soft); text-decoration: none; padding: 21px 0 19px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
@media (max-width: 640px) {
  .site-header .wrap { padding-top: 4px; }
  .nav { width: 100%; gap: 0 20px; border-top: 1px solid var(--rule-soft); }
  .nav a { padding: 12px 0 10px; }
}

/* Type */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 17px; line-height: 1.6; color: var(--soft); max-width: 600px; }
.h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
@media (max-width: 640px) { .h1 { font-size: 32px; } .h2 { font-size: 22px; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 4px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { color: var(--on-brand); filter: brightness(1.08); }
.btn-secondary { border: 1px solid var(--control); color: var(--ink); }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }
.more { font-size: 15px; font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }

/* Sections */
.section { padding-top: 64px; padding-bottom: 64px; }
.section + .section { padding-top: 0; }
.band { background: var(--panel); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.band + .section { padding-top: 64px; }
.band .card { border-color: var(--rule-soft); }
.section-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }

/* Home hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero-copy { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-copy .actions { margin-top: 10px; }
.facts { flex: 1 1 320px; margin: 0; background: var(--panel); border-radius: 12px; padding: 6px 24px; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-top: 1px solid var(--rule); }
.facts div:first-child { border-top: 0; }
.facts dt { font-size: 14px; color: var(--soft); }
.facts dd { margin: 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--rule-soft); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--soft); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 6px; }

/* Businesses (home) */
.biz { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.biz-card { background: var(--bg); border: 1px solid var(--rule-soft); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.biz-card > p { color: var(--soft); font-size: 15px; }
.biz-name { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.biz-name strong { font-weight: 700; }
.biz-card ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.biz-card li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; color: var(--soft); }
.biz-card li strong { color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.biz-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 4px; }
@media (max-width: 640px) { .biz-card { padding: 24px; } }

/* Assurance row */
.assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 40px; }
.assure div { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--rule); padding-top: 18px; }
.assure p { color: var(--soft); font-size: 15px; }

/* Sub-page head */
.page-head { background: var(--panel); border-bottom: 1px solid var(--rule-soft); }
.page-head .wrap { padding-top: 56px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 12px; }

/* Two-column content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 56px; padding: 40px 0; border-top: 1px solid var(--rule-soft); }
.split:first-child { border-top: 0; padding-top: 0; }
.split > div { display: flex; flex-direction: column; gap: 12px; color: var(--soft); max-width: 640px; }
.split > div p, .split > div li { font-size: 16px; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.price { border: 1px solid var(--rule-soft); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.price p { color: var(--soft); font-size: 15px; }
.price .price-figure { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.price-figure small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.fine { font-size: 14px; color: var(--muted); max-width: 720px; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule-soft); color: var(--soft); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--rule); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.steps strong { color: var(--ink); font-weight: 600; }

/* Detail list (company details, contact) */
.details { margin: 0; display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 1fr); gap: 0 32px; max-width: 760px; }
.details dt, .details dd { padding: 14px 0; border-top: 1px solid var(--rule-soft); margin: 0; }
.details dt { color: var(--muted); font-size: 14px; padding-top: 16px; }
.details dd { color: var(--ink); }
.details dt:first-of-type, .details dt:first-of-type + dd { border-top: 0; }
@media (max-width: 560px) {
  .details { grid-template-columns: minmax(0, 1fr); }
  .details dd { border-top: 0; padding-top: 0; }
}

/* Policy prose */
.prose { max-width: 700px; padding: 48px 0 72px; color: var(--soft); }
.prose h2 { color: var(--ink); font-size: 20px; line-height: 1.3; font-weight: 700; margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 16px; font-weight: 600; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.updated { font-size: 14px; color: var(--muted); }
.toc { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.toc a { color: var(--soft); }

/* Help strip */
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 32px 0; }
.help p { color: var(--soft); max-width: 640px; }

/* Footer */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); margin-top: 0; }
.site-footer a { color: var(--foot-ink); text-decoration: none; }
.site-footer a:hover { color: var(--foot-strong); text-decoration: underline; }
.foot-top { display: flex; flex-wrap: wrap; gap: 36px 40px; padding: 52px 0 36px; }
.foot-intro { flex: 1 1 240px; max-width: 280px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-intro .brand-name { color: var(--foot-strong); font-size: 17px; }
.foot-col { flex: 0 1 150px; }
.foot-col h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--foot-muted); margin: 0 0 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-legal { border-top: 1px solid var(--foot-rule); padding: 20px 0 32px; font-size: 13px; line-height: 1.6; color: var(--foot-muted); display: flex; flex-direction: column; gap: 2px; }
.foot-legal strong { color: var(--foot-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
