* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--navy-950);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  background:
    var(--tex-pinstripe),
    radial-gradient(circle at 50% 0%, rgba(46, 98, 166, 0.38), transparent 34rem),
    var(--grad-hero);
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.bio-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 44px 20px 32px;
}

.profile {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile__mark {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background:
    var(--tex-sheen),
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line-on-dark);
  box-shadow: var(--shadow-lg);
}

.profile__mark img {
  width: 54px;
  height: 54px;
  filter: invert(1);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-300);
  font-size: var(--text-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.profile h1 {
  margin: 0;
  font-size: clamp(2.6rem, 14vw, 4rem);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.profile__subtitle {
  max-width: 330px;
  margin: 14px 0 0;
  color: var(--text-on-dark-muted);
  font-size: var(--text-md);
  line-height: 1.22;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.social-row a {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  transition:
    background var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.social-row a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.diagnostic-card {
  display: grid;
  grid-template-columns: 54px 1fr 46px;
  gap: 16px;
  align-items: center;
  width: 100%;
  min-height: 124px;
  margin: 34px 0 28px;
  padding: 18px;
  color: var(--text-on-dark);
  text-align: left;
  background:
    var(--tex-sheen),
    linear-gradient(135deg, var(--ink-950), var(--navy-900));
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-none);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.diagnostic-card:hover {
  border-color: rgba(111, 155, 212, 0.72);
  transform: translateY(-2px);
}

.diagnostic-card__sigil,
.diagnostic-card__arrow {
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-on-dark-soft);
}

.diagnostic-card__sigil {
  width: 54px;
  height: 54px;
}

.diagnostic-card__sigil img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.diagnostic-card__arrow {
  width: 46px;
  height: 46px;
  color: var(--blue-300);
  font-size: 1.55rem;
}

.diagnostic-card__copy {
  display: grid;
  gap: 6px;
}

.diagnostic-card__copy strong {
  font-size: 1.28rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-snug);
  line-height: 1.08;
}

.diagnostic-card__copy span {
  color: var(--text-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.28;
}

.section-block,
.link-stack,
.posts {
  margin-top: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title span {
  width: 18px;
  height: 1px;
  background: var(--blue-300);
}

.section-title h2 {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.offer-rail,
.post-rail {
  display: grid;
  grid-auto-columns: 152px;
  grid-auto-flow: column;
  gap: 12px;
  margin-inline: -20px;
  padding: 0 20px 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.offer-rail::-webkit-scrollbar,
.post-rail::-webkit-scrollbar {
  display: none;
}

.offer-card {
  width: 152px;
  padding: 0;
  color: var(--text-on-dark);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.offer-card:nth-child(1) {
  --surface: linear-gradient(145deg, #11233a, #1b3d5c);
}

.offer-card:nth-child(2) {
  --surface: linear-gradient(145deg, #181818, #2e62a6);
}

.offer-card:nth-child(3) {
  --surface: linear-gradient(145deg, #0b1623, #22496c);
}

.offer-card:nth-child(4) {
  --surface: linear-gradient(145deg, #1b3d5c, #11233a);
}

.offer-card:nth-child(5) {
  --surface: linear-gradient(145deg, #232323, #11233a);
}

.offer-card__visual {
  display: grid;
  position: relative;
  height: 188px;
  padding: 16px;
  align-items: end;
  overflow: hidden;
  background:
    var(--tex-pinstripe),
    var(--tex-sheen),
    var(--surface);
  border: 1px solid var(--line-on-dark-soft);
}

.offer-card__visual::after {
  content: "";
  position: absolute;
  inset: auto -26px -34px auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.offer-card__visual--bars::before,
.offer-card__visual--grid::before,
.offer-card__visual--rules::before,
.offer-card__visual--arc::before {
  content: "";
  position: absolute;
  inset: 16px;
  opacity: 0.4;
}

.offer-card__visual--bars::before {
  background: linear-gradient(90deg, transparent 0 20%, rgba(255,255,255,.18) 20% 22%, transparent 22% 42%, rgba(255,255,255,.18) 42% 45%, transparent 45%);
}

.offer-card__visual--grid::before {
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 28px 28px;
}

.offer-card__visual--rules::before {
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.18) 0 1px, transparent 1px 18px);
}

.offer-card__visual--arc::before {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  transform: scale(1.8);
}

.offer-card__visual span {
  position: relative;
  z-index: 1;
  font-size: 1.45rem;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-tight);
  line-height: 0.96;
}

.offer-card strong {
  display: block;
  min-height: 44px;
  margin-top: 12px;
  color: var(--text-on-dark);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.12;
}

.offer-card > span:last-child {
  display: inline-flex;
  min-height: 32px;
  margin-top: 8px;
  padding: 9px 14px;
  align-items: center;
  color: var(--text-on-dark);
  background: var(--ink-950);
  border: 1px solid var(--line-on-dark-soft);
  border-radius: var(--radius-pill);
  font-size: var(--text-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.link-stack {
  display: grid;
  gap: 12px;
}

.action-card {
  display: grid;
  grid-template-columns: 56px 1fr 22px;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  align-items: center;
  color: var(--text-on-dark);
  background:
    var(--tex-sheen),
    var(--navy-800);
  border: 1px solid var(--line-on-dark-soft);
  box-shadow: var(--shadow-md);
}

.action-card--dark {
  background:
    var(--tex-sheen),
    var(--ink-950);
}

.action-card--blue {
  background:
    var(--tex-sheen),
    var(--blue-600);
}

.action-card__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-on-dark-soft);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
}

.action-card strong,
.action-card small {
  display: block;
}

.action-card strong {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  line-height: 1.1;
}

.action-card small {
  margin-top: 5px;
  color: var(--text-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.25;
}

.action-card i {
  color: var(--blue-300);
  font-style: normal;
  font-size: 1.2rem;
}

.post-card {
  display: grid;
  gap: 10px;
  width: 152px;
}

.post-card__canvas {
  display: block;
  position: relative;
  height: 214px;
  overflow: hidden;
  background:
    var(--tex-pinstripe),
    linear-gradient(145deg, var(--navy-900), var(--ink-950));
  border: 1px solid var(--line-on-dark-soft);
}

.post-card__canvas::before {
  content: "AUDACES";
  position: absolute;
  left: 14px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.3rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.post-card__canvas::after {
  content: "";
  position: absolute;
  inset: auto 16px 18px auto;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.post-card__canvas em {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--blue-300);
  font-style: normal;
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
}

.post-card__canvas--two {
  background:
    var(--tex-sheen),
    linear-gradient(145deg, var(--ink-950), var(--blue-600));
}

.post-card__canvas--three {
  background:
    var(--tex-pinstripe),
    linear-gradient(145deg, var(--navy-700), var(--navy-950));
}

.post-card strong {
  color: var(--text-on-dark);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.12;
}

.bio-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 40px;
  padding-top: 26px;
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--line-on-dark-soft);
  font-size: var(--text-xs);
}

.bio-footer img {
  width: 118px;
  opacity: 0.72;
}

.modal {
  width: min(calc(100% - 32px), 390px);
  padding: 0;
  color: var(--text-strong);
  background: var(--paper);
  border: 1px solid var(--line-on-light);
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgba(11, 22, 35, 0.72);
  backdrop-filter: blur(6px);
}

.modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--text-on-dark);
  background: rgba(11, 22, 35, 0.72);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.modal__visual {
  height: 180px;
  margin-bottom: 22px;
  background:
    var(--tex-pinstripe),
    var(--tex-sheen),
    linear-gradient(135deg, var(--navy-900), var(--blue-600));
}

.modal .eyebrow,
.modal h3,
.modal p,
.modal .pill-button {
  margin-inline: 24px;
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--text-strong);
  font-size: var(--text-xl);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tracking-snug);
  line-height: 1.05;
}

.modal p:not(.eyebrow) {
  margin-top: 0;
  margin-bottom: 22px;
  color: var(--text-body);
  font-size: var(--text-base);
  line-height: 1.42;
}

.pill-button {
  display: flex;
  min-height: 52px;
  margin-bottom: 24px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  color: var(--action-on-dark);
  background: var(--action-fill);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
}

.diagnostic[hidden] {
  display: none;
}

.diagnostic {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: end center;
}

.diagnostic__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 35, 0.72);
  backdrop-filter: blur(7px);
}

.diagnostic__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  height: min(86vh, 760px);
  overflow: hidden;
  color: var(--text-strong);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.diagnostic__header {
  display: grid;
  grid-template-columns: 44px 1fr 36px;
  gap: 12px;
  min-height: 72px;
  padding: 14px 18px;
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line-on-light-soft);
}

.diagnostic__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--text-strong);
  background: var(--mist-100);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-pill);
}

.diagnostic__avatar img {
  width: 24px;
  height: 24px;
}

.diagnostic__header strong,
.diagnostic__header small {
  display: block;
}

.diagnostic__header strong {
  color: var(--text-strong);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
}

.diagnostic__header small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.diagnostic__header small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  background: var(--blue-500);
  border-radius: 50%;
}

