@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-feature-settings: 'pnum' on, 'onum' on;
  background: var(--color-surface);
  color: #1a1a1a;
  overflow-x: clip;
}

html {
  overflow-x: clip;
}

/* ── Header ── */
header.site-header {
  box-sizing: border-box;
  height: 64px;
  background: var(--color-header-bg);
}
.header-wrapper {
  height: 100%;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-actions {
  display: none;
}
.menu-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, visibility 280ms ease;
}
.site-menu {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  width: min(296px, 100vw);
  height: 100vh;
  background: var(--color-surface);
  box-shadow: var(--shadow-default);
  z-index: 9;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 280ms ease, transform 280ms ease, visibility 280ms ease;
}
.site-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 24px;
  min-height: 64px;
}
.site-menu-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0.07em;
  font-variant: all-small-caps;
  color: var(--color-primary-dark);
}
.menu-btn--close {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 12px;
  background: var(--color-surface);
  border: 2px solid var(--color-border-soft);
}
.site-menu-content {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}
.site-menu-user {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 0 12px;
}
.site-menu-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
}
.site-menu-email {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text-muted);
}
.site-menu-divider {
  height: 32px;
  border-top: 1px solid var(--color-border);
}
.site-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-text);
  text-decoration: none;
}

main { padding: 0 0 40px; }

h1 { font-size: 33px; font-weight: 700; line-height: 36px; color: var(--color-text)}
h2 { font-size: 26px; font-weight: 700; line-height: 28px; color: var(--color-text)}
h3 { font-size: 20px; font-weight: 700; line-height: 24px; color: var(--color-text)}
h4 {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: 0.07em;
  font-variant: all-small-caps;
  flex: none;
  order: 0;
  align-self: stretch;
  flex-grow: 0;
  /* margin-bottom: 10px; */
}
h4.label-primary { color: var(--color-primary-dark); }
h4.label-secondary { color: #000000; }

p { font-size: 16px; line-height: 24px; color: var(--color-text); font-weight: 400;}


.logo {
  display: flex;
  align-items: center;
  padding-left: 10px;
  padding-top: 4px;
  padding-bottom: 8px;
}
.logo img { height: 52px; display: block; }

.section { 
  display: flex;
  flex-direction: column;
  padding: 24px; 
  gap: 8px;
}

.steps-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.steps-inner {
  width: 100%;
}

.shadow-bottom {
  box-shadow: inset 0 -4px 8px 0 #0000001A;
}

.section-divider {
  border-top: 1px solid var(--color-border);
  margin: 0 -24px;
}

/* ── Footer ── */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  width: 100%;
  background: var(--color-surface-dark);
}
.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  width: 100%;
}
.footer-links a {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  text-decoration-line: underline;
  color: var(--color-surface);
}
.footer-copy {
  width: 100%;
  font-weight: 400;
  font-size: 13px;
  line-height: 16px;
  text-align: center;
  color: var(--color-surface);
}

/* ── Desktop layout (>=1024px) ──
   Additive only: mobile rules above are untouched. */
@media (min-width: 1024px) {
  header.site-header {
    height: 80px;
  }
  main {
    max-width: 1280px;
    margin: 0 auto;
  }
  .steps-wrapper {
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    max-width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
  }
  .steps-inner {
    max-width: 1280px;
    margin: 0 auto;
  }
  .header-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 0 48px;
  }
  header.site-header .menu-btn {
    display: none;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .site-menu,
  .menu-backdrop {
    display: none !important;
  }
  .section-divider {
    display: none;
  }

  /* Steps bar: text on the left, step indicator on the right */
  .section--steps {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
  }
  .section--steps .section-steps {
    order: 2;
    width: 465px;
    flex: none;
  }
  .section--steps .steps-text-wrap {
    order: 1;
    flex: 1;
  }

  /* Two-column content: main column + aside column */
  .content-columns {
    display: flex;
    align-items: flex-start;
    gap: 48px;
  }
  .content-main {
    flex: 1;
    min-width: 0;
  }
  .content-aside {
    width: 465px;
    flex: none;
  }

  /* Sections placed side-by-side within the main column (social + spam) */
  .section-row {
    display: flex;
    align-items: stretch;
    gap: 48px;
  }
  .section-row .section {
    flex: 1;
    min-width: 0;
  }
}

.site-header.menu-is-open .menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header.menu-is-open .site-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}