/* Premium parent launchpad and student access polish */

.family-preproject .dashboard-redesign {
  max-width: 1240px;
  padding-top: 26px;
}

.family-preproject .dashboard-hero-redesign {
  margin-bottom: 18px;
}

.family-preproject .dashboard-hero-copy-redesign {
  max-width: 980px;
}

.family-preproject .dashboard-greeting,
.family-preproject #hero-greeting {
  max-width: 1040px;
  font-size: clamp(48px, 5.6vw, 70px);
}

.family-preproject .dashboard-hero-subtitle,
.family-preproject #dashboard-hero-subtitle {
  max-width: 820px;
  margin-top: 16px;
  font-size: clamp(17px, 1.6vw, 20px);
}

.family-preproject .family-preproject-dashboard {
  display: block;
  margin-top: 22px;
}

.family-launchpad {
  display: grid;
  gap: 18px;
}

.family-launchpad-feature {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  overflow: hidden;
  border: 1px solid rgba(23, 35, 67, 0.09);
  border-radius: 34px;
  background:
    radial-gradient(circle at 5% 12%, rgba(94, 89, 226, 0.12), transparent 34%),
    radial-gradient(circle at 95% 100%, rgba(223, 181, 91, 0.11), transparent 35%),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    0 30px 80px rgba(17, 30, 63, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.family-launchpad-feature::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(65, 70, 182, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(65, 70, 182, 0.018),
    0 0 0 116px rgba(65, 70, 182, 0.012);
  pointer-events: none;
}

.family-launchpad-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(23, 35, 67, 0.07);
  background:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(145deg, #182b59, #293f87 64%, #4d51c7);
  background-size: 28px 28px, 28px 28px, auto;
}

.family-launchpad-icon {
  position: relative;
  z-index: 3;
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 32px 65px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 #fff;
  transform: rotate(-3deg);
}

.family-launchpad-icon img {
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.family-launchpad-status {
  position: absolute;
  left: 26px;
  bottom: 24px;
  z-index: 4;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 17, 39, 0.34);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 800;
}

.family-launchpad-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69d995;
  box-shadow: 0 0 0 5px rgba(105, 217, 149, 0.13);
}

.family-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.family-orbit-one {
  width: 250px;
  height: 250px;
}

.family-orbit-two {
  width: 330px;
  height: 330px;
  opacity: 0.7;
}

.family-orbit-dot {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f4cf7a;
  box-shadow: 0 0 24px rgba(244, 207, 122, 0.75);
}

.family-orbit-dot-one {
  left: calc(50% - 112px);
  top: calc(50% - 78px);
}

.family-orbit-dot-two {
  right: calc(50% - 148px);
  bottom: calc(50% - 44px);
  background: #94a4ff;
  box-shadow: 0 0 24px rgba(148, 164, 255, 0.7);
}

.family-launchpad-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 44px 48px;
}

.family-launchpad-copy h2 {
  max-width: 660px;
  margin: 11px 0 14px;
  color: #101828;
  font-family: var(--compass-heading-font);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 0.99;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.family-launchpad-copy > p {
  max-width: 650px;
  margin: 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.65;
}

.family-launchpad-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.family-launchpad-facts > span {
  min-width: 138px;
  padding: 13px 15px;
  border: 1px solid rgba(18, 30, 59, 0.08);
  border-radius: 16px;
  background: rgba(248, 249, 253, 0.9);
}

.family-launchpad-facts small,
.family-launchpad-facts strong {
  display: block;
}

.family-launchpad-facts small {
  color: #8a93a6;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.family-launchpad-facts strong {
  margin-top: 5px;
  color: #28344d;
  font-size: 13px;
}

.family-launchpad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

.family-launchpad-actions .compass-primary-btn,
.family-launchpad-actions .dashboard-secondary-button {
  min-height: 52px;
  padding-inline: 22px;
  font-size: 14px;
}

.family-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.family-path-card {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(18, 30, 59, 0.085);
  border-radius: 27px;
  color: #101828;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--family-path-color) 13%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.88);
  text-align: left;
  box-shadow: 0 18px 50px rgba(17, 30, 63, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.family-path-card::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--family-path-color) 16%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.family-path-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--family-path-color) 24%, transparent);
  box-shadow: 0 26px 65px rgba(17, 30, 63, 0.11);
}

