:root {
  --ah-primary: #2563eb;
  --ah-secondary: #10b981;
  --ah-highlight: #f59e0b;
  --ah-bg: #ffffff;
  --ah-surface: #f8fafc;
  --ah-surface-strong: #eff4fb;
  --ah-text: #0f172a;
  --ah-muted: #526075;
  --ah-border: #dbe4f0;
  --ah-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --ah-radius: 24px;
  --ah-radius-sm: 18px;
  --ah-max: 1180px;
  --ah-heading: "Iowan Old Style", Georgia, serif;
  --ah-body: "Aptos", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.06), transparent 26%),
    linear-gradient(180deg, #ffffff, #f8fbff 45%, #ffffff);
  color: var(--ah-text);
  font-family: var(--ah-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.12em;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip: auto;
  border-radius: 999px;
  background: var(--ah-primary);
  color: #ffffff;
}

.container {
  width: min(calc(100% - 2rem), var(--ah-max));
  margin: 0 auto;
}

.section-spacing {
  padding: 4.5rem 0;
}

.section-surface {
  background: rgba(248, 250, 252, 0.9);
  border-top: 1px solid rgba(219, 228, 240, 0.7);
  border-bottom: 1px solid rgba(219, 228, 240, 0.7);
}

.page-hero {
  padding-bottom: 1.5rem;
}

.site-main {
  min-height: 60vh;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--ah-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.85rem;
  color: var(--ah-text);
  font-family: var(--ah-heading);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
}

p,
ul,
ol,
blockquote,
figure,
table {
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--secondary {
  background: var(--ah-secondary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.2);
}

.button--primary {
  background: var(--ah-primary);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.2);
}

.button--ghost {
  border-color: var(--ah-border);
  background: #ffffff;
  color: var(--ah-text);
}

.text-link {
  color: var(--ah-primary);
  font-weight: 700;
  text-decoration: none;
}

.section-heading {
  margin-bottom: 1.6rem;
  max-width: 58rem;
}

.section-heading--tight {
  margin-bottom: 1rem;
}

.breadcrumbs {
  margin-bottom: 1.25rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ah-muted);
  font-size: 0.92rem;
}

.breadcrumbs__item {
  position: relative;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  position: absolute;
  left: -0.55rem;
  color: #98a7bb;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--ah-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.rating-stars__track {
  position: relative;
  width: 54px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
}

.rating-stars__track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ah-highlight), #fbbf24);
}

.rating-stars__icons {
  display: inline-flex;
  gap: 0.08rem;
  color: #c8d5e7;
}

.rating-stars__star.is-filled {
  color: var(--ah-highlight);
}

.checklist,
.sidebar-links,
.site-footer__menu,
.trust-badges {
  margin: 0;
  padding-left: 1.1rem;
}

.checklist li + li,
.sidebar-links li + li,
.site-footer__menu li + li,
.trust-badges li + li {
  margin-top: 0.55rem;
}

.checklist li::marker {
  color: var(--ah-secondary);
}

.checklist--muted li::marker {
  color: #94a3b8;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--ah-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ah-text);
}

.search-submit {
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ah-primary);
  color: #ffffff;
  font-weight: 700;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ah-bg: #0f172a;
    --ah-surface: #111c31;
    --ah-surface-strong: #17243c;
    --ah-text: #ecf3ff;
    --ah-muted: #a7b6cc;
    --ah-border: #24324a;
    --ah-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 26%),
      linear-gradient(180deg, #0f172a, #101b31 45%, #0f172a);
  }

  .section-surface {
    background: rgba(17, 28, 49, 0.9);
  }

  .search-field {
    background: rgba(15, 23, 42, 0.8);
  }

  .button--ghost {
    background: rgba(15, 23, 42, 0.75);
    color: var(--ah-text);
  }
}

@media (max-width: 920px) {
  html {
    scroll-padding-top: 76px;
  }

  .section-spacing {
    padding: 3.5rem 0;
  }
}
