:root {
  --bg: #f5f4f7;
  --surface: #ffffff;
  --ink: #1a1320;
  --muted: #6b6478;
  --accent: #c8147a;
  --accent-dark: #9c0f5d;
  --border: #e6e3ec;
  --shadow: 0 10px 30px rgba(26, 19, 32, 0.08);
  --radius: 14px;
  --bezel: #111014;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: #f0eaf3;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8eef4 100%);
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
}
.site-header h1 {
  margin: 0 0 6px;
  font-size: 1.875rem;
  letter-spacing: -0.01em;
}
.site-header .subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

/* Banner */
.banner {
  background: #fff4f9;
  border-bottom: 1px solid #f5d8e7;
  color: #4a1633;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9375rem;
}
.banner a {
  text-decoration: underline;
  margin-left: 4px;
}

/* Demo grid */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 40px;
  padding: 40px 20px 60px;
  align-items: start;
}
@media (max-width: 820px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.phone-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 16px;
}
@media (max-width: 820px) {
  .phone-column { position: static; }
}

/* Flow toggle */
.flow-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow);
}
.flow-btn {
  border: 0;
  background: transparent;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.flow-btn:hover { color: var(--ink); }
.flow-btn.is-active {
  background: var(--accent);
  color: #fff;
}

/* Phone frame */
.phone {
  width: 280px;
  height: 580px;
  background: var(--bezel);
  border-radius: 36px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 2px #2a2630 inset,
    0 18px 40px rgba(26, 19, 32, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 90px;
  height: 18px;
  background: var(--bezel);
  border-radius: 0 0 12px 12px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-home {
  width: 80px;
  height: 4px;
  background: #2a2630;
  border-radius: 4px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.phone-screen {
  flex: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  background: rgba(200, 20, 122, 0.18);
  border-radius: 10px;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.15s ease, transform 0.15s ease;
}
.hotspot:hover {
  background: rgba(200, 20, 122, 0.32);
  transform: scale(1.03);
}
.hotspot:active { transform: scale(0.98); }
.hotspot::after {
  content: attr(data-label);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 16, 20, 0.85);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.hotspot:hover::after { opacity: 1; }

.screen-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  text-align: center;
  pointer-events: none;
}

/* Nav buttons */
.nav-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}
.nav-btn {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nav-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-btn:active:not(:disabled) { transform: translateY(1px); }
.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.nav-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-btn.primary:hover:not(:disabled) {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.screen-indicator {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.875rem;
  min-width: 50px;
  text-align: center;
}

.link-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 10px;
  text-decoration: underline;
}
.link-btn:hover { color: var(--accent); }

/* Info column */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.card h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.card p { margin: 0 0 12px; }
.card ul {
  margin: 0;
  padding-left: 18px;
}
.card li { margin-bottom: 4px; }

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}
.cta:hover {
  background: var(--accent-dark);
  text-decoration: none;
  color: #fff;
}
.cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.cta.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0;
  text-align: center;
}
.site-footer p { margin: 4px 0; }