.family-path-number {
  position: absolute;
  right: 22px;
  top: 20px;
  color: #a2a9b8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.family-path-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 19px;
  border-radius: 19px;
  background: color-mix(in srgb, var(--family-path-color) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--family-path-color) 10%, transparent);
}

.family-path-icon img {
  width: 49px;
  height: 49px;
  object-fit: contain;
}

.family-path-label {
  color: color-mix(in srgb, var(--family-path-color) 78%, #27324a);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-path-card > strong {
  max-width: 90%;
  margin-top: 8px;
  font-family: var(--compass-heading-font);
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.family-path-card > p {
  flex: 1;
  margin: 10px 0 20px;
  color: #697386;
  font-size: 14px;
  line-height: 1.55;
}

.family-path-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3438a9;
  font-size: 12px;
  font-weight: 850;
}

.family-path-link i {
  font-size: 15px;
  font-style: normal;
  transition: transform 160ms ease;
}

.family-path-card:hover .family-path-link i {
  transform: translateX(3px);
}

.family-invite-banner {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 25px 27px;
  border: 1px solid rgba(55, 59, 174, 0.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(93, 87, 224, 0.13), transparent 35%),
    linear-gradient(135deg, #f7f8ff, #ffffff);
  box-shadow: 0 18px 55px rgba(31, 43, 91, 0.075);
}

.family-invite-banner.connected {
  border-color: rgba(26, 142, 84, 0.14);
  background:
    radial-gradient(circle at 90% 0%, rgba(52, 177, 107, 0.12), transparent 35%),
    linear-gradient(135deg, #f5fbf7, #ffffff);
}

.family-invite-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.family-invite-avatar {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 20px;
  color: #fff;
  background: #1b2f61;
  box-shadow: 0 13px 27px rgba(20, 34, 70, 0.17);
  font-size: 18px;
  font-weight: 900;
}

.family-invite-avatar.student {
  background: linear-gradient(145deg, #5e59e2, #8a63df);
}

.family-invite-line {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 2px;
  background: linear-gradient(90deg, #1b2f61, #6662dd);
}

.family-invite-line i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #39a76c;
  font-size: 11px;
  font-style: normal;
  transform: translate(-50%, -50%);
}

.family-invite-copy h2 {
  margin: 7px 0 6px;
  color: #111a2d;
  font-family: var(--compass-heading-font);
  font-size: 27px;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.family-invite-copy p {
  max-width: 680px;
  margin: 0;
  color: #687287;
  font-size: 14px;
  line-height: 1.55;
}

.family-invite-banner > button {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(180deg, #5758e6, #3639ab);
  box-shadow: 0 15px 34px rgba(54, 57, 171, 0.22);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  cursor: pointer;
}

.family-invite-banner.connected > button {
  color: #236340;
  background: #fff;
  border: 1px solid rgba(35, 99, 64, 0.14);
  box-shadow: none;
}

.family-journey-premium {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(18, 30, 59, 0.08);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 42px rgba(17, 30, 63, 0.045);
}

.family-journey-premium > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  column-gap: 11px;
  align-items: center;
}

.family-journey-premium > div > span {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #657087;
  background: #f1f3f8;
  font-size: 10px;
  font-weight: 900;
}

.family-journey-premium > div.active > span {
  color: #fff;
  background: linear-gradient(145deg, #4e50d9, #2f379c);
  box-shadow: 0 10px 24px rgba(47, 55, 156, 0.2);
}

.family-journey-premium strong,
.family-journey-premium small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-journey-premium strong {
  color: #1c273d;
  font-size: 13px;
}

.family-journey-premium small {
  margin-top: 2px;
  color: #8991a1;
  font-size: 10px;
}

.family-journey-premium > i {
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 81, 201, 0.36), rgba(77, 81, 201, 0.08));
}

.family-parent-guidance-premium {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
  padding: 30px 32px;
  border: 1px solid rgba(23, 35, 67, 0.08);
  border-radius: 29px;
  background:
    radial-gradient(circle at 100% 0%, rgba(222, 182, 91, 0.12), transparent 34%),
    linear-gradient(135deg, #fffdf8, #ffffff);
}

.family-parent-guidance-premium h2 {
  margin: 7px 0 8px;
  color: #111a2d;
  font-family: var(--compass-heading-font);
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.family-parent-guidance-premium p {
  max-width: 650px;
  margin: 0;
  color: #697386;
  font-size: 15px;
  line-height: 1.6;
}

.family-parent-guidance-premium blockquote {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(180, 119, 0, 0.1);
  border-radius: 21px;
  color: #27324a;
  background: rgba(255, 250, 239, 0.84);
  font-family: var(--compass-heading-font);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.family-parent-guidance-premium blockquote span {
  display: block;
  margin-bottom: 8px;
  color: #a06d13;
  font-family: Inter, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The student invitation must remain visible when the family is still choosing a project. */
body.family-preproject #account-view #dashboard-family-access {
  display: grid !important;
}

.account-student-panel-primary {
  min-height: 350px;
  padding: 38px;
  background:
    radial-gradient(circle at 94% 0%, rgba(92, 87, 224, 0.15), transparent 34%),
    linear-gradient(145deg, rgba(247, 249, 255, 0.99), rgba(255, 255, 255, 0.96));
}

.account-student-panel-primary > .account-panel-kicker {
  color: #4c4fc5;
}

.account-student-panel-primary > h2 {
  max-width: 760px;
  font-size: clamp(32px, 4vw, 46px);
}

.account-student-panel-primary > p {
  max-width: 760px;
  font-size: 16px;
}

.account-page #dashboard-family-access {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
}

.account-page .dashboard-family-access-visual {
  min-height: 145px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(25, 43, 91, 0.98), rgba(70, 73, 190, 0.92));
}

.account-page .dashboard-family-access-message {
  font-size: 12px;
}

.account-page .dashboard-family-invite-form {
  max-width: 820px;
}

@media (max-width: 980px) {
  .family-launchpad-feature {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .family-launchpad-copy {
    padding: 36px 32px;
  }

  .family-path-grid {
    grid-template-columns: 1fr;
  }

  .family-path-card {
    min-height: 220px;
  }

  .family-invite-banner {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .family-invite-banner > button {
    grid-column: 2;
    justify-self: start;
  }

  .family-journey-premium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .family-journey-premium > i {
    display: none;
  }

  .family-journey-premium > div {
    grid-template-columns: 34px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .family-preproject .dashboard-redesign {
    padding-inline: 16px;
  }

  .family-preproject .dashboard-greeting,
  .family-preproject #hero-greeting {
    font-size: 44px;
  }

  .family-launchpad-feature {
    grid-template-columns: 1fr;
  }

  .family-launchpad-visual {
    min-height: 245px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 35, 67, 0.07);
  }

  .family-launchpad-icon {
    width: 120px;
    height: 120px;
    border-radius: 34px;
  }

  .family-launchpad-icon img {
    width: 100px;
    height: 100px;
  }

  .family-launchpad-copy {
    padding: 28px 22px 30px;
  }

  .family-launchpad-copy h2 {
    font-size: 36px;
  }

  .family-launchpad-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .family-launchpad-facts > span:last-child {
    grid-column: 1 / -1;
  }

  .family-launchpad-actions {
    display: grid;
  }

  .family-launchpad-actions button {
    width: 100%;
  }

  .family-path-card {
    padding: 22px;
  }

  .family-invite-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 22px;
  }

  .family-invite-visual {
    justify-content: flex-start;
  }

  .family-invite-banner > button {
    grid-column: auto;
    width: 100%;
  }

  .family-journey-premium {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }

  .family-journey-premium strong,
  .family-journey-premium small {
    white-space: normal;
  }

  .family-parent-guidance-premium {
    grid-template-columns: 1fr;
    padding: 25px 22px;
  }

  .account-student-panel-primary {
    padding: 26px 22px;
  }

  .account-page #dashboard-family-access {
    grid-template-columns: 1fr;
  }
}

.dashboard-family-setup-link {
  color: inherit;
  font-weight: 900;
  text-underline-offset: 3px;
}

/* Dashboard section rhythm: create unmistakable separation between major modules. */
.family-preproject .family-launchpad {
  gap: 0;
}

.family-preproject .family-launchpad > * + * {
  margin-top: 38px;
}

.family-preproject .family-path-grid,
.family-preproject .family-invite-banner,
.family-preproject .family-journey-premium,
.family-preproject .family-parent-guidance-premium {
  position: relative;
}

@media (max-width: 980px) {
  .family-preproject .family-launchpad > * + * {
    margin-top: 30px;
  }
}

@media (max-width: 640px) {
  .family-preproject .family-launchpad > * + * {
    margin-top: 24px;
  }
}
