/* KidsDM landing page, shared by the Chinese and English pages. */

:root {
  --bg: #FBF7EF;
  --surface: #FFFFFF;
  --surface-soft: #F3EDE0;
  --ink: #16150F;
  --muted: #6B675C;
  --brand: #143D36;
  --brand-soft: #DCEAE3;
  --accent: #E4633F;
  --gold: #F2C14E;
  --line: #E4DDCE;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--s-25) solid var(--accent);
  outline-offset: var(--s-25);
}

.skip-link {
  position: absolute;
  left: var(--s-300);
  top: -100px;
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  background: var(--brand);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: var(--s-200);
}

/* Type styles */

.h1 {
  margin: 0;
  font-size: 60px;
  line-height: 60px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.h2 {
  margin: 0;
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.h3 {
  margin: 0;
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.h4 {
  margin: 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
}

.h5 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.h6 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.body-2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.body-3 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.body-6 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.caption-3 {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.balance {
  text-wrap: balance;
}

.pretty {
  text-wrap: pretty;
}

/* Layout */

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: var(--s-900);
}

.section-tight {
  padding-block: var(--s-700);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  margin: 0 0 var(--s-200);
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: var(--s-300);
  height: var(--s-25);
  background: var(--accent);
  border-radius: var(--r-full);
}

.lede {
  margin: var(--s-300) 0 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--muted);
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--s-700);
}

.section-head .lede {
  margin-top: var(--s-200);
}

/* Navigation */

.nav {
  position: fixed;
  top: var(--s-200);
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  padding: var(--s-100) var(--s-200) var(--s-100) var(--s-300);
  background: rgba(251, 247, 239, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-100);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.brand-mark {
  width: var(--s-400);
  height: var(--s-400);
  display: grid;
  place-items: center;
  background: var(--brand);
  border-radius: var(--r-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-400);
}

.nav-link {
  position: relative;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-200);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.lang-switch:hover {
  color: var(--ink);
  background: var(--surface);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--bg);
}

.btn-primary:hover {
  background: #0E2F2A;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface);
}

.btn-lg {
  font-size: 18px;
  line-height: 28px;
  padding: var(--s-75) var(--s-200);
}

.btn-muted {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-muted:hover {
  background: var(--surface-soft);
}

/* Hero */

.hero {
  position: relative;
  padding-top: 152px;
  padding-bottom: var(--s-800);
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: var(--r-full);
  pointer-events: none;
}

.hero-shape-one {
  width: 420px;
  height: 420px;
  right: -120px;
  top: 80px;
  background: var(--brand-soft);
  opacity: 0.7;
}

.hero-shape-two {
  width: 180px;
  height: 180px;
  left: -70px;
  bottom: 40px;
  background: var(--gold);
  opacity: 0.35;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-700);
  align-items: center;
}

.hero h1 {
  max-width: 680px;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: var(--s-300) 0 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-200);
  margin-top: var(--s-400);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--brand);
}

.text-link svg {
  transition: transform 0.3s var(--ease);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-100);
  margin-top: var(--s-500);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.proof-dot {
  width: var(--s-50);
  height: var(--s-50);
  background: var(--line);
  border-radius: var(--r-full);
}

/* Device mockup */

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

.device {
  position: relative;
  width: 340px;
  padding: var(--s-100);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.device-screen {
  overflow: hidden;
  padding: var(--s-300);
  background: var(--surface-soft);
  border-radius: var(--r-md);
}

.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  margin-bottom: var(--s-300);
}

.device-child {
  display: flex;
  align-items: center;
  gap: var(--s-100);
}

.device-avatar {
  width: var(--s-400);
  height: var(--s-400);
  display: grid;
  place-items: center;
  background: var(--gold);
  border-radius: var(--r-full);
  font-size: 18px;
  line-height: 28px;
}

.device-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-50) var(--s-75);
  background: var(--brand-soft);
  border-radius: var(--r-full);
  color: var(--brand);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.device-status::before {
  content: "";
  width: var(--s-75);
  height: var(--s-75);
  background: #2F8F6B;
  border-radius: var(--r-full);
}

