:root {
  --ink: #15202b;
  --muted: #5d6871;
  --paper: #f7f7f3;
  --surface: #ffffff;
  --surface-soft: #edf4f2;
  --line: #d5dfdc;
  --navy: #152a39;
  --teal: #1c756e;
  --teal-dark: #14574f;
  --coral: #e56d4e;
  --coral-dark: #b94d35;
  --yellow: #f2c94c;
  --danger: #a52d28;
  --shadow: 0 18px 45px rgba(21, 42, 57, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-dark);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 201, 76, 0.9);
  outline-offset: 3px;
}

.page-width {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  color: #ffffff;
  background: var(--navy);
  border-bottom: 4px solid var(--yellow);
}

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

.brand {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  color: #dce8e5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  color: #ffffff;
}

.hero {
  padding: 62px 0 44px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 820px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-points span {
  padding: 6px 10px;
  color: var(--navy);
  background: #e5efec;
  border-left: 3px solid var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.tool-section {
  padding-bottom: 56px;
}

.tool-intro {
  max-width: 690px;
  margin-bottom: 20px;
}

.tool-intro .tool-title,
.content-section h2,
.faq-section h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.tool-intro p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.tool-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.generator-form,
.results-panel {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.generator-form {
  border-top: 5px solid var(--teal);
}

.results-panel {
  border-top: 5px solid var(--coral);
}

.form-heading,
.results-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-heading {
  margin-bottom: 20px;
}

.step-number {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.form-heading .form-title,
.results-heading .results-title {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.25;
}

.form-heading p,
.results-summary,
.result-summary {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.field em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #b9c8c3;
  border-radius: 6px;
}

.field input::placeholder {
  color: #8a9797;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.form-message:empty {
  min-height: 0;
  margin-top: 0;
}

.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.button span {
  margin-right: 5px;
  font-size: 16px;
}

.button-primary {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button-secondary {
  color: var(--navy);
  background: #eef3f0;
  border-color: #c6d5d0;
}

.button-secondary:hover {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.button-quiet {
  color: var(--teal-dark);
  background: transparent;
  border-color: transparent;
}

.button-quiet:hover {
  background: #e9f1ef;
}

.results-heading {
  justify-content: space-between;
}

.result-count {
  padding: 4px 8px;
  color: var(--coral-dark);
  background: #fff0eb;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.result-summary {
  margin: 14px 0 16px;
}

.result-list {
  display: grid;
  gap: 8px;
  min-height: 100px;
}

.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  background: #f8fbf9;
  border: 1px solid #dbe6e1;
  border-radius: 6px;
}

.result-card:hover {
  border-color: #9ec7bc;
}

.result-card-copy {
  min-width: 0;
}

.result-card-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.result-name {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.copy-result {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid #c6d5d0;
  border-radius: 5px;
  font-size: 17px;
}

.copy-result:hover {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.empty-state {
  display: grid;
  min-height: 100px;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  background: #f8fbf9;
  border: 1px dashed #aebfba;
  border-radius: 6px;
  text-align: center;
}

.result-actions {
  margin-top: 16px;
}

.example-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 15px 18px;
  background: var(--navy);
  border-radius: var(--radius);
  color: #ffffff;
}

.example-strip > div {
  display: grid;
  gap: 2px;
}

.example-label {
  color: #b8d1cb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.example-strip strong {
  color: #ffffff;
  font-size: 14px;
}

.example-arrow {
  display: none;
  color: var(--yellow);
  font-size: 24px;
}

.noscript-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #634b00;
  background: #fff7d8;
  border-left: 4px solid var(--yellow);
}

.content-section {
  padding: 56px 0;
}

.content-section-alt {
  width: 100%;
  background: var(--surface-soft);
}

.content-section > p,
.content-section > h2,
.content-section > h3,
.content-section > h4,
.content-section > h5,
.content-section > h6,
.content-section > .inline-example {
  max-width: 820px;
}

.content-section h2 {
  margin-bottom: 18px;
}

.content-section h3 {
  margin: 30px 0 6px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.3;
}

.content-section h4 {
  margin: 22px 0 5px;
  color: var(--teal-dark);
  font-size: 17px;
  line-height: 1.3;
}

.content-section h5 {
  margin: 17px 0 5px;
  color: var(--coral-dark);
  font-size: 15px;
  line-height: 1.35;
}

.content-section h6 {
  margin: 14px 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
}

.content-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.inline-example {
  padding: 12px 14px;
  color: var(--navy) !important;
  background: #ffffff;
  border-left: 4px solid var(--coral);
}

.source-links {
  display: grid;
  max-width: 820px;
  gap: 8px;
  margin-top: 24px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.source-title {
  margin: 0 0 3px !important;
  color: var(--navy) !important;
  font-size: 13px;
  font-weight: 800;
}

.faq-section h3 {
  max-width: 820px;
}

.site-footer {
  padding: 30px 0;
  color: #dbe7e4;
  background: var(--navy);
}

.footer-content {
  display: grid;
  gap: 5px;
}

.footer-content p {
  margin: 0;
  font-size: 13px;
}

.footer-note {
  color: #a9c2bc;
}

@media (min-width: 680px) {
  .hero h1 {
    font-size: 44px;
  }

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

  .field-wide {
    grid-column: span 2;
  }

  .example-strip {
    grid-template-columns: 1fr auto 1fr;
  }

  .example-arrow {
    display: block;
  }
}

@media (min-width: 900px) {
  .tool-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  }

  .generator-form,
  .results-panel {
    padding: 26px;
  }

  .content-section,
  .tool-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

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