/* Onboarding funnel — builds on styles.css tokens */
.flow-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}
.flow-aside {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.flow-aside::after {
  content: "";
  position: absolute; left: -80px; bottom: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(22,224,160,0.22), transparent 65%);
}
.flow-aside .brand { color: var(--cream); }
.flow-aside h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 2rem; max-width: 18ch; }
.flow-aside p { color: rgba(245,240,230,0.72); max-width: 36ch; margin-top: 1rem; }
.steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 1rem; position: relative; z-index: 1; }
.steps li { display: flex; align-items: center; gap: 0.9rem; font-size: 0.95rem; color: rgba(245,240,230,0.6); }
.steps li b {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  border: 1px solid rgba(245,240,230,0.3);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 0.95rem;
}
.steps li.active { color: var(--cream); }
.steps li.active b { background: var(--brass); border-color: var(--brass); color: #fff; }
.steps li.done b { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

.flow-main {
  background: var(--paper);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-card { width: min(100%, 480px); }
.flow-card .eyebrow { display: block; margin-bottom: 0.7rem; }
.flow-card h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.7rem; }
.flow-card .sub { color: var(--ink-soft); margin-bottom: 1.8rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
.field .err { color: var(--clay); font-size: 0.82rem; margin-top: 0.35rem; min-height: 1rem; }

.opt {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  margin-bottom: 1rem;
  cursor: pointer;
}
.opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brass); }
.opt span { font-size: 0.92rem; color: var(--ink-soft); }
.opt strong { display:block; color: var(--ink); margin-bottom: 0.2rem; }

.array-badge {
  display:inline-flex; align-items:center; gap:0.5rem;
  font-size:0.78rem; font-weight:600; letter-spacing:0.04em;
  background: var(--cream-deep); color: var(--sage-deep);
  padding:0.4rem 0.8rem; border-radius:999px; margin-bottom:1.4rem;
}

.tier-pick { display: grid; gap: 0.9rem; margin-bottom: 1.6rem; }
.tier-opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: var(--cream);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tier-opt:hover { transform: translateY(-2px); }
.tier-opt.sel { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91,61,245,0.16); }
.tier-opt h3 { font-size: 1.2rem; }
.tier-opt p { margin: 0.2rem 0 0; font-size: 0.84rem; color: var(--ink-soft); }
.tier-opt .price { font-family: var(--display); font-size: 1.5rem; text-align: right; }
.tier-opt .price small { font-family: var(--body); font-size: 0.8rem; color: var(--sage-deep); }

.summary {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem;
  margin-bottom: 1.4rem;
}
.summary__row { display:flex; justify-content: space-between; font-size: 0.92rem; padding: 0.35rem 0; }
.summary__row.total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.7rem; font-weight: 700; }
.summary__row .free { color: var(--sage-deep); font-weight: 700; }

.flow-actions { display: flex; gap: 0.8rem; margin-top: 0.4rem; }
.flow-actions .btn--ghost { flex: none; }
.flow-actions .btn--primary, .flow-actions .btn--brass { flex: 1; }

.back-home { display:inline-flex; gap:0.4rem; font-size:0.85rem; color:var(--sage-deep); text-decoration:none; margin-top:1.6rem; }

/* Approval / confirmation */
.approved { text-align: center; }
.approved__mark {
  width: 76px; height: 76px; margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--mint-deep); color: #fff;
  display: grid; place-items: center;
  animation: pop 0.5s cubic-bezier(.2,.9,.3,1.4);
}
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.approved h1 { margin-bottom: 0.8rem; }
.approved .msg {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 4px solid var(--mint);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
  text-align: left;
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 1.2rem 0 1.6rem;
}
.approved .nocharge { font-weight: 700; color: var(--ink); }

.hidden { display: none !important; }

@media (max-width: 860px) {
  .flow-shell { grid-template-columns: 1fr; }
  .flow-aside { display: none; }
}
