:root {
  --teal: #4dcfcf;
  --teal-dark: #257f84;
  --red: #f04e5a;
  --red-dark: #c83945;
  --ink: #111111;
  --cream: #f8f8f8;
  --white: #ffffff;
  --muted: #6b7280;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 18px 54px rgba(17, 17, 17, 0.09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", sans-serif;
}

button {
  font: inherit;
}

.site-header {
  min-height: 72px;
  padding: 1rem clamp(1.25rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(106px, 15vw, 154px);
  height: auto;
  filter: brightness(0) invert(1);
}

.header-tag,
.series,
.eyebrow,
.progress-label,
.trail-badge,
.resource-by span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-tag {
  color: rgba(255, 255, 255, 0.36);
}

.hero {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.96), rgba(17, 17, 17, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 20px),
    var(--ink);
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
  transform: translateX(-50%);
}

.hero-inner {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.4rem, 7vw, 4.2rem) 0 clamp(3rem, 7vw, 4.8rem);
}

.series {
  margin: 0 0 0.75rem;
  color: var(--teal);
}

h1,
.card-title,
.q-text,
.site-footer p {
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.series) {
  max-width: 460px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  font-style: italic;
  line-height: 1.65;
}

.app-shell {
  flex: 1;
  width: min(660px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem) 0 3rem;
}

.progress-wrap {
  margin-bottom: 1.75rem;
}

.progress-label {
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
  transition: width 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  animation: rise 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-accent {
  border-left: 4px solid var(--teal);
}

.eyebrow {
  margin-bottom: 0.5rem;
  color: var(--teal-dark);
}

.q-text {
  margin: 0 0 1.25rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  line-height: 1.5;
}

.card-title {
  color: var(--ink);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 760;
  line-height: 1.35;
}

.card-body {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 140ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn {
  padding: 0.75rem 1.15rem;
  border: 2px solid transparent;
}

.btn-primary {
  color: var(--ink);
  border-color: var(--teal);
  background: var(--teal);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--white);
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  outline: none;
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(240, 78, 90, 0.08);
  outline: none;
}

.btn-ghost {
  gap: 0.5rem;
  padding: 0 1rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  outline: none;
}

.btn:active,
.btn-ghost:active {
  transform: scale(0.97);
}

.trail {
  margin-bottom: 1.5rem;
}

.trail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.68;
}

.trail-item:last-child {
  border-bottom: 0;
}

.trail-q {
  flex: 1;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.trail-badge {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  padding: 0.24rem 0.55rem;
  border-radius: 4px;
  font-size: 0.64rem;
}

.badge-yes {
  color: var(--teal-dark);
  background: rgba(77, 207, 207, 0.18);
}

.badge-no {
  color: var(--red-dark);
  background: rgba(240, 78, 90, 0.12);
}

.site-footer {
  padding: 1.6rem 1rem;
  color: rgba(255, 255, 255, 0.44);
  background: var(--ink);
  text-align: center;
}

.site-footer p {
  margin: 0 0 1rem;
  font-style: italic;
}

.resource-by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.resource-by span {
  color: rgba(255, 255, 255, 0.22);
}

.resource-by img {
  width: 86px;
  height: auto;
  opacity: 0.28;
  filter: brightness(0) invert(1);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 62px;
    padding: 0.9rem 1.25rem;
  }

  .brand-logo {
    width: 96px;
  }

  .btn-row {
    grid-template-columns: 1fr;
  }
}
