/* src/app.css */
:root {
  --ink: #1a1614;
  --paper: #fff;
  --wash: #f7f4f1;
  --line: #e8e2dc;
  --muted: #6b625c;
  --accent: #b4633a;
  --accent-ink: #a1532d;
  --accent-soft: #f3e6df;
  --shadow-1: 0 1px 2px #422a1e0a, 0 1px 1px #422a1e08;
  --shadow-2: 0 2px 4px #422a1e0d, 0 8px 16px -6px #422a1e12;
  --shadow-3: 0 4px 8px #422a1e0f, 0 18px 32px -12px #422a1e24;
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--wash);
  color: var(--ink);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  margin: 0;
}

@media (display-mode: standalone) {
  html {
    background: var(--wash);
    overscroll-behavior-y: none;
  }
}

.landing {
  background: var(--paper);
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

.shell {
  min-height: 100dvh;
}

.store {
  min-width: 0;
  padding-bottom: 6rem;
}

.brand {
  letter-spacing: .2em;
  display: block;
  font-size: .9rem;
  font-weight: 600;
}

.brand-sub {
  color: var(--muted);
  font-size: .78rem;
}

.topbar {
  position: sticky;
  z-index: 5;
  display: flex;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  background: #ffffffd9;
  align-items:  center;
  gap: .75rem;
  padding: .85rem 1.75rem;
  top: 0;
}

.search {
  flex: 1;
  min-width: 0;
}

.search input {
  background: var(--wash);
  color: inherit;
  font: inherit;
  border: 0;
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  padding: .6rem .9rem;
  font-size: .9rem;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  outline: 1.5px solid var(--ink);
}

.cart-btn {
  display: inline-flex;
  border: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
  background: #fff;
  border-radius: 999px;
  align-items:  center;
  gap: .4rem;
  padding: .45rem .95rem;
  font-size: .85rem;
}

.cart-btn:hover {
  border-color: var(--ink);
}

.cart-btn .count {
  background: var(--ink);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  min-width: 18px;
  padding: 0 .25rem;
  font-size: .7rem;
  font-weight: 600;
}

.cta {
  display: block;
  background: var(--ink);
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  width: 100%;
  padding: .85rem 1rem;
  transition: opacity .15s;
  font-weight: 500;
}

.cta:hover {
  opacity: .85;
}

.cta:active {
  transform: translateY(1px);
}

.cta.ghost {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  background: #fff;
}

.cta:disabled {
  opacity: .5;
  cursor: default;
}

.cta.small {
  display: inline-block;
  border-radius: 999px;
  width: auto;
  padding: .45rem .95rem;
  font-size: .85rem;
}

.topbar-end {
  display: flex;
  align-items:  center;
  gap: .9rem;
  margin-left: auto;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
}

.busy, .error {
  margin: 0;
  padding: .7rem 1.75rem;
  font-size: .85rem;
}

.busy {
  color: var(--muted);
}

.error {
  color: #a13333;
  overflow-wrap: anywhere;
  background: #fdf2f2;
}

.prompt {
  color: var(--muted);
  margin: 0;
  padding: 1.1rem 1.75rem 0;
  font-size: .9rem;
}

.skin-dot {
  border-radius: 50%;
  flex: none;
  width: 34px;
  height: 34px;
  box-shadow: inset 0 0 0 2px #fff;
}

.skin-dot.sm {
  width: 22px;
  height: 22px;
  box-shadow: inset 0 0 0 2px #fff9;
}

.swatches {
  display: flex;
  gap: .3rem;
}

.swatches span {
  border-radius: 999px;
  flex: 1;
  height: 8px;
}

.shelf-wrap {
  display: grid;
  gap: .35rem;
  padding: 1.75rem;
}

.shelf-wrap h3 {
  letter-spacing: -.01em;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.shelf {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr));
  gap: 1.4rem 1rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.shelf li {
  position: relative;
}

.add {
  position: absolute;
  backdrop-filter: blur(4px);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  background: #ffffffeb;
  border: 0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.05rem;
  line-height: 1;
  top: .5rem;
  right: .5rem;
  box-shadow: 0 1px 4px #1010142e;
}

.add:hover {
  background: var(--ink);
  color: #fff;
}

.item {
  position: relative;
  display: grid;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  gap: .2rem;
  width: 100%;
  padding: 0;
}

.item img {
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--wash);
  border-radius: 10px;
  width: 100%;
  margin-bottom: .55rem;
  transition: transform .25s;
  box-shadow: inset 0 0 0 1px #1010140f;
}

