:root {
  --ink: #171a19;
  --muted: #626965;
  --paper: #f5f2ea;
  --paper-deep: #ebe6da;
  --white: #fffefa;
  --line: #d8d2c5;
  --blue: #315efb;
  --blue-dark: #2446c8;
  --coral: #e76443;
  --green: #237a55;
  --shadow: 0 30px 80px rgba(37, 38, 34, 0.16);
  --sans: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(49, 94, 251, 0.08), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 210, 197, 0.8);
  background: rgba(245, 242, 234, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a:not(.button) {
  color: #3f4542;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links > a:not(.button):hover {
  color: var(--blue);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(49, 94, 251, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  background: var(--blue-dark);
  box-shadow: 0 16px 35px rgba(49, 94, 251, 0.3);
  transform: translateY(-2px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--ink);
  background: white;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero {
  padding: 92px 0 76px;
  overflow: hidden;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.56fr);
  align-items: end;
  gap: 72px;
  margin-bottom: 58px;
}

.hero h1 {
  max-width: 850px;
  margin: 20px 0 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7.4vw, 6.9rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero h1 em {
  color: var(--blue);
  font-style: italic;
  font-weight: 500;
}

.hero-aside p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.trust-row span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.68);
  color: #4b514e;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-window {
  position: relative;
}

.hero-window::before {
  position: absolute;
  top: -28px;
  right: -44px;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.hero-window img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  aspect-ratio: auto;
  border: 1px solid #cfd1ce;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-note {
  position: absolute;
  right: 34px;
  bottom: -25px;
  max-width: 300px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 40px rgba(37, 38, 34, 0.13);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-note strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.section {
  padding: 108px 0;
}

.section.compact {
  padding: 76px 0;
}

.section.tint {
  border-block: 1px solid var(--line);
  background: rgba(235, 230, 218, 0.7);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.38fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.problem {
  min-height: 260px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.78);
}

.problem .number {
  display: block;
  margin-bottom: 42px;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.problem h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.problem p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.showcase {
  display: grid;
  gap: 28px;
}

.showcase-main,
.showcase-card {
  margin: 0;
}

.showcase-main img,
.showcase-card img,
.article-figure img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  aspect-ratio: auto;
  border: 1px solid #cfd1ce;
  border-radius: 12px;
  box-shadow: 0 22px 58px rgba(38, 38, 34, 0.13);
}

.showcase-main figcaption,
.showcase-card figcaption,
.article-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.showcase-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.feature-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(49, 94, 251, 0.1);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  box-shadow: 0 20px 46px rgba(37, 38, 34, 0.1);
  transform: translateY(-4px);
}

.post-card .tag,
.article-meta .tag {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3 {
  max-width: 520px;
  margin: 38px 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.post-card p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-card .read-more {
  position: absolute;
  bottom: 26px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.local-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 70px;
  padding: 56px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
}

.local-strip h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.local-strip p {
  margin: 0 0 24px;
  color: #c8cdca;
}

.local-strip .eyebrow {
  color: #91a9ff;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-weight: 760;
  list-style: none;
}

.faq-list summary::after {
  color: var(--blue);
  content: "+";
  font-family: var(--mono);
  font-size: 1.35rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 780px;
  margin: -5px 0 26px;
  color: var(--muted);
}

.site-footer {
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr;
  gap: 60px;
}

.footer-grid p {
  max-width: 430px;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-column strong {
  display: block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

/* Blog index and article pages */
.page-hero {
  padding: 92px 0 62px;
}

.page-hero h1,
.article-header h1 {
  max-width: 930px;
  margin: 18px 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.7vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.page-hero > p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.article-header {
  padding: 82px 0 42px;
}

.article-header h1 {
  max-width: 1000px;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
}

.article-deck {
  max-width: 780px;
  margin: 24px 0 22px;
  color: var(--muted);
  font-size: 1.16rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 250px;
  align-items: start;
  justify-content: space-between;
  gap: 70px;
  padding: 38px 0 110px;
}

.article-body {
  min-width: 0;
}

.article-body > p:first-child {
  font-size: 1.16rem;
}

.article-body h2 {
  margin: 64px 0 18px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.article-body h3 {
  margin: 35px 0 10px;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.article-body p,
.article-body li {
  color: #3f4642;
}

.article-body li + li {
  margin-top: 8px;
}

.article-body a {
  color: var(--blue-dark);
}

.article-body blockquote,
.callout {
  margin: 34px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--coral);
  background: var(--white);
}

.article-body blockquote p,
.callout p {
  margin: 0;
}

.article-figure {
  margin: 42px 0;
}

.checklist {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.78);
}

.checklist strong {
  display: block;
  margin-bottom: 10px;
}

.article-aside {
  position: sticky;
  top: 104px;
  padding: 22px;
  border-top: 3px solid var(--blue);
  background: var(--white);
}

.article-aside strong {
  display: block;
  margin-bottom: 12px;
}

.article-aside a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.article-aside .aside-cta {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.legal-page {
  width: min(780px, calc(100% - 48px));
  margin: 72px auto 110px;
}

.legal-page h1 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
}

.legal-page h2 {
  margin-top: 42px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-copy,
  .section-heading,
  .local-strip,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-heading {
    gap: 30px;
  }

  .problem-grid,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    gap: 30px;
  }

  .article-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(1180px, calc(100% - 28px));
  }

  .nav {
    min-height: 66px;
  }

  .nav-links {
    gap: 14px;
  }

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

  .nav-links .button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.76rem;
  }

  .hero,
  .page-hero {
    padding-top: 62px;
  }

  .hero h1,
  .page-hero h1,
  .article-header h1 {
    letter-spacing: -0.052em;
  }

  .hero-window::before,
  .hero-note {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .problem-grid,
  .feature-list,
  .showcase-pair,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .problem {
    min-height: 220px;
  }

  .local-strip {
    gap: 30px;
    padding: 32px 24px;
  }

  .footer-grid {
    gap: 28px;
  }

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

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

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