:root {
  color-scheme: dark;
  --black: #020306;
  --panel: rgba(10, 16, 27, 0.9);
  --panel-soft: rgba(14, 24, 40, 0.82);
  --line: rgba(177, 204, 225, 0.19);
  --line-bright: rgba(177, 220, 247, 0.44);
  --ink: #f7fbff;
  --muted: #9aaabd;
  --blue: #47d7ff;
  --pink: #ff3e9d;
  --gold: #f1c75b;
  --platinum: #dce9f3;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

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

.page-photo {
  position: fixed;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.94) 62%, #020306),
    linear-gradient(90deg, rgba(0, 0, 0, 0.87), rgba(0, 0, 0, 0.24) 50%, rgba(0, 0, 0, 0.88)),
    url("../doc-in-the-mix-party.jpg") center 12% / min(1040px, 100vw) auto no-repeat;
  opacity: 0.7;
  filter: saturate(0.9) contrast(1.06);
}

.page-glow {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(90px);
  pointer-events: none;
}

.glow-one {
  top: -18rem;
  left: -12rem;
  background: var(--blue);
}

.glow-two {
  top: 18rem;
  right: -18rem;
  background: var(--pink);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.8rem max(1.1rem, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(2, 3, 6, 0.83);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #8092a4 38%, #eef6fb 62%, #687a8c);
  box-shadow: inset 0 1px #ffffff, 0 0 22px rgba(71, 215, 255, 0.15);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  content: "";
  position: absolute;
  background: #06101c;
}

.brand-mark::before {
  width: 4px;
  height: 21px;
  border-radius: 3px;
}

.brand-mark::after {
  width: 21px;
  height: 4px;
  border-radius: 3px;
}

.brand-mark span::before {
  width: 16px;
  height: 16px;
  border: 2px solid #06101c;
  border-radius: 50%;
  background: transparent;
}

.brand-mark span::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--pink);
}

.brand > span:last-child {
  display: grid;
  gap: 0.05rem;
}

.brand strong {
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.075em;
}

.brand small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: var(--platinum);
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--blue);
  color: #ffffff;
}

main,
footer {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5.4rem 0 3.15rem;
}

.eyebrow,
.category-heading p,
.return-card p {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  text-shadow: 0 7px 34px rgba(0, 0, 0, 0.72);
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(120deg, #ffffff 5%, #8fa4b5 32%, #ffffff 50%, #778b9e 78%, #dce9f3);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 780px;
  margin: 1.25rem 0 1.5rem;
  color: #bdcad8;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  text-shadow: 0 2px 12px #000000;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aebdcd;
  background: rgba(5, 10, 17, 0.74);
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-stats strong {
  color: var(--gold);
  font-size: 0.86rem;
}

.faq-tools {
  position: relative;
  z-index: 4;
  padding: 1rem;
  border: 1px solid var(--line-bright);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(19, 33, 53, 0.96), rgba(5, 9, 17, 0.96));
  box-shadow: var(--shadow);
}

.search-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 62px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(71, 215, 255, 0.12);
}

.search-box > span:first-child {
  color: var(--blue);
  font-size: 1.8rem;
  line-height: 1;
  transform: rotate(-18deg);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #718198;
}

.search-box kbd {
  padding: 0.24rem 0.4rem;
  border: 1px solid var(--line);
  border-bottom-color: rgba(255, 255, 255, 0.32);
  border-radius: 5px;
  color: #718198;
  background: rgba(255, 255, 255, 0.04);
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 800;
}

.tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.2rem 0.05rem;
}

.tool-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.tool-row > div {
  display: flex;
  gap: 0.45rem;
}

.tool-row button,
.no-results button {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--platinum);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 850;
}

.tool-row button:hover,
.tool-row button:focus-visible,
.no-results button:hover,
.no-results button:focus-visible {
  border-color: var(--blue);
  color: #ffffff;
}

.category-nav {
  display: flex;
  gap: 0.55rem;
  margin: 1rem 0 2.75rem;
  padding: 0.35rem 0 0.65rem;
  overflow-x: auto;
  scrollbar-color: #344b62 transparent;
}

.category-nav a {
  flex: 0 0 auto;
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aebccd;
  background: rgba(5, 10, 17, 0.76);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 820;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  border-color: rgba(71, 215, 255, 0.62);
  color: #ffffff;
  background: rgba(35, 92, 117, 0.3);
}

.faq-category {
  margin: 0 0 3.4rem;
}

.category-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  padding: 0 0.25rem 1rem;
  border-bottom: 1px solid var(--line-bright);
}

.category-heading > span {
  color: rgba(255, 255, 255, 0.12);
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.75;
}

.category-heading p {
  margin-bottom: 0.2rem;
  font-size: 0.61rem;
}

.category-heading h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.25rem, 3.3vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.category-heading > b {
  color: #77889c;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 16, 0.74);
  backdrop-filter: blur(10px);
}

.faq-item[hidden],
.faq-category[hidden] {
  display: none;
}

