/* ============================================
   Inner page shared styles
   ============================================ */

/* Stat with hover citation tooltip */
.stat-cite {
  border-bottom: 1px dashed var(--orange);
  cursor: help;
  position: relative;
  font-weight: 600;
}
.stat-cite::after {
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #2A1810;
  color: rgba(250,245,239,0.9);
  font-size: 11px;
  font-weight: 400;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
  z-index: 10;
}
.stat-cite:hover::after {
  opacity: 1;
}

.page-hero {
  padding: clamp(64px, 8vh, 96px) 0 clamp(48px, 8vh, 80px);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow { margin-bottom: 24px; }

.page-hero .display {
  font-size: clamp(40px, 5.5vw, 72px);
  margin: 0;
}

/* ============================================
   Flow diagram (How it Works)
   ============================================ */

.flow-section {
  padding: var(--s-10) 0;
}

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .flow-diagram {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .flow-arrow { transform: rotate(90deg); margin: -8px 0; }
}

.flow-step {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 300ms var(--ease-out), box-shadow 300ms, border-color 300ms;
}

[data-mode="dark"] .flow-step {
  background: #1E120E;
  border-color: var(--night-rule);
}

.flow-step:hover {
  transform: translateY(-3px);
  border-color: var(--orange-glow);
  box-shadow: var(--shadow-lg);
}

.flow-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 20px;
}

.flow-icon {
  width: 56px;
  height: 56px;
  color: var(--orange);
  margin-bottom: 20px;
}

.flow-icon svg { width: 100%; height: 100%; }

.flow-step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}

.flow-step p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.flow-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--orange);
  width: 72px;
}

.flow-arrow svg { width: 52px; height: auto; }

.flow-arrow .mono {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--ink-fade);
}

/* ============================================
   Anchored milestones
   ============================================ */

.anchored-section {
  padding: var(--s-10) 0;
  position: relative;
  overflow: hidden;
}

.milestone-list {
  display: flex;
  flex-direction: column;
}

.milestone-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--night-rule);
  align-items: baseline;
  transition: padding-left 300ms var(--ease-out);
}

.milestone-row:last-child { border-bottom: 1px solid var(--night-rule); }

.milestone-row:hover { padding-left: 12px; }

.milestone-row .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange-glow);
}

.milestone-row-body h4 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.milestone-row-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(250, 245, 239, 0.65);
}

.milestone-row-body em {
  font-style: italic;
  color: var(--orange-glow);
}

/* ============================================
   Comparison table
   ============================================ */

.compare-section {
  padding: var(--s-10) 0;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 760px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-divider { order: 2; }
}

.compare-col {
  padding: 36px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
}

.compare-col .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-fade);
  margin-bottom: 24px;
  display: block;
}

.compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compare-col li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
  padding-left: 24px;
  position: relative;
}

.compare-old {
  background: var(--cream-soft);
  opacity: 0.85;
}

.compare-old li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--ink-fade);
  font-size: 16px;
}

.compare-new {
  background: white;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232, 122, 78, 0.06);
}

[data-mode="dark"] .compare-new {
  background: #1E120E;
}

.compare-new li {
  color: var(--ink);
}

.compare-new li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 600;
}

.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-divider .mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-fade);
  padding: 8px 12px;
  background: var(--cream-soft);
  border-radius: var(--r-pill);
}

/* ============================================
   Roles (who-its-for) — extended role card
   ============================================ */

.role-detail {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.role-detail:last-child { border-bottom: 1px solid var(--rule); }

@media (max-width: 820px) {
  .role-detail { grid-template-columns: 1fr; gap: 24px; }
}

.role-detail-label {
  position: sticky;
  top: 88px;
}

.role-detail-label .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.role-detail-label h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
}

.role-detail-body p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