.device-card {
  padding: var(--s-300);
  background: var(--brand);
  border-radius: var(--r-lg);
  color: var(--bg);
}

.device-card-top {
  display: flex;
  align-items: center;
  gap: var(--s-300);
}

.device-ring {
  position: relative;
  flex: none;
}

.device-ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.device-ring-value {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.device-ring-caption {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(251, 247, 239, 0.72);
}

.device-meta {
  display: grid;
  gap: var(--s-75);
}

.device-meta-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: rgba(251, 247, 239, 0.72);
}

.device-meta-value {
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-75);
  margin-top: var(--s-300);
}

.device-tag {
  padding: var(--s-50) var(--s-75);
  background: rgba(251, 247, 239, 0.12);
  border-radius: var(--r-full);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--bg);
}

.device-list {
  display: grid;
  gap: var(--s-75);
  margin-top: var(--s-200);
}

.device-row {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-75) var(--s-100);
  background: var(--surface);
  border-radius: var(--r-sm);
}

.device-app-icon {
  width: var(--s-300);
  height: var(--s-300);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border-radius: var(--s-75);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--brand);
}

.device-app-name {
  flex: 1;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.device-app-usage {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--muted);
}

.device-app-usage.is-blocked {
  color: var(--accent);
}

.visual-caption {
  margin: var(--s-200) 0 0;
  text-align: center;
  color: var(--muted);
}

/* Tagline reveal */

.tagline {
  padding-block: var(--s-800);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tagline-text {
  max-width: 680px;
  margin: 0;
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.tagline .word {
  transition: color 0.5s var(--ease);
}

.js .tagline .word {
  color: rgba(22, 21, 15, 0.28);
}

.js .tagline .word.is-lit {
  color: var(--ink);
}

/* Benefits */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-300);
}

.benefit {
  padding: var(--s-300);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.benefit:hover {
  transform: translateY(-2px);
  border-color: #D3C9B6;
}

.benefit-icon {
  width: var(--s-500);
  height: var(--s-500);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-300);
  background: var(--brand-soft);
  border-radius: var(--r-sm);
  color: var(--brand);
}

.benefit h3 {
  margin: 0 0 var(--s-75);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-300);
}

.step {
  padding: var(--s-300);
  background: var(--surface-soft);
  border-radius: var(--r-lg);
}

.step-number {
  width: var(--s-400);
  height: var(--s-400);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-200);
  background: var(--brand);
  border-radius: var(--r-full);
  color: var(--bg);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}

.step h3 {
  margin: 0 0 var(--s-75);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* Detail rows */

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-700);
  align-items: center;
  padding-block: var(--s-600);
}

.detail.is-flipped .detail-visual {
  order: -1;
}

.detail h3 {
  margin: 0 0 var(--s-200);
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  max-width: 480px;
}