.item:hover img {
  transform: scale(1.02);
}

.item.match img {
  box-shadow: 0 0 0 1.5px var(--accent);
}

.item .name {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
}

.brand-tag {
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: .68rem;
}

.shade-dot {
  display: inline-block;
  border-radius: 50%;
  width: 9px;
  height: 9px;
  margin-right: .35rem;
  box-shadow: 0 0 0 1px #0000001f;
}

.badge {
  position: absolute;
  color: var(--ink);
  backdrop-filter: blur(4px);
  background: #ffffffeb;
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .7rem;
  font-weight: 600;
  top: .6rem;
  left: .6rem;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  align-items:  start;
  gap: 2.5rem;
  max-width: 1200px;
  padding: 1.5rem 1.75rem 2rem;
}

.back {
  grid-column: 1 / -1;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  justify-self: start;
  padding: .3rem 0;
  font-size: .85rem;
}

.back:hover {
  color: var(--ink);
}

.gallery {
  display: grid;
  gap: .7rem;
}

.hero {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--wash);
  border-radius: 16px;
  width: 100%;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.thumb {
  border: 1px solid var(--line);
  background: var(--wash);
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  width: 62px;
  height: 62px;
  padding: 0;
}

.thumb.on {
  border-color: var(--ink);
}

.thumb img {
  object-fit: contain;
  display: block;
  width: 100%;
  height: 100%;
}

.details {
  display: grid;
  gap: .6rem;
}

