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

:root {
  --purple: #6c47ff;
  --purple-light: #ede9fe;
  --purple-mid: #c4b5fd;
  --green: #22c55e;
  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg-light: #f9fafb;
  --bg-white: #fff;
}

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--text-primary);
  font: 16px/1.7 "DM Sans", sans-serif;
}

.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.2;
}

.lead { margin: 0 0 12px; color: var(--text-secondary); font-size: 18px; }
.meta { margin: 0 0 26px; color: var(--text-muted); font-size: 13px; }

.app-walkthrough {
  margin: 24px 0 40px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: radial-gradient(circle at 12% 10%, rgba(108, 71, 255, 0.11), transparent 32%), var(--bg-light);
  box-shadow: 0 18px 45px rgba(26, 26, 46, 0.08);
}

.walkthrough-topbar,
.walkthrough-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.walkthrough-topbar { margin-bottom: 16px; }
.walkthrough-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.walkthrough-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
  content: "";
}
.walkthrough-progress { color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; }

.walkthrough-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: center;
  gap: 22px;
}
.walkthrough-phone {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  border: 7px solid #171725;
  border-radius: 34px;
  background: #f5f5f7;
  box-shadow: 0 20px 36px rgba(26, 26, 46, 0.2);
}
.walkthrough-phone::before {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 50%;
  width: 68px;
  height: 18px;
  border-radius: 12px;
  background: #171725;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}
.walkthrough-screen { display: block; width: 100%; height: auto; }
.walkthrough-screen-transition {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 640ms cubic-bezier(0.22, 1, 0.36, 1);
}
.walkthrough-screen-transition.is-visible { opacity: 1; }
.walkthrough-hotspot {
  position: absolute;
  z-index: 4;
  top: var(--hotspot-y);
  left: var(--hotspot-x);
  width: var(--hotspot-w);
  min-width: 32px;
  height: var(--hotspot-h);
  min-height: 28px;
  border: 0;
  border-radius: var(--hotspot-radius, 14px);
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(20, 18, 38, 0.34);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 240ms ease;
}
.walkthrough-hotspot.is-transitioning { opacity: 0; pointer-events: none; }
.walkthrough-hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }

.walkthrough-success {
  position: absolute;
  z-index: 5;
  display: grid;
  visibility: hidden;
  place-items: center;
  inset: 0;
  padding: 24px;
  border: 0;
  background: rgba(26, 26, 46, 0.76);
  opacity: 0;
  cursor: pointer;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.walkthrough-success.is-visible { visibility: visible; opacity: 1; }
.walkthrough-success-card {
  width: 100%;
  padding: 22px 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--text-primary);
  text-align: center;
  transform: translateY(8px);
  transition: transform 220ms ease;
}
.walkthrough-success.is-visible .walkthrough-success-card { transform: translateY(0); }
.walkthrough-success-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.14);
  color: #138a42;
  font-size: 25px;
  font-weight: 600;
}
.walkthrough-success-card > strong { display: block; font-size: 16px; }
.walkthrough-success-card > span:last-child { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }

.walkthrough-copy {
  min-width: 0;
  padding-right: 4px;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.walkthrough-copy.is-transitioning { opacity: 0; transform: translateY(6px); }
.walkthrough-step-label {
  margin-bottom: 8px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.walkthrough-copy h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; }
.walkthrough-copy p {
  min-height: 104px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.walkthrough-hint {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  padding: 11px 12px;
  border-radius: 10px;
  background: var(--purple-light);
  color: #4c35ad;
  font-size: 13px;
  line-height: 1.45;
}
.walkthrough-hint-icon { font-size: 17px; line-height: 1.15; }
.walkthrough-controls { margin-top: 20px; }
.walkthrough-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text-secondary);
  font: 600 13px/1 "DM Sans", sans-serif;
  cursor: pointer;
}
.walkthrough-button:hover:not(:disabled) { border-color: var(--purple-mid); color: var(--purple); }
.walkthrough-button:disabled { opacity: 0.4; cursor: default; }
.walkthrough-button-primary { border-color: var(--purple); background: var(--purple); color: #fff; }
.walkthrough-button-primary:hover:not(:disabled) { background: #5736e8; color: #fff; }
.walkthrough-dots { display: flex; gap: 7px; }
.walkthrough-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
}
.walkthrough-dot[aria-current="step"] { width: 22px; border-radius: 5px; background: var(--purple); }

.walkthrough-fallback { margin-top: 22px; }
.walkthrough-fallback summary { color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; }
.walkthrough-fallback ol { margin: 14px 0 0 20px; color: var(--text-secondary); }
.walkthrough-fallback li { margin-bottom: 10px; padding-left: 5px; font-size: 14px; }

.guide-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #eefcf5;
  color: #137a42;
  font-size: 13px;
  line-height: 1.55;
}
.guide-note-icon {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #168b4d;
  color: #fff;
  font-weight: 700;
}
.guide-faq { margin-top: 48px; border-top: 1px solid var(--border); }
.guide-faq h2 { margin: 32px 0 8px; font-size: 22px; }
.guide-faq details { border-bottom: 1px solid var(--border); }
.guide-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { color: var(--purple); content: "+"; font-size: 22px; font-weight: 400; }
.guide-faq details[open] summary::after { content: "−"; }
.guide-faq details p { margin: -2px 36px 18px 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.app-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding: 24px;
  border-radius: 14px;
  background: var(--purple-light);
}
.app-cta h2 { margin: 0 0 4px; font-size: 18px; }
.app-cta p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.app-cta a {
  flex: none;
  padding: 10px 18px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .walkthrough-screen-transition,
  .walkthrough-hotspot,
  .walkthrough-copy,
  .walkthrough-success,
  .walkthrough-success-card { transition: none; }
}

@media (max-width: 620px) {
  .page-wrap { padding: 32px 16px 64px; }
  .app-walkthrough { padding: 14px; border-radius: 16px; }
  .walkthrough-layout { display: flex; flex-direction: column; gap: 18px; }
  .walkthrough-phone { width: min(100%, 270px); border-width: 6px; border-radius: 31px; }
  .walkthrough-copy { width: 100%; padding: 0; }
  .walkthrough-copy h2 { font-size: 20px; }
  .walkthrough-copy p { min-height: 0; }
  .walkthrough-hint { margin-top: 14px; }
  .app-cta { flex-direction: column; align-items: flex-start; }
}
