@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #172033;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: #e3f4f1;
  --warm: #b45309;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
  --shadow-soft: 0 14px 32px rgba(15, 23, 42, 0.06);
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(238, 246, 245, 0.92) 0%, var(--bg) 48%, #ffffff 100%),
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(37, 99, 235, 0.05), rgba(245, 158, 11, 0.08));
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.65;
}

body,
p,
h1,
h2,
h3,
h4,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.86rem 1.12rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

a.button:hover,
a.button:focus-visible,
.docs-jump-link:hover,
.docs-jump-link:focus-visible {
  transform: translateY(-1px);
}

.docs-shell {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.hero,
.page-footer,
.docs-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), var(--surface));
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: 0.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__kicker,
.section-heading__eyebrow {
  margin-top: 1rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  font-family: inherit;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  margin-top: 0.72rem;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.42rem, 2.25vw, 2.2rem);
}

h3 {
  font-size: clamp(1.16rem, 1.8vw, 1.45rem);
}

.hero__lead,
.section-heading__summary,
.docs-card p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero__lead {
  max-width: 68ch;
  margin-top: 1rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.button--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--accent-strong);
}

.docs-jump-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.docs-jump-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.58rem 0.88rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.docs-jump-link:hover,
.docs-jump-link:focus-visible {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.24);
}

.content {
  margin-top: 1.25rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-heading__summary {
  max-width: 48ch;
}

.docs-overview,
.docs-feature-section,
.docs-practice-section {
  scroll-margin-top: 1.2rem;
}

.docs-feature-section,
.docs-practice-section {
  margin-top: 2rem;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.docs-card-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.12rem;
  border-radius: var(--radius);
}

.docs-card h3 {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.callout {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(180, 83, 9, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.9), rgba(255, 255, 255, 0.96));
}

.callout strong {
  display: block;
  color: var(--warm);
  font-size: 0.95rem;
}

.callout ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.callout li + li {
  margin-top: 0.42rem;
}

.faq-section {
  margin-top: 1.8rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.05rem;
  font-weight: 800;
}

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

.faq-item p {
  padding: 0 1.05rem 1rem;
  color: var(--muted);
}

.page-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  padding: 1.2rem 1rem;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
}

@media (max-width: 720px) {
  .docs-shell {
    width: min(100vw - 1rem, 1180px);
    padding-top: 0.5rem;
  }

  .hero,
  .docs-card,
  .page-footer {
    border-radius: 22px;
  }

  .hero__actions {
    flex-direction: column;
  }

  a.button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .hero__lead,
  .section-heading__summary,
  .docs-card p {
    font-size: 0.98rem;
  }

  .docs-jump-link {
    flex: 1 1 calc(50% - 0.7rem);
  }
}
