/* ------------------------------------------------------------------
   Founding instructors (instructors.html). Builds on site.css.
   Phone: hero → preview → form. Desktop: hero + form on the left,
   the preview on the right, sticky, in a phone frame.
   ------------------------------------------------------------------ */
.ins-section {
  padding: 28px 0 56px;
}
.ins {
  display: grid;
  gap: 32px;
  grid-template-areas: 'hero' 'preview' 'card';
  align-items: start;
}
.ins-hero {
  grid-area: hero;
  display: grid;
  gap: 20px;
  min-width: 0;
}
.ins-preview {
  grid-area: preview;
  min-width: 0;
  display: grid;
  gap: 14px;
}
.ins-card {
  grid-area: card;
  min-width: 0;
  scroll-margin-top: 80px;
}
@media (min-width: 980px) {
  .ins-section {
    padding: 56px 0 88px;
  }
  .ins {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
    grid-template-rows: auto 1fr;
    grid-template-areas: 'hero preview' 'card preview';
    column-gap: 64px;
    row-gap: 40px;
  }
  .ins-preview {
    grid-row: 1 / span 2;
    position: sticky;
    top: 84px;
    align-self: start;
  }
}
@media (min-width: 1100px) {
  .ins {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    column-gap: 80px;
  }
}

/* ---------- Hero ---------- */
.ins-title {
  font-size: clamp(44px, 11vw, 76px);
}
.ins-title em {
  display: block;
}
@media (min-width: 980px) {
  .ins-title {
    font-size: clamp(60px, 6.4vw, 78px);
  }
}
.ins-hero .lede {
  margin: 0;
}
.ins-benefits {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.ins-benefits li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  color: var(--ink-2);
  line-height: 1.5;
}
.ins-benefits strong {
  color: var(--ink);
}
.ins-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blush);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.ins-ico svg {
  width: 22px;
  height: 22px;
}
.ins-perks {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.ins-perks strong {
  color: var(--ink);
}
.ins-perks .springs {
  flex: none;
}
.ins-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
@media (max-width: 479px) {
  .ins-hero-cta .btn {
    width: 100%;
  }
}
@media (min-width: 980px) {
  /* The form sits right under the hero on desktop. */
  .ins-hero-cta {
    display: none;
  }
}

/* ---------- Preview: heading + tabs ---------- */
.pv-top {
  display: grid;
  gap: 4px;
}
.pv-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.pv-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}
.pv-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pv-tab {
  -webkit-appearance: none;
  appearance: none;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.pv-tab:hover {
  color: var(--ink);
}
.pv-tab[aria-selected='true'] {
  background: var(--espresso);
  color: var(--on-dark);
}

/* ---------- Preview: the screen ---------- */
.pv-screen {
  display: grid; /* both panels share one cell, so switching tabs never moves the page */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--lift);
}
.pv-panel {
  grid-area: 1 / 1;
  min-width: 0;
}
.pv-panel:focus-visible {
  outline-offset: -3px;
  border-radius: 24px;
}
/* Phones: the inactive panel is removed (the week tab is much taller than the profile). */
.pv-panel.is-off {
  display: none;
}
@media (min-width: 980px) {
  /* Desktop: both panels share the fixed-height screen, so switching never moves the page. */
  .pv-panel.is-off {
    display: block;
    visibility: hidden;
  }
}
@media (min-width: 980px) {
  /* A phone frame on desktop */
  .pv-device {
    border-radius: 44px;
    background: var(--espresso);
    padding: 10px;
    box-shadow: 0 40px 80px -36px rgb(var(--shadow) / 0.45), 0 24px 48px -32px rgb(var(--shadow) / 0.4);
  }
  .pv-screen {
    border: 0;
    border-radius: 34px;
    box-shadow: none;
    height: clamp(420px, calc(100vh - 292px), 640px); /* the whole sticky preview fits the window */
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--light-nude) transparent;
  }
  .pv-panel:focus-visible {
    border-radius: 32px;
  }
}

/* Small "Example" / "Sample" labels */
.ex-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--light-nude);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 1px;
}