.faq-item:first-of-type {
  margin-top: 0.75rem;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.faq-item:last-child {
  border-bottom: 0;
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 14px;
}

.faq-item summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 0.75rem;
  min-height: 74px;
  padding: 0.9rem 1rem;
  list-style: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

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

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: #ffffff;
  background: rgba(71, 215, 255, 0.055);
  outline: none;
}

.faq-item summary > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(177, 204, 225, 0.22);
  border-radius: 50%;
  color: #7f93a8;
  font-size: 0.68rem;
  font-weight: 900;
}

.faq-item summary strong {
  font-size: clamp(0.91rem, 2vw, 1.03rem);
  line-height: 1.4;
}

.faq-item summary i {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(177, 204, 225, 0.26);
  border-radius: 50%;
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  background: var(--blue);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.faq-item summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] {
  background: linear-gradient(105deg, rgba(17, 35, 52, 0.93), rgba(8, 12, 21, 0.93));
  box-shadow: inset 3px 0 var(--blue);
}

.faq-item[open] summary {
  color: #ffffff;
}

.faq-item[open] summary > span {
  border-color: rgba(241, 199, 91, 0.48);
  color: var(--gold);
}

.faq-item[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.answer {
  padding: 0 3.75rem 1.35rem 4.25rem;
}

.answer p {
  max-width: 900px;
  margin: 0;
  color: #aebccd;
  font-size: 0.91rem;
  line-height: 1.72;
}

.answer p::before {
  content: "ANSWER";
  display: block;
  margin-bottom: 0.38rem;
  color: var(--pink);
  font-size: 0.57rem;
  font-weight: 950;
  letter-spacing: 0.15em;
}

mark {
  padding: 0 0.08em;
  color: #07101a;
  background: var(--gold);
  border-radius: 2px;
}

.no-results {
  margin: 2rem 0 4rem;
  padding: 3rem 1.25rem;
  border: 1px dashed var(--line-bright);
  border-radius: 18px;
  text-align: center;
  background: rgba(7, 12, 20, 0.85);
}

.no-results > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 0.8rem;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 900;
}

.no-results h2 {
  margin: 0;
  font-size: 1.3rem;
}

.no-results p {
  margin: 0.55rem auto 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.return-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1rem 0 3rem;
  padding: clamp(1.35rem, 4vw, 2.35rem);
  overflow: hidden;
  border: 1px solid rgba(241, 199, 91, 0.42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 62, 157, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(22, 37, 57, 0.98), rgba(7, 10, 17, 0.98));
  box-shadow: var(--shadow);
}

.return-card p {
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.return-card h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.25rem, 4vw, 2.15rem);
  line-height: 1.05;
}

.return-card a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  color: #07101a;
  background: linear-gradient(135deg, #ffffff, #91a5b6 38%, #eef6fb 61%, #788b9d);
  box-shadow: inset 0 1px #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.return-card a:hover,
.return-card a:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 1px #ffffff, 0 12px 30px rgba(71, 215, 255, 0.2);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0 max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: #718198;
  font-size: 0.7rem;
}

footer p {
  margin: 0;
}

footer a {
  color: #a9b8c8;
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    min-height: 64px;
    padding: 0.7rem 1rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.76rem;
  }

  .brand small {
    display: none;
  }

  .back-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.66rem;
  }

  main,
  footer {
    width: min(100% - 1.2rem, 1160px);
  }

  .page-photo {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.43), rgba(0, 0, 0, 0.95) 58%, #020306),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.78)),
      url("../doc-in-the-mix-party.jpg") 60% 7% / auto 560px no-repeat;
    opacity: 0.76;
  }

  .hero {
    min-height: 390px;
    padding: 4.6rem 0 2.35rem;
  }

  .hero-copy {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .hero-stats span {
    font-size: 0.67rem;
  }

  .faq-tools {
    padding: 0.75rem;
    border-radius: 16px;
  }

  .search-box {
    min-height: 56px;
    padding: 0 0.8rem;
  }

  .search-box kbd {
    display: none;
  }

  .search-box {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tool-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .category-nav {
    margin-bottom: 2rem;
  }

  .faq-category {
    margin-bottom: 2.65rem;
  }

  .category-heading {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
  }

  .category-heading > b {
    display: none;
  }

  .category-heading > span {
    font-size: 2.65rem;
  }

  .faq-item summary {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    gap: 0.55rem;
    min-height: 68px;
    padding: 0.75rem 0.7rem;
  }

  .faq-item summary > span {
    width: 28px;
    height: 28px;
    font-size: 0.58rem;
  }

  .faq-item summary strong {
    font-size: 0.87rem;
  }

  .answer {
    padding: 0 1rem 1.15rem 2.8rem;
  }

  .answer p {
    font-size: 0.84rem;
    line-height: 1.65;
  }

  .return-card,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .return-card a {
    width: 100%;
    justify-content: center;
  }
}

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

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