:root {
  color-scheme: light;
  --cream: #ffefd6;
  --paper: #fffaf1;
  --ink: #29344a;
  --muted: #657086;
  --line: #e7d9c4;
  --coral: #e3564a;
  --coral-dark: #b93831;
  --teal: #1f8a83;
  --blue: #354057;
  --white: #ffffff;
  --shadow: 0 22px 65px rgba(41, 52, 74, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid rgba(231, 217, 196, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-control select {
  min-height: 40px;
  max-width: 170px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue);
  font: inherit;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 64px) 36px;
  background:
    linear-gradient(90deg, rgba(255, 239, 214, 0.96), rgba(255, 250, 241, 0.74)),
    url("assets/playback-illustration.png") right center / min(52vw, 760px) no-repeat;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: clamp(4rem, 12vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--blue);
  font-size: 1.18rem;
  line-height: 1.2;
}

.lead {
  max-width: 620px;
  color: #47536a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(227, 86, 74, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--coral-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--blue);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: clamp(28px, 5vw, 56px) 0 0;
}

.hero-stats div,
.feature-card,
.preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats dt {
  color: var(--blue);
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 365px);
  overflow: hidden;
  border: 10px solid #1f2937;
  border-radius: 34px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  color: var(--blue);
  font-weight: 800;
}

.dot-menu {
  color: var(--muted);
  letter-spacing: 0.08em;
}

.app-art {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.phone-content {
  padding: 20px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.phone input,
.app-button {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
}

.phone input {
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid #dbc8af;
  background: #fffaf1;
  color: var(--blue);
}

.app-button {
  margin-top: 10px;
  border: 0;
  font-weight: 800;
}

.app-button.light {
  background: #ffffff;
  color: var(--blue);
}

.app-button.dark {
  background: var(--blue);
  color: var(--white);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 64px);
}

.band {
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading p,
.language-band p,
.cta p {
  color: var(--muted);
  font-size: 1.06rem;
}

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

.feature-card {
  padding: 24px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #d9f0ec;
  color: var(--teal);
  font-size: 0.7rem;
}

.walkthrough {
  background: #f5efe5;
}

.walkthrough-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: stretch;
}

.steps {
  display: grid;
  gap: 12px;
  align-content: start;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.step span {
  grid-row: span 2;
  color: var(--teal);
  font-weight: 900;
}

.step strong {
  color: var(--blue);
}

.step small {
  color: var(--muted);
  font-size: 0.92rem;
}

.step.active {
  border-color: rgba(31, 138, 131, 0.38);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(41, 52, 74, 0.1);
}

.preview {
  display: grid;
  grid-template-columns: minmax(230px, 420px) minmax(260px, 1fr);
  overflow: hidden;
  min-height: 420px;
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cream);
}

.preview-copy {
  align-self: center;
  padding: clamp(24px, 5vw, 54px);
}

.preview-copy p:first-child {
  color: var(--teal);
  font-weight: 900;
}

.preview-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.language-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--blue);
  color: var(--white);
}

.language-band h2,
.language-band .eyebrow {
  color: var(--white);
}

.language-band p {
  color: rgba(255, 255, 255, 0.78);
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.language-list li {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.cta {
  justify-content: space-between;
  background: var(--cream);
}

.cta div {
  max-width: 720px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

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

.policy-page {
  padding-top: 96px;
}

.policy-content {
  max-width: 840px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.75;
}

.policy-content h2 {
  margin: 32px 0 8px;
  color: var(--blue);
  font-size: 1.35rem;
}

.policy-content a {
  color: var(--coral-dark);
}

@media (max-width: 940px) {
  .hero,
  .walkthrough-layout,
  .preview,
  .language-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 239, 214, 0.96), rgba(255, 250, 241, 0.8)),
      url("assets/playback-illustration.png") center top / 820px no-repeat;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .preview img {
    max-height: 380px;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .header-tools {
    gap: 8px;
  }

  .language-control span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-control select {
    max-width: 138px;
    min-height: 38px;
  }

  .header-action {
    min-height: 38px;
    padding-inline: 14px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.4rem, 20vw, 5.7rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .button {
    width: 100%;
  }

  .phone {
    border-width: 8px;
    border-radius: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}
