:root {
  --ink: #18212f;
  --muted: #5d6675;
  --line: #dce2ea;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --cyan: #17bfd0;
  --red: #ff3b5f;
  --green: #2f9e6d;
  --shadow: 0 18px 45px rgba(24, 33, 47, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background: var(--paper);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 750;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  height: 38px;
  width: 38px;
}

nav {
  align-items: center;
  display: flex;
  gap: 6px;
}

nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  padding: 10px 12px;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}

.intro-band {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(23, 191, 208, 0.1), rgba(255, 59, 95, 0.08)),
    var(--soft);
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  margin: 0;
  min-height: calc(100vh - 72px);
  padding: 64px clamp(24px, 6vw, 88px);
}

.intro-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.96;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.lead {
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 28px);
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 760;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
  text-align: center;
  white-space: normal;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: #0e1520;
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.button.full-width {
  width: 100%;
}

.intro-visual {
  display: flex;
  justify-content: center;
}

.intro-visual img {
  filter: drop-shadow(0 28px 42px rgba(24, 33, 47, 0.18));
  max-width: min(360px, 80vw);
  width: 100%;
}

.content-section {
  padding: 72px clamp(24px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-card,
.auth-panel,
.plain-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 24px;
}

.feature-card p,
.plain-panel p,
.auth-panel p,
.legal-document p,
.page-title p,
.step-list {
  color: var(--muted);
}

.split-section {
  align-items: start;
  background: var(--soft);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.plain-panel {
  padding: 28px;
}

.text-link {
  color: var(--red);
  font-weight: 760;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 24px 32px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.narrow-main,
.legal-main {
  margin: 0 auto;
  max-width: 920px;
  padding: 58px 24px 80px;
}

.page-title {
  margin-bottom: 28px;
}

.page-title h1,
.legal-document h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.auth-panel {
  padding: 28px;
}

.auth-summary {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.auth-summary > div {
  min-width: 0;
}

.auth-summary img {
  height: 72px;
  width: 72px;
}

.auth-summary h2 {
  font-size: 28px;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.microcopy {
  font-size: 14px;
  margin: 16px 0 0;
  overflow-wrap: anywhere;
}

.compact {
  padding-left: 0;
  padding-right: 0;
}

.step-list {
  padding-left: 22px;
}

.step-list li + li {
  margin-top: 10px;
}

.legal-document {
  background: var(--paper);
}

.legal-document h2 {
  border-top: 1px solid var(--line);
  font-size: 24px;
  margin: 34px 0 12px;
  padding-top: 28px;
}

.legal-document a {
  color: var(--red);
  font-weight: 700;
}

.center-screen {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

.not-found-icon {
  height: 112px;
  width: 112px;
}

.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 28px;
  padding: 28px;
}

.profile-row {
  align-items: center;
  display: flex;
  gap: 16px;
}

.profile-row img {
  border-radius: 50%;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.status-ok {
  color: var(--green);
  font-weight: 800;
}

.status-error {
  color: var(--red);
  font-weight: 800;
}

code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 2px 6px;
}

strong {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
  }

  nav {
    width: 100%;
  }

  nav a {
    padding-left: 8px;
    padding-right: 8px;
  }

  .intro-band,
  .split-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .intro-band {
    min-height: auto;
    padding-bottom: 44px;
    padding-top: 48px;
  }

  .intro-visual {
    justify-content: flex-start;
  }

  .intro-visual img {
    max-width: 220px;
  }

  .content-section {
    padding-bottom: 48px;
    padding-top: 48px;
  }

  .narrow-main,
  .legal-main {
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    width: min(100%, 330px);
  }

  .page-title h1,
  .legal-document h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .auth-panel {
    padding: 20px;
  }

  .auth-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-summary img {
    height: 64px;
    width: 64px;
  }

  .auth-summary h2 {
    font-size: 26px;
  }

  .auth-panel .button {
    font-size: 15px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-left: 24px;
    padding-right: 24px;
  }
}
