/* Sidestep Media — shared styles */

:root {
  --red: #e50000;
  --red-dark: #b80000;
  --ink: #0a0a0a;
  --ink-soft: #46433f;
  --paper: #ffffff;
  --mist: #f3f2ef;
  --line: #e1dfda;
  --line-strong: #cfccc5;
  --max: 1120px;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links-desktop a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links-desktop a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--paper);
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 34px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 380px;
}

.step-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}

.step-arrowhead {
  opacity: 0;
  animation: fadein 0.5s ease 1.5s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadein {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step-path,
  .step-arrowhead {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Step divider (signature motif) ---------- */
.step-divider {
  display: flex;
  justify-content: center;
  padding: 0;
  background: var(--paper);
}

.step-divider svg {
  display: block;
}

/* ---------- Section shell ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--mist);
}

.section-head {
  max-width: 62ch;
  margin: 0 0 52px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  line-height: 1.15;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}

/* ---------- Capability rows ---------- */
.capabilities {
  border-top: 1px solid var(--line-strong);
}

.cap-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-strong);
}

.cap-glyph {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.cap-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 4px 0 0;
  letter-spacing: -0.01em;
}

.cap-row p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

/* ---------- Masthead / registered details block ---------- */
.masthead {
  border: 1.5px solid var(--ink);
  padding: 44px 44px;
  position: relative;
}

.masthead::before {
  content: "";
  position: absolute;
  top: -1.5px;
  left: 32px;
  right: 32px;
  height: 3px;
  background: var(--red);
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 22px;
  margin-bottom: 28px;
}

.masthead-logo {
  height: 34px;
  width: auto;
}

.masthead-tag {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 40px;
}

.reg-item dt {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 6px;
}

.reg-item dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
}

/* ---------- Contact ---------- */
.contact-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.mail-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
  border-bottom: 3px solid var(--red);
  padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mail-link:hover {
  color: var(--red);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 22px;
  width: auto;
}

.footer-fine {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--red);
}

/* ---------- Simple page (privacy) ---------- */
.simple-page {
  padding: 64px 0 100px;
}

.simple-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 34px;
}

.simple-page .back-link:hover {
  color: var(--red);
}

.simple-page h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.updated {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0 0 46px;
}

.legal {
  max-width: 74ch;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.legal ul {
  color: var(--ink-soft);
  padding-left: 22px;
  margin: 0 0 14px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--ink);
}

.legal a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: rgba(229, 0, 0, 0.35);
  text-underline-offset: 3px;
}

.legal a:hover {
  text-decoration-color: var(--red);
}

.legal-imprint {
  border: 1.5px solid var(--ink);
  padding: 22px 26px;
  margin: 24px 0 36px;
  font-size: 15px;
}

.legal-imprint div {
  margin-bottom: 4px;
}

.legal-imprint div:last-child {
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .hero-art svg {
    max-width: 220px;
  }
  .hero {
    padding: 48px 0 60px;
  }
  .nav-links-desktop {
    display: none;
  }
  .cap-row {
    grid-template-columns: 44px 1fr;
  }
  .cap-row h3 {
    grid-column: 2;
  }
  .cap-row p {
    grid-column: 2;
  }
  .masthead {
    padding: 32px 24px;
  }
  .reg-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .site-footer .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 20px;
  }
  .site-header .wrap {
    height: 66px;
  }
  .brand-logo {
    height: 32px;
    width: auto;
  }
}
