:root {
  color-scheme: light;
  --bg: #f4efe6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #fffaf2;
  --text: #18222f;
  --muted: #506071;
  --accent: #0f9a8b;
  --accent-dark: #0c7569;
  --line: rgba(24, 34, 47, 0.08);
  --shadow: 0 24px 80px rgba(24, 34, 47, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 154, 139, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 183, 77, 0.24), transparent 28%),
    linear-gradient(180deg, #f9f3e9 0%, var(--bg) 45%, #efe6d7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 92%);
}

.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.hero,
.panel,
.proof {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero {
  min-height: calc(100svh - 40px);
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 28px 22px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, rgba(15, 154, 139, 0.1), rgba(255, 183, 77, 0.12));
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 154, 139, 0.25), transparent 70%);
}

.panel {
  margin-top: 16px;
}

.panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
}

.hero__badge,
.section-label {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(24, 34, 47, 0.06);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 7vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero__lead,
.section-copy,
.list,
.checks,
.hero__meta,
.card p,
.connect-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.hero__lead {
  font-size: clamp(1.05rem, 3vw, 1.4rem);
}

.hero-trust {
  display: grid;
  gap: 12px;
  max-width: 640px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(24, 34, 47, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.hero--flow {
  align-content: start;
}

.hero-stage {
  display: grid;
  gap: 20px;
}

.hero-stage[hidden] {
  display: none;
}

.hero-trust__list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-trust__list li,
.hero-trust__note {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-trust__list li::before,
.hero-trust__note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 0 0 5px rgba(15, 154, 139, 0.1);
}

.hero-trust__list li {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-trust__note {
  color: var(--muted);
  border-top: 1px solid rgba(24, 34, 47, 0.08);
  padding-top: 12px;
}

.hero-trust__note::before {
  top: 1rem;
}

.client-downloads {
  width: 100%;
  max-width: 640px;
}

.client-downloads summary {
  position: relative;
  width: fit-content;
  padding-right: 18px;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
  letter-spacing: -0.01em;
}

.client-downloads summary::-webkit-details-marker {
  display: none;
}

.client-downloads summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
}

.client-downloads[open] summary::after {
  content: "-";
}

.client-downloads__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 34, 47, 0.08);
  background: rgba(255, 255, 255, 0.66);
}

.client-downloads__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(24, 34, 47, 0.08);
  background: rgba(255, 250, 242, 0.96);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.client-downloads__link:hover,
.client-downloads__link:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(24, 34, 47, 0.08);
}

.legal-panel a,
.legal-links a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.legal-panel a:hover,
.legal-panel a:focus-visible,
.legal-links a:hover,
.legal-links a:focus-visible {
  text-decoration: underline;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.95rem;
}

.client-downloads--inline {
  max-width: 520px;
}

.hero-video {
  max-width: 720px;
}

.hero-video__panel {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
}

.hero-video__player {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 12px 32px rgba(24, 34, 47, 0.14);
}

.panel-tools {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.hero__steps {
  display: grid;
  gap: 12px;
}

.hero-step,
.connect-step-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(24, 34, 47, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.hero-step__num,
.connect-step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(15, 154, 139, 0.14);
  color: var(--accent-dark);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.hero-step strong,
.connect-step-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.hero-step p,
.connect-step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero__meta {
  font-weight: 700;
  color: var(--text);
}

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border-radius: 18px;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button__title,
.button__meta {
  display: block;
}

.button__meta {
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.76;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button[aria-disabled="true"] {
  opacity: 0.64;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 18px 40px rgba(15, 154, 139, 0.32);
}

.button--secondary {
  color: var(--text);
  background: var(--surface-strong);
}

.list,
.checks {
  padding: 0;
  list-style: none;
}

.list li,
.checks li {
  position: relative;
  padding-left: 26px;
}

.list li + li,
.checks li + li {
  margin-top: 12px;
}

.list li::before,
.checks li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--accent);
}

.list li::before {
  content: "-";
}

.checks li::before {
  content: "+";
}

.cards {
  display: grid;
  gap: 14px;
}

.cards--steps {
  gap: 12px;
}

.card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(24, 34, 47, 0.07);
}

.card--step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.card--step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0;
  border-radius: 14px;
  background: rgba(15, 154, 139, 0.12);
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.card--step p {
  color: var(--text);
  font-weight: 700;
}

