:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5d6678;
  --surface: #ffffff;
  --paper: #f7f4ed;
  --line: #d9dde5;
  --navy: #10243f;
  --teal: #0f766e;
  --gold: #b7791f;
  --red: #9f2d2d;
  --shadow: 0 18px 50px rgba(23, 32, 51, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.skip-link {
  background: var(--ink);
  color: #fff;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: absolute;
  top: -4rem;
  z-index: 20;
}

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

.site-header {
  background: rgba(247, 244, 237, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 1rem 1.25rem;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: min(760px, calc(100vh - 78px));
  padding: 4.5rem 1.25rem 3rem;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1.25rem;
  max-width: 13ch;
}

h2 {
  font-size: 2rem;
  line-height: 1.12;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 62ch;
}

.starter-path {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  margin: 1.5rem 0 1rem;
  max-width: 650px;
  padding: 1.15rem;
}

.starter-path h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.starter-path p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.search-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 1rem 0;
  max-width: 650px;
  padding: 1rem;
}

.search-panel label {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.search-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

input[type="search"],
input[type="url"],
input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
  padding: 0.8rem 0.9rem;
}

select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.tool-status {
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 750;
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
}

.tool-status:empty,
.tool-status[hidden] {
  display: none;
}

.tool-ready-actions,
.tool-continue-panel {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 1rem 0 1.5rem;
  padding: 1rem;
}

.tool-ready-actions[hidden],
.tool-continue-panel[hidden] {
  display: none;
}

.tool-ready-actions h2,
.tool-ready-actions p,
.tool-continue-panel h2,
.tool-continue-panel p {
  margin: 0;
}

.tool-ready-actions h2,
.tool-continue-panel h2 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.tool-ready-actions .eyebrow,
.tool-continue-panel .eyebrow {
  margin-bottom: 0.35rem;
}

.tool-ready-actions p:not(.eyebrow),
.tool-continue-panel p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 0.35rem;
}

.tool-continue-panel {
  background: #fff;
  border-left: 6px solid var(--gold);
}

button,
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.primary,
button {
  background: var(--teal);
  color: #fff;
}

.secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.default-path {
  border-left: 6px solid var(--gold);
  margin-top: 1.25rem;
  max-width: 650px;
  padding: 0.1rem 0 0.1rem 1rem;
}

.default-path strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.default-path p {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.default-path ol {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.25rem;
}

.workflow-panel,
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.workflow-panel {
  padding: 1.25rem;
}

.workflow-panel h2 {
  margin-bottom: 1rem;
}

.workflow-list {
  display: grid;
  gap: 0.75rem;
}

.workflow-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  padding: 1rem;
  text-decoration: none;
}

.workflow-list a:hover,
.workflow-list a:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
  outline: none;
}

.workflow-list strong,
.workflow-list span {
  display: block;
}

.workflow-list span {
  color: var(--muted);
  margin-top: 0.25rem;
}

.workflow-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 1rem;
}

.focus-panel {
  align-self: start;
}

