:root {
  --blue-deep: #003087;
  --blue-mid: #0076d6;
  --green: #00b140;
  --text: #333333;
  --text-muted: #4a4a4a;
  --surface: #f8f9fa;
  --white: #ffffff;
  --border: #e2e5ea;
  --shadow: 0 1px 2px rgba(0, 24, 72, 0.06), 0 8px 24px rgba(0, 24, 72, 0.06);
  --radius: 12px;
  --max: 70rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: "Segoe UI", Inter, "Source Sans 3", "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: var(--blue-mid);
}

a:hover {
  color: var(--blue-deep);
}

:focus-visible {
  outline: 3px solid var(--blue-mid);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 1000;
  background: var(--blue-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #00256a 0%, var(--blue-deep) 100%);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  order: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}

.header-cta {
  order: 2;
}

.nav-toggle {
  order: 3;
}

.site-nav {
  order: 4;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  border-radius: 0.55rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

@media (min-width: 480px) {
  .brand-name {
    white-space: nowrap;
  }
}

.brand-meta {
  font-size: 0.75rem;
  opacity: 0.82;
  font-weight: 400;
}

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: #00256a;
  padding: 0.75rem 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.site-nav[hidden] {
  display: none !important;
}

body.nav-open .site-nav {
  display: flex;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.header-cta {
  display: inline-flex;
  flex: none;
  margin-left: auto;
  min-height: 42px;
  padding: 0.45rem 0.7rem;
  font-size: 0.88rem;
}

.cta-full {
  display: none;
}

.cta-short {
  display: inline;
}

.nav-toggle {
  margin-left: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.25;
}

.btn-primary {
  background: var(--green);
  color: #043015;
  border-color: #009a38;
}

.btn-primary:hover {
  background: #00c247;
  color: #032410;
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-deep);
  border-color: #c9d6ea;
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--blue-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-on-dark.btn-secondary {
  background: var(--white);
  color: var(--blue-deep);
}

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.6rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--blue-deep);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.12rem;
  margin: 0 0 0.4rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
  max-width: 40rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #dce3ec;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.trust {
  padding: 2.25rem 0;
}

.tile-grid {
  display: grid;
  gap: 0.9rem;
}

.tile,
.card,
.step,
.faq-item,
.expect-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 24, 72, 0.04);
}

.tile {
  padding: 1.15rem 1.15rem 1.2rem;
}

.tile-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #e8f8ee;
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  font-weight: 800;
}

.tile p,
.step p,
.expect-item p {
  margin: 0;
  color: var(--text-muted);
}

.ebay-band {
  background: linear-gradient(90deg, var(--blue-deep), #0046b8 70%, var(--blue-mid));
  color: var(--white);
  padding: 1.6rem 0;
}

.ebay-band h2,
.page-hero h1 {
  color: var(--white);
}

.ebay-band p {
  margin: 0 0 1rem;
  max-width: 40rem;
  opacity: 0.95;
}

.section {
  padding: 3rem 0;
}

.section-muted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  max-width: 42rem;
  margin-bottom: 1.6rem;
  color: var(--text-muted);
}

.steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.step {
  padding: 1rem 1.1rem 1.1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--green);
  color: #043015;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #eef5fb;
  border: 1px solid #d3e4f5;
  border-radius: var(--radius);
}

.note strong {
  color: var(--blue-deep);
}

.expect-grid {
  display: grid;
  gap: 0.85rem;
}

.expect-item {
  padding: 1.05rem 1.1rem;
}

.examples {
  margin-top: 2rem;
}

.example-banner {
  background: #fff6d8;
  border: 1px solid #ead58a;
  color: #4a3b00;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.example-grid {
  display: grid;
  gap: 0.9rem;
}

.listing-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.listing-card:hover {
  border-color: #c5d4e8;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #dce3ec;
}

.listing-meta,
.listing-note {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.listing-price {
  margin: 0.65rem 0 0;
  font-weight: 700;
  color: var(--blue-deep);
}

.listing-cta {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--blue-mid);
  font-weight: 600;
}

.listing-card:hover .listing-cta {
  text-decoration: underline;
}

.card {
  overflow: hidden;
}