.details h1 {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.details .brand-tag {
  margin: 0;
}

.price {
  margin: 0;
  font-size: 1.15rem;
}

.fit {
  background: var(--wash);
  border-radius: 999px;
  justify-self: start;
  margin: 0;
  padding: .3rem .7rem;
  font-size: .8rem;
}

.shade-line {
  display: flex;
  align-items:  center;
}

.description {
  color: #4a4a52;
  margin: .3rem 0;
  font-size: .92rem;
  line-height: 1.6;
}

.actions {
  display: grid;
  gap: .6rem;
  margin-top: .4rem;
}

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1.2rem;
  margin: .6rem 0 0;
  font-size: .85rem;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.bubble {
  position: fixed;
  z-index: 10;
  display: inline-flex;
  background: var(--ink);
  color: #fff;
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  align-items:  center;
  gap: .55rem;
  padding: .6rem 1.1rem .6rem .8rem;
  font-size: .875rem;
  font-weight: 500;
  bottom: 1.25rem;
  right: 1.25rem;
  box-shadow: 0 6px 20px #10101438;
}

.bubble:active {
  transform: translateY(1px);
}

.bubble.has-photo {
  color: var(--ink);
  box-shadow: 0 6px 20px #10101424, inset 0 0 0 1px var(--line);
  background: #fff;
}

.bubble.has-photo .skin-dot.sm {
  box-shadow: inset 0 0 0 2px #fff;
}

.bubble-label {
  white-space: nowrap;
}

.bubble.gone {
  display: none;
}

.diagnosis, .plan, .explanation, .tracks {
  max-width: 68rem;
}

.diagnosis, .plan {
  padding: 1.5rem 1.75rem 0;
}

.diagnosis h3, .plan h3, .tracks h3 {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .35rem;
  font-size: .78rem;
  font-weight: 600;
}

.diag-body {
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.diag-face {
  position: relative;
  margin: 0;
}

.diag-face img {
  display: block;
  border-radius: 12px;
  width: 100%;
}

.diag-face .mask {
  position: absolute;
  mix-blend-mode: multiply;
  inset: 0;
}

.diag-face figcaption {
  margin-top: .5rem;
  font-size: .8rem;
}

.diag-face.scanning {
  overflow: hidden;
  background: var(--ink);
  border-radius: 12px;
}

.diag-face.scanning img {
  display: block;
  filter: grayscale(.55) contrast(1.02) brightness(.82);
  animation: settle 2.6s ease-in-out infinite;
}

@keyframes settle {
  0%, 100% {
    filter: grayscale(.55) contrast(1.02) brightness(.82);
  }

  50% {
    filter: grayscale(.3) contrast(1.04) brightness(.92);
  }
}

.sweep {
  position: absolute;
  animation: sweep 2.6s cubic-bezier(.4, 0, .2, 1) infinite;
  background: linear-gradient(#0000, #ffffff29 62%, #ffffff08);
  border-bottom: 1px solid #ffffff8c;
  height: 34%;
  left: 0;
  right: 0;
}

@keyframes sweep {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  100% {
    transform: translateY(320%);
    opacity: 0;
  }
}

.ruler {
  position: absolute;
  background: repeating-linear-gradient(#ffffff47 0 1px, #0000 1px 14px) 0 / 6px 100% no-repeat, repeating-linear-gradient(#ffffff47 0 1px, #0000 1px 14px) right center / 6px 100% no-repeat;
  inset: 0;
}

.diag-face.scanning figcaption {
  position: absolute;
  display: flex;
  color: #fff;
  letter-spacing: .01em;
  background: linear-gradient(#0000, #101014e6);
  align-items:  center;
  gap: .5rem;
  margin: 0;
  padding: .7rem .8rem;
  font-size: .78rem;
  bottom: 0;
  left: 0;
  right: 0;
}

.stage-dot {
  animation: stage-pulse 1.4s ease-in-out infinite;
  background: #fff;
  border-radius: 50%;
  flex: none;
  width: 5px;
  height: 5px;
}

@keyframes stage-pulse {
  0%, 100% {
    opacity: .35;
  }

  50% {
    opacity: 1;
  }
}

.skeleton-tones {
  display: flex;
  gap: 1rem;
}

.skeleton-tones .pending {
  border-radius: 50%;
  width: 22px;
  height: 22px;
}

.concerns.skeleton {
  margin-top: 1.9rem;
}

.concerns.skeleton .pending {
  display: block;
  border-radius: 8px;
  height: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .diag-face.scanning img, .sweep, .stage-dot {
    animation: none;
  }

  .sweep {
    opacity: .5;
    transform: translateY(120%);
  }
}

.tones {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tone {
  display: flex;
  align-items:  center;
  gap: .5rem;
}

.tone-dot {
  border-radius: 50%;
  flex: none;
  width: 22px;
  height: 22px;
  box-shadow: inset 0 0 0 1px #0000001f;
}

.tone-label {
  display: flex;
  flex-direction: column;
  font-size: .8rem;
  line-height: 1.25;
}

.tone-label em {
  color: var(--muted);
  font-size: .75rem;
  font-style: normal;
}

.verdict {
  margin: .9rem 0 1rem;
}

.verdict:first-letter {
  text-transform: uppercase;
}

.concerns {
  list-style: none;
  display: grid;
  gap: .3rem;
  margin: 0;
  padding: 0;
}

.concern {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 20rem) 2rem;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  justify-content: start;
  align-items:  center;
  gap: .75rem;
  width: 100%;
  padding: .4rem .5rem;
  font-size: .85rem;
}

.concern:disabled {
  cursor: default;
  opacity: .75;
}

.concern:not(:disabled):hover {
  background: var(--wash);
}

.concern.on {
  border-color: var(--line);
  background: var(--wash);
}

.bar {
  background: var(--line);
  overflow: hidden;
  border-radius: 999px;
  height: 6px;
}

.bar span {
  display: block;
  background: var(--ink);
  border-radius: 999px;
  height: 100%;
}

.concern-score {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-content:  center;
  align-items:  start;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 74rem;
  min-height: calc(100dvh - 8rem);
  padding: clamp(2rem, 6vh, 4rem) 1.75rem 4rem;
}

.intro-copy {
  max-width: 34rem;
}

.steps {
  list-style: none;
  display: grid;
  background: var(--wash);
  border-radius: 18px;
  gap: 1.35rem;
  margin: 0;
  padding: 1.6rem;
}

.steps li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  align-items:  start;
  gap: .85rem;
}

.step-n {
  display: grid;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  place-items:  center;
  width: 1.7rem;
  height: 1.7rem;
  font-size: .78rem;
  font-weight: 600;
}

.step-text {
  display: grid;
  gap: .1rem;
  font-size: .9rem;
}

.step-text .muted {
  font-size: .82rem;
}

.eyebrow {
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-size: .75rem;
}

.intro h1 {
  letter-spacing: -.028em;
  text-wrap: balance;
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 600;
  line-height: 1.06;
}

.lede {
  color: #4a4a52;
  max-width: 42ch;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.cta.lg {
  display: inline-block;
  border-radius: 999px;
  width: auto;
  padding: .95rem 2rem;
  font-size: .95rem;
}

.fine {
  margin: .9rem 0 0;
  font-size: .78rem;
}

.explanation {
  max-width: 60ch;
  padding: 1.75rem 1.75rem 0;
}

.explanation h2 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.explanation p {
  color: #3a3a42;
  margin: 0;
  line-height: 1.6;
}

.explanation .pending.line {
  display: block;
  border-radius: 6px;
  height: 1rem;
  margin-bottom: .5rem;
}

.explanation .pending.line.wide {
  width: 70%;
  height: 1.5rem;
}

.tracks {
  padding: 1.75rem 1.75rem 0;
}

.track-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .6rem;
  margin-top: .8rem;
}

.track {
  display: grid;
  border: 1px solid var(--line);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  gap: .2rem;
  padding: .9rem 1rem;
  transition: border-color .12s, background .12s;
}

.track:hover {
  border-color: #c9c9d0;
}

.track.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.track.on .muted {
  color: #ffffffad;
}

.track strong {
  font-weight: 600;
}

.track .muted {
  font-size: .8rem;
  line-height: 1.35;
}

.busy.inline {
  margin: .4rem 0 0;
  padding: 0;
}

.plan-list {
  list-style: none;
  display: grid;
  gap: .6rem;
  margin: 1rem 0 0;
  padding: 0;
}

.plan-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items:  start;
  gap: .85rem;
  padding: .7rem;
}

.plan-row > img {
  object-fit: cover;
  border-radius: 8px;
  width: 56px;
  height: 56px;
}

.plan-dot {
  background: var(--wash);
  border-radius: 8px;
  width: 56px;
  height: 56px;
}

.plan-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.plan-reason {
  font-size: .82rem;
  line-height: 1.4;
}

.plan-detail {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
}

.plan-detail.sentence {
  text-transform: none;
  letter-spacing: 0;
  font-size: .78rem;
  line-height: 1.4;
}

.plan-tag {
  background: var(--wash);
  color: var(--muted);
  border-radius: 4px;
  align-self:  flex-start;
  margin-top: .2rem;
  padding: .1rem .4rem;
  font-size: .68rem;
}

.plan-step {
  display: grid;
  background: var(--wash);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  border-radius: 50%;
  place-items:  center;
  width: 56px;
  height: 56px;
  font-size: 1.05rem;
}

.disclaimer {
  max-width: 46ch;
  margin-top: .9rem;
  font-size: .75rem;
  line-height: 1.4;
}

.sheet {
  position: fixed;
  z-index: 20;
  display: grid;
  backdrop-filter: blur(2px);
  background: #10101473;
  align-items:  center;
  inset: 0;
}

.sheet-body {
  display: grid;
  background: #fff;
  border-radius: 18px;
  gap: .6rem;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
}

.sheet-body h3 {
  margin: 0 0 .3rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.link {
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 0;
  padding: .4rem;
  font-size: .875rem;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.sheet-body.cart {
  overflow-y: auto;
  gap: .5rem;
  max-height: 85vh;
}

.line {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  border-top: 1px solid var(--line);
  align-items:  center;
  gap: .7rem;
  padding: .55rem 0;
}

.line img {
  grid-row: 1 / span 2;
  object-fit: contain;
  background: var(--wash);
  border-radius: 8px;
  width: 44px;
  height: 56px;
}

.line-name {
  font-size: .85rem;
  line-height: 1.3;
}

.line-price {
  color: var(--muted);
  font-size: .85rem;
}

.qty {
  display: inline-flex;
  align-items:  center;
  gap: .5rem;
  font-size: .85rem;
}

.qty button {
  border: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
  background: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 1;
}

.qty button:hover {
  border-color: var(--ink);
}

.total {
  display: flex;
  border-top: 1px solid var(--line);
  justify-content: space-between;
  margin: .4rem 0 .2rem;
  padding-top: .7rem;
  font-size: .9rem;
}

.viewfinder {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 14px;
}

.viewfinder video {
  display: block;
  object-fit: cover;
  width: 100%;
  max-height: 55vh;
  transform: scaleX(-1);
}

.guide {
  position: absolute;
  pointer-events: none;
  border: 2px dashed #ffffffb3;
  border-radius: 50%;
  inset: 8% 22%;
}

.light-warning {
  position: absolute;
  color: #fff;
  white-space: nowrap;
  background: #101014cc;
  border-radius: 999px;
  margin: 0;
  padding: .4rem .8rem;
  font-size: .8rem;
  bottom: .75rem;
  left: 50%;
  transform: translateX(-50%);
}

@media (width <= 860px) {
  .topbar, .busy, .error, .prompt, .shelf-wrap, .product, .diagnosis, .plan, .explanation, .tracks {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .track-row {
    grid-template-columns: 1fr;
  }

  .intro {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .shelf {
    grid-template-columns: repeat(auto-fill, minmax(min(150px, 45%), 1fr));
  }

  .diag-body {
    grid-template-columns: 1fr;
  }

  .diag-face {
    max-width: 280px;
  }

  .concern {
    grid-template-columns: 5.5rem 1fr 2rem;
    gap: .5rem;
  }

  .rx-open {
    grid-template-columns: 48px 12px 1fr;
    padding-bottom: .9rem;
  }

  .rx-open > img {
    width: 48px;
    height: 48px;
  }

  .rx-price {
    grid-column: 3;
    font-size: .8rem;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .details h1 {
    font-size: 1.3rem;
  }
}

.demo-note {
  margin-top: .6rem;
  font-size: .78rem;
}

.hero-wrap {
  position: relative;
}

.loading {
  position: absolute;
  display: grid;
  backdrop-filter: blur(2px);
  color: var(--muted);
  background: #ffffffb8;
  border-radius: 16px;
  place-content:  center;
  justify-items: center;
  gap: .7rem;
  font-size: .85rem;
  inset: 0;
}

.spinner {
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  animation: spin .8s linear infinite;
  border-radius: 50%;
  width: 26px;
  height: 26px;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

img.pending, .skeleton-tones .pending, .concerns.skeleton .pending, .explanation .pending {
  background: linear-gradient(90deg, var(--wash) 25%, #ededf0 50%, var(--wash) 75%);
  animation: shimmer 1.3s ease-in-out infinite;
  background-size: 200% 100%;
}

.side-profile {
  display: grid;
  border: 1px dashed var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border-radius: 10px;
  gap: .15rem;
  padding: .6rem .7rem;
  font-size: .85rem;
}

.side-profile:hover {
  border-color: var(--ink);
}

.side-profile .side-title {
  margin: 0;
}

.field {
  display: grid;
  color: var(--muted);
  gap: .3rem;
  font-size: .85rem;
}

.field input, .field select {
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  background: #fff;
  border-radius: 10px;
  padding: .6rem .7rem;
  font-size: .9rem;
}

.field select {
  text-transform: capitalize;
}

.field input:focus, .field select:focus {
  outline: 1.5px solid var(--ink);
}

.together {
  max-width: 68rem;
  padding: 1.6rem 1.75rem 0;
}

.together > p:last-child {
  border-left: 2px solid var(--accent);
  color: #3a332e;
  max-width: 58ch;
  margin: .5rem 0 0;
  padding-left: 1rem;
  font-size: 1.02rem;
  line-height: 1.6;
}

.step-n.sm {
  display: inline-grid;
  vertical-align: -.2em;
  background: var(--accent-soft);
  box-shadow: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: .4rem;
  font-size: .68rem;
}

@media (pointer: coarse) {
  :where(button, a.cta, a.lp-cta, [role="button"]) {
    min-height: 44px;
  }

  :where(button):not(:has( > :not(svg))) {
    min-width: 44px;
  }
}
