:root {
  --ink: #102a3a;
  --ink-soft: #526873;
  --paper: #f5f7f5;
  --surface: #ffffff;
  --brand: #123f58;
  --brand-dark: #0b2d40;
  --accent: #b6672d;
  --accent-soft: #f4e8dc;
  --line: #dbe3e2;
  --focus: #f2a900;
  --shadow: 0 18px 55px rgba(15, 43, 58, 0.1);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 700;
}

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

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  background: var(--brand-dark);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.wordmark-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.wordmark-text span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.header-label {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 83% 20%, rgba(112, 162, 168, 0.22), transparent 31%),
    linear-gradient(135deg, var(--brand-dark), var(--brand) 64%, #1c5568);
}

.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 530px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 74px;
  padding-block: 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow,
.privacy-strip .eyebrow {
  color: #e7ad7d;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 6vw, 5.35rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.primary-button,
.secondary-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-radius: 10px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.primary-button {
  border: 1px solid var(--accent);
  color: #fff;
  background: var(--accent);
}

.primary-button:hover {
  border-color: #cb7940;
  background: #cb7940;
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--brand);
  background: var(--surface);
}

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

.availability {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: #f6d3b7;
  font-size: 0.91rem;
  font-weight: 650;
}

.hero-note {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
}

.hero-note p {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.hero-note p:last-child {
  margin-bottom: 0;
}

.hero-note strong {
  color: #fff;
}

.note-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--brand-dark);
  background: #f1c095;
  font-family: Georgia, serif;
  font-weight: 700;
}

.section {
  padding-block: 96px;
}

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

.section-heading > p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  min-height: 270px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(15, 43, 58, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: #99afb1;
  box-shadow: var(--shadow);
}

.topic-number {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.topic-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-content strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.31rem;
  font-weight: 600;
  line-height: 1.2;
}

.topic-content span {
  color: var(--ink-soft);
  font-size: 0.91rem;
  line-height: 1.55;
}

.card-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #8aa0a6;
  font-size: 1.05rem;
}

.questions {
  border-top: 1px solid var(--line);
  background: #eaf0ef;
}

.questions-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 80px;
  align-items: start;
}

.questions-heading {
  position: sticky;
  top: 32px;
  margin-bottom: 0;
}

.question-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.question-list button {
  min-height: 48px;
  flex: 1 1 280px;
  padding: 12px 16px;
  border: 1px solid #c9d5d3;
  border-radius: 10px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  font-weight: 650;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.question-list button:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: var(--surface);
}

.privacy-strip {
  color: #fff;
  background: var(--brand);
}

.privacy-inner {
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 80px;
  padding-block: 55px;
}

.privacy-inner h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.privacy-inner > p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--brand-dark);
}

.footer-inner {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 32px;
}

.footer-inner p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.footer-inner strong {
  color: #fff;
}

.question-dialog {
  width: min(650px, calc(100% - 32px));
  padding: 30px;
  border: 0;
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(7, 30, 43, 0.35);
}

.question-dialog::backdrop {
  background: rgba(6, 30, 43, 0.72);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.dialog-header h2 {
  font-size: 2rem;
}

.icon-button {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.selected-question {
  margin-block: 8px 28px;
  padding: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  line-height: 1.45;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dialog-actions .primary-button {
  flex: 1 1 270px;
}

.dialog-actions .secondary-button {
  flex: 0 1 auto;
}

.question-dialog .availability {
  color: #8c4519;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background: radial-gradient(circle at 80% 10%, #25657a, transparent 36%), var(--brand-dark);
}

.error-card {
  width: min(620px, 100%);
  padding: clamp(32px, 7vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
}

.error-card h1 {
  font-size: clamp(2.5rem, 8vw, 4.4rem);
}

.error-card > p:not(.eyebrow) {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
}

.error-card .primary-button {
  text-decoration: none;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 70px;
  }

  .hero-note {
    max-width: 720px;
  }

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

  .topic-card {
    min-height: 230px;
  }

  .questions-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .questions-heading {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 76px;
  }

  .wordmark-mark {
    width: 44px;
    height: 44px;
  }

  .wordmark-text strong {
    font-size: 0.92rem;
  }

  .wordmark-text span {
    font-size: 0.73rem;
  }

  .header-label {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    gap: 36px;
    padding-block: 56px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .primary-button {
    width: 100%;
  }

  .hero-note {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .section {
    padding-block: 70px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card {
    min-height: 205px;
  }

  .question-list button {
    flex-basis: 100%;
  }

  .privacy-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 52px;
  }

  .footer-inner {
    min-height: 190px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
  }

  .question-dialog {
    padding: 22px;
  }

  .dialog-actions .secondary-button {
    flex: 1 1 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