.card--step p span {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.panel--visual {
  gap: 18px;
}

.screenshot {
  border-radius: 24px;
  overflow: hidden;
  background: #e9edf3;
  border: 1px solid rgba(24, 34, 47, 0.08);
  box-shadow: 0 20px 40px rgba(24, 34, 47, 0.12);
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.panel--cta,
.panel--final {
  align-items: center;
}

.panel--cta {
  gap: 14px;
}

.panel--cta .section-label {
  margin-bottom: 4px;
}

.after-connect-view {
  min-height: calc(100svh - 40px);
  align-content: start;
  gap: 16px;
}

.after-connect-title {
  max-width: 12ch;
}

.after-connect-copy {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.after-connect-copy--strong {
  color: var(--text);
  font-weight: 800;
}

.after-connect-actions {
  display: grid;
  gap: 12px;
}

.connect-view {
  min-height: calc(100svh - 40px);
  align-content: start;
  gap: 18px;
}

.connect-actions {
  display: grid;
  gap: 14px;
}

.connect-fallback {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(24, 34, 47, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.connect-fallback--links {
  gap: 12px;
}

.connect-fallback__label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.button--fallback {
  min-height: 68px;
  padding-inline: 18px;
  border: 1px solid rgba(24, 34, 47, 0.08);
  background: rgba(255, 250, 242, 0.96);
  box-shadow: none;
}

.button--alt-connect {
  border: 1px dashed rgba(24, 34, 47, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
}

#goToBotButton {
  min-height: 70px;
  grid-column: 1 / -1;
}

.connect-instructions {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 154, 139, 0.14);
  background:
    linear-gradient(135deg, rgba(15, 154, 139, 0.09), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.9);
}

.connect-instructions__title,
.connect-instructions__hint {
  margin: 0;
}

.connect-instructions__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.connect-sequence {
  display: grid;
  gap: 10px;
}

.connect-instructions__hint {
  color: var(--accent-dark);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.connect-note {
  font-weight: 700;
}

.connect-support {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.connect-support a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.connect-support a:hover {
  text-decoration: underline;
}

.direct-test-view {
  min-height: calc(100svh - 40px);
  align-content: center;
  gap: 20px;
}

.direct-simple-view,
.direct-done-view {
  min-height: calc(100svh - 40px);
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.direct-simple-title,
.direct-done-title {
  max-width: 13ch;
}

.direct-simple-copy,
.direct-done-copy,
.direct-simple-note,
.direct-done-note,
.direct-done-link {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.direct-simple-button,
.direct-done-button {
  min-height: 68px;
}

.direct-simple-note {
  font-size: 0.94rem;
  font-weight: 700;
}

.direct-done-link {
  font-weight: 800;
  text-decoration: none;
}

.direct-done-link:hover,
.direct-done-link:focus-visible {
  text-decoration: underline;
}

.direct-done-link--muted {
  font-weight: 700;
}

.direct-done-fallback {
  display: grid;
  gap: 12px;
  width: 100%;
  padding-top: 4px;
}

.direct-test-title {
  max-width: 13ch;
}

.direct-test-card,
.direct-hint {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(24, 34, 47, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.88)),
    rgba(255, 255, 255, 0.92);
}

.direct-test-card--accent {
  border-color: rgba(15, 154, 139, 0.2);
  background:
    linear-gradient(135deg, rgba(15, 154, 139, 0.12), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.92);
}

.direct-test-card__title,
.direct-hint__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.direct-test-card__copy,
.direct-hint__copy {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
}

.proxy-open-view {
  min-height: calc(100svh - 40px);
  align-content: center;
  gap: 20px;
}

.proxy-open-title {
  max-width: 11ch;
}

.proxy-open-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 154, 139, 0.16);
  background:
    linear-gradient(135deg, rgba(15, 154, 139, 0.1), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.92);
}

.proxy-open-card__title,
.proxy-open-card__copy {
  margin: 0;
}

.proxy-open-card__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.proxy-open-card__copy {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

.proxy-open-actions {
  display: grid;
  gap: 12px;
}

.direct-actions {
  display: grid;
  gap: 12px;
}

#directPrimaryProxyButton,
#directBackupProxyButton,
#directGoToBotButton {
  min-height: 78px;
}

#directGoToBotButton {
  box-shadow: 0 18px 40px rgba(15, 154, 139, 0.36);
}

@media (min-width: 720px) {
  .page {
    padding: 28px 24px 64px;
  }

  .hero,
  .connect-view,
  .direct-test-view,
  .direct-simple-view,
  .direct-done-view,
  .proxy-open-view {
    min-height: min(860px, calc(100svh - 56px));
    padding: 42px;
    gap: 24px;
  }

  .panel {
    margin-top: 20px;
  }

  .panel {
    padding: 28px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel--visual {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }

  .panel--cta,
  .panel--final {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel--cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .connect-actions {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: stretch;
  }

  .after-connect-view {
    min-height: min(860px, calc(100svh - 56px));
    padding: 42px;
    gap: 24px;
  }

  .direct-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .proxy-open-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .connect-fallback {
    grid-column: 1 / -1;
    align-self: stretch;
    max-width: 520px;
  }

  .connect-actions > .client-downloads {
    grid-column: 1 / -1;
    max-width: 520px;
  }

  .client-downloads__panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #directGoToBotButton {
    grid-column: 1 / -1;
  }
}
