:root {
  --paper: #f6f2e8;
  --paper-deep: #ebe4d4;
  --ink: #182433;
  --muted: #596474;
  --navy: #17324d;
  --navy-deep: #0d2237;
  --clay: #d56b32;
  --clay-dark: #a94419;
  --line: rgba(23, 50, 77, 0.18);
  --white: #fffdf8;
  --shadow: 0 22px 60px rgba(26, 39, 52, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(23, 50, 77, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 34px;
  line-height: 1.65;
}

a { color: var(--navy); }
a:hover { color: var(--clay-dark); }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  padding: .75rem 1rem;
  border-radius: .4rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font: 800 .72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .04em;
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 1px var(--navy);
}

nav { display: flex; gap: 1.4rem; font-size: .93rem; }
nav a { color: var(--muted); text-decoration: none; font-weight: 650; }

.hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 600px;
  padding: 3.25rem 0 3.5rem;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.eyebrow, .section-label {
  margin: 0 0 1rem;
  color: var(--clay-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.eyebrow span { color: #92745d; padding: 0 .35rem; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy-deep);
  letter-spacing: -.035em;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.1rem, 5.3vw, 5.2rem);
  line-height: .98;
}

.lede {
  max-width: 42rem;
  margin: 1.6rem 0 0;
  color: #3f4c59;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 1px solid var(--navy);
  border-radius: .45rem;
  font-weight: 800;
  text-decoration: none;
}
.button.primary { background: var(--navy); color: white; box-shadow: 0 10px 22px rgba(23, 50, 77, .2); }
.button.primary:hover { background: var(--navy-deep); }
.button.secondary { background: rgba(255,255,255,.36); color: var(--navy); }
.hero .button { padding-inline: .9rem; }
.download-note, .microcopy { margin: 0 0 .35rem; color: var(--muted); font-size: .84rem; }
.download-note a { font-weight: 700; }

.hero-visual { margin: 0; }
.hero-visual img {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(23, 50, 77, .24);
  border-radius: .65rem;
  box-shadow: var(--shadow);
}
figcaption { margin-top: .7rem; color: var(--muted); font-size: .82rem; }

.section {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

h2 { margin: 0 0 1.4rem; font-size: clamp(2.2rem, 4.5vw, 3.65rem); line-height: 1.06; }
.section p:not(.section-label) { font-size: 1.08rem; }

h3 { margin: 0; color: var(--navy-deep); line-height: 1.25; }
code {
  padding: .08em .34em;
  border: 1px solid rgba(23, 50, 77, .16);
  border-radius: .25rem;
  background: rgba(255, 255, 255, .52);
  font-size: .9em;
}

.feature-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-list article {
  position: relative;
  min-height: 190px;
  padding: 1.5rem 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .45);
}
.feature-list h3 { margin-top: 1.5rem; font-family: Georgia, serif; font-size: 1.4rem; }
.feature-list p { margin-bottom: 0; color: var(--muted); font-size: .95rem !important; }
.feature-number { color: var(--clay-dark); font: 800 .73rem/1 ui-monospace, monospace; letter-spacing: .08em; }

.showcase {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.showcase-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(26, 39, 52, .1);
}
.showcase-wide { grid-column: 1 / -1; }
.showcase-card img { width: 100%; aspect-ratio: 16 / 7.7; object-fit: cover; object-position: top left; }
.showcase-card:not(.showcase-wide) img { aspect-ratio: 16 / 8.3; }
.showcase-card figcaption { margin: 0; padding: 1rem 1.15rem 1.15rem; }
.showcase-card figcaption strong { color: var(--navy-deep); }

.pull-quote {
  margin: 2.75rem 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 5px solid var(--clay);
}
.pull-quote p {
  margin: 0;
  color: var(--navy-deep);
  font: 700 clamp(1.55rem, 3vw, 2.2rem)/1.25 Georgia, serif;
}

.recap-band {
  padding: 6rem max(1rem, calc((100% - 1060px) / 2));
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  background: var(--navy-deep);
  color: #dde6ed;
}
.recap-band h2 { color: white; }
.recap-band .section-label { color: #f2a376; }
.recap-band figure { margin: 0; }
.recap-band img { max-height: 720px; width: 100%; object-fit: cover; object-position: top; border-radius: .6rem; box-shadow: 0 24px 55px rgba(0,0,0,.34); }
.recap-band figcaption { color: #aebdca; }

.availability,
.future,
.questions {
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.availability-copy p:not(.section-label), .future-copy p { font-size: 1.08rem; }
.availability-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(26, 39, 52, .1);
}
.status { margin-top: 0; color: var(--clay-dark); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.availability-card ul { margin: 1.25rem 0 1.5rem; padding: 0; list-style: none; }
.availability-card li { position: relative; padding: .55rem 0 .55rem 1.65rem; border-bottom: 1px solid var(--line); }
.availability-card li::before { content: "✓"; position: absolute; left: 0; color: var(--clay-dark); font-weight: 900; }
.text-link { font-weight: 800; }

.how {
  padding: 7rem max(1rem, calc((100% - 1060px) / 2));
  background: var(--paper-deep);
}
.section-heading { max-width: 680px; }
.guide-preview { margin: .65rem 0 0; font-size: .92rem; font-weight: 750; }
.steps { margin: 3.5rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.steps li { min-height: 230px; padding: 1.35rem; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.steps li:first-child { border-left: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 2.5rem; border-radius: 50%; background: var(--clay); color: white; font-weight: 900; }
.steps h3 { font-family: Georgia, serif; font-size: 1.35rem; }
.steps p { color: var(--muted); font-size: .92rem; }
.no-chops { max-width: 720px; font-weight: 750; }
.setup-notes { max-width: 900px; margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: #53606c; }
.setup-notes p { margin: 0 0 .75rem; font-size: .88rem; }

.boundary-list { margin-top: 3rem; }
.boundary-list article { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.boundary-list article:last-child { border-bottom: 1px solid var(--line); }
.boundary-list article span { color: var(--clay-dark); font: 850 1rem/1 ui-monospace, monospace; }
.boundary-list p { margin: 0; }

.future { grid-template-columns: 1fr 1fr; }
.future-copy { padding-top: 1.15rem; }
.final-cta {
  padding: 7rem max(1rem, calc((100% - 760px) / 2));
  background: var(--navy);
  color: #dce5ec;
  text-align: center;
}
.final-cta h2 { color: white; }
.final-cta .section-label { color: #f2a376; }
.final-cta > p { font-size: 1.1rem; }
.actions.centered { justify-content: center; }
.final-cta .button.primary { background: var(--clay); border-color: var(--clay); }
.final-cta .button.primary:hover { background: #bd5523; }
.final-cta .button.secondary { color: white; border-color: #b9c7d2; background: transparent; }
.final-cta a:not(.button) { color: white; }
.issue-copy { margin-top: 2rem; color: #c4d0da; font-size: .94rem !important; }
.repo-plug { margin-top: 1.2rem; color: #c4d0da; font-size: .94rem !important; }

.questions { grid-template-columns: .8fr 1.2fr; column-gap: clamp(2.5rem, 7vw, 7rem); row-gap: 0; }
.questions-body { grid-column: 2; margin-top: -1rem; }
.questions-body > ol { margin: 0 0 1rem; padding: 0; list-style: none; counter-reset: questions; }
.questions li { position: relative; padding: 1.4rem 0 1.4rem 3.4rem; border-top: 1px solid var(--line); counter-increment: questions; }
.questions li::before { content: counter(questions); position: absolute; left: 0; top: 1.4rem; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--navy); color: white; font-weight: 900; }
.questions-body > p { margin: .5rem 0; }
.questions .thanks { margin-top: 1.5rem; font: 700 1.35rem/1.3 Georgia, serif; }
.questions .postscript { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

footer {
  margin-top: 4rem;
  padding: 2.5rem 1rem;
  background: var(--navy-deep);
  color: #dce4ea;
  font-size: .82rem;
}
.footer-inner { width: min(1060px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; }
.footer-inner p { margin: .5rem 0 0; color: #aebdca; }
.footer-links { display: flex; gap: 1.3rem; align-items: center; }
.footer-links a { color: white; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; padding: 1rem 0; }
  nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero-visual img { width: 100%; }
  .recap-band, .availability, .future, .questions { grid-template-columns: 1fr; }
  .recap-band { padding-block: 4.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 1px solid var(--line); }
  .questions-body { grid-column: 1; margin-top: 0; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero { width: min(100% - 1.25rem, 1180px); gap: 2.5rem; }
  .actions { display: grid; }
  .button { width: 100%; }
  .section { width: min(100% - 1.5rem, 760px); padding: 4rem 0; }
  .feature-list, .showcase { grid-template-columns: 1fr; }
  .showcase-wide { grid-column: auto; }
  .feature-list article { min-height: auto; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(3) { min-height: auto; border-left: 1px solid var(--line); }
  .steps span { margin-bottom: 1rem; }
  .availability, .future, .questions { width: min(100% - 1.5rem, 1060px); padding: 4.5rem 0; }
  .recap-band { padding-inline: .75rem; }
  .footer-inner, .footer-links { flex-direction: column; align-items: flex-start; }
}

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

/* Dashboard-first overview: keep complete demo views legible. */
.dashboard-intro { padding-bottom: 3rem; }
.dashboard-showcase .showcase-card img { aspect-ratio: auto; object-fit: contain; }
.data-story { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Editorial overview and dedicated setup page. */
nav { flex-wrap: wrap; gap: .65rem 1.25rem; }
.nav-start { color: var(--navy); }
.section { width: min(1180px, calc(100% - 2rem)); padding-block: 4rem; }
.section > p, .story > aside { max-width: 70ch; }
.section > h2 { max-width: 24ch; }
.feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; }
.feature-list article { min-height: auto; }
.feature-list h3 { margin-top: .9rem; }
.showcase { margin-bottom: 4rem; }
.workbook-showcase .showcase-card img { aspect-ratio: auto; object-fit: contain; }
.dashboard-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.dashboard-copy p { max-width: 70ch; }
.dashboard-intro h2 { font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
.data-story { margin-top: 2rem; }
.pull-quote { margin-block: 2rem; }
.final-cta { padding-block: 4rem; }
.final-cta .microcopy { font-size: .9rem; color: #dce5ec; }
footer { margin-top: 0; }
.footer-inner { width: min(1180px, 100%); }
.footer-links { flex-wrap: wrap; }
.setup-hero h1 { max-width: 19ch; font-size: clamp(3rem, 5vw, 4.5rem); }
.setup-hero .lede { max-width: 60ch; }
.how { padding: 4rem max(1rem, calc((100% - 1180px) / 2)); }
.steps { margin-top: 2rem; }
.steps span { margin-bottom: 1.5rem; }
.setup-notes h3 { margin-bottom: 1rem; }
.setup-notes p { font-size: .95rem; }
.support-note { font-size: .95rem !important; color: var(--muted); }
:target { scroll-margin-top: 1.5rem; }
@media (max-width: 1000px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding-block: 1rem; }
  nav { display: flex; }
  .dashboard-intro { grid-template-columns: 1fr; }
  .dashboard-intro .hero-visual { max-width: 680px; }
}
@media (max-width: 700px) {
  .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 3rem; }
}
@media (max-width: 560px) {
  .hero, .section, .showcase { width: calc(100% - 2rem); }
  .feature-list { grid-template-columns: 1fr; }
  nav { font-size: .85rem; gap: .65rem 1rem; }
  .brand { font-size: .95rem; }
  .brand-mark { flex-shrink: 0; }
  .footer-links { gap: .75rem; }
}