/* ---------- Tab 1: profile ---------- */
.pf-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 96px;
  background: var(--espresso);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
}
.pf-cover::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -18%;
  top: -120%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(164 77 93 / 0.75), rgb(164 77 93 / 0));
}
.pf-cover::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -10%;
  bottom: -140%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(217 184 163 / 0.22), rgb(217 184 163 / 0));
}
.pf-preview-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgb(247 241 234 / 0.35);
  color: var(--on-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pf-springs i {
  height: 18px;
}
.pf-id {
  position: relative; /* paint above the cover it overlaps */
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  margin-top: -38px;
}
.pf-avatar {
  width: 78px;
  height: 78px;
  flex: none;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--accent);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: background-color 200ms ease, color 200ms ease;
}
.pf-avatar.is-empty {
  background: var(--light-nude);
  color: var(--ink-3);
}
.pf-avatar.is-pop {
  animation: pop 420ms var(--ease) both;
}
.pf-follow {
  -webkit-appearance: none;
  appearance: none;
  height: 36px;
  min-width: 96px;
  padding: 0 16px;
  margin-bottom: 4px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.pf-follow:hover {
  background: var(--accent-pressed);
  border-color: var(--accent-pressed);
}
.pf-follow:active {
  transform: scale(0.96);
}
.pf-follow[aria-pressed='true'] {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}
.pf-who {
  padding: 10px 16px 4px;
  display: grid;
  gap: 2px;
}
.pf-name {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.pf-handle {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}
.pf-name.is-empty,
.pf-handle.is-empty {
  color: var(--ink-3);
}
.pf-name.is-empty {
  font-style: italic;
  font-weight: 450;
}
.pf-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--plum-rose);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.pf-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.pf-block {
  padding: 14px 16px 0;
  display: grid;
  gap: 8px;
}
.pf-block:last-child {
  padding-bottom: 18px;
}
.pf-label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pf-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
  animation: rise 260ms var(--ease) both;
}
.pf-chip::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--intensity, var(--accent));
}
.pf-chip:nth-child(4n + 1) {
  --intensity: var(--intensity-3);
}
.pf-chip:nth-child(4n + 2) {
  --intensity: var(--intensity-2);
}
.pf-chip:nth-child(4n + 3) {
  --intensity: var(--intensity-4);
}
.pf-chip:nth-child(4n + 4) {
  --intensity: var(--intensity-1);
}
.pf-chip.is-empty {
  background: var(--surface);
  border-style: dashed;
  border-color: var(--nude);
  color: var(--ink-3);
  animation: none;
}
.pf-chip.is-empty::before {
  display: none;
}
.pf-classes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pf-class {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px 9px 12px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.pf-when {
  display: grid;
  line-height: 1.1;
}
.pf-when b {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
}
.pf-when span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pf-what {
  min-width: 0;
  display: grid;
  line-height: 1.3;
}
.pf-what b {
  font-size: 14.5px;
  font-weight: 600;
}
.pf-what span {
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-spots {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--blush);
  color: var(--plum-rose);
}
.pf-spots.is-full {
  background: var(--espresso);
  color: var(--on-dark);
}

/* ---------- Tab 2: your week (example numbers) ---------- */
#panel-week {
  background: var(--cream);
  padding: 18px 14px 16px;
  gap: 12px;
  align-content: start;
}
#panel-week:not(.is-off) {
  display: grid;
}
.wk-head {
  display: grid;
  gap: 2px;
  padding: 0 4px;
}
.wk-title {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.wk-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
}
.wk-list {
  display: grid;
  gap: 8px;
}
.wk-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px 14px;
  display: grid;
  gap: 8px;
}
.wk-tile.is-top {
  border-color: var(--nude);
  box-shadow: inset 3px 0 0 var(--accent);
}
.wk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.wk-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0;
  line-height: 1.3;
}
.wk-top {
  display: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  margin-right: auto;
  margin-left: -2px;
}
.wk-tile.is-top .wk-top {
  display: inline;
}
.wk-big {
  margin: 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
.wk-arrow {
  color: var(--accent);
  font-style: italic;
}
.wk-unit {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}
.wk-meter {
  display: grid;
  gap: 6px;
}
.wk-bar {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}
.wk-track {
  height: 10px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}
.wk-fill {
  display: block;
  height: 100%;
  border-radius: 5px;
  transform-origin: left center;
}
.wk-fill.is-before {
  width: 72%;
  background: var(--nude);
}
.wk-fill.is-after {
  width: 86%;
  background: var(--accent);
}
.wk-panel-in .wk-fill {
  animation: wk-grow 700ms var(--ease) both;
}
.wk-panel-in .wk-fill.is-after {
  animation-delay: 120ms;
}
@keyframes wk-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}
.wk-val {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}
.wk-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  font-size: 13.5px;
}
.wk-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.wk-items li span:last-child {
  font-weight: 600;
  color: var(--ink);
}
.wk-how {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
}
.wk-how strong {
  color: var(--ink-2);
  font-weight: 600;
}
@media (min-width: 420px) and (max-width: 979px) {
  .wk-list {
    grid-template-columns: 1fr 1fr;
  }
  .wk-list .wk-tile:nth-child(1),
  .wk-list .wk-tile:nth-child(2) {
    grid-column: 1 / -1;
  }
}

