.profile-demo .order-copy h1 { max-width: 13ch; }
.profile-demo .order-copy .lead { max-width: 38ch; }
.profile-demo .order-stage { --device-width: 350px; }
.profile-demo .order-chapters li { position: relative; min-height: 44px; }
.profile-demo .order-chapters li[aria-current] { min-height: 58px; }
.profile-demo .order-chapters a::after { position: absolute; inset: 0; border-radius: 12px; content: ""; }
.profile-demo .order-chapters a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
.profile-demo .order-chapters a:focus-visible { outline: 0; }
.profile-demo .order-chapters a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
.profile-demo .phone-main { gap: 0; padding-block-start: 1.6cqw; overflow: hidden; }
.profile-demo .phone-nav .back { width: max(44px, 9cqw); height: max(44px, 9cqw); }

.profile-app {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2cqw;
  min-block-size: 0;
  min-inline-size: 0;
}
.profile-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3cqw;
  min-block-size: 0;
  min-inline-size: 0;
  padding: 2px 2px 2cqw;
  overflow: auto;
  scrollbar-width: thin;
}
.profile-scroll > * { flex: 0 0 auto; }
.profile-scroll form { display: grid; gap: 3cqw; min-width: 0; }
.profile-footer { display: grid; flex: none; gap: 1.5cqw; min-inline-size: 0; }
.profile-app .app-btn { min-height: 44px; font-size: max(.8125rem, 3.8cqw); }
.profile-app :is(a, button, select, summary):focus-visible { outline-offset: -2px; }
.profile-app .app-btn:not(.secondary):focus-visible { outline-color: var(--on-accent); }

.profile-heading { display: grid; gap: 1.25cqw; }
.profile-demo .profile-heading h2 {
  font-size: max(1.37rem, 7.6cqw);
  line-height: 1.03;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.profile-heading p, .profile-note {
  color: var(--dim);
  font-size: max(.75rem, 3.55cqw);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.profile-heading p:first-child { font-weight: 690; }
.profile-preference-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4.2cqw; background: var(--card); }
.profile-preference-title { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 1cqw 3.2cqw 0; }
.profile-preference-title h3 { font-size: max(.88rem, 4.6cqw); }
.profile-preference-title a { display: grid; min-width: 44px; min-height: 44px; place-items: center; border-radius: 10px; color: var(--accent); font-size: max(.8rem, 3.75cqw); font-weight: 700; }
.profile-preference-title a:hover { text-decoration: underline; text-underline-offset: .2em; }
.profile-preference-summary { display: grid; min-width: 0; margin: 0; padding: 1.3cqw 3.2cqw; border: 1px solid var(--line); border-radius: 4.2cqw; background: var(--card); }
.profile-preference-card .profile-preference-summary { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.profile-preference-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 2.4cqw; padding-block: 2cqw; font-size: max(.76rem, 3.65cqw); overflow-wrap: anywhere; }
.profile-preference-summary > div + div { border-top: 1px solid var(--line); }
.profile-preference-summary dt { color: var(--dim); }
.profile-preference-summary dd { margin: 0; font-weight: 700; text-align: end; }

.profile-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: 28cqw;
  padding: 4cqw;
  border-radius: 5.2cqw;
  overflow: hidden;
  background: #2f2922;
  color: #fffaf3;
}
.profile-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.profile-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #1d1413ef, #1d14136b 65%, #1d141322);
  content: "";
}
.profile-hero-copy { display: grid; gap: .75cqw; color: inherit; }
.profile-hero-copy span { color: #f7ecdb; font-size: max(.75rem, 3.5cqw); }
.profile-hero-copy strong { font-size: max(.93rem, 5cqw); line-height: 1.05; letter-spacing: -.025em; }

.profile-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.65cqw;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-options > div { display: contents; }
.profile-options legend {
  margin-block-end: 1.7cqw;
  padding: 0;
  color: var(--ink);
  font-size: max(.85rem, 4.2cqw);
  font-weight: 730;
}
.profile-options label { position: relative; display: grid; min-width: 0; cursor: pointer; }
.profile-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.profile-options label > span {
  display: grid;
  align-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-size: max(.77rem, 3.6cqw);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}
.profile-options label:hover > span { border-color: var(--accent); }
.profile-options label:has(input:checked) > span {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, var(--card));
}
.profile-options label:has(input:focus-visible) > span { outline: 2px solid var(--accent); outline-offset: -4px; }

.profile-extra { border-block: 1px solid var(--line); }
.profile-extra summary {
  min-height: 44px;
  padding: 12px 2px;
  color: var(--ink);
  font-size: max(.8125rem, 3.65cqw);
  font-weight: 690;
  cursor: pointer;
}
.profile-extra summary::marker { color: var(--accent); }
.profile-extra > .profile-note { padding-block-end: 2.4cqw; }
.profile-selects {
  display: grid;
  gap: 2cqw;
  min-width: 0;
  padding-block-end: 2.4cqw;
}
.profile-selects label { display: grid; gap: 1cqw; min-width: 0; font-size: max(.75rem, 3.55cqw); font-weight: 670; }
.profile-demo .phone .profile-selects select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: max(1rem, 4cqw);
  text-overflow: ellipsis;
}

.profile-byline { margin-block: 0; }
.profile-answer {
  color: var(--ink);
  font-size: max(.875rem, 4.1cqw);
  font-weight: 580;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.profile-question {
  align-self: flex-end;
  max-width: 91%;
  padding: 2.5cqw 3.2cqw;
  border-radius: 4.25cqw 4.25cqw 1.2cqw 4.25cqw;
  background: var(--quiet);
  color: var(--ink);
  font-size: max(.8rem, 3.7cqw);
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.profile-applied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-applied li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--card);
  color: var(--ink);
  font-size: max(.69rem, 3.2cqw);
  font-weight: 670;
}
.profile-picks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.profile-picks > * + * { border-block-start: 1px solid var(--line); }
.profile-pick {
  display: grid;
  grid-template-columns: clamp(42px, 15.5cqw, 56px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.3cqw;
  width: 100%;
  min-height: 54px;
  min-width: 0;
  padding: 1.6cqw 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  touch-action: manipulation;
}
.profile-pick:hover .profile-pick-copy strong { text-decoration: underline; text-underline-offset: .15em; }
.profile-pick > img, .profile-image-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 9px;
  background: var(--quiet);
  object-fit: cover;
}
.profile-pick-copy { display: grid; gap: .55cqw; min-width: 0; overflow-wrap: anywhere; }
.profile-pick-copy strong { font-size: max(.85rem, 4cqw); line-height: 1.15; }
.profile-pick-copy small {
  color: var(--dim);
  font-size: max(.73rem, 3.45cqw);
  line-height: 1.22;
}
.profile-pick-chevron { color: var(--accent); font-size: max(1rem, 5cqw); line-height: 1; }
.profile-match { color: var(--accent); font-size: max(.69rem, 3.2cqw); font-weight: 720; line-height: 1.25; }
@media (max-width: 640px) {
  .profile-demo .order-chapters { margin-top: 21px; }
}