.focus-steps {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.worksheet-preview {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 0 0 1rem;
  padding: 0.95rem 0;
}

.preview-label {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.worksheet-preview dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.worksheet-preview div {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 5.6rem minmax(0, 1fr);
}

.worksheet-preview dt {
  color: var(--muted);
  font-weight: 850;
}

.worksheet-preview dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.preview-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.preview-customizer {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin: 0 0 0.95rem;
  padding: 0.85rem;
}

.preview-customizer button {
  grid-column: 1 / -1;
  width: 100%;
}

.customizer-helper {
  color: var(--muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
  margin: -0.2rem 0 0;
}

.preview-actions .button,
.preview-actions button {
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 11.5rem;
  white-space: nowrap;
}

.preview-actions button {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.preview-status {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 850;
}

.preview-helper {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0.65rem 0 0;
}

.home-continue-panel,
.brief-continue-panel {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
}

.home-continue-panel[hidden],
.brief-continue-panel[hidden] {
  display: none;
}

.home-continue-panel h3,
.home-continue-panel p,
.brief-continue-panel h3,
.brief-continue-panel p {
  margin: 0;
}

.home-continue-panel h3,
.brief-continue-panel h3 {
  font-size: 1.05rem;
}

.home-continue-panel p:not(.eyebrow),
.brief-continue-panel p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 0.35rem;
}

.update-action-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 1.5rem 0 2rem;
  padding: 1rem;
}

.update-action-panel h2,
.update-action-panel p {
  margin: 0;
}

.update-action-panel h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.update-action-panel p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 0.35rem;
}

.focus-steps li::marker {
  color: var(--teal);
  font-weight: 900;
}

.focus-steps strong,
.focus-steps span {
  display: block;
}

.focus-steps span,
.focus-note {
  color: var(--muted);
}

.focus-note {
  font-size: 0.95rem;
  margin: 0.85rem 0 0;
}

.quick-plan {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
}

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

.quick-plan-presets button {
  background: #f7f4ed;
  border-color: var(--line);
  color: var(--navy);
  min-height: 40px;
  padding: 0.6rem 0.7rem;
}

.quick-plan-presets button:hover,
.quick-plan-presets button:focus-visible,
.quick-plan-presets button[aria-pressed="true"] {
  background: rgba(15, 118, 110, 0.1);
  border-color: var(--teal);
  color: var(--ink);
}

.quick-plan button,
.quick-plan-link {
  width: 100%;
}

.quick-plan-output {
  background: #0b1324;
  border-radius: 8px;
  color: #f8fafc;
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  margin: 0;
  min-height: 118px;
  overflow: auto;
  padding: 0.9rem;
  white-space: pre-wrap;
}

.hero-visual {
  overflow: hidden;
}

.metrics-band {
  background: var(--navy);
  color: #fff;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.metrics-band div {
  background: rgba(255, 255, 255, 0.06);
  padding: 1.5rem;
}

.metrics-band strong,
.metrics-band span {
  display: block;
}

.metrics-band span {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 0.35rem;
}

.content-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 4rem 1.25rem;
}

.discovery-section {
  padding-bottom: 2rem;
}

.discovery-grid {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  margin-top: 1.5rem;
}

.discovery-grid .search-panel {
  margin: 0 0 1rem;
  max-width: none;
}

.section-heading {
  max-width: 700px;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 1.5rem;
}

.guide-card,
.next-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}

.guide-card[hidden] {
  display: none;
}

.guide-card a {
  text-decoration-color: rgba(15, 118, 110, 0.35);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.18em;
}

.tag {
  color: var(--gold);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.split {
  align-items: start;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
}

.steps {
  background: #fff;
  border-left: 6px solid var(--gold);
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 2.4rem;
}

.steps li + li {
  margin-top: 0.9rem;
}

.article {
  margin: 0 auto;
  max-width: 860px;
  padding: 4rem 1.25rem;
}

.article h1 {
  max-width: 14ch;
}

.article section {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

.callout-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 1rem 0 0;
  padding: 1.25rem 1.25rem 1.25rem 2.4rem;
}

.callout-list li + li {
  margin-top: 0.65rem;
}

.snippet-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 1rem 0 0;
  padding: 1.25rem;
}

.snippet-panel button {
  margin-bottom: 0.85rem;
}

.snippet-panel pre {
  background: #0b1324;
  border-radius: 8px;
  color: #f8fafc;
  margin: 0;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

.tool-form {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 850;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.output-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 2rem 0;
  padding: 1.25rem;
}

.output-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.output {
  background: #0b1324;
  border-radius: 8px;
  color: #f8fafc;
  margin: 1rem 0 0;
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

.stacked-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.stacked-list {
  display: grid;
  gap: 1rem;
}

.stacked-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.preset-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.preset-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.preset-card h3,
.preset-card p {
  margin: 0;
}

.preset-card p {
  color: var(--muted);
}

.preset-card button {
  align-self: end;
  width: 100%;
}

.checklist {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0;
}

.checklist label {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
}

.checklist input {
  margin-top: 0.35rem;
}

.progress-panel {
  align-items: center;
  background: var(--navy);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 1.5rem 0;
  padding: 1rem;
}

.change-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.change-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.change-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.change-item summary span {
  font-weight: 850;
}

.change-item time {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 750;
}

.change-item p {
  margin-top: 1rem;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .discovery-grid,
  .card-grid,
  .preset-grid,
  .update-action-panel,
  .metrics-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  h1 {
    font-size: 2.85rem;
    max-width: 13ch;
  }
}

@media (max-width: 560px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-row,
  .progress-panel {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .progress-panel {
    flex-direction: column;
  }

  .change-item summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .worksheet-preview div {
    grid-template-columns: 1fr;
  }

  .preview-customizer {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
  }
}
