/*
  Sign-up / sign-in / verification / ICP onboarding flow.
  Loaded per-view via content_for :view_css (same pattern as heystack_one.css).
  Buttons reuse the shared .cta / .cta-secondary / .cta-primary / .cta-ghost-outline
  classes; this file only tunes their size to the flow's spec and adds the flow's
  form, pill, and modal styles.
*/
@font-face { font-family: 'Gustavo'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/Gustavo-Regular.woff) format('woff'); }
@font-face { font-family: 'Gustavo'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/Gustavo-Medium.woff) format('woff'); }
@font-face { font-family: 'Gustavo'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/Gustavo-Bold.woff) format('woff'); }

/* The app's base styles set html { font-weight: 300 }; this flow is designed at 400. */
.hs-auth { background: #000; color: #fff; font-family: 'Gustavo', Arial, sans-serif; font-weight: 400; min-height: 72vh; padding: 26px 16px 56px; }
.hs-auth *, .hs-auth *::before, .hs-auth *::after { box-sizing: border-box; }
.hs-auth [hidden] { display: none !important; }
.hs-auth a:focus-visible, .hs-auth button:focus-visible, .hs-auth input:focus-visible, .hs-auth [tabindex]:focus-visible { outline: 2px solid #ccff00; outline-offset: 2px; }

.hs-auth-col { width: 480px; max-width: 100%; margin: 0 auto; }
.hs-auth-col--code { width: 520px; }
.hs-auth--center { display: flex; flex-direction: column; justify-content: center; }
.hs-auth-col--wide { width: 900px; }
.hs-auth h1 { font-family: 'Gustavo', Arial, sans-serif; font-weight: 600; font-size: 29px; line-height: 1.15; margin: 0 0 8px; color: #fff; }
.hs-auth-sub { font-size: 15px; color: #a1a1aa; margin: 0 0 20px; }
.hs-auth-muted { font-family: 'Inter', Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #a1a1aa; }
.hs-auth-note { font-family: 'Inter', Arial, sans-serif; font-size: 13px; line-height: 1.5; color: #71717a; margin: 0; }
.hs-auth-note--spaced { margin-bottom: 20px; }
.hs-auth-link { color: #ccff00; font-weight: 600; text-decoration: underline; }
.hs-auth-link:hover { color: #d9ff4d; }
.hs-auth-switch { font-family: 'Inter', Arial, sans-serif; font-size: 14px; color: #a1a1aa; text-align: center; }
.hs-auth-switch a { color: #fff; font-weight: 600; }
.hs-auth-switch a:hover { color: #ccff00; }

/* Promo banner on the sign-up form */
.hs-auth-banner { background: linear-gradient(90deg, #ccff00 0%, #1cb580 100%); border-radius: 8px; padding: 11px 14px; margin: 14px 0 20px; color: #000; font-size: 13px; line-height: 1.45; }
.hs-auth-banner p { margin: 0; }
.hs-auth-banner p + p { margin-top: 8px; }
.hs-auth-banner strong { font-weight: 600; }

/* Form fields */
.hs-auth-form { display: flex; flex-direction: column; gap: 12px; }
.hs-auth-row { display: flex; gap: 16px; }
.hs-auth-row > .hs-auth-field { flex: 1; min-width: 0; }
.hs-auth-field { display: flex; flex-direction: column; gap: 6px; }
.hs-auth-field > label, .hs-auth-field > .hs-auth-label { font-size: 13px; color: #d4d4d8; }
.hs-auth-field .hs-auth-optional { font-size: 10px; color: #71717a; }
.hs-auth-input { height: 40px; width: 100%; border-radius: 8px; background: #fff; border: 1px solid transparent; padding: 0 14px; font-family: 'Inter', Arial, sans-serif; font-size: 14px; color: #000; }
.hs-auth-input::placeholder { color: #71717a; }
.hs-auth-input[aria-invalid="true"] { border-color: #f87171; }
.hs-auth-hint { font-family: 'Inter', Arial, sans-serif; font-size: 12px; color: #71717a; margin: 0; }
.hs-auth-error-text { font-family: 'Inter', Arial, sans-serif; font-size: 13px; color: #f87171; margin: 0; }
.hs-auth-divider { display: flex; align-items: center; gap: 14px; font-family: 'Inter', Arial, sans-serif; font-size: 13px; color: #a1a1aa; }
.hs-auth-divider::before, .hs-auth-divider::after { content: ''; flex: 1; height: 1px; background: #27272a; }

/* Custom checkbox (terms) */
.hs-auth-check { display: flex; align-items: center; gap: 10px; font-family: 'Inter', Arial, sans-serif; font-size: 14px; color: #d4d4d8; }
.hs-auth-check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid #6e6e76; background: transparent; flex-shrink: 0; cursor: pointer; display: inline-grid; place-content: center; }
.hs-auth-check input[type="checkbox"]::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #000; border-bottom: 2.5px solid #000; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.hs-auth-check input[type="checkbox"]:checked { background: #ccff00; border-color: #ccff00; }
.hs-auth-check input[type="checkbox"]:checked::after { opacity: 1; }
.hs-auth-check label { cursor: pointer; }
.hs-auth-check a { color: #ccff00; font-weight: 600; }

/* Alerts */
.hs-auth-alert { border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; font-family: 'Inter', Arial, sans-serif; font-size: 14px; line-height: 1.45; border: 1px solid; }
.hs-auth-alert strong { display: block; font-weight: 600; }
.hs-auth-alert ul { margin: 4px 0 0; padding-left: 18px; }
.hs-auth-alert--error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.45); color: #fecaca; }
.hs-auth-alert--info { background: rgba(204, 255, 0, 0.08); border-color: rgba(204, 255, 0, 0.4); color: #ecfccb; }

/* Buttons: size the shared .cta classes to the flow spec */
.hs-auth .cta, .hs-welcome .cta { height: auto; min-height: 0; padding: 11px 24px; font-size: 15px; line-height: 1.4; gap: 10px; flex-wrap: nowrap; }
.hs-auth .cta-block, .hs-welcome .cta-block { width: 100%; }
.hs-auth .cta-ghost-outline { border-color: #52525b; color: #fff; padding: 10px 22px; }
.hs-auth .cta-ghost-outline:hover { border-color: #a1a1aa; }
.hs-auth .cta:disabled, .hs-auth .cta[aria-disabled="true"] { background: #2e3313; color: #6b7280; cursor: default; }
.hs-auth .cta:disabled:hover, .hs-auth .cta[aria-disabled="true"]:hover { background: #2e3313; }
.hs-auth-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }

/* Verification code boxes */
.hs-auth-codes { display: flex; gap: 10px; margin: 0 0 20px; }
.hs-auth-codes input { width: 58px; max-width: calc((100% - 50px) / 6); height: 62px; border-radius: 8px; background: #26262a; border: 1px solid transparent; text-align: center; font-family: 'Gustavo', Arial, sans-serif; font-weight: 800; font-size: 24px; color: #fff; padding: 0; }
.hs-auth-codes input:focus { border-color: #ccff00; outline: none; }
.hs-auth-codes--invalid input { border-color: #f87171; }
.hs-auth-resend { margin: 0 0 34px; }
.hs-auth-resend a { color: #ccff00; font-weight: 600; }

/* ICP questionnaire */
.hs-icp-bars { display: flex; gap: 10px; margin-bottom: 48px; }
.hs-icp-track { flex: 1; height: 4px; border-radius: 999px; background: #27272a; overflow: hidden; }
.hs-icp-fill { height: 4px; border-radius: 999px; background: #ccff00; width: 0; transition: width 0.35s ease; }
.hs-icp-eyebrow { font-size: 16px; color: #71717a; margin: 0 0 22px; }
.hs-icp-eyebrow strong { color: #ccff00; font-weight: 800; text-transform: uppercase; }
.hs-icp-q { font-size: 15px; color: #fff; margin: 0 0 10px; }
.hs-icp-gap { height: 18px; }
.hs-icp-ctx { font-family: 'Inter', Arial, sans-serif; font-size: 13px; color: #71717a; margin-top: 16px; }
.hs-icp-pills { display: flex; flex-wrap: wrap; gap: 9px; }
.hs-icp-pills--even .hs-icp-pill { width: 280px; max-width: 100%; justify-content: flex-start; }
.hs-icp-pills--stack { flex-direction: column; gap: 10px; }
.hs-icp-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; background: #26262a; color: #fff; font-family: 'Gustavo', Arial, sans-serif; font-size: 15px; line-height: 1.3; cursor: pointer; user-select: none; text-align: left; }
.hs-icp-pill:hover { border-color: #52525b; }
.hs-icp-pill[aria-checked="true"] { border-color: #ccff00; }
.hs-icp-pills--stack .hs-icp-pill { width: 100%; }
.hs-icp-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #6e6e76; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.hs-icp-pill[aria-checked="true"] .hs-icp-box { border-color: #ccff00; background: #ccff00; }
.hs-icp-rank { margin-top: 40px; border-top: 1px solid #27272a; padding-top: 32px; }
.hs-icp-rank-list { display: flex; flex-direction: column; gap: 8px; max-width: 480px; margin-top: 16px; }
.hs-icp-rankrow { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 18px; border-radius: 999px; background: #26262a; border: 1px solid transparent; cursor: grab; touch-action: none; user-select: none; }
.hs-icp-rankrow.is-dragging { border-color: #ccff00; cursor: grabbing; }
.hs-icp-rankrow:focus-visible { outline: 2px solid #ccff00; outline-offset: 2px; }
.hs-icp-badge { width: 22px; height: 22px; border-radius: 999px; background: #ccff00; color: #000; display: inline-flex; align-items: center; justify-content: center; font-family: 'Inter', Arial, sans-serif; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.hs-icp-rank-label { flex: 1; font-size: 15px; }
.hs-icp-store-row { display: flex; gap: 16px; flex-wrap: wrap; }
.hs-icp-store-row .hs-auth-field:first-child { flex: 1; min-width: 220px; }
.hs-icp-store-row .hs-auth-field:last-child { width: 200px; }

/* Post-ICP welcome pop-up */
.hs-welcome { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 160px); padding: 40px 16px; font-family: 'Gustavo', Arial, sans-serif; font-weight: 400; }
.hs-welcome *, .hs-welcome *::before, .hs-welcome *::after { box-sizing: border-box; }
.hs-welcome-card { position: relative; width: 640px; max-width: 100%; margin: auto; background: #000; color: #fff; border-radius: 16px; padding: 24px 30px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.hs-welcome-close { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #a1a1aa; }
.hs-welcome-close:hover { color: #fff; background: #1a1a1f; }
.hs-welcome h1 { font-family: 'Gustavo', Arial, sans-serif; font-weight: 600; font-size: 34px; line-height: 1.2; margin: 0; padding-right: 28px; color: #fff; }
.hs-welcome-cards { display: flex; gap: 16px; margin-top: 22px; align-items: stretch; }
.hs-welcome-tile { flex: 1; display: flex; flex-direction: column; background: #1a1a1f; border-radius: 12px; padding: 16px 18px; }
.hs-welcome-tile h2, .hs-welcome-test h2 { font-family: 'Gustavo', Arial, sans-serif; font-weight: 600; font-size: 17px; margin: 0 0 8px; color: #fff; }
.hs-welcome-tile p { margin: 0; }
.hs-welcome-tile-action { margin-top: auto; padding-top: 12px; }
.hs-welcome-tile .cta { width: 100%; font-size: 14px; padding: 10px 20px; }
.hs-welcome-product { margin-top: 8px; background: #fff; border-radius: 10px; padding: 8px 14px; display: flex; align-items: center; justify-content: center; }
.hs-welcome-product img { width: 86px; height: auto; }
.hs-welcome-muted { font-family: 'Inter', Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #a1a1aa; }
.hs-welcome-hr { height: 1px; background: #27272a; margin: 14px 0; border: 0; }
.hs-welcome-test h2 { margin: 0; }
.hs-welcome-credits { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.hs-welcome-qmark { width: 16px; height: 16px; border-radius: 999px; border: 1.5px solid #ccff00; display: inline-flex; align-items: center; justify-content: center; font-family: 'Inter', Arial, sans-serif; font-weight: 600; font-size: 10px; color: #ccff00; background: transparent; cursor: pointer; padding: 0; flex-shrink: 0; }
.hs-welcome-go { margin-top: 18px; }
/* Shared users/_credit_help dialog, themed to match the pop-up */
.hs-welcome #credit-details-modal .modal-box { background: #1a1a1f; color: #fff; font-family: 'Inter', Arial, sans-serif; }
.hs-welcome #credit-details-modal .modal-box h2, .hs-welcome #credit-details-modal .modal-box h3 { font-family: 'Gustavo', Arial, sans-serif; color: #fff; }
.hs-welcome #credit-details-modal .modal-box p, .hs-welcome #credit-details-modal .modal-box li { color: #d4d4d8; }
.hs-welcome #credit-details-modal .modal-box .btn-circle { color: #a1a1aa; }

@media (max-width: 560px) {
  .hs-auth-row { flex-direction: column; gap: 12px; }
  .hs-welcome-cards { flex-direction: column; }
  .hs-welcome-card { padding: 22px 18px; }
  .hs-welcome h1 { font-size: 28px; }
  .hs-icp-bars { margin-bottom: 32px; }
  .hs-icp-store-row .hs-auth-field:last-child { width: 100%; }
}

.hs-auth-form--signin { margin-top: 14px; }
.hs-icp { padding-top: 32px; }
.hs-icp h1:focus { outline: none; }
.hs-icp .hs-icp-footer { margin-top: 40px; }
