:root {
  --purple: #a3238e;
  --purple-deep: #722264;
  --purple-pale: #f5e8f2;
  --beige: #ffe4b8;
  --ink: #333132;
  --muted: #636466;
  --soft: #8a8c8e;
  --line: rgba(51, 49, 50, 0.1);
  --mist: #f1f2f2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 16px 48px rgba(51, 49, 50, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 38px;
  width: auto;
}

.brand span {
  font-size: 11px;
  color: var(--soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  font-family: inherit;
}

.btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(163, 35, 142, 0.25);
}

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

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

.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 80px) 0 40px;
  background: linear-gradient(165deg, #fff 0%, var(--purple-pale) 50%, var(--beige) 100%);
  border-bottom: 4px solid var(--purple);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  max-width: 18ch;
}

.hero-lead {
  margin-top: 16px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
}

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

.checklist {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  max-width: 640px;
}

.checklist li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink);
}

.checklist li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Phases overview */
.overview {
  padding: 48px 0;
}

.overview h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  margin-bottom: 20px;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.phase-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.phase-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--purple);
}

.phase-card span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Steps */
.guide-main {
  padding: 24px 0 80px;
}

.phase-block {
  margin-bottom: 48px;
  scroll-margin-top: 96px;
}

.phase-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--purple);
}

.phase-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
}

.phase-head h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
}

.phase-head p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  scroll-margin-top: 100px;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.step-card.tour-highlight {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(163, 35, 142, 0.2), var(--shadow);
}

.step-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
}

@media (max-width: 860px) {
  .step-inner {
    grid-template-columns: 1fr;
  }
}

.step-copy {
  padding: 24px 28px;
}

.step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.step-copy h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step-copy p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.tip {
  background: var(--purple-pale);
  border-left: 4px solid var(--purple);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  margin-bottom: 14px;
}

.tip strong {
  color: var(--purple-deep);
}

.step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mist);
}

.step-links a:hover {
  background: var(--purple-pale);
}

.step-shot {
  background: var(--mist);
  border-left: 1px solid var(--line);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.step-shot img {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 320px;
  width: 100%;
  object-fit: contain;
  object-position: top center;
}

/* Help section */
.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.help-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.help-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.help-card p {
  font-size: 13px;
  color: var(--muted);
}

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.footer a {
  color: var(--beige);
}

.footer p {
  font-size: 13px;
  color: var(--soft);
  margin-top: 12px;
}

/* Tour UI */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 15, 30, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tour-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.tour-panel {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 210;
  width: min(520px, calc(100% - 32px));
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--purple);
  padding: 20px 22px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-panel.active {
  transform: translateX(-50%) translateY(0);
}

.tour-progress {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}

.tour-panel h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.tour-panel p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.tour-actions .right {
  display: flex;
  gap: 8px;
}

@media (max-width: 640px) {
  .nav-actions .btn-secondary {
    display: none;
  }
  .step-copy {
    padding: 18px;
  }
}