.silhouette {
  height: 8.5rem;
  background: linear-gradient(#eef2f6, #d7dee6);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

.laptop {
  width: 8.5rem;
  height: 5.4rem;
  position: relative;
}

.laptop-lid {
  height: 4.15rem;
  border-radius: 8px 8px 3px 3px;
  border: 1px solid #8a93a0;
}

.laptop-lid.silver {
  background: linear-gradient(#f4f6f8, #c5ccd4);
}

.laptop-lid.graphite {
  background: linear-gradient(#6d737c, #3d4249);
  border-color: #2d3136;
}

.laptop-lid.black {
  background: linear-gradient(#3a3d42, #1c1e22);
  border-color: #111;
}

.laptop-base {
  height: 0.55rem;
  margin-top: 0.15rem;
  border-radius: 0 0 6px 6px;
  background: #b8c0c8;
}

.laptop.graphite .laptop-base {
  background: #4a4f56;
}

.laptop.black .laptop-base {
  background: #2a2d32;
}

.card-body {
  padding: 0.95rem 1rem 1.1rem;
}

.card-body dl {
  margin: 0.55rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.card-body dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a6f76;
}

.card-body dd {
  margin: 0 0 0.35rem;
  color: #8a9098;
  font-style: italic;
}

.split {
  display: grid;
  gap: 1.25rem;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  padding: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--blue-deep);
  min-height: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue-mid);
  font-weight: 500;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item .faq-a {
  padding: 0 1.1rem 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

.contact-box {
  padding: 1.2rem 1.2rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.page-hero {
  background: linear-gradient(90deg, var(--blue-deep), #0046b8);
  color: var(--white);
  padding: 2rem 0 1.8rem;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.95;
}

.not-found {
  padding: 4rem 0 5rem;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 0.6rem;
}

.not-found p {
  color: var(--text-muted);
  margin: 0 auto 1.4rem;
  max-width: 32rem;
}

.not-found .cta-row {
  justify-content: center;
}

.site-footer {
  background: #0e1b33;
  color: #d7deea;
  padding: 2.1rem 0 1.6rem;
  border-top: 3px solid var(--green);
}

.site-footer a {
  color: #fff;
}

.footer-top {
  display: grid;
  gap: 1.1rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-tag {
  margin: 0.2rem 0 0;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-note {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  opacity: 0.85;
}

.os-paths {
  display: grid;
  gap: 0.9rem;
}

.os-path {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 24, 72, 0.04);
}

.os-path h3 a {
  color: var(--blue-deep);
  text-decoration: none;
}

.os-path h3 a:hover {
  color: var(--blue-mid);
  text-decoration: underline;
}

.os-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
}

.os-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--blue-deep);
  background: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}

.os-subnav a:hover,
.os-subnav a[aria-current="page"] {
  background: var(--blue-deep);
  color: var(--white);
  border-color: var(--blue-deep);
}

.theme-hero {
  margin: 0 0 1.75rem;
}

.theme-hero img,
.theme-card img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.theme-hero figcaption,
.theme-card figcaption,
.caption-note {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.theme-grid {
  display: grid;
  gap: 1rem;
  margin: 1.1rem 0 1rem;
}

.theme-card {
  margin: 0;
}

.plain-list {
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.plain-list li + li {
  margin-top: 0.4rem;
}

@media (min-width: 720px) {
  .wrap {
    width: min(100% - 2.5rem, var(--max));
  }

  .hero-grid,
  .split,
  .footer-top {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .hero-photo img,
  .split img {
    height: 100%;
    min-height: 18rem;
    object-fit: cover;
  }

  .tile-grid,
  .expect-grid,
  .example-grid,
  .os-paths {
    grid-template-columns: repeat(3, 1fr);
  }

  .theme-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    gap: 1.25rem;
  }

  .brand {
    flex: none;
  }

  .site-nav {
    order: 2;
  }

  .header-cta {
    order: 3;
    margin-left: 0;
  }

  .site-nav,
  .site-nav[hidden] {
    display: flex !important;
    align-items: center;
    gap: 0.1rem;
    margin-left: auto;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    border: 0;
    flex-direction: row;
  }

  .site-nav a {
    padding: 0.45rem 0.5rem;
    font-size: 0.88rem;
    min-height: 40px;
    white-space: nowrap;
  }

  .header-cta {
    min-height: 42px;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
  }

  .cta-full {
    display: inline;
  }

  .cta-short {
    display: none;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 3.25rem 0 3.5rem;
  }

  .section {
    padding: 3.75rem 0;
  }
}
