/* ==========================================================================
   Top Hosting Guide — main stylesheet
   Mobile-first. No external fonts. No frameworks.
   Palette: white / deep navy / slate grey, deliberately unlike any
   reviewed hosting brand's palette.
   ========================================================================== */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #0f2c52;
  --navy-700: #16406f;
  --navy-600: #1f5490;
  --slate-700: #3d4c5c;
  --slate-600: #55677a;
  --slate-500: #74869a;
  --slate-300: #c3cdd8;
  --slate-200: #dfe5ec;
  --slate-100: #f0f3f7;
  --slate-50: #f7f9fb;
  --white: #ffffff;
  --green-700: #12734a;
  --green-100: #e3f4ec;
  --red-700: #a5252b;
  --red-100: #fbe8e9;
  --amber-700: #8a5a05;
  --amber-100: #fdf3dd;
  --accent: #0f766e;
  --accent-dark: #0b5751;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 61, .07), 0 1px 3px rgba(10, 31, 61, .06);
  --shadow-md: 0 4px 12px rgba(10, 31, 61, .08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-800); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2.2rem; }
h3 { font-size: 1.175rem; margin-top: 1.6rem; }
p { margin: 0 0 1.1em; }

@media (min-width: 760px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.3rem; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-900); color: #fff; padding: 12px 20px;
  text-decoration: none; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Disclosure bar (persistent, not dismissible) ---------- */
.disclosure-bar {
  background: var(--navy-900);
  color: #d7e2ef;
  font-size: .8125rem;
  line-height: 1.5;
  padding: 9px 0;
  text-align: center;
}
.disclosure-bar strong { color: #fff; }
.disclosure-bar a { color: #9ec7f5; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  position: sticky; top: 0; z-index: 60;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.0625rem; font-weight: 800; color: var(--navy-900);
  letter-spacing: -.02em;
}
.brand-tag {
  font-size: .625rem; font-weight: 600; color: var(--slate-500);
  text-transform: uppercase; letter-spacing: .09em;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--slate-100); border: 1px solid var(--slate-200);
  color: var(--navy-800); font: inherit; font-size: .875rem; font-weight: 600;
  padding: 8px 13px; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle:hover { background: var(--slate-200); }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.site-nav a {
  display: block; padding: 10px 4px; text-decoration: none;
  color: var(--slate-700); font-size: .9375rem; font-weight: 600;
  border-bottom: 1px solid var(--slate-100);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy-700); }

.site-nav {
  display: none; width: 100%; order: 3;
  padding-bottom: 12px;
}
.site-nav.is-open { display: block; }

@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; width: auto; order: 0; padding: 0; }
  .site-nav ul { flex-direction: row; gap: 22px; align-items: center; }
  .site-nav a { border-bottom: 0; padding: 6px 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .8125rem; color: var(--slate-500); padding: 14px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--slate-300); }
