.profile-intro-page {
  --intro-blue: #DD500B;
  --intro-blue-soft: #fdebe1;
  --intro-ink: #111827;
  --intro-muted: #536176;
  min-height: 100svh;
  background: #f4f5f8;
  color: var(--intro-ink);
  font-family: Inter, Arial, sans-serif;
}
.profile-intro { min-height: 100svh; padding: 20px 40px 104px; box-sizing: border-box; }
.profile-intro-header {
  width: min(100%, 1180px); min-height: 44px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.profile-intro-quit { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: #647188; font-size: 14px; font-weight: 600; text-decoration: none; }
.profile-intro-quit svg { width: 18px; height: 18px; }
.profile-intro-brand { display: inline-flex; align-items: center; gap: 7px; color: var(--intro-blue); font-size: 25px; font-weight: 700; letter-spacing: -1.2px; line-height: 1; }
.profile-intro-brand img { display: block; width: auto; height: 36px; object-fit: contain; }
.profile-intro-brand > span > span { color: #C04707; }
.profile-intro-saved { justify-self: end; color: #929daf; font-size: 13px; }
.profile-intro-progress { width: min(100%, 1180px); margin: 20px auto 0; }
.profile-intro-progress ol { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.profile-intro-progress li { min-width: 0; display: flex; align-items: center; gap: 10px; flex: 1; }
.profile-intro-progress li:last-child { flex: 0 0 18px; }
.profile-intro-progress li > span { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: #f3dccf; }
.profile-intro-progress li > i { height: 6px; flex: 1; border-radius: 999px; background: #f3dccf; }
.profile-intro-progress .is-current > span { background: var(--intro-blue); }
/* A finished step is a plain check, as on the onboarding steps; it overrides each page's own marker. */
.profile-intro-progress li.is-complete > span,
.profile-mailbox-progress li.is-current-segment > span { position: relative; background: transparent; }
.profile-intro-progress li.is-complete > span::after,
.profile-mailbox-progress li.is-current-segment > span::after {
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  content: ""; position: absolute; inset: -2px; border: 0; background: var(--intro-blue); transform: none;
  -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat;
}
.profile-intro-content { width: min(100%, 820px); margin: 30px auto 0; text-align: center; }
.profile-intro-content h1 { margin: 0; color: var(--intro-ink); font-size: clamp(28px, 3vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -1.2px; text-wrap: balance; }
.profile-intro-lead { max-width: 700px; margin: 16px auto 0; color: var(--intro-muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; text-wrap: pretty; }
.profile-intro-process {
  width: min(100%, 760px); margin: 28px auto 0; padding: 26px 24px;
  display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; gap: 14px;
  border-radius: 22px; background: #fff; box-shadow: 0 2px 5px rgb(15 23 42 / 12%); box-sizing: border-box;
}
.profile-intro-process-step { min-width: 0; display: flex; align-items: center; flex-direction: column; text-align: center; }
.profile-intro-icon { width: 68px; height: 68px; margin-bottom: 12px; border-radius: 18px; display: grid; place-items: center; background: var(--intro-blue-soft); color: var(--intro-blue); }
.profile-intro-icon svg { width: 30px; height: 30px; stroke-width: 1.8; }
.profile-intro-process-step strong { color: var(--intro-ink); font-size: 16px; line-height: 1.3; }
.profile-intro-process-step small { margin-top: 4px; color: #7c8594; font-size: 14px; line-height: 1.3; }
.profile-intro-arrow { width: 22px; height: 22px; color: #929dac; stroke-width: 1.8; }
.profile-intro-footer {
  position: fixed; z-index: 5; right: 0; bottom: 0; left: 0; padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, #f4f5f8 76%, rgb(244 245 248 / 0%));
}
.profile-intro-footer form { width: min(100%, 560px); margin: 0 auto; }
/* Same button width whether the footer wraps a form or holds the button directly. */
footer.profile-intro-footer > button { display: block; width: min(100%, 560px); margin-right: auto; margin-left: auto; }
.profile-intro-footer button {
  width: 100%; min-height: 54px; border: 2px solid #E76627; border-radius: 999px; background: var(--intro-blue);
  box-shadow: 0 3px 0 #B84206, 0 6px 14px rgb(221 80 11 / 18%); color: #fff;
  font: 600 17px/1.2 Inter, Arial, sans-serif; cursor: pointer;
}
.profile-intro-footer button:hover { background: #C04707; }
.profile-intro-footer button:focus-visible { outline: 3px solid #FFB98F; outline-offset: 3px; }

@media (max-width: 800px) {
  .profile-intro { padding: 16px 15px 104px; }
  .profile-intro-header { min-height: 47px; grid-template-columns: 1fr auto 1fr; }
  .profile-intro-quit span, .profile-intro-saved { display: none; }
  .profile-intro-quit svg { width: 25px; height: 25px; }
  .profile-intro-brand { gap: 5px; font-size: 21px; letter-spacing: -1px; }
  .profile-intro-brand img { height: 32px; }
  .profile-intro-progress { margin-top: 26px; }
  .profile-intro-progress ol { gap: 7px; }
  .profile-intro-progress li { gap: 7px; }
  .profile-intro-progress li:last-child { flex-basis: 18px; }
  .profile-intro-progress li > span { width: 18px; height: 18px; flex-basis: 18px; }
  .profile-intro-progress li > i { height: 6px; }
  .profile-intro-content { margin-top: 34px; }
  .profile-intro-content h1 { max-width: 520px; margin: 0 auto; font-size: clamp(26px, 6.6vw, 34px); line-height: 1.16; letter-spacing: -1px; }
  .profile-intro-lead { max-width: 520px; margin-top: 16px; font-size: 16px; line-height: 1.6; }
  .profile-intro-process {
    width: min(100%, 520px); margin-top: 28px; padding: 24px 16px; grid-template-columns: 1fr 20px 1fr 20px 1fr;
    gap: 6px; border-radius: 20px;
  }
  .profile-intro-icon { width: 60px; height: 60px; margin-bottom: 10px; border-radius: 16px; }
  .profile-intro-icon svg { width: 28px; height: 28px; }
  .profile-intro-process-step strong { font-size: 15px; }
  .profile-intro-process-step small { font-size: 13px; }
  .profile-intro-arrow { width: 20px; height: 20px; }
  .profile-intro-footer { padding: 14px 15px max(14px, env(safe-area-inset-bottom)); }
  .profile-intro-footer button { min-height: 54px; font-size: 17px; }
}

@media (max-width: 420px) {
  .profile-intro { padding-right: 12px; padding-left: 12px; }
  .profile-intro-brand { font-size: 18px; }
  .profile-intro-brand img { height: 28px; }
  .profile-intro-progress li > span { width: 16px; height: 16px; flex-basis: 16px; }
  .profile-intro-progress li:last-child { flex-basis: 16px; }
  .profile-intro-progress li > i { height: 5px; }
  .profile-intro-content { margin-top: 28px; }
  .profile-intro-content h1 { font-size: 26px; }
  .profile-intro-lead { margin-top: 14px; font-size: 15px; }
  .profile-intro-process { margin-top: 24px; padding: 20px 10px; grid-template-columns: 1fr 16px 1fr 16px 1fr; border-radius: 18px; }
  .profile-intro-icon { width: 52px; height: 52px; border-radius: 14px; }
  .profile-intro-icon svg { width: 24px; height: 24px; }
  .profile-intro-process-step strong { font-size: 13px; }
  .profile-intro-process-step small { font-size: 12px; }
  .profile-intro-arrow { width: 16px; height: 16px; }
  .profile-intro-footer { padding-right: 12px; padding-left: 12px; }
  .profile-intro-footer button { min-height: 52px; font-size: 16px; }
}

@media (max-height: 700px) {
  .profile-intro { padding-bottom: 18px; }
  .profile-intro-footer { position: static; padding: 38px 0 18px; background: transparent; }
}
