:root {
  color-scheme: light;
  --ink: #18181b;
  --paper: #fffdf7;
  --muted: #5b5b66;
  --blue: #bfdbfe;
  --green: #86efac;
  --pink: #fda4af;
  --purple: #d8b4fe;
  --yellow: #fde047;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid #7c3aed;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #000;
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 2px solid #000;
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 2px solid #000;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.94rem;
  font-weight: 750;
}

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

.hero {
  padding: clamp(3.5rem, 8vw, 7rem) 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.45rem 0.8rem;
  border: 2px solid #000;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 #000;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, ui-sans-serif, sans-serif;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  letter-spacing: -0.05em;
}

.lede {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: #3f3f46;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 550;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 2px solid #000;
  border-radius: 12px;
  background: #000;
  box-shadow: 4px 4px 0 #777;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  color: #000;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.phone-frame {
  width: min(100%, 360px);
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid #000;
  border-radius: 32px;
  background: #fff;
  box-shadow: 10px 10px 0 #000;
}

.phone-frame img {
  width: 100%;
  height: auto;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 2px solid #000;
}

.section-heading {
  max-width: 780px;
  margin: 0 0 2rem;
}

.section-heading h2,
.article h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.45rem;
  border: 2px solid #000;
  border-radius: 18px;
  background: #fff;
  box-shadow: 5px 5px 0 #000;
}

.card:nth-child(4n + 1) { background: var(--blue); }
.card:nth-child(4n + 2) { background: var(--green); }
.card:nth-child(4n + 3) { background: var(--yellow); }
.card:nth-child(4n + 4) { background: var(--purple); }

.card h2,
.card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
}

.article {
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 5rem;
  font-size: 1.08rem;
}

.article h2 {
  margin-top: 3.6rem;
}

.article h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.45rem;
}

.article p,
.article li {
  color: #323238;
}

.article li + li {
  margin-top: 0.55rem;
}

.article .quick-answer,
.callout,
.toc,
.source-box {
  margin: 2rem 0;
  padding: 1.35rem;
  border: 2px solid #000;
  border-radius: 16px;
  background: #fff;
  box-shadow: 5px 5px 0 #000;
}

.article .quick-answer {
  background: var(--yellow);
}

.article .quick-answer p:last-child,
.callout p:last-child,
.source-box p:last-child {
  margin-bottom: 0;
}

.toc strong,
.source-box strong {
  display: block;
  margin-bottom: 0.6rem;
}

.toc ol,
.source-box ul {
  margin-bottom: 0;
}

.steps {
  counter-reset: steps;
  padding: 0;
  list-style: none;
}

.steps > li {
  position: relative;
  margin: 1rem 0;
  padding: 1.3rem 1.3rem 1.3rem 4.4rem;
  border: 2px solid #000;
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}

.steps > li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 2px solid #000;
  border-radius: 50%;
  background: var(--green);
  font-weight: 900;
}

.comparison-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background: #fff;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem;
  border: 2px solid #000;
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--blue);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.related-grid a {
  display: block;
  padding: 1.1rem;
  border: 2px solid #000;
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
  font-weight: 800;
  text-decoration: none;
}

.related-grid a:hover {
  background: var(--yellow);
}

.site-footer {
  padding: 2.5rem 0;
  border-top: 2px solid #000;
  background: #fff;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  font-size: 0.94rem;
  font-weight: 700;
}

.fine-print {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .hero-grid,
  .card-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .footer-grid {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
