/* Process page — layout additions only.
   All design tokens, utilities, and animations come from front-page.css (loaded globally). */

/* ---- Hero ---- */
.process-hero {
  padding-top: clamp(7rem, 20vw, 11rem);
  text-align: center;
}
.process-hero .display-xl {
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.process-hero .lede {
  max-width: 54ch;
  margin-inline: auto;
}

/* ---- Phase strip ---- */
.phase-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: clamp(2rem, 6vw, 3rem);
}
.phase-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .18rem;
  padding: .65rem .85rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-decoration: none;
  transition: border-color .25s, background-color .25s, transform var(--dur) var(--ease);
  min-width: 80px;
}
@media (hover:hover) {
  .phase-pill:hover {
    border-color: var(--accent);
    background: var(--glass-bg-2);
    transform: translateY(-3px);
  }
}
.phase-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  line-height: 1;
}
.phase-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  color: var(--text);
}
.phase-time {
  font-size: .66rem;
  color: var(--text-dim);
}
.phase-connector {
  width: 1.25rem;
  height: 1px;
  background: var(--glass-border);
  flex-shrink: 0;
  display: none; /* shown at md+ where pills fit in a row */
}

/* ---- Alternating section backgrounds ---- */
.proc-section--alt {
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in oklab, var(--surface) 45%, transparent) 20%,
    color-mix(in oklab, var(--surface) 45%, transparent) 80%,
    transparent
  );
}

/* ---- 2-column layout ---- */
.proc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 8vw, 3.5rem);
  align-items: center;
}

/* ---- Step content ---- */
.proc-step-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.proc-step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.proc-step-tag {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 600;
}
.proc-content h2 {
  margin-bottom: 1.25rem;
}
.proc-body {
  color: var(--text-muted);
  font-size: clamp(.97rem, 2.4vw, 1.06rem);
  line-height: 1.78;
  margin: 0 0 1rem;
}
.proc-body:last-of-type {
  margin-bottom: 1.75rem;
}

/* ---- Step visual wrapper ---- */
.proc-visual-wrap {
  position: relative;
}
.proc-visual-wrap::before {
  content: "";
  position: absolute;
  inset: -12% -10% -16% -10%;
  z-index: 0;
  border-radius: 44px;
  background: radial-gradient(
    60% 60% at 50% 40%,
    color-mix(in oklab, var(--accent) 20%, transparent),
    transparent 75%
  );
  filter: blur(44px);
  opacity: .55;
  pointer-events: none;
}
.proc-visual {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
}

/* Visual internals — shared across all step cards */
.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.pv-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
}
.pv-field {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  margin-bottom: .8rem;
}
.pv-field:last-of-type {
  margin-bottom: 0;
}
.pv-lbl {
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-dim);
  font-weight: 600;
}
.pv-val {
  font-size: .91rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.pv-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 1rem 0;
}
.pv-row-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

/* Browser bar inside the Build card */
.pv-browser-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .9rem;
  margin: -1.35rem -1.35rem .9rem;
  border-bottom: 1px solid var(--glass-border);
}
.pv-chat {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

/* ---- Architecture diagram (Blueprint) ---- */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.arch-row {
  display: flex;
  align-items: stretch;
  gap: .35rem;
  min-width: max-content;
}
.arch-node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .12rem;
  padding: .5rem .65rem;
  border-radius: var(--r-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  flex: 1;
}
.arch-node--accent {
  background: var(--accent-soft);
  border-color: color-mix(in oklab, var(--accent) 38%, transparent);
  color: var(--label);
}
.arch-node--accent .arch-sub {
  color: color-mix(in oklab, var(--label) 65%, transparent);
}
.arch-sub {
  display: block;
  font-size: .64rem;
  font-weight: 400;
  color: var(--text-dim);
}
.arch-arrow {
  display: flex;
  align-items: center;
  color: var(--text-dim);
  font-size: .78rem;
  flex-shrink: 0;
  padding-top: .1rem;
}

/* ---- Deployment checks (Launch) ---- */
.deploy-checks {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 1rem 0;
}
.deploy-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .88rem;
}
.deploy-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.deploy-ok.deploy-icon {
  background: color-mix(in oklab, var(--ok) 14%, transparent);
  color: var(--ok);
}
.deploy-label {
  flex: 1;
  color: var(--text-muted);
  font-size: .88rem;
}
.deploy-status {
  font-size: .78rem;
  font-weight: 600;
}
.deploy-ok.deploy-status {
  color: var(--ok);
}

/* ---- Growth metrics (Growth) ---- */
.growth-metrics {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: 1rem 0;
}
.growth-row {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.growth-label {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.3;
  min-width: 7rem;
  flex-shrink: 1;
}
.growth-track {
  flex: 1;
  height: 5px;
  background: var(--glass-border);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.growth-bar {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
  border-radius: inherit;
}
.growth-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  min-width: 2.8rem;
  text-align: right;
}

/* ---- CTA section ---- */
.process-cta-inner {
  padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}
.process-cta-inner .eyebrow {
  display: flex;
}
.process-cta-inner h2 {
  margin: .75rem 0 1.25rem;
}
.process-cta-inner .lede {
  margin-bottom: 2rem;
}
.process-cta-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.process-cta-btns .btn {
  width: 100%;
  justify-content: center;
}

/* ---- Responsive ---- */
@media (min-width: 540px) {
  .phase-connector { display: block; }
}

@media (min-width: 768px) {
  .proc-layout {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 4.5rem);
  }
  .proc-layout--reverse .proc-visual-wrap { order: -1; }

  .process-cta-btns {
    flex-direction: row;
    justify-content: center;
  }
  .process-cta-btns .btn { width: auto; }

  .growth-label { width: 11rem; flex-shrink: 0; min-width: 0; }
  .arch-row { min-width: unset; }
  .arch-diagram { overflow-x: visible; }
}

@media (min-width: 1100px) {
  .proc-layout { gap: clamp(3.5rem, 7vw, 6rem); }
  .growth-label { width: 12rem; }
}
