/* Guida Axi: same tokens as the Cesare home (config.js theme + ../styles.css). */
:root {
  --bg: #05070a;
  --bg-2: #0a0d12;
  --text: #f0ece3;
  --dim: #9a958a;
  --accent: #e08544;
  --accent-2: #f0a068;
  --glow: rgba(224, 133, 68, 0.28);
  --info: #5e9fc9;
  --card: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --hair: color-mix(in srgb, var(--accent) 30%, transparent);
  --radius: 18px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 15% -10%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%),
    radial-gradient(800px 500px at 90% 110%, rgba(94, 127, 153, 0.12), transparent 65%);
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(20px, env(safe-area-inset-left));
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar__back { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bar__name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.seal {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--hair);
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--hair);
  font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--accent);
}
.seal--lg { width: 62px; height: 62px; font-size: 21px; }

.phasenav { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); }
.phasenav a {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px 7px 8px; border-radius: 99px;
  color: var(--dim); text-decoration: none; font-size: 13px; font-weight: 600;
  transition: background .25s, color .25s;
}
.phasenav b {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); font-size: 11px;
}
.phasenav a:hover { color: var(--text); }
.phasenav a.is-active { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.phasenav a.is-active b { background: var(--accent); color: #170c04; }

main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.kicker { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 18px; }
h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.06; letter-spacing: -.5px;
  max-width: 760px; margin: 0 auto;
}
h1 em { color: var(--accent); font-style: italic; }
.hero__sub { max-width: 540px; margin: 20px auto 0; color: var(--dim); font-size: 17px; }
.meta { list-style: none; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.meta li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--dim); font-size: 13px; }
.meta b { color: var(--text); }

.overview { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; text-align: left; }
.overview a {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); text-decoration: none;
  transition: border-color .25s, transform .25s, background .25s;
}
.overview a::after { content: '→'; position: absolute; top: 20px; right: 20px; color: var(--dim); transition: transform .25s, color .25s; }
.overview a:hover { border-color: var(--hair); background: rgba(255, 255, 255, 0.05); transform: translateY(-2px); }
.overview a:hover::after { color: var(--accent); transform: translateX(3px); }
.overview__n { font-family: var(--display); font-size: 28px; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.overview strong { font-size: 16px; }
.overview small { color: var(--dim); font-size: 13px; }

/* ---------- phase ---------- */
.phase {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start;
  padding: 64px 0; border-top: 1px solid var(--line);
}
.phase__media { position: sticky; top: 96px; }
.phone {
  position: relative; aspect-ratio: 9 / 16; width: 100%;
  border-radius: 34px; overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 7px #0d1016, 0 0 0 8px rgba(255, 255, 255, 0.07), 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 90px -30px var(--glow);
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.phone__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  border: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45)); cursor: pointer;
}
.phone__play span {
  position: relative; width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 10px rgba(224, 133, 68, 0.22), 0 12px 40px var(--glow);
  transition: transform .25s;
}
.phone__play span::after {
  content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #170c04;
}
.phone__play:hover span { transform: scale(1.07); }
.phone.is-playing .phone__play { display: none; }
.phone__cap { margin-top: 18px; text-align: center; color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .4px; }

.phase__tag { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; }
.phase h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 8px 0 12px; }
.phase__lead { color: var(--dim); font-size: 16px; max-width: 520px; }

.group {
  display: flex; align-items: center; gap: 12px; margin: 36px 0 14px;
  color: var(--dim); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.group::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.phase__lead + .steps { margin-top: 32px; }

/* ---------- steps timeline ---------- */
.steps { list-style: none; position: relative; }
.steps li { position: relative; padding: 0 0 22px 56px; }
.steps li::before {
  content: counter(list-item);
  position: absolute; left: 0; top: -2px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--hair); color: var(--accent);
  font-family: var(--display); font-weight: 600; font-size: 14px;
}
.steps li::after { content: ''; position: absolute; left: 17.5px; top: 36px; bottom: 2px; width: 1px; background: linear-gradient(var(--hair), var(--line)); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h4 { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.steps p { color: var(--dim); font-size: 15px; }
.steps strong { color: var(--text); font-weight: 600; }
.steps p a { color: var(--accent); text-underline-offset: 3px; }
kbd {
  display: inline-block; padding: 1px 8px; margin: 0 1px;
  border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text); font: 600 13.5px var(--font); white-space: nowrap;
}

.callout {
  margin-top: 12px; padding: 13px 16px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text); font-size: 14px;
}
.callout b { display: block; margin-bottom: 2px; color: var(--accent-2); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.callout--info { border-color: rgba(94, 159, 201, 0.4); background: rgba(94, 159, 201, 0.08); }
.callout--info b { color: var(--info); }

.pay { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.pay li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pay li::before, .pay li::after { display: none; }
.pay span { font-size: 14px; font-weight: 600; }
.pay em { font-style: normal; font-size: 12.5px; color: var(--dim); }
.pay em.fast { color: #6fcf97; }

/* ---------- done ---------- */
.done {
  position: relative; text-align: center; margin: 24px 0 0; padding: 64px 24px;
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), var(--card);
}
.done h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.5vw, 44px); margin: 18px 0 10px; }
.done > p { color: var(--dim); font-size: 16px; }
.done__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 14px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #170c04;
  font-weight: 800; font-size: 14px; letter-spacing: .8px; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 36px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform .25s;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--hair); }
.done__note { margin-top: 22px; color: var(--dim); font-size: 13px; }

.foot { padding: 40px 0 48px; text-align: center; color: var(--dim); font-size: 13px; }
.foot__disc { max-width: 720px; margin: 12px auto 0; font-size: 11.5px; line-height: 1.6; opacity: .75; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  /* intro, then the video, then the steps */
  .phase { display: flex; flex-direction: column; gap: 0; padding: 48px 0; }
  .phase__body { display: contents; }
  .phase__media { order: 1; position: static; width: 100%; max-width: 270px; margin: 30px auto 4px; }
  .phase .group, .phase .steps { order: 2; }
  .overview { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bar { padding: 10px 14px; }
  .bar__name { display: none; }
  .phasenav a { padding: 6px 10px 6px 6px; font-size: 12px; }
  .hero { padding: 48px 0 24px; }
  .hero__sub { font-size: 16px; }
  .steps li { padding-left: 50px; }
  .pay { grid-template-columns: 1fr; }
  .pay li { flex-direction: row; justify-content: space-between; align-items: center; }
  .done { padding: 48px 18px; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