.diagnostic__header button {
  width: 36px;
  height: 36px;
  color: var(--text-strong);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1.5rem;
}

.diagnostic__body {
  display: flex;
  height: calc(100% - 72px);
  padding: 24px 16px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.chat-start {
  display: grid;
  min-height: 100%;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.chat-start .diagnostic__avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

.chat-start h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: var(--text-lg);
}

.chat-start p {
  margin: 8px 0 24px;
  color: var(--text-muted);
  font-size: var(--text-base);
}

.chat-bubble,
.answer-pill,
.lead-gate {
  max-width: 92%;
  border: 1px solid var(--line-on-light-soft);
  box-shadow: var(--shadow-sm);
}

.answer-group {
  display: grid;
  width: min(92%, 420px);
  gap: 10px;
}

.answer-group .answer-pill {
  max-width: 100%;
}

.lead-gate__grid {
  display: grid;
  gap: 10px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-bubble {
  align-self: flex-start;
  padding: 14px 16px;
  color: var(--text-strong);
  background: var(--white);
  font-size: var(--text-base);
  line-height: 1.35;
}

.answer-pill {
  min-height: 50px;
  padding: 12px 16px;
  color: var(--text-strong);
  text-align: left;
  background: var(--white);
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.answer-pill:hover {
  border-color: rgba(46, 98, 166, 0.38);
}

.chat-choice {
  align-self: flex-end;
  padding: 12px 16px;
  color: var(--text-on-dark);
  background: var(--navy-800);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
}

.free-answer {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  margin-top: 4px;
}

.free-answer input,
.lead-gate input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--text-strong);
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-input);
}

