:root {
    --navy: #17236b;
    --text: #1c2450;
    --muted: #6b7399;
    --pink: #ff2f7a;
    --pink-dark: #ee2a6a;
    --blue: #1e5fd8;
    --green: #1f9d3d;
    --border: #d5def0;
    --field-bg: #f8faff;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    min-height: 100vh;
    background:
      radial-gradient(600px 300px at 10% 0%, #f7f8f9 0%, transparent 70%),
      radial-gradient(500px 300px at 100% 20%, #ffe9f2 0%, transparent 70%),
      linear-gradient(180deg, hsl(223, 54%, 97%) 0%, #f8fafc 45%, #f6f8ff 100%);
  }

  .page { max-width: 1180px; margin: 0 auto; padding: 14px 14px 32px; }

  /* ---------- Top bar ---------- */
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
  .brand-logo {
    flex: none; width: 56px; height: 56px; border-radius: 16px; background: #fff;
    display: grid; place-items: center; box-shadow: 0 4px 14px rgba(40, 80, 160, .18);
  }
  .brand-logo svg { width: 38px; height: 38px; }
  .brand-name {
    font-weight: 700; font-size: clamp(17px, 5.2vw, 28px);
    letter-spacing: -.8px; color: var(--navy); line-height: 1.1; white-space: nowrap;
  }
  .brand-name .mid { color: var(--pink); }
  .brand-tag { font-weight: 600; font-size: clamp(11px, 3.1vw, 15px); margin-top: 2px; white-space: nowrap; }
  .brand-tag .t1 { color: #2563eb; }
  .brand-tag .t2 { color: #e0245e; }
  .brand-tag .t3 { color: #ff7a1a; }
  .brand-tag .t4 { color: #2f9e44; }
  .brand-tag .dot { color: #7f8bb3; }

  .btn-login {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 20px; border: 2px solid var(--blue); border-radius: 999px;
    background: #fff; color: var(--blue); font-weight: 600; font-size: 17px;
    text-decoration: none; box-shadow: 0 3px 10px rgba(30, 95, 216, .15);
  }
  .btn-login svg { width: 22px; height: 22px; }

  /* ---------- Layout ---------- */
  .layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 14px; }

  /* ---------- Hero ---------- */
  .hero { display: grid; grid-template-columns: 1.3fr .8fr; gap: 6px; align-items: start; }
  .hero-text {
    font-size: clamp(14px, 3.9vw, 19px); line-height: 1.35; color: #14183a; margin-top: 6px;
  }
  .hero-text .hl { color: #e8174f; font-weight: 700; }

  .img-slot { position: relative; }
  .img-slot img { display: block; width: 91%; height: auto; }
  .img-slot.empty {
    border: 2px dashed #9db7e6; border-radius: 18px; background: rgba(255, 255, 255, .5);
    display: grid; place-items: center; text-align: center; padding: 12px;
    color: #5c74aa; font-size: 13px; font-weight: 500;
  }
  .img-slot.empty::after { content: attr(data-label); }
  .slot-banner.empty { min-height: 190px; }
  .slot-phone.empty  { min-height: 300px; }

  /* ---------- Feature icons ---------- */
  .features {
    list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    margin-top: 10px; padding: 12px 6px; border-radius: 20px;
    background: rgba(255, 255, 255, .6);
  }
  .features li { text-align: center; font-size: clamp(11px, 3vw, 14px); font-weight: 500; color: var(--navy); line-height: 1.25; }
  .f-icon {
    width: clamp(52px, 14vw, 68px); height: clamp(52px, 14vw, 68px); margin: 0 auto 6px;
    border-radius: 50%; display: grid; place-items: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .18), inset 0 -3px 6px rgba(0, 0, 0, .12);
  }
  .f-icon svg { width: 52%; height: 52%; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .f-icon .solid { fill: #fff; stroke: none; }
  .f-pink   { background: linear-gradient(145deg, #ff5f95, #e91e63); }
  .f-purple { background: linear-gradient(145deg, #b366ff, #7b2ff7); }
  .f-blue   { background: linear-gradient(145deg, #5bb0ff, #1e6fe0); }
  .f-green  { background: linear-gradient(145deg, #4cc866, #1f9d3d); }

  /* ---------- Form card ---------- */
  .card {
    background: rgba(255, 255, 255, .96); border-radius: 28px;
    padding: 22px 18px 18px; box-shadow: 0 14px 40px rgba(40, 70, 150, .16);
  }
  .card h1 { text-align: center; font-size: clamp(26px, 7.2vw, 36px); font-weight: 700; color: var(--navy); line-height: 1.15; }
  .card h1 .pink { color: var(--pink); }
  .card .sub { text-align: center; color: #5f678f; font-size: clamp(14px, 3.8vw, 17px); line-height: 1.4; margin: 8px auto 18px; max-width: 420px; }

  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .group { margin-bottom: 14px; min-width: 0; }
  label.lbl { display: block; font-weight: 600; font-size: 14.5px; color: var(--navy); margin-bottom: 6px; }

  .field { position: relative; }
  .field .ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 24px; height: 24px; color: #34437f; pointer-events: none;
  }
  .field input {
    width: 100%; height: 54px; border: 1.5px solid var(--border); border-radius: 14px;
    background: var(--field-bg); padding: 0 14px 0 46px;
    font: 400 15px 'Poppins', Arial, sans-serif; color: var(--text);
  }
  .field.has-eye input { padding-right: 46px; }
  .field input::placeholder { color: #8f97b8; }
  .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 95, 216, .18); background: #fff; }
  .field input.invalid { border-color: #e0345f; background: #fff7f9; }

  .toggle-eye {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer;
    display: grid; place-items: center; color: #34437f; border-radius: 8px;
  }
  .toggle-eye svg { width: 24px; height: 24px; }
  .toggle-eye:focus-visible { outline: 2px solid var(--blue); }

  .err { display: block; color: #d6204f; font-size: 12px; margin-top: 4px; min-height: 0; }

  .terms { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 14.5px; color: #333b66; }
  .terms input {
    appearance: none; -webkit-appearance: none; flex: none;
    width: 24px; height: 24px; border: 1.8px solid #9aa6cc; border-radius: 6px; background: #fff; cursor: pointer;
    display: grid; place-items: center;
  }
  .terms input:checked { background: var(--blue); border-color: var(--blue); }
  .terms input:checked::after { content: ""; width: 6px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
  .terms input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .terms a, .login-line a { color: var(--blue); font-weight: 700; }

  .btn-create {
    width: 100%; height: 58px; border: 0; border-radius: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(90deg, #ff4585, var(--pink-dark));
    color: #fff; font: 600 clamp(18px, 5vw, 21px) 'Poppins', Arial, sans-serif;
    box-shadow: 0 10px 22px rgba(238, 42, 106, .35);
  }
  .btn-create svg { width: 24px; height: 24px; }
  .btn-create:hover { filter: brightness(1.05); }
  .btn-create:focus-visible { outline: 3px solid rgba(30, 95, 216, .5); outline-offset: 2px; }

  .status { text-align: center; font-size: 13.5px; margin-top: 10px; color: var(--green); font-weight: 500; }

  .or { display: flex; align-items: center; gap: 14px; margin: 14px 8% 8px; color: #5f678f; font-size: 15px; }
  .or::before, .or::after { content: ""; flex: 1; height: 1px; background: #d3dbee; }
  .login-line { text-align: center; color: #4a5282; font-size: 16px; }

  /* ---------- Trust badges ---------- */
  .trust {
    display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px;
    padding: 14px 4px; border-radius: 18px; background: #eef3ff;
  }
  .trust div { text-align: center; padding: 0 6px; font-size: clamp(11px, 3vw, 14px); font-weight: 600; color: var(--navy); line-height: 1.25; }
  .trust div + div { border-left: 1px solid #cfd8ef; }
  .trust svg { width: clamp(30px, 9vw, 42px); height: clamp(30px, 9vw, 42px); display: block; margin: 0 auto 6px; }

  .safe {
    display: flex; align-items: center; gap: 10px; margin-top: 14px;
    padding: 12px 14px; border-radius: 12px; background: #e3f5e8; color: #2b5d3a; font-size: clamp(12px, 3.3vw, 14.5px); line-height: 1.35;
  }
  .safe svg { flex: none; width: 28px; height: 28px; }

  /* ---------- Small phones ---------- */
  @media (max-width: 359px) {
    .row { grid-template-columns: 1fr; }
    .btn-login { padding: 8px 14px; font-size: 15px; }
  }

  /* ---------- Tablet / desktop ---------- */
  @media (min-width: 720px) {
    .page { padding: 22px 28px 48px; }
    .card { padding: 32px 36px 24px; }
  }
  @media (min-width: 980px) {
    .layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; margin-top: 26px; }
    .hero-text { font-size: 20px; margin-top: 14px; }
    .features { margin-top: 24px; padding: 18px 10px; }
    .f-icon { width: 76px; height: 76px; }
    .features li { font-size: 15px; }
    .card { position: sticky; top: 20px; }
  }
  /* Two images in one row, followed by full-width copy and features. */
  .hero { display: flex; gap: 8px; align-items: stretch; }
  .hero > .img-slot { flex: 1 1 0; min-width: 0; position: relative; padding: 0; }
  .hero .img-slot img { width: 120%; height: clamp(150px, 43vw, 300px); object-fit: contain; object-position: center; }
  .hero .slot-phone img {
  height: clamp(158px, 48vw, 340px);
}
  .slot-banner, .slot-phone { mix-blend-mode: multiply; }
  .hero-text { width: 100%; margin-top: 8px; }
  .features { width: 100%; }
  .brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
  .btn-create { background: linear-gradient(100deg, #ed008b, #ff4168); }
  .status:empty { display: none; }
  .err:empty { display: none; }
  @media (max-width: 979px) {
    body { background: radial-gradient(ellipse at 100% 45%, #fff4cd 0%, transparent 30%), linear-gradient(180deg, #f9f9fa, #edf5ff 65%, #f8faff); }
    .page { max-width: 760px; padding: 14px 16px 26px; overflow: hidden; }
    .layout { gap: 10px; margin-top: 10px; }
    .hero-text { font-size: clamp(10.5px, 2.8vw, 19px); line-height: 1.25; margin: 8px 0 7px; }
    .features { margin-top: 4px; padding: 7px 3px; border-radius: 14px; gap: 3px; background: rgba(255,255,255,.7); }
    .features li { font-size: clamp(8px, 2.1vw, 14px); font-weight: 600; line-height: 1.15; }
    .f-icon { width: clamp(30px, 8.5vw, 60px); height: clamp(30px, 8.5vw, 60px); margin-bottom: 5px; box-shadow: 0 3px 9px rgba(0,0,0,.12); }
    .card { position: relative; padding: 14px 15px 13px; border-radius: 20px; box-shadow: 0 10px 30px rgba(40,70,150,.08); }
    .card h1 { font-size: clamp(21px, 5.55vw, 39px); letter-spacing: -.8px; white-space: nowrap; }
    .card .sub { font-size: clamp(12px, 3vw, 21px); line-height: 1.3; margin: 5px auto 16px; }
    .brand-logo { width: clamp(32px, 9vw, 60px); height: clamp(32px, 9vw, 60px); border-radius: 50%; box-shadow: none; }
    .brand { gap: 5px; }
    .brand-name { font-size: clamp(12px, 3.65vw, 26px); letter-spacing: -.8px; }
    .brand-tag { font-size: clamp(9px, 2.5vw, 17px); text-align: center; }
    .topbar { gap: 6px; }
    .btn-login { gap: 3px; padding: 6px 9px; font-size: clamp(12px, 3.3vw, 22px); border-width: 1.5px; }
    .btn-login svg { width: 18px; height: 18px; }
    .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .group { margin-bottom: 9px; }
    label.lbl { font-size: clamp(10px, 2.6vw, 18px); margin-bottom: 4px; letter-spacing: -.25px; }
    .field input { min-width: 0; height: clamp(36px, 8vw, 54px); border-radius: 10px; padding: 0 6px 0 30px; font-family: 'Segoe UI', Arial, sans-serif; font-size: clamp(10px, 2.5vw, 17px); background: #fcfdff; }
    .field .ico { left: 8px; width: 18px; height: 18px; }
    .field.has-eye input { padding-right: 28px; }
    .toggle-eye { right: 2px; width: 26px; height: 32px; }
    .toggle-eye svg { width: 18px; height: 18px; }
    .terms { gap: 7px; font-size: clamp(10px, 2.6vw, 18px); line-height: 1.35; margin: 2px 0 9px; }
    .terms input { width: 16px; height: 16px; border-radius: 4px; }
    .terms input:checked::after { width: 4px; height: 8px; }
    .btn-create { height: clamp(40px, 9vw, 64px); border-radius: 10px; font-size: clamp(15px, 3.8vw, 26px); box-shadow: none; }
    .or { margin: 10px 12% 6px; font-size: 11px; }
    .login-line { font-size: clamp(11px, 2.7vw, 19px); }
    .trust { margin-top: 12px; padding: 11px 2px; border-radius: 12px; }
    .trust div { padding: 0 3px; font-size: clamp(8px, 2.1vw, 14px); line-height: 1.2; }
    .trust svg { width: clamp(25px, 6.7vw, 46px); height: clamp(25px, 6.7vw, 46px); margin-bottom: 5px; }
    .safe { margin-top: 11px; gap: 7px; padding: 9px; border-radius: 9px; font-size: clamp(9px, 2.25vw, 16px); }
    .safe svg { width: 18px; height: 18px; }
  }
  .btn-create:disabled { opacity: .7; cursor: wait; }

/* Former inline presentation styles. */
.icon-sprite { position: absolute; }
#err-termsCheckbox { margin: -8px 0 10px; }
.privacy-header-actions { display: flex; align-items: center; }
#privacyContentPane { display: none; }
#privacyProgressPercent { font-size: 11.5px; color: #475569; }

