@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-light: #f5f5f7;
  --text-dark: #1a1a1a;
  --text-muted: #5c5c5c;
  --text-light: #888;
  --black: #000000;
  --header-bg: #0a0a0a;
  --header-border: rgba(255, 255, 255, 0.08);
  --brand-red: #d62828;
  --brand-orange: #ff5e00;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1100px;
  --content-width: 720px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .heading-font {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

a {
  color: var(--text-dark);
  text-decoration: none;
}

a:hover {
  color: var(--brand-orange);
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Top bar ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-logo__label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.site-logo__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: #fff;
}

.site-nav .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* ── Hero (black strip) ── */
.hero {
  background: var(--header-bg);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--brand-red);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

.hero--compact {
  padding: 2.5rem 1.5rem 2rem;
}

.hero--compact h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  max-width: none;
}

/* ── Main content ── */
.main {
  padding: 3rem 1.5rem 4rem;
}

.main__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.main__inner--narrow {
  max-width: var(--content-width);
}

/* ── Cards grid ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(0, 0, 0, 0.12);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-light);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-dark {
  background: var(--black);
  color: #fff;
}

.btn-dark:hover {
  background: #25282a;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--text-dark);
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: #fff;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* ── Section blocks ── */
.section {
  margin-bottom: 3rem;
}

.section__title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.section__desc {
  color: var(--text-muted);
  max-width: 60ch;
}

.info-panel {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.info-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.info-panel ul {
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.info-panel li {
  margin: 0.35rem 0;
}

.info-panel code {
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  word-break: break-all;
}

/* ── Legal pages ── */
.legal-meta {
  color: var(--text-light);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  font-size: 1.05rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--brand-orange);
}

/* ── OAuth / status pages ── */
.status-box {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.status-box h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.status-box p {
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--bg-light);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  text-align: left;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

/* ── Meta flow page ── */
.flow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.flow-chip {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.flow-arrow {
  color: var(--text-light);
  align-self: center;
}

.step-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--black);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}

.step-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.step-card .why {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.step-card ul,
.step-card ol {
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-card li {
  margin: 0.35rem 0;
}

.step-checks {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  border-top: 1px dashed var(--border);
}

.step-checks li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.step-checks input {
  margin-top: 0.25rem;
  accent-color: var(--black);
}

.note {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.note--warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.note--ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.toc strong {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.toc ol {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.toc a {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.progress-bar-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.progress-bar-wrap__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.progress-bar {
  height: 3px;
  background: var(--black);
  width: 0%;
  margin-top: 0.35rem;
  border-radius: 2px;
  transition: width 0.2s;
}

/* ── Footer ── */
.site-footer {
  background: var(--header-bg);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 1.5rem;
  font-size: 0.88rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.45);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }
}