/* ---------- Form ---------- */
.ins-card .form {
  gap: 22px;
}
/* Live mini-profile at the top of the form (phones only) */
.ins-mini {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.ins-mini:hover {
  color: var(--ink);
  border-color: var(--nude);
}
.ins-mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-dark);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
}
.ins-mini-avatar.is-empty {
  background: var(--light-nude);
  color: var(--ink-3);
}
.ins-mini-text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}
.ins-mini-text strong {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ins-mini-text span {
  font-size: 13px;
  color: var(--ink-3);
}
.ins-mini svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
@media (min-width: 980px) {
  .ins-mini {
    display: none;
  }
}

/* Studios they teach at: removable tags */
.tag-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  min-height: 38px;
  padding: 3px 3px 3px 14px;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--on-dark);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
  animation: rise 240ms var(--ease) both;
}
.tag > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tag-remove {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.tag-remove:hover {
  background: rgb(247 241 234 / 0.16);
}
.tag-remove:focus-visible {
  outline-color: var(--cream);
  outline-offset: -2px;
  border-radius: 50%;
}
.tag-remove svg {
  width: 14px;
  height: 14px;
}

/* "What do you want most?": ranked chips */
.wants {
  gap: 0;
}
.wants > legend {
  margin-bottom: 4px;
}
.wants-hint {
  margin: 0 0 12px;
}
.rank-chip .rank {
  display: none;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rank-chip input:checked + span .rank {
  display: grid;
}
.rank-chips.is-full .rank-chip input:not(:checked) + span {
  border-style: dashed;
  color: var(--ink-3);
}
.wants-other {
  margin-top: 14px;
}
.wants > .field-error {
  margin-top: 10px;
}

/* ---------- Success ---------- */
.ins-done {
  display: grid;
  gap: 22px;
  animation: rise 360ms var(--ease) both;
}
.ins-done .eyebrow {
  margin: 0 0 8px;
}
.fi-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1.586;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px 22px 18px;
  border-radius: 22px;
  background: var(--espresso);
  color: var(--on-dark);
  box-shadow: 0 26px 50px -26px rgb(var(--shadow) / 0.6);
  animation: card-in 720ms var(--ease) both;
}
.fi-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -30%;
  bottom: -80%;
  width: 95%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(164 77 93 / 0.62), rgb(164 77 93 / 0));
}
.fi-mid {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
.fi-avatar {
  width: 58px;
  height: 58px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid rgb(247 241 234 / 0.5);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 23px;
  color: var(--on-dark);
}
.fi-card .mc-no {
  font-size: clamp(38px, 10vw, 50px);
}
.fi-card .mc-no.is-word {
  font-size: clamp(26px, 7vw, 32px);
  font-style: italic;
}
.fi-card .mc-foot span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fi-card .mc-foot span:last-child {
  flex: none;
  white-space: nowrap;
}
.done-count {
  font-weight: 500;
}
.next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.next-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}
.next-list strong {
  color: var(--ink);
}
.next-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* ---------- Questions ---------- */
.ins-faq {
  padding-top: 8px;
  padding-bottom: 88px;
}
