/* =====================================================================
   Ship Names — Ship Name Generator
   Global stylesheet (mobile-first, no framework, single accent, Poppins)
   ===================================================================== */

/* ---------- design tokens ---------- */
:root {
  /* neutral page + surfaces */
  --page: #f4f1f7;         /* soft neutral page background */
  --surface: #ffffff;      /* white content sections/cards */
  --surface-2: #faf8fc;    /* very light inner fills */
  --line: #e7e2ee;         /* hairline borders */

  /* single restrained accent (rose) + support */
  --accent: #e0567f;
  --accent-dark: #c53c66;
  --accent-soft: #fbe9ef;  /* light accent tint for chips/badges */
  --accent-tint: #f6eef8;  /* faint lavender-neutral tint */
  --lilac: #7c6cc4;        /* secondary accent, used sparingly */

  /* dark text scale */
  --ink-900: #1e1b26;
  --ink-800: #2c2833;
  --ink-700: #3f3a4a;
  --ink-500: #6b6577;
  --ink-400: #8b8598;
  --ink-300: #b4aec0;

  --shadow-sm: 0 1px 2px rgba(30, 27, 38, 0.06), 0 2px 6px rgba(30, 27, 38, 0.05);
  --shadow-md: 0 6px 20px rgba(30, 27, 38, 0.08);
  --shadow-lg: 0 18px 44px rgba(30, 27, 38, 0.12);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --maxw: 1000px;      /* narrower overall shell */
  --maxw-prose: 760px; /* article measure */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--page);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: var(--maxw-prose);
}

.section {
  padding: 56px 0;
}

.section--surface {
  background: var(--surface);
}

.section--tint {
  background: var(--accent-tint);
}

.section__head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section__eyebrow svg {
  width: 14px;
  height: 14px;
}

.section__title {
  font-size: clamp(1.5rem, 3.4vw, 2.05rem);
  margin-bottom: 10px;
}

.section__subtitle {
  color: var(--ink-500);
  font-size: 1rem;
}

.accent-text {
  color: var(--accent);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1.5px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 14px 30px;
  font-size: 1rem;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--accent);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  position: relative;
  transition: color 0.2s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--accent-dark);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--ink-800);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 20px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile a {
  padding: 11px 13px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--ink-700);
}

.nav__mobile a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav__mobile .btn {
  margin-top: 8px;
}

@media (min-width: 880px) {
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__toggle {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
  text-align: center;
  overflow: hidden;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.hero__badge svg {
  width: 15px;
  height: 15px;
}

.hero__title {
  font-size: clamp(2rem, 5.2vw, 3rem);
  margin-bottom: 14px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: var(--ink-500);
  max-width: 560px;
  margin: 0 auto 26px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- generator ---------- */
.generator__grid {
  display: grid;
  gap: 22px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  border: 1px solid var(--line);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--ink-900);
}

.panel__title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.field {
  margin-bottom: 16px;
}

.field__label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-800);
  margin-bottom: 7px;
}

.field__hint {
  font-weight: 400;
  color: var(--ink-400);
  font-size: 0.8rem;
}

.field__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field__input::placeholder {
  color: var(--ink-300);
}

.field__input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 86, 127, 0.14);
}

.names-row {
  display: grid;
  gap: 14px;
}

@media (min-width: 520px) {
  .names-row {
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
  }
  .names-row .field {
    margin-bottom: 0;
  }
}

.names-row__amp {
  display: none;
  align-items: center;
  justify-content: center;
  height: 46px;
  color: var(--accent);
}

.names-row__amp svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 520px) {
  .names-row__amp {
    display: flex;
  }
}

/* chip selectors */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: all 0.18s var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.chip.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* one-tap example chips: clearly a shortcut, not a selectable filter */
.chip--example {
  border-style: dashed;
  color: var(--accent-dark);
  background: transparent;
}

.chip--example:hover {
  background: var(--accent);
  border-color: var(--accent);
  border-style: solid;
  color: #fff;
}

/* results panel */
.results__panel {
  display: flex;
  flex-direction: column;
}

.results__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-400);
  padding: 36px 20px;
}

.results__empty svg {
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  color: var(--ink-300);
}

/* compatibility meter */
.compat {
  display: none;
  align-items: center;
  gap: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.compat.is-visible {
  display: flex;
}

.compat__score {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--accent);
}

.compat__body {
  flex: 1;
  min-width: 0;
}

.compat__label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-900);
}

.compat__bar {
  height: 7px;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  margin-top: 6px;
}

.compat__fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.results__list {
  display: grid;
  gap: 10px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    border-color 0.18s ease;
  animation: cardIn 0.35s var(--ease) both;
}

.result-card:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card__num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 50%;
}

.result-card__body {
  flex: 1;
  min-width: 0;
}