.detail p {
  margin: 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.detail-list {
  display: grid;
  gap: var(--s-100);
  margin: var(--s-300) 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-100);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.detail-list svg {
  flex: none;
  margin-top: var(--s-25);
  color: var(--brand);
}

.detail-visual {
  padding: var(--s-300);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.panel {
  padding: var(--s-300);
  background: var(--surface-soft);
  border-radius: var(--r-md);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-200);
  margin-bottom: var(--s-200);
}

.panel-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.panel-value {
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
}

.panel-sub {
  margin: 0 0 var(--s-300);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.bar-list {
  display: grid;
  gap: var(--s-200);
}

.bar-row {
  display: grid;
  gap: var(--s-75);
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.bar-track {
  height: var(--s-75);
  background: #E7DFCE;
  border-radius: var(--r-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: var(--r-full);
}

.bar-fill.is-accent {
  background: var(--accent);
}

.task-list {
  display: grid;
  gap: var(--s-100);
}

.task {
  display: flex;
  align-items: center;
  gap: var(--s-100);
  padding: var(--s-100);
  background: var(--surface);
  border-radius: var(--r-sm);
}

.task-icon {
  width: var(--s-400);
  height: var(--s-400);
  display: grid;
  place-items: center;
  background: var(--gold);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 20px;
}

.task-name {
  flex: 1;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.task-reward {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--brand);
}

.event-list {
  display: grid;
  gap: var(--s-100);
}

.event {
  display: flex;
  gap: var(--s-100);
  padding: var(--s-100);
  background: var(--surface);
  border-radius: var(--r-sm);
}

.event-mark {
  width: var(--s-75);
  height: var(--s-75);
  flex: none;
  margin-top: var(--s-75);
  background: var(--accent);
  border-radius: var(--r-full);
}

.event-title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.event-time {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

/* AI */

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-300);
}

.ai-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-300);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.ai-card.is-highlight {
  background: linear-gradient(135deg, #143D36 0%, #1F5A4E 58%, #2C6E5C 100%);
  border-color: transparent;
  color: var(--bg);
}

.ai-card-head {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  margin-bottom: var(--s-200);
}

.ai-spark {
  width: var(--s-400);
  height: var(--s-400);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border-radius: var(--r-full);
  color: var(--brand);
  font-size: 14px;
  line-height: 20px;
}

.ai-card.is-highlight .ai-spark {
  background: rgba(242, 193, 78, 0.2);
  color: var(--gold);
}

.ai-tag {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ai-summary {
  margin: 0 0 var(--s-200);
  font-size: 15px;
  line-height: 23px;
  font-weight: 500;
}

.ai-card.is-highlight .ai-summary {
  color: #F6F1E6;
}

.ai-points {
  display: grid;
  gap: var(--s-75);
  margin: 0 0 var(--s-200);
  padding: 0;
  list-style: none;
}

.ai-points li {
  position: relative;
  padding-left: var(--s-200);
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.ai-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: var(--r-full);
}

.ai-card.is-highlight .ai-points li {
  color: rgba(251, 247, 239, 0.82);
}

.ai-card.is-highlight .ai-points li::before {
  background: var(--gold);
}

.ai-foot {
  margin: auto 0 0;
  padding-top: var(--s-200);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.02em;
}

.ai-card.is-highlight .ai-foot {
  border-top-color: rgba(251, 247, 239, 0.18);
  color: rgba(251, 247, 239, 0.6);
}

.app-risk-list {
  display: grid;
  gap: var(--s-75);
  margin: 0 0 var(--s-200);
  padding: 0;
  list-style: none;
}

.app-risk-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-100) var(--s-200);
  background: var(--surface-soft);
  border-radius: var(--r-sm);
}

.app-risk-name {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.risk-pill {
  flex: none;
  padding: var(--s-25) var(--s-100);
  border-radius: var(--r-full);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
}

.risk-pill.is-high {
  background: #FBE4DE;
  color: #B3402A;
}

.risk-pill.is-medium {
  background: #FDF0D4;
  color: #8A6412;
}

.risk-pill.is-low {
  background: var(--brand-soft);
  color: var(--brand);
}

/* FAQ */

.faq {
  display: grid;
  gap: var(--s-100);
  max-width: 820px;
}

.faq-item {
  padding: var(--s-200) var(--s-300);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex: none;
  width: var(--s-200);
  height: var(--s-200);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--s-200);
  height: var(--s-25);
  background: var(--ink);
  border-radius: var(--r-full);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  margin: var(--s-200) 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
}

/* Final CTA */

.cta {
  padding: var(--s-600);
  background: var(--brand);
  border-radius: var(--r-xl);
  color: var(--bg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-600);
  align-items: center;
}

.cta h2 {
  margin: 0 0 var(--s-200);
  font-size: 36px;
  line-height: 40px;
  font-weight: 600;
  max-width: 560px;
}

.cta p {
  margin: 0;
  max-width: 520px;
  color: rgba(251, 247, 239, 0.75);
  font-size: 16px;
  line-height: 24px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-200);
}

.cta .btn-primary {
  background: var(--bg);
  color: var(--brand);
}

.cta .btn-primary:hover {
  background: var(--surface);
}

.cta-note {
  color: rgba(251, 247, 239, 0.75);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

/* Footer */

.footer {
  padding-block: var(--s-500) var(--s-600);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-300);
  padding-top: var(--s-400);
  border-top: 1px solid var(--line);
}

.footer-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-300);
}

