/* =========================================
   start.css - How to Start a Business view only (QUO-30 / OCW-19)
   The block below is business.css, 1:1, with the biz- prefix renamed to start-,
   so this page keeps the Business page's exact visual rhythm. The guided stepper
   and the page-specific rules follow it. Tokens only, no literal hex.
   ========================================= */


.start-view { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; z-index: 1; }

.start-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(32px, 6vh, 72px) clamp(20px, 5vw, 64px) clamp(48px, 10vh, 96px);
  -webkit-overflow-scrolling: touch;
}

.start-header { max-width: 64ch; margin: 0 0 clamp(36px, 6vh, 60px); }
.start-eyebrow { margin: 0 0 14px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sidebar-text); }
.start-title { margin: 0 0 20px; font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.03em; color: var(--sidebar-active-text); }
.start-lede { margin: 0; font-size: clamp(1rem, 1.6vw, 1.14rem); line-height: 1.65; color: var(--sidebar-text); }

.start-block { max-width: 78ch; margin: 0 0 clamp(36px, 6vh, 58px); }
.start-section-title { margin: 0 0 12px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; line-height: 1.16; letter-spacing: -0.025em; color: var(--sidebar-active-text); }
.start-section-lede { margin: 0 0 clamp(22px, 3.5vh, 32px); max-width: 60ch; font-size: clamp(0.96rem, 1.5vw, 1.06rem); line-height: 1.65; color: var(--sidebar-text); }
.start-text { margin: 0; max-width: 68ch; font-size: clamp(0.94rem, 1.4vw, 1.02rem); line-height: 1.68; color: var(--sidebar-text); }

/* ---- steps ---- */
.start-steps { list-style: none; margin: 0; padding: 0; max-width: 70ch; }
.start-step { display: grid; grid-template-columns: 44px 1fr; gap: clamp(16px, 2.4vw, 26px); padding: 0 0 clamp(24px, 3.8vh, 36px); }
.start-step-rail { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.start-step:not(:last-child) .start-step-rail::after {
  content: ''; position: absolute; top: 62px; bottom: -4px; left: 50%; width: 1px; transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--border-content-frame), var(--border-content-glow));
}
.start-step-num { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; color: var(--sidebar-text); opacity: 0.72; }
.start-step-icon { width: 22px; height: 22px; color: var(--sidebar-active-text); flex: 0 0 auto; }
.start-step-title { margin: 0 0 9px; font-size: clamp(1.02rem, 1.8vw, 1.22rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--sidebar-active-text); }
.start-step-text { margin: 0; font-size: clamp(0.92rem, 1.35vw, 1rem); line-height: 1.66; color: var(--sidebar-text); }

/* ---- earnings ---- */
.start-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(14px, 2vw, 20px); }
.start-stat { padding: clamp(22px, 2.8vw, 28px); border: 1px solid var(--border-content-frame); border-radius: 14px; background: var(--dark-section-bg); }
.start-stat-icon { width: 20px; height: 20px; margin-bottom: 16px; color: var(--sidebar-active-text); }
.start-stat-value { margin: 0 0 4px; font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; color: var(--sidebar-active-text); }
.start-stat-label { margin: 0 0 12px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sidebar-text); opacity: 0.78; }
.start-stat-text { margin: 0; font-size: clamp(0.88rem, 1.3vw, 0.95rem); line-height: 1.62; color: var(--sidebar-text); }
.start-note { margin: clamp(16px, 2.4vh, 22px) 0 0; max-width: 64ch; font-size: clamp(0.9rem, 1.35vw, 0.98rem); line-height: 1.64; color: var(--sidebar-text); }

/* ---- toolset ---- */
.start-head-row { display: flex; align-items: center; gap: 12px; }
.start-head-icon { width: 22px; height: 22px; margin-bottom: 12px; color: var(--sidebar-active-text); flex: 0 0 auto; }