.breadcrumbs a { color: var(--slate-600); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(168deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #e8eff7; padding: 46px 0 52px;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lede { font-size: 1.125rem; color: #c2d5e8; max-width: 62ch; }
.hero .lede strong { color: #fff; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: .8125rem; color: #9fbcd8; margin-top: 22px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.page-head { padding: 34px 0 8px; border-bottom: 1px solid var(--slate-200); margin-bottom: 30px; }
.page-head .lede { font-size: 1.0625rem; color: var(--slate-600); max-width: 66ch; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 44px 0; }
.section--alt { background: var(--slate-50); border-block: 1px solid var(--slate-200); }
.section-head { max-width: 62ch; margin-bottom: 26px; }
.section-head p { color: var(--slate-600); margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); font-weight: 700;
  font-size: .9375rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; line-height: 1.3; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy-800); border-color: var(--slate-300); }
.btn--ghost:hover { background: var(--slate-50); color: var(--navy-900); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--block { width: 100%; }

.cta-note {
  font-size: .75rem; color: var(--slate-500); margin: 8px 0 0; line-height: 1.45;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Review card */
.review-card { display: flex; flex-direction: column; }
.review-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.review-card__score {
  font-size: 1.5rem; font-weight: 800; color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.review-card__score small { font-size: .8125rem; font-weight: 600; color: var(--slate-500); }
.review-card__body { flex: 1; color: var(--slate-600); font-size: .9375rem; }
.review-card__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.review-card__foot .btn { flex: 1 1 auto; }

/* Score bar */
.scorebar { height: 6px; border-radius: 3px; background: var(--slate-200); overflow: hidden; margin: 10px 0 14px; }
.scorebar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* ---------- Verdict box ---------- */
.verdict {
  border: 1px solid var(--slate-200); border-left: 5px solid var(--accent);
  border-radius: var(--radius-lg); background: var(--slate-50);
  padding: 24px; margin: 0 0 28px;
}
.verdict__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 14px; }
.verdict__score {
  font-size: 2.5rem; font-weight: 800; color: var(--navy-900);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.verdict__score small { font-size: .9375rem; font-weight: 600; color: var(--slate-500); }
.verdict__meta { font-size: .8125rem; color: var(--slate-600); }
.verdict__meta strong { color: var(--navy-800); }
.verdict p:last-child { margin-bottom: 0; }

/* ---------- Relationship / disclosure boxes ---------- */
.relationship-box {
  border: 1px solid var(--slate-300); background: #fff;
  border-radius: var(--radius); padding: 15px 18px; margin: 0 0 26px;
  font-size: .875rem; color: var(--slate-700);
}
.relationship-box strong { color: var(--navy-900); }

.disclosure-inline {
  background: var(--amber-100); border: 1px solid #eddcae;
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px;
  font-size: .8125rem; color: var(--amber-700); line-height: 1.55;
}
.disclosure-inline strong { color: #6b4604; }

.todo-note {
  background: var(--slate-100); border: 1px dashed var(--slate-300);
  border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px;
  font-size: .8125rem; color: var(--slate-600); font-family: var(--font-mono);
  line-height: 1.55;
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 10px; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .875rem;
  min-width: 620px; background: #fff;
}
table.data caption {
  caption-side: bottom; text-align: left; font-size: .75rem;
  color: var(--slate-500); padding-top: 10px;
}
table.data th, table.data td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}
table.data thead th {
  background: var(--navy-900); color: #fff; font-weight: 600;
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 0; white-space: nowrap;
}
table.data tbody tr:nth-child(even) { background: var(--slate-50); }
table.data th[scope="row"] { font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.price { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.price-renew { color: var(--red-700); font-weight: 600; white-space: nowrap; }

/* ---------- Pros & cons ---------- */
.proscons { display: grid; gap: 18px; margin: 0 0 8px; }
@media (min-width: 760px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons__col { border-radius: var(--radius-lg); padding: 20px 22px; border: 1px solid; }
.proscons__col--pro { background: var(--green-100); border-color: #bfe3d2; }
.proscons__col--con { background: var(--red-100); border-color: #f0cbcd; }
.proscons__col h3 { margin-top: 0; font-size: 1.0625rem; }
.proscons__col--pro h3 { color: var(--green-700); }
.proscons__col--con h3 { color: var(--red-700); }
.proscons ul { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.proscons li { position: relative; padding-left: 27px; margin-bottom: 11px; line-height: 1.5; }
.proscons li:last-child { margin-bottom: 0; }
.proscons li::before {
  position: absolute; left: 0; top: 0; font-weight: 800; font-size: .9375rem;
}
.proscons__col--pro li::before { content: "\2713"; color: var(--green-700); }
.proscons__col--con li::before { content: "\2715"; color: var(--red-700); }

/* ---------- Score breakdown ---------- */
.scores { list-style: none; margin: 0 0 12px; padding: 0; }
.scores li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--slate-200);
}
.scores .s-name { font-weight: 700; color: var(--navy-800); font-size: .9375rem; }
.scores .s-val {
  font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums;
  font-size: 1.0625rem;
}
.scores .s-why { grid-column: 1 / -1; font-size: .875rem; color: var(--slate-600); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--slate-200); border-radius: var(--radius);
  margin-bottom: 10px; background: #fff;
}
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--navy-800);
  font-size: .9375rem; list-style: none; position: relative; padding-right: 46px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.25rem; font-weight: 400; color: var(--slate-500);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 18px 16px; font-size: .9375rem; color: var(--slate-600); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Author byline ---------- */
.byline {
  display: flex; align-items: center; gap: 14px; padding: 16px 0;
  border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200);
  margin: 0 0 26px; font-size: .875rem;
}
.byline__avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy-700);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.byline__meta { color: var(--slate-600); }
.byline__meta strong { color: var(--navy-900); display: block; }

.author-card { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.author-card__avatar {
  width: 96px; height: 96px; border-radius: 50%; background: var(--navy-700);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 2rem;
  flex-shrink: 0;
}
.author-card__body { flex: 1 1 320px; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 74ch; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose h2 { padding-top: .3em; }
.legal { max-width: 74ch; font-size: .9375rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal h3 { font-size: 1.0625rem; }
.legal ul { padding-left: 1.35em; }

.updated {
  font-size: .8125rem; color: var(--slate-500);
  border-left: 3px solid var(--slate-300); padding-left: 12px; margin-bottom: 26px;
}

/* ---------- Forms ---------- */
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: .875rem; color: var(--navy-800); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .9375rem;
  border: 1px solid var(--slate-300); border-radius: var(--radius);
  background: #fff; color: var(--slate-700);
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-hint { font-size: .75rem; color: var(--slate-500); margin-top: 5px; }
.form-note {
  background: var(--slate-100); border-radius: var(--radius); padding: 14px 16px;
  font-size: .8125rem; color: var(--slate-600); margin-bottom: 22px;
}

/* ---------- Stat strip ---------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 18px 10px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); }
.stat__n { font-size: 1.75rem; font-weight: 800; color: var(--navy-900); line-height: 1.1; }
.stat__l { font-size: .75rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: #a9c0d8; padding: 44px 0 26px;
  font-size: .875rem; margin-top: 56px;
}
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.site-footer h2 {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: #fff; margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #cddcec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: #7d9bbb; }
.footer-legal {
  border-top: 1px solid #1c3a60; margin-top: 34px; padding-top: 20px;
  font-size: .75rem; line-height: 1.65; color: #8fa9c4;
}
.footer-legal p { margin-bottom: .8em; }
.footer-legal strong { color: #c9dcf0; }
.footer-entity { font-style: normal; }
.footer-entity strong { color: #fff; display: block; font-size: .875rem; margin-bottom: 3px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 200;
  background: #fff; border-top: 2px solid var(--navy-900);
  box-shadow: 0 -6px 24px rgba(10, 31, 61, .16);
  padding: 18px 0; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner { display: grid; gap: 16px; align-items: center; }
@media (min-width: 940px) { .cookie-banner__inner { grid-template-columns: 1fr auto; } }
.cookie-banner p { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--slate-600); }
.cookie-banner strong { color: var(--navy-900); display: block; margin-bottom: 3px; font-size: .9375rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { flex: 1 1 auto; padding: 11px 18px; font-size: .875rem; }

.cookie-prefs { display: none; border-top: 1px solid var(--slate-200); margin-top: 16px; padding-top: 16px; }
.cookie-prefs.is-open { display: block; }
.cookie-pref { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: .8125rem; }
.cookie-pref input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; }
.cookie-pref label strong { display: block; font-size: .875rem; margin-bottom: 2px; }

/* ---------- 404 ---------- */
.err { text-align: center; padding: 70px 0; }
.err__code { font-size: 4.5rem; font-weight: 800; color: var(--slate-300); line-height: 1; }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.small { font-size: .8125rem; color: var(--slate-500); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .disclosure-bar, .site-header, .cookie-banner, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
}