.role-benefits {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.role-benefits li {
  padding: 16px 20px;
  background: var(--cream-soft);
  border-radius: var(--r-md);
  font-size: 14.5px;
  color: var(--ink);
  display: flex;
  gap: 12px;
}

[data-mode="dark"] .role-benefits li {
  background: #1E120E;
}

.role-benefits li::before {
  content: "→";
  color: var(--orange);
  flex-shrink: 0;
}

/* ============================================
   Services page
   ============================================ */

.approach-section {
  padding: var(--s-10) 0;
  background: var(--cream-soft);
}

[data-mode="dark"] .approach-section { background: #1E120E; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 720px) { .approach-grid { grid-template-columns: 1fr; } }

.approach-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  transition: transform 300ms var(--ease-out), border-color 300ms, box-shadow 300ms;
}

[data-mode="dark"] .approach-card {
  background: #14090A;
  border-color: var(--night-rule);
}

.approach-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange-glow);
  box-shadow: var(--shadow-lg);
}

.approach-card .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 16px;
  display: block;
}

.approach-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.approach-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ============================================
   Waitlist page
   ============================================ */

.waitlist-hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.waitlist-copy .eyebrow { margin-bottom: 24px; }
.waitlist-copy .display { font-size: clamp(40px, 5.5vw, 72px); margin: 0 0 24px; }
.waitlist-copy .lead { margin: 0 0 32px; }

.waitlist-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.waitlist-facts li {
  display: flex;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.waitlist-facts li .mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--orange);
  padding: 3px 8px;
  background: rgba(232, 122, 78, 0.08);
  border-radius: 4px;
  flex-shrink: 0;
  align-self: flex-start;
  line-height: 1.4;
}

.waitlist-form {
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

[data-mode="dark"] .waitlist-form {
  background: #1E120E;
  border-color: var(--night-rule);
}

.waitlist-form h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}

.waitlist-form p.body {
  margin: 0 0 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.form-input {
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
}

[data-mode="dark"] .form-input {
  background: #14090A;
  border-color: var(--night-rule);
  color: var(--ink);
}

.form-input:focus {
  border-color: var(--orange);
  background: white;
  box-shadow: 0 0 0 3px rgba(232, 122, 78, 0.1);
}

[data-mode="dark"] .form-input:focus {
  background: #281810;
}

.form-input::placeholder { color: var(--ink-fade); }

.form-radio-group {
  display: grid;
  gap: 8px;
}

.form-radio {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
  font-size: 14.5px;
}

[data-mode="dark"] .form-radio {
  background: #14090A;
  border-color: var(--night-rule);
}

.form-radio:hover { border-color: var(--orange-glow); }

.form-radio input {
  accent-color: var(--orange);
  margin: 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-radio input:checked ~ span { color: var(--ink); }
.form-radio:has(input:checked) {
  border-color: var(--orange);
  background: rgba(232, 122, 78, 0.04);
}

.waitlist-form button {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: white;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  transition: background 200ms, transform 200ms, box-shadow 200ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(232, 122, 78, 0.2);
}

.waitlist-form button:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(232, 122, 78, 0.3);
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--orange);
  margin: 0 auto 20px;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
}

.form-success p { margin: 0; color: var(--ink-muted); }

/* ============================================
   Rotating word — headline word cycling
   ============================================ */

.rotating-word {
  display: inline-block;
  white-space: nowrap;
}

.rotating-word .rw-track {
  position: relative;
  display: inline;
}

/* Sizer not needed when we just show one word at a time */
.rotating-word .rw-sizer {
  display: none;
}

.rotating-word .rw-word {
  display: none;
}

.rotating-word .rw-word.rw-in {
  display: inline;
}

/* Trail text (" journey") sits right next to the track */
.rotating-word .rw-trail {
  white-space: nowrap;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .rotating-word .rw-word {
    transition: opacity 200ms linear;
    transform: none;
    filter: none;
  }
  .rotating-word .rw-word.rw-out { transform: none; filter: none; }
}
