/* Siegel Financial v511 — activation, retention, email rhythm, and mobile-first onboarding. */

/* Keep the premium opener, but let a first-time visitor reach the product quickly. */
.intro {
  transition:
    transform .52s cubic-bezier(.7, 0, .2, 1),
    opacity .3s ease .08s;
}

.intro-brand::before {
  animation-duration: 1s;
}

.intro-med {
  animation-duration: .48s;
  animation-delay: .04s;
}

.intro-med::before {
  animation-duration: .8s;
  animation-delay: .04s;
}

.intro-tag {
  animation-duration: .3s;
  animation-delay: .48s;
}

.intro-lift .intro-med {
  transition:
    transform .44s cubic-bezier(.55, 0, .2, 1),
    opacity .28s ease;
}

/* The progress rail now reflects either the four-step quick path or four-phase detail path. */
.onboarding-modal .ob-phase-track {
  grid-template-columns: repeat(var(--ob-phase-count, 4), minmax(0, 1fr));
}

.ob-mode-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ob-mode-choice {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  align-content: start;
  gap: 7px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--teal) 8%, transparent), transparent 46%),
    var(--paper-2);
  text-align: left;
  box-shadow: 0 14px 34px -29px rgba(5, 25, 45, .72);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.ob-mode-choice:hover,
.ob-mode-choice:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  box-shadow: 0 20px 42px -30px rgba(5, 25, 45, .7);
}

.ob-mode-choice.selected {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 18%, transparent), transparent 48%),
    color-mix(in srgb, var(--gold-soft) 42%, var(--paper-2));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--gold) 12%, transparent),
    0 18px 40px -30px rgba(5, 25, 45, .72);
}

.ob-mode-choice b {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.ob-mode-choice small {
  max-width: 31ch;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.48;
}

.ob-mode-badge {
  width: fit-content;
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ob-mode-choice.selected .ob-mode-badge {
  color: var(--chart-gold-label);
}

.ob-value-first {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal-soft) 45%, var(--paper-2));
}

.ob-value-first b {
  color: var(--ink);
  font-size: 12px;
}

.ob-value-first span {
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.48;
}

.quick-onboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.quick-onboard-grid .field:nth-last-child(-n + 2) {
  border-bottom-color: transparent;
}

.quick-live-readout {
  position: sticky;
  bottom: -13px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 3px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--gold) 14%, transparent), transparent 54%),
    color-mix(in srgb, var(--paper) 94%, var(--gold-soft));
  box-shadow: 0 -12px 30px -25px rgba(4, 18, 34, .7);
  backdrop-filter: blur(14px);
}

.quick-live-readout > span {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.quick-live-readout > b {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 650;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.quick-live-readout > small {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
}

.quick-live-readout.negative {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: color-mix(in srgb, var(--danger-soft) 34%, var(--paper));
}

.quick-live-readout.negative > b {
  color: var(--danger);
}

.onboarding-body .quick-refine-note {
  padding: 2px 1px 3px;
}

.ob-preserve-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--teal) 25%, var(--line));
  border-left: 3px solid var(--teal);
  border-radius: 9px;
  background: color-mix(in srgb, var(--teal-soft) 38%, var(--paper-2));
}

.ob-preserve-note b {
  color: var(--ink);
  font-size: 12px;
}

.ob-preserve-note span {
  grid-column: 1;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
}

.ob-preserve-note small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--teal);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

/* Give the first useful result a true activation moment, without blocking the dashboard. */
.activation-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 21px;
  margin: 0 0 20px;
  padding: clamp(23px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(147, 188, 219, .26);
  border-radius: 13px;
  color: #f8f5ed;
  background:
    radial-gradient(circle at 91% 8%, rgba(216, 184, 108, .2), transparent 31%),
    radial-gradient(circle at 4% 100%, rgba(55, 137, 175, .22), transparent 38%),
    linear-gradient(132deg, #071827 0%, #0b2940 53%, #0a2133 100%);
  box-shadow:
    0 30px 72px -48px rgba(2, 13, 24, .9),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: activationEnter .58s cubic-bezier(.16, .84, .24, 1) both;
}

.activation-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d8b86c 22%, #f2dc9b 51%, #7fb4d8 78%, transparent);
}

.activation-card::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  top: -210px;
  right: -90px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(216, 184, 108, .08);
  pointer-events: none;
}

@keyframes activationEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.988);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.activation-close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  color: rgba(247, 244, 236, .68);
  background: rgba(255, 255, 255, .035);
  font-size: 21px;
  line-height: 1;
}

.activation-close:hover,
.activation-close:focus-visible {
  color: #fff;
  border-color: rgba(240, 207, 123, .5);
  background: rgba(240, 207, 123, .1);
}