.result-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}

.result-card__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.result-card__label svg {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

.copy-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  transition: all 0.18s var(--ease);
}

.copy-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.copy-btn.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.results__hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-400);
  text-align: center;
}

.form-error {
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #f3cdd8;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 14px;
}

@media (min-width: 880px) {
  .generator__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ---------- article / prose ---------- */
.article {
  background: var(--page);
}

.article__body {
  max-width: var(--maxw-prose);
  margin: 0 auto;
}

.article__body h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin: 40px 0 14px;
  padding-top: 8px;
}

.article__body h3 {
  font-size: 1.12rem;
  margin: 26px 0 10px;
  color: var(--ink-800);
}

.article__body p {
  color: var(--ink-700);
  margin-bottom: 16px;
}

.article__body a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article__body strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* TLDR box */
.tldr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 8px 0 28px;
  box-shadow: var(--shadow-sm);
}

.tldr h2 {
  margin: 0 0 12px !important;
  font-size: 1.05rem !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tldr h2 svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.tldr ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.tldr li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* check list (features etc. in prose) */
.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 4px 0 20px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-700);
}

.check-list li svg {
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ---------- data table ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

table.data thead th {
  background: var(--accent-tint);
  color: var(--ink-900);
  font-weight: 600;
  white-space: nowrap;
}

table.data tbody tr:last-child td {
  border-bottom: none;
}

table.data tbody tr:hover td {
  background: var(--surface-2);
}

table.data td:first-child {
  font-weight: 600;
  color: var(--ink-900);
}

/* ---------- feature cards ---------- */
.cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 15px;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--ink-500);
  font-size: 0.92rem;
}

/* ---------- blog cards ---------- */
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.blog-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  display: block;
  background: var(--surface-2);
}

/* When a card has a thumbnail, the icon badge is redundant. */
.blog-card__img + .feature-card__icon {
  display: none;
}

/* ---------- article featured image ---------- */
.article-featured {
  margin: 0 0 26px;
}

.article-featured img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  background: var(--surface-2);
}

.blog-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.blog-card h3 {
  color: var(--ink-900);
}

.blog-card__more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.article-meta {
  color: var(--ink-400);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.article-cta {
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin: 32px 0 8px;
  text-align: center;
}

.article-cta h3 {
  margin-bottom: 8px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.article-nav a {
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- how it works steps ---------- */
.steps {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  position: relative;
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.step p {
  color: var(--ink-500);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- testimonials ---------- */
.quotes {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.quote__stars {
  display: flex;
  gap: 2px;
  color: #f2b23e;
  margin-bottom: 10px;
}

.quote__stars svg {
  width: 16px;
  height: 16px;
}

.quote__text {
  color: var(--ink-700);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quote__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.quote__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-900);
  line-height: 1.2;
}

.quote__role {
  font-size: 0.8rem;
  color: var(--ink-400);
}

/* ---------- FAQ ---------- */
.faq__list {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  transition: transform 0.25s var(--ease);
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary .faq-icon {
  transform: rotate(45deg);
}

.faq-item__body {
  padding: 0 20px 18px;
  color: var(--ink-600, var(--ink-500));
  font-size: 0.94rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink-900);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0 auto 22px;
}

.cta-banner .btn--primary {
  background: var(--accent);
}

.cta-banner .btn--primary:hover {
  background: #fff;
  color: var(--accent-dark);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--surface);
  color: var(--ink-500);
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer__brand .brand {
  color: var(--ink-900);
}

.footer__about {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--ink-500);
  max-width: 300px;
}

.footer__col h4 {
  color: var(--ink-900);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer__col a {
  color: var(--ink-500);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--accent-dark);
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-600, var(--ink-500));
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.footer__social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer__social svg {
  width: 17px;
  height: 17px;
}

.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--ink-400);
}

.footer__bottom a {
  color: var(--ink-500);
}

.footer__bottom .made-with {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__bottom .made-with svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- generic content pages ---------- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4.4vw, 2.5rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--ink-500);
  max-width: 540px;
  margin: 0 auto;
}

.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
}

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

.prose p,
.prose li {
  color: var(--ink-700);
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: underline;
}

.prose strong {
  color: var(--ink-900);
}

.note-card {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--ink-700);
}

/* ---------- contact form ---------- */
.contact-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info__item .icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.contact-info__item .icon svg {
  width: 21px;
  height: 21px;
}

.contact-info__item h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.contact-info__item p {
  color: var(--ink-500);
  font-size: 0.92rem;
}

textarea.field__input {
  resize: vertical;
  min-height: 130px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 500;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 19px;
  height: 19px;
}

/* ---------- accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: var(--accent-dark);
  padding: 10px 18px;
  border-radius: 10px;
  z-index: 200;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
