:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --line: #e6eaf0;
  --panel: #ffffff;
  --soft: #fff2f7;
  --pink: #ff8fc6;
  --pink-strong: #df2b7a;
  --green: #16a34a;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(17, 24, 39, .14);
  --page-margin: clamp(24px, 20vw, 380px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfcfe;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--page-margin);
  background: rgba(251, 252, 254, .86);
  border-bottom: 1px solid rgba(230, 234, 240, .78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand img {
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 650;
}

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

.nav-action {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - 74px);
  padding: clamp(40px, 6vw, 86px) var(--page-margin);
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink-strong);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .22);
}

.disabled-button {
  cursor: not-allowed;
  opacity: .72;
}

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

.hero-visual {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  border-radius: 6px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 var(--page-margin);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-strip div {
  padding: 24px;
  background: white;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.proof-strip span {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 128px) var(--page-margin);
}

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

.demo-playground {
  padding-bottom: 0;
}

.demo-editor {
  min-height: 178px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 54px rgba(17, 24, 39, .08);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 650;
  line-height: 1.65;
}

.demo-word {
  appearance: none;
  display: inline;
  padding: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 4px dashed #ef4444;
  cursor: pointer;
}

.demo-word:hover,
.demo-word:focus-visible {
  color: var(--pink-strong);
  outline: none;
}

.demo-inline-practice {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
  vertical-align: baseline;
}

.demo-inline-practice input {
  width: calc(var(--demo-chars, 8) * 1ch + 48px);
  min-width: 150px;
  height: 58px;
  padding: 6px 14px;
  color: var(--ink);
  caret-color: var(--pink-strong);
  font: inherit;
  line-height: 1;
  background: #fff0f7;
  border: 2px solid var(--pink);
  border-radius: 8px;
  box-shadow: 0 0 0 8px rgba(255, 143, 198, .18);
}

.demo-inline-practice input:focus {
  outline: none;
}

.demo-answer {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 4px 16px;
  color: var(--pink-strong);
  background: white;
  border: 2px solid #ffd0e5;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .12);
  font-size: .68em;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

.demo-inline-practice.has-entry .demo-answer {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.demo-answer-char.correct {
  color: var(--green);
}

.demo-inline-practice.is-correct input {
  border-color: var(--green);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, .14);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--pink-strong);
  background: var(--soft);
  border: 1px solid #ffd0e5;
  border-radius: 8px;
  font-weight: 900;
}

.steps p {
  color: var(--muted);
  line-height: 1.55;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 var(--page-margin) clamp(72px, 10vw, 128px);
}

.gallery img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .09);
}

.video-section {
  padding: 0 var(--page-margin) clamp(72px, 10vw, 128px);
}

.video-frame {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1220;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.install-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 var(--page-margin) clamp(72px, 10vw, 128px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 54px rgba(17, 24, 39, .08);
}

.install-callout div {
  max-width: 760px;
}

.install-callout p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.privacy-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 var(--page-margin) clamp(72px, 10vw, 128px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #ffc9e0;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff5fa 0%, #ffffff 58%, #f0fff6 100%);
}

.privacy-callout div {
  max-width: 760px;
}

.privacy-callout p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.policy-page {
  padding: clamp(36px, 7vw, 86px) 20px;
}

.policy {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 54px rgba(17, 24, 39, .08);
}

.policy h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.policy h2 {
  margin-top: 34px;
  font-size: 24px;
}

.policy p {
  color: #394150;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  :root {
    --page-margin: clamp(18px, 5vw, 32px);
  }

  .site-header,
  .privacy-callout,
  .install-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .proof-strip,
  .steps,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
