/* Signup modal styles from the homepage. */
html:has(dialog.ea[open]), body:has(dialog.ea[open]) { overflow: hidden; }
dialog.ea { width: min(1060px, calc(100% - 32px)); max-width: none; max-height: min(90dvh, calc(100dvh - 32px)); margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fbfaf8; color: #0b1030; box-shadow: 0 32px 90px rgba(5, 10, 48, .35); overflow: hidden; }
dialog.ea::backdrop { background: rgba(5, 10, 48, .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ea-shell { position: relative; max-height: min(90dvh, calc(100dvh - 32px)); overflow-y: auto; overscroll-behavior: contain; padding: 32px 36px 36px; }
.ea-close { position: sticky; z-index: 2; top: 0; float: right; width: 44px; height: 44px; margin: -12px -16px 0 8px; display: grid; place-items: center; border: 1px solid #e2e7ee; border-radius: 50%; background: #fff; color: #0b1030; cursor: pointer; box-shadow: 0 4px 14px rgba(5, 10, 48, .08); }
.ea-close:hover { background: #eaf3ff; }
.ea-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(210px, .65fr); gap: 24px; align-items: center; clear: both; }
.ea-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; background: #e4f1fd; color: #0865b7; font: 500 11px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ea-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #178cec; }
.ea-top h2 { margin-top: 18px; font-size: clamp(31px, 3.6vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -.035em; }
.ea-top h2 em { font-style: normal; color: #096fd4; }
.ea-intro { margin-top: 16px; max-width: 62ch; color: #52617e; font-size: 16px; line-height: 1.55; }
.ea-intro.ea-update { margin-top: 8px; }
.ea-visual { position: relative; padding: 16px; border-radius: 22px; background: linear-gradient(140deg, #edf5ff, #f9fafc); border: 1px solid #dceafb; overflow: hidden; }
.ea-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(56, 182, 255, .12)); pointer-events: none; }
.ea-visual img { width: 100%; border: 1px solid #d8e3f0; border-radius: 12px; box-shadow: 0 12px 28px rgba(5, 10, 48, .13); }
.ea-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; }
.ea-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 13px; align-content: start; min-width: 0; min-height: 114px; padding: 17px; border: 1px solid #e5eaf0; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(5, 10, 48, .035); }
.ea-step-num { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e4f1fd; color: #096fd4; font: 600 17px/1 var(--sans); }
.ea-steps b { display: block; padding-top: 2px; font-size: 15px; line-height: 1.3; }
.ea-steps p { margin-top: 5px; color: #52617e; font-size: 13px; line-height: 1.4; }
.ea-free { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; margin-top: 16px; padding: 18px 20px; border: 1px solid #cfe5ff; border-radius: 18px; background: #eaf4ff; }
.ea-free-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #d9ebff; color: #096fd4; }
.ea-free b { display: block; color: #096fd4; font-size: 17px; }
.ea-free p { color: #52617e; font-size: 13.5px; line-height: 1.5; }
.ea-signup { margin-top: 24px; }
.ea-signup h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.ea-signup > p { margin-top: 4px; color: #52617e; font-size: 14px; }
.ea-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 16px; }
.ea-field { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 500; }
.ea-field strong { color: #d32f40; }
.ea-field input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfd8e5; border-radius: 11px; outline: none; background: #fff; color: #0b1030; font: 400 15px/1.4 var(--sans); }
.ea-field input::placeholder { color: #8a98af; }
.ea-field input:focus { border-color: #1689eb; box-shadow: 0 0 0 3px rgba(22, 137, 235, .17); }
.ea-field [aria-invalid="true"] { border-color: #b42318; }
.ea-error { color: #b42318; font-size: 12px; line-height: 1.4; }
.ea-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin-top: 18px; color: #52617e; font-size: 13px; line-height: 1.5; }
.ea-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #096fd4; cursor: pointer; }
.ea-consent a { color: #096fd4; text-underline-offset: 3px; }
.ea-form-error { margin-top: 12px; color: #b42318; font-size: 13px; font-weight: 500; }
.ea-actions { display: flex; align-items: center; gap: 20px; margin-top: 20px; }
.ea-submit { min-height: 52px; min-width: 330px; padding: 0 24px; border: 0; border-radius: 12px; background: linear-gradient(105deg, #050a30, #14297c); color: #fff; font: 600 15px/1.3 var(--sans); cursor: pointer; box-shadow: 0 9px 20px rgba(5, 10, 48, .2); }
.ea-submit:hover { background: linear-gradient(105deg, #0d1a58, #1a42a9); }
.ea-submit:disabled { opacity: .65; cursor: wait; }
.ea-later { min-height: 44px; padding: 0 8px; border: 0; background: none; color: #52617e; font: 500 14px var(--sans); cursor: pointer; }
.ea-later:hover { color: #0b1030; }
.ea-success { padding: 54px 20px; text-align: center; }
.ea-success-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: #e3f4ea; color: #17864f; }
.ea-success h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 600; }
.ea-success p { max-width: 55ch; margin: 14px auto 0; color: #52617e; }
.ea-success .ea-submit { margin-top: 24px; min-width: 180px; }
@media (max-width: 760px) {
  .ea-top { grid-template-columns: 1fr; }
  .ea-visual { display: none; }
  .ea-steps { grid-template-columns: 1fr; }
  .ea-steps li { min-height: 0; }
}
@media (max-width: 560px) {
  dialog.ea { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 20px; }
  .ea-shell { max-height: calc(100dvh - 24px); padding: 22px 18px 28px; }
  .ea-close { margin: -9px -7px 0 4px; }
  .ea-top h2 { font-size: clamp(28px, 8vw, 34px); }
  .ea-intro { font-size: 14px; }
  .ea-steps { margin-top: 20px; }
  .ea-free { grid-template-columns: 1fr; gap: 8px; }
  .ea-free-icon { width: 38px; height: 38px; }
  .ea-fields { grid-template-columns: 1fr; gap: 13px; }
  .ea-actions { display: grid; gap: 8px; }
  .ea-submit { width: 100%; min-width: 0; }
  .ea-later { width: 100%; }
}
