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

:root {
  --bg: #fffef6;
  --card: #ffffff;
  --text: #0e0e0e;
  --muted: #4b4b4b;
  --line: #ece7c7;
  --snap-yellow: #fffc00;
  --snap-yellow-soft: #fff88e;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #fffbc2 0%, transparent 30%),
    radial-gradient(circle at 90% 10%, #fffde6 0%, transparent 28%),
    var(--bg);
  line-height: 1.65;
}

a {
  color: #111;
  font-weight: 600;
}

.docs-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  color: inherit;
  flex-shrink: 0;
}

.brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.menu {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.menu a {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  color: inherit;
  white-space: nowrap;
}

.menu a:hover {
  background: #fffef2;
  border-color: var(--line);
}

.menu a.active {
  background: var(--snap-yellow);
  border-color: #111;
}

.locale-switch {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.locale-switch button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.locale-switch button.active {
  background: var(--snap-yellow);
  border: 1px solid #111;
}

.breadcrumb {
  max-width: 1040px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  font-weight: 600;
}

.page-header {
  max-width: 1040px;
  margin: 12px auto 0;
  padding: 0 20px;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.tldr {
  max-width: 1040px;
  margin: 0;
  padding: 0;
}

.tldr-pill {
  background: linear-gradient(135deg, var(--snap-yellow) 0%, var(--snap-yellow-soft) 100%);
  border: 1px solid #111;
  border-radius: calc(var(--radius) + 4px);
  padding: 20px 22px;
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 700;
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.content-wrap {
  max-width: 1040px;
  margin: 20px auto 40px;
  padding: 0 20px;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.card ul {
  margin: 8px 0;
  padding-left: 20px;
}

.card li {
  margin: 6px 0;
  color: #3f3f3f;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 14px 0;
}

.step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--snap-yellow);
  border: 2px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.heads-up {
  border: 2px solid var(--snap-yellow);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fffef2;
  margin-top: 14px;
}

.heads-up-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.whats-next {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.whats-next a {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid #111;
  background: #fff;
  font-weight: 800;
  font-size: 14px;
  color: inherit;
}

.whats-next a.primary {
  background: var(--snap-yellow);
}

.card-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.glossary {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

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

.glossary > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.glossary dt {
  font-weight: 900;
  font-size: 14px;
  margin: 0 0 4px;
}

.glossary dd {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.section-label {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: var(--muted);
}

.section-heading {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 900;
}

.hub-hero {
  max-width: 1040px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.hub-hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 10px;
  line-height: 1.1;
}

.hub-hero p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.hub-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hub-cta {
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid #111;
  background: #fff;
  font-weight: 800;
  font-size: 14px;
  color: inherit;
}

.hub-cta.primary {
  background: var(--snap-yellow);
}

.hub-block {
  max-width: 1040px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.role-grid {
  display: grid;
  gap: 14px;
}

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

.role-card {
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 2px solid #111;
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.15s ease;
}

.role-card:hover {
  transform: translateY(-2px);
}

.role-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--snap-yellow);
  border: 1px solid #111;
}

.role-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.role-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.topic-grid {
  display: grid;
  gap: 14px;
}

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

.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.topic-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.topic-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topic-links li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.topic-links a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}

.topic-links a:hover {
  text-decoration: underline;
}

.feature-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

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

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

.feature-tile {
  background: #fffef2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.feature-tile h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature-tile p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Legal about/contact also use docs.css feature grid */
.legal-shell .feature-grid {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .legal-shell .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.contact-email {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 16px;
}

.contact-email a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  font-size: 14px;
  font-weight: 700;
}

.diagram {
  margin: 16px 0 4px;
  padding: 12px;
  background: #fffef2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
}

.flow span {
  padding: 8px 12px;
  background: #fffef2;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.flow .arrow {
  background: transparent;
  border: none;
  padding: 0 4px;
  font-weight: 900;
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.simple th,
table.simple td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: start;
}

table.simple th {
  background: #fffef2;
}

.ui-tri {
  font-size: 13px;
  line-height: 1.4;
}

.ui-sep {
  color: #888;
  font-weight: 500;
}

.nav-arrow {
  font-weight: 900;
}

.nav-map .card + .card {
  margin-top: 16px;
}

.youre-done {
  text-align: center;
  padding: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8ffd4, var(--snap-yellow-soft));
  border: 2px solid #111;
  font-weight: 900;
  margin-top: 8px;
}

.next-wrap {
  margin-bottom: 48px;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  color: #4f4f4f;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.footer-note {
  margin: 0;
  font-size: 12px;
  color: #888;
}

html[dir="rtl"] .steps li {
  flex-direction: row-reverse;
}

html[dir="rtl"] .card ul {
  padding-right: 20px;
  padding-left: 0;
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .menu {
    justify-content: flex-start;
  }
}