.activation-copy {
  max-width: 720px;
  padding-right: 38px;
}

.activation-copy .card-eyebrow {
  color: #f0cf7b;
}

.activation-copy h2 {
  margin: 7px 0 8px;
  color: #fffaf0;
  font-family: var(--serif);
  font-size: clamp(31px, 4.2vw, 48px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.02;
  text-wrap: balance;
}

.activation-copy p {
  max-width: 66ch;
  margin: 0;
  color: #afc0cc;
  font-size: 13.5px;
  line-height: 1.57;
}

.activation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(255, 255, 255, .1);
}

.activation-metrics > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 18px 18px 18px 0;
}

.activation-metrics > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

.activation-metrics span {
  color: #9bb0bf;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.activation-metrics b {
  min-width: 0;
  overflow: hidden;
  color: #f8f5ed;
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activation-metrics .positive b {
  color: #7fd0ad;
}

.activation-metrics .negative b {
  color: #ff9e8e;
}

.activation-metrics small {
  color: #8198a8;
  font-size: 10.5px;
  line-height: 1.35;
}

.activation-rhythm {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  max-width: 760px;
}

.activation-rhythm-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(123, 204, 169, .35);
  border-radius: 50%;
  color: #8ed8b8;
  background: rgba(63, 175, 125, .11);
  font-weight: 850;
}

.activation-rhythm div {
  display: grid;
  gap: 2px;
}

.activation-rhythm b {
  color: #f7f4ec;
  font-size: 12.5px;
}

.activation-rhythm small {
  color: #93a9b8;
  font-size: 11px;
  line-height: 1.42;
}

.activation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.activation-actions .btn {
  min-height: 43px;
}

.activation-actions .btn-pri {
  border-color: #e1c576;
  color: #071827;
  background: linear-gradient(135deg, #efd88f, #cfa957);
  box-shadow: 0 15px 30px -20px rgba(238, 210, 130, .75);
}

.activation-actions .btn-ghost {
  border-color: rgba(255, 255, 255, .2);
  color: #f7f4ec;
  background: rgba(255, 255, 255, .045);
}

.activation-actions .linklike {
  color: #a8c9df;
  font-size: 11.5px;
}

.activation-trust {
  color: #829aa9;
  font-size: 10.5px;
}

/* Persistent monthly habit cue: compact enough to earn its space on mobile. */
.plan-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr) auto;
  align-items: center;
  gap: clamp(17px, 2.5vw, 32px);
  margin: 18px 0;
  padding: 19px 21px;
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--teal) 9%, transparent), transparent 44%),
    linear-gradient(120deg, var(--paper-2), color-mix(in srgb, var(--teal-soft) 22%, var(--paper-2)));
  box-shadow: 0 18px 42px -36px rgba(4, 29, 52, .62);
}

.plan-pulse.is-complete {
  border-color: color-mix(in srgb, #44a879 28%, var(--line));
  background:
    radial-gradient(circle at 100% 0, rgba(70, 190, 145, .1), transparent 44%),
    var(--paper-2);
}

.plan-pulse-copy {
  display: grid;
  gap: 4px;
}

.plan-pulse-copy > b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.13;
}

.plan-pulse-copy > span {
  max-width: 48ch;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.45;
}

.plan-pulse-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.plan-pulse-steps > span {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 760;
}

.plan-pulse-steps i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: transparent;
  background: var(--paper);
  font-size: 10px;
  font-style: normal;
}

.plan-pulse-steps .done {
  color: var(--ink);
}

.plan-pulse-steps .done i {
  border-color: color-mix(in srgb, #3ba477 52%, var(--line));
  color: #2f8c65;
  background: color-mix(in srgb, #56bd8d 12%, var(--paper));
}

.plan-pulse-action {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.plan-pulse-action .btn {
  min-height: 40px;
  white-space: nowrap;
}

.plan-pulse-action small {
  color: var(--ink-3);
  font-size: 9.5px;
  white-space: nowrap;
}

/* Make the reminder lifecycle understandable before someone opts in. */
.email-rhythm-row {
  align-items: flex-start;
}

.email-rhythm-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}

.email-rhythm-preview > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1px 7px;
  align-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-3);
  background: var(--paper);
}

.email-rhythm-preview i {
  grid-row: 1 / span 2;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-3);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.email-rhythm-preview b {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-rhythm-preview small {
  min-width: 0;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-rhythm-preview > span.active {
  border-color: color-mix(in srgb, var(--teal) 26%, var(--line));
  color: var(--ink-2);
  background: color-mix(in srgb, var(--teal-soft) 34%, var(--paper));
}

.email-rhythm-preview > span.active i {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal-soft) 72%, var(--paper));
}