/* ---- the not-a-promise box: its own surface so it cannot be skimmed past ---- */
.start-notice { max-width: 70ch; padding: clamp(20px, 3vh, 28px) clamp(20px, 3vw, 30px); border: 1px solid var(--border-content-frame); border-radius: 14px; background: var(--dark-section-bg); }
.start-notice-icon { width: 20px; height: 20px; margin-bottom: 14px; color: var(--sidebar-active-text); }
.start-notice-title { margin: 0 0 12px; font-size: clamp(1rem, 1.6vw, 1.12rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; color: var(--sidebar-active-text); }
.start-notice-text { margin: 0 0 12px; font-size: clamp(0.9rem, 1.35vw, 0.98rem); line-height: 1.66; color: var(--sidebar-text); }
.start-notice-text:last-child { margin-bottom: 0; }
.start-notice-text strong { font-weight: 600; color: var(--sidebar-active-text); }

/* ---- closing ---- */
.start-close { max-width: 70ch; padding: clamp(24px, 4vh, 36px) clamp(22px, 3.4vw, 34px); border: 1px solid var(--border-content-frame); border-radius: 16px; background: var(--dark-section-bg); }
.start-close-icon { width: 22px; height: 22px; margin-bottom: 16px; color: var(--sidebar-active-text); }
.start-close-title { margin: 0 0 14px; font-size: clamp(1.12rem, 2.1vw, 1.44rem); font-weight: 600; line-height: 1.28; letter-spacing: -0.02em; color: var(--sidebar-active-text); }
.start-close-text { margin: 0; font-size: clamp(0.94rem, 1.4vw, 1.02rem); line-height: 1.68; color: var(--sidebar-text); }

/* ---- motion: reading-order stagger, spring easing, off under reduced-motion ---- */
@media (prefers-reduced-motion: no-preference) {
  .start-view.is-entering .start-step,
  .start-view.is-entering .start-stat,
  .start-view.is-entering .start-notice,
  .start-view.is-entering .start-close {
    opacity: 0; transform: translateY(10px);
    animation: start-rise 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .start-view.is-entering .start-step:nth-child(1) { animation-delay: 0.04s; }
  .start-view.is-entering .start-step:nth-child(2) { animation-delay: 0.09s; }
  .start-view.is-entering .start-step:nth-child(3) { animation-delay: 0.14s; }
  .start-view.is-entering .start-stat:nth-child(1) { animation-delay: 0.19s; }
  .start-view.is-entering .start-stat:nth-child(2) { animation-delay: 0.24s; }
  .start-view.is-entering .start-notice { animation-delay: 0.29s; }
  .start-view.is-entering .start-close { animation-delay: 0.34s; }
}
@keyframes start-rise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 767px) {
  .start-step { grid-template-columns: 32px 1fr; gap: 14px; }
  .start-step:not(:last-child) .start-step-rail::after { top: 56px; }
  .start-step-icon { width: 19px; height: 19px; }
  .start-stats { grid-template-columns: 1fr; }
}

/* ---- QUO-30: guided stepper ---- */

.start-stepper {
  position: relative;
  max-width: 70ch;
  padding: clamp(22px, 3.4vh, 32px) clamp(20px, 3vw, 30px) clamp(16px, 2.4vh, 22px);
  border: 1px solid var(--border-content-frame);
  border-radius: 18px;
  background: var(--modal-close-bg);
  overflow: hidden;
}

/* Thin progress line across the top edge. */
.start-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--border-content-frame); }
.start-progress-fill {
  display: block;
  height: 100%;
  width: 16.666%;
  background: var(--sidebar-active-text);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.start-panel { min-height: 168px; }
.start-panel[hidden] { display: none; }
.start-panel:not([hidden]) { animation: startPanelIn 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

@keyframes startPanelIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.start-step-label {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sidebar-text);
}

.start-step-title {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--sidebar-active-text);
}

.start-step-text { margin: 0; max-width: 60ch; font-size: clamp(0.94rem, 1.4vw, 1.02rem); line-height: 1.65; color: var(--sidebar-text); }
.start-step-small { margin: 12px 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--sidebar-text); opacity: 0.8; }

.start-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.start-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--modal-dialog-border);
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--sidebar-active-text);
  cursor: pointer;
  transition: background-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.start-chip:hover { border-color: var(--sidebar-active-text); }

/* Selected: inverted mono fill, nothing else. */
.start-chip[aria-checked="true"] {
  background: var(--sidebar-active-text);
  border-color: var(--sidebar-active-text);
  color: var(--dark-section-bg);
}

.start-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-content-frame);
}

.start-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-content-frame);
  border-radius: 50%;
  background: none;
  color: var(--sidebar-active-text);
  cursor: pointer;
  transition: border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.start-nav:hover:not(:disabled) { border-color: var(--sidebar-active-text); }
.start-nav:disabled { opacity: 0.3; cursor: default; }
.start-nav-icon { width: 20px; height: 20px; }

.start-count { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--sidebar-text); font-variant-numeric: tabular-nums; }

.start-summary-path { margin: 0 0 8px; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; color: var(--sidebar-active-text); }
.start-summary-flow { margin: 0 0 20px; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--sidebar-text); }

.start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.start-cta,
.start-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s cubic-bezier(0.16, 1, 0.3, 1), gap 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.start-cta {
  padding: 0 18px;
  border: 1px solid var(--modal-dialog-border);
  border-radius: 999px;
  background: var(--nav-icon-hover-bg);
  color: var(--sidebar-active-text);
  text-decoration: none;
}

.start-cta:hover { border-color: var(--sidebar-active-text); gap: 11px; }

.start-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sidebar-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.start-link:hover { color: var(--sidebar-active-text); }
.start-cta-icon { width: 16px; height: 16px; flex: 0 0 auto; }

.start-chip:focus-visible,
.start-nav:focus-visible,
.start-cta:focus-visible,
.start-link:focus-visible { outline: 2px solid var(--sidebar-active-text); outline-offset: 3px; }

/* What you'll need: three compact cards. */
.start-needs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.start-need-title { margin: 0; font-size: clamp(0.98rem, 1.6vw, 1.08rem); font-weight: 600; letter-spacing: -0.01em; color: var(--sidebar-active-text); }

@media (prefers-reduced-motion: reduce) {
  .start-progress-fill, .start-chip, .start-nav, .start-cta, .start-link { transition: none; }
  .start-panel:not([hidden]) { animation: none; }
}