.footer-link {
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition: color 0.3s var(--ease);
}

.footer-link:hover {
  color: var(--ink);
}

/* Reveal motion */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--s-400));
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile navigation */

.nav-toggle {
  display: none;
  width: var(--s-500);
  height: var(--s-500);
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  cursor: pointer;
}

.nav-toggle-lines {
  position: relative;
  width: var(--s-200);
  height: var(--s-100);
}

.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--s-25);
  background: var(--ink);
  border-radius: var(--r-full);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.nav-toggle-lines span:first-child {
  top: 0;
}

.nav-toggle-lines span:last-child {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: center;
  gap: var(--s-300);
  padding: var(--s-800) var(--s-300) var(--s-500);
  background: rgba(251, 247, 239, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(var(--s-300));
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open a:nth-child(1) {
  transition-delay: 0.06s;
}

.mobile-menu.is-open a:nth-child(2) {
  transition-delay: 0.12s;
}

.mobile-menu.is-open a:nth-child(3) {
  transition-delay: 0.18s;
}

.mobile-menu.is-open a:nth-child(4) {
  transition-delay: 0.24s;
}

.mobile-menu.is-open a:nth-child(5) {
  transition-delay: 0.3s;
}

.mobile-menu-cta {
  margin-top: var(--s-200);
  justify-self: start;
}

body.nav-open {
  overflow: hidden;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .detail,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 128px;
    padding-bottom: var(--s-700);
  }

  .h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .h2 {
    font-size: 30px;
    line-height: 36px;
  }

  .h3 {
    font-size: 24px;
    line-height: 32px;
  }

  .tagline-text {
    font-size: 30px;
    line-height: 36px;
  }

  .benefit-grid,
  .ai-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .detail.is-flipped .detail-visual {
    order: 0;
  }

  .detail {
    gap: var(--s-400);
    padding-block: var(--s-500);
  }

  .section {
    padding-block: var(--s-700);
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .cta {
    padding: var(--s-400);
  }

  .cta h2 {
    font-size: 30px;
    line-height: 36px;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero-shape-one {
    width: 240px;
    height: 240px;
    right: -100px;
  }

  .device {
    width: 100%;
    max-width: 340px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .proof {
    gap: var(--s-75);
  }

  .tagline {
    padding-block: var(--s-600);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .tagline .word,
  .js .tagline .word.is-lit {
    color: var(--ink);
    transition: none;
  }

  .mobile-menu,
  .mobile-menu a,
  .btn,
  .nav-toggle-lines span,
  .faq-icon::before,
  .faq-icon::after {
    transition: none;
  }
}

/* Legal pages */

.legal {
  padding-top: 152px;
  padding-bottom: var(--s-900);
}

.legal-container {
  width: min(820px, calc(100% - 48px));
  margin-inline: auto;
}

.legal-meta {
  margin: 0 0 var(--s-400);
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.legal h1 {
  margin: 0 0 var(--s-200);
  font-size: 48px;
  line-height: 48px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal h2 {
  margin: var(--s-500) 0 var(--s-100);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
}

.legal p {
  margin: 0 0 var(--s-200);
}

.legal ul {
  display: grid;
  gap: var(--s-75);
  margin: 0 0 var(--s-200);
  padding-left: var(--s-300);
}

.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: var(--s-50);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  margin-top: var(--s-600);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--brand);
}

@media (max-width: 960px) {
  .legal {
    padding-top: 128px;
    padding-bottom: var(--s-700);
  }

  .legal h1 {
    font-size: 36px;
    line-height: 40px;
  }

  .legal-container {
    width: calc(100% - 32px);
  }
}