.email-optin {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 2px 0 16px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, var(--teal-soft) 30%, var(--paper-2));
  cursor: pointer;
}

.email-optin input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent-2);
}

.email-optin span {
  display: grid;
  gap: 3px;
}

.email-optin b {
  color: var(--ink);
  font-size: 12px;
}

.email-optin small {
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.42;
}

.networth-page :is(.nw-projection-bridge, .networth-home-hero) {
  scroll-margin-top: 84px;
}

@media (max-width: 880px) {
  .plan-pulse {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .plan-pulse-steps {
    grid-column: 1;
  }

  .plan-pulse-action {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 620px) {
  .ob-intro {
    gap: 14px;
  }

  .ob-intro-lead {
    font-size: 12.5px;
    line-height: 1.5;
  }

  .ob-mode-choices {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .ob-mode-choice {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 13px 14px;
  }

  .ob-mode-choice .ob-mode-badge {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .ob-mode-choice b {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
  }

  .ob-mode-choice small {
    grid-column: 1 / -1;
    font-size: 10.5px;
  }

  .ob-value-first {
    grid-template-columns: 1fr;
    padding: 11px 12px;
  }

  .ob-value-first span {
    font-size: 10.5px;
  }

  .quick-onboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-onboard-grid .field:nth-last-child(-n + 2) {
    border-bottom-color: var(--line);
  }

  .quick-onboard-grid .field:last-child {
    border-bottom-color: transparent;
  }

  .quick-live-readout {
    bottom: -10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 12px 13px;
  }

  .quick-live-readout > b {
    font-size: clamp(22px, 7.4vw, 28px);
  }

  .quick-live-readout > small {
    font-size: 9.5px;
  }

  .ob-preserve-note {
    grid-template-columns: 1fr;
    padding: 11px 12px;
  }

  .ob-preserve-note span,
  .ob-preserve-note small {
    grid-column: 1;
    grid-row: auto;
  }

  .activation-card {
    gap: 17px;
    margin-inline: -1px;
    padding: 21px 16px 18px;
    border-radius: 11px;
  }

  .activation-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .activation-copy {
    padding-right: 34px;
  }

  .activation-copy h2 {
    max-width: 14ch;
    font-size: clamp(30px, 9.2vw, 39px);
  }

  .activation-copy p {
    font-size: 12.5px;
  }

  .activation-metrics {
    grid-template-columns: 1fr;
  }

  .activation-metrics > div,
  .activation-metrics > div + div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 3px 12px;
    padding: 13px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
  }

  .activation-metrics > div:first-child {
    border-top: 0;
  }

  .activation-metrics b {
    grid-column: 2;
    grid-row: 1 / span 2;
    max-width: 48vw;
    font-size: clamp(23px, 7.4vw, 30px);
  }

  .activation-metrics small {
    grid-column: 1;
  }

  .activation-rhythm {
    align-items: start;
  }

  .activation-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activation-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .activation-actions .linklike {
    min-height: 38px;
    justify-self: center;
  }

  .activation-trust {
    text-align: center;
  }

  .plan-pulse {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 17px 15px;
  }

  .plan-pulse-steps,
  .plan-pulse-action {
    grid-column: 1;
    grid-row: auto;
  }

  .plan-pulse-action {
    justify-items: stretch;
  }

  .plan-pulse-action .btn {
    width: 100%;
    justify-content: center;
  }

  .plan-pulse-action small {
    text-align: center;
    white-space: normal;
  }

  .email-rhythm-preview {
    grid-template-columns: 1fr;
  }

  .email-rhythm-preview > span {
    grid-template-columns: 24px auto minmax(0, 1fr);
  }

  .email-rhythm-preview i {
    grid-row: 1;
  }

  .email-rhythm-preview b,
  .email-rhythm-preview small {
    grid-row: 1;
  }

  .email-rhythm-preview small {
    text-align: right;
  }

  .email-rhythm-row > .btn {
    min-width: 112px;
  }

  .networth-page :is(.nw-projection-bridge, .networth-home-hero) {
    scroll-margin-top: calc(72px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 390px) {
  .onboarding-head .ob-progress-copy {
    font-size: 9px;
  }

  .onboarding-head h2 {
    font-size: 27px !important;
  }

  .onboarding-foot {
    grid-template-columns: .82fr 1.18fr !important;
  }

  .activation-rhythm-mark {
    width: 30px;
    height: 30px;
  }

  .plan-pulse-steps {
    gap: 3px;
  }

  .plan-pulse-steps > span {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 4px;
    font-size: 9px;
  }

  .plan-pulse-steps i {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activation-card,
  .ob-mode-choice {
    animation: none !important;
    transition: none !important;
  }
}
