:root {
  --navy-900: #10243d;
  --navy-800: #173654;
  --navy-700: #214766;
  --gold-600: #b98a18;
  --gold-500: #d2a840;
  --cream-100: #fbf8f1;
  --neutral-100: #f4f0e7;
  --neutral-200: #e6ded0;
  --neutral-300: #d5c9b8;
  --neutral-700: #595449;
  --ink: #16202a;
  --white: #ffffff;
  --teal-700: #27665f;
  --shadow: 0 16px 40px rgba(16, 36, 61, 0.12);
  --focus: 0 0 0 4px rgba(210, 168, 64, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

a {
  color: var(--navy-800);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--navy-900);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--gold-600);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 20px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  min-height: 430px;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
  padding: clamp(1.35rem, 4vw, 3.25rem);
}

.eyebrow {
  margin: 0;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  color: var(--white);
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 58ch;
  margin: 0;
  color: #f5efe2;
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-actions,
.form-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-action,
.secondary-action,
.compact-button,
.copy-button,
.print-button {
  min-height: 48px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0.82rem 1.05rem;
  font-weight: 800;
}

.primary-action {
  background: var(--gold-500);
  color: var(--navy-900);
}

.primary-action:hover {
  background: #e0bb58;
}

.secondary-action,
.compact-button,
.copy-button,
.print-button {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--neutral-300);
}

.secondary-action:hover,
.compact-button:hover,
.copy-button:hover,
.print-button:hover {
  border-color: var(--gold-600);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.disclaimer {
  margin: 16px 0;
  padding: 1rem;
  background: var(--white);
  border: 2px solid var(--gold-500);
  border-radius: 8px;
  color: var(--navy-900);
}

.disclaimer h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.disclaimer p {
  margin: 0;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  background: var(--cream-100);
  scrollbar-color: var(--gold-500) var(--neutral-200);
}

.section-nav button {
  flex: 0 0 auto;
  min-height: 46px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-800);
  padding: 0.7rem 0.95rem;
  font-weight: 800;
}

.section-nav button.is-active {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

main {
  padding: 16px 0 32px;
}

.home-panel {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1rem 0 1.75rem;
}

.home-panel h2,
.section-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  letter-spacing: 0;
}

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

.home-card {
  min-height: 118px;
  display: grid;
  align-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-900);
  padding: 1rem;
  text-align: left;
  box-shadow: 0 10px 24px rgba(16, 36, 61, 0.08);
}

.home-card:hover,
.home-card.is-active {
  border-color: var(--gold-600);
  transform: translateY(-1px);
}

.home-card span {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: var(--neutral-100);
  color: var(--navy-800);
  font-weight: 900;
}

.home-card strong {
  display: block;
  font-size: 1rem;
}

.utility-row {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 1.35rem;
  padding: 1rem;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
}

.search-field {
  flex: 1;
  display: grid;
  gap: 0.35rem;
  color: var(--navy-900);
  font-weight: 800;
}

.search-field input,
.text-field input,
.text-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0.82rem 0.95rem;
}

.text-field textarea {
  resize: vertical;
}

.content-section {
  display: none;
}

.content-section.is-active {
  display: block;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
}

.section-heading p:last-child {
  margin: 0;
  max-width: 76ch;
  color: var(--neutral-700);
}

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

.content-card,
.script-card,
.tool-card {
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(16, 36, 61, 0.07);
}

.content-card h3,
.script-card h3,
.tool-card h3 {
  margin: 0 0 0.65rem;
  color: var(--navy-900);
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.content-card p,
.script-card p,
.tool-card p {
  margin: 0 0 0.8rem;
}

.letter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.letter-badge,
.section-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 900;
}

.mini-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  border-left: 4px solid var(--gold-500);
  padding-left: 0.65rem;
}

.mini-list strong {
  display: block;
  color: var(--navy-800);
}

.scenario-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-list,
.tool-list {
  display: grid;
  gap: 1rem;
}

.script-card {
  display: grid;
  gap: 0.8rem;
}

.quote-block {
  margin: 0;
  padding: 0.85rem;
  border-left: 4px solid var(--gold-500);
  background: var(--neutral-100);
  border-radius: 0 8px 8px 0;
}

.quote-block strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 0.2rem;
}

.phrase-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.phrase-toolbar button {
  min-height: 44px;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-800);
  padding: 0.65rem 0.8rem;
  font-weight: 800;
}

.phrase-toolbar button[aria-selected="true"] {
  background: var(--navy-800);
  color: var(--white);
}

.phrase-bank {
  display: grid;
  gap: 0.75rem;
}

.phrase-item {
  display: grid;
  gap: 0.75rem;
  align-items: start;
  grid-template-columns: 1fr auto;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  padding: 0.95rem;
}

.phrase-item p {
  margin: 0;
}

.goal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.goal-list {
  margin: 0;
  padding-left: 1.2rem;
}

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

.tool-card {
  scroll-margin-top: 90px;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.tool-fields,
.checklist {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.tool-field {
  display: grid;
  gap: 0.3rem;
}

.tool-line {
  min-height: 44px;
  border: 1px dashed var(--neutral-300);
  border-radius: 8px;
  background: var(--cream-100);
  padding: 0.75rem;
  color: var(--neutral-700);
}

.checklist label,
.check-grid label,
.radio-row label,
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: var(--white);
}

.checklist input,
.check-grid input,
.radio-row input,
.check-line input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  accent-color: var(--navy-800);
  flex: 0 0 auto;
}

.feedback-form {
  display: grid;
  gap: 1rem;
  max-width: 880px;
}

fieldset,
.text-field {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  background: var(--white);
  padding: 1rem;
  font-weight: 800;
}

legend {
  padding: 0 0.35rem;
  color: var(--navy-900);
  font-weight: 900;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  font-weight: 400;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-weight: 400;
}

.text-field {
  color: var(--navy-900);
}

.text-field input,
.text-field textarea {
  font-weight: 400;
}

.check-line {
  font-weight: 800;
  color: var(--navy-900);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--teal-700);
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--neutral-300);
  border-radius: 8px;
  color: var(--neutral-700);
}

.is-hidden {
  display: none !important;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 22px 0 34px;
  color: var(--neutral-700);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 260px;
    max-height: 420px;
  }

  .home-panel {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .card-grid,
  .scenario-grid,
  .goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 20px, 1160px);
  }

  .site-header {
    padding-top: 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 1.25rem;
  }

  h1 {
    max-width: 10ch;
  }

  .hero-image {
    min-height: 230px;
  }

  .home-grid,
  .card-grid,
  .scenario-grid,
  .goal-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .utility-row,
  .phrase-item,
  .tool-header,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compact-button,
  .copy-button,
  .print-button,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section-nav {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .site-header,
  .home-panel,
  .utility-row,
  .section-heading,
  .site-footer,
  .copy-button,
  .print-button,
  .form-actions {
    display: none !important;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .content-section {
    display: block;
  }

  body[data-print-tool] .content-section:not(#tools),
  body[data-print-tool] .tool-card:not(.is-print-target) {
    display: none !important;
  }

  .tool-card {
    break-inside: avoid;
    box-shadow: none;
    border-color: #222;
  }
}