.free-answer button {
  width: 52px;
  min-height: 52px;
  color: var(--text-on-dark);
  background: var(--action-fill);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.lead-gate {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  padding: 18px;
  background: var(--white);
}

.lead-gate h3 {
  margin: 0;
  color: var(--text-strong);
  text-align: center;
  font-size: var(--text-base);
}

.lead-gate button {
  min-height: 52px;
  color: var(--text-on-dark);
  background: var(--action-fill);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: var(--fw-semibold);
}

.lead-gate button[disabled] {
  cursor: wait;
  opacity: 0.64;
}

.form-status {
  display: none;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.35;
  text-align: center;
}

.form-status[data-visible="true"] {
  display: block;
}

.form-status[data-tone="error"] {
  color: #8f2f2f;
}

.recommendation {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 18px;
  color: var(--text-on-dark);
  background: var(--navy-900);
}

.recommendation strong {
  font-size: var(--text-lg);
  font-weight: var(--fw-regular);
  line-height: 1.1;
}

.recommendation p {
  margin: 0;
  color: var(--text-on-dark-muted);
  line-height: 1.35;
}

@media (min-width: 700px) {
  .bio-shell {
    padding-top: 64px;
  }

  .diagnostic__panel {
    margin-bottom: 32px;
    border: 1px solid var(--line-on-dark);
  }
}
