/*
 * WPOS sign-up (register.php), 2026. Same look as the sign-in page (ink frame, paper panel, yellow action).
 * Desktop: one screen, no page scroll. Steps run across the top as a progress line, the current step
 * fills the middle (it scrolls inside only on very short windows), actions stay at the bottom.
 */
@font-face { font-family: "D-DIN"; src: url("../fonts/d-din-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "D-DIN"; src: url("../fonts/d-din-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "D-DIN Condensed"; src: url("../fonts/d-din-condensed-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #231F20;
  --ink-2: #2E2829;
  --paper: #FBF6EA;
  --cream: #F3EAD3;
  --line: #E4DACB;
  --stone: #6B635C;
  --mute: #A9A09A;
  --yellow: #FFCE00;
  --red: #C41E25;
  --green: #1F7A4D;
  --mint: #6FCF97;
  --white: #FFFFFF;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "D-DIN Condensed", "Arial Narrow", sans-serif;
  --pad-x: 40px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

.wr-body {
  color: var(--ink);
  background: var(--ink);
  font-family: "D-DIN", "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--yellow);
}

a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Frame: fills the window ---------- */
.wr-shell {
  height: 100vh;
  height: 100dvh;
  padding: 16px;
}

.wr-frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1440px, 100%);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #3A3335;
  border-radius: 20px;
  animation: wr-rise .45s var(--ease) both;
}

@keyframes wr-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Top bar: logo, progress line, sign-in link ---------- */
.wr-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  padding: 14px 28px;
  color: var(--cream);
  background: var(--ink-2);
}

.wr-logo img { display: block; width: 96px; height: auto; }

.wr-stepper {
  display: flex;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  list-style: none;
}

.wr-stepper li {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(243, 234, 211, .55);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* The connecting line runs from each step to the next one. */
.wr-stepper li::after {
  flex: 1 1 auto;
  min-width: 16px;
  height: 2px;
  margin: 0 6px;
  content: "";
  border-radius: 2px;
  background: rgba(243, 234, 211, .18);
  transition: background .3s var(--ease);
}

.wr-stepper li:last-child { flex: 0 0 auto; }
.wr-stepper li:last-child::after { display: none; }

.wr-step-no {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(243, 234, 211, .3);
  border-radius: 50%;
  font-size: 13px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.wr-step-name { overflow: hidden; text-overflow: ellipsis; }

.wr-stepper li.is-active { color: var(--paper); }
.wr-stepper li.is-active .wr-step-no { border-color: var(--yellow); color: var(--ink); background: var(--yellow); }
.wr-stepper li.is-done { color: var(--cream); cursor: pointer; }
.wr-stepper li.is-done:hover .wr-step-name { text-decoration: underline; text-underline-offset: 3px; }
.wr-stepper li.is-done::after { background: var(--mint); }
.wr-stepper li.is-done .wr-step-no { border-color: var(--mint); color: var(--ink); background: var(--mint); font-size: 0; }
.wr-stepper li.is-done .wr-step-no::after { content: "✓"; font-size: 15px; }

.wr-top-login {
  margin: 0;
  color: rgba(243, 234, 211, .7);
  font-size: 14px;
  white-space: nowrap;
}

.wr-top-login a { color: var(--yellow); font-weight: 700; }

/* ---------- Panel: scrollable step area + fixed action bar ---------- */
.wr-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
}

.wr-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px var(--pad-x) 24px;
}

.wr-form { display: contents; }

.wr-alert {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 11px 14px;
  border: 1.5px solid var(--red);
  border-left-width: 5px;
  border-radius: 12px;
  color: #7A1015;
  background: var(--white);
  font-size: 14px;
}

.wr-alert.is-info { border-color: var(--ink); color: var(--ink); }

.wr-step {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.wr-step.is-active { animation: wr-step-in .3s var(--ease); }

@keyframes wr-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.wr-step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 18px;
}

.wr-step h2 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  outline: none;
}

.wr-lead { max-width: 64ch; margin: 0; color: var(--stone); }
.wr-small { margin: 0 0 14px; color: var(--stone); font-size: 14px; }
.wr-small b { color: var(--ink); overflow-wrap: anywhere; }

.wr-section-label {
  margin: 20px 0 10px;
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wr-optional { margin-left: 4px; color: var(--stone); font-size: 12px; font-weight: 400; }

/* ---------- Controls ---------- */
.wr-label {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 700;
}

.wr-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  transition: border-color .15s ease;
}

select.wr-input { padding-right: 32px; }
.wr-input:hover { border-color: var(--stone); }

.wr-input:focus {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px var(--yellow);
}

.wr-input:disabled { color: var(--mute); background: #F7F2E6; cursor: not-allowed; }
.wr-input.is-invalid { border-color: var(--red); }

.wr-grid { display: grid; gap: 14px 16px; }
.wr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wr-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wr-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wr-span-2 { grid-column: span 2; }
.wr-span-4 { grid-column: 1 / -1; }
.wr-field { min-width: 0; }

.wr-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}

.wr-btn svg,
.wr-back svg,
.wr-perks svg,
.wr-verified-icon svg,
.wr-plan-check svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wr-btn svg { width: 18px; height: 18px; stroke-width: 2.2; }
.wr-btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.wr-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.wr-btn:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.wr-btn.is-loading { cursor: progress; opacity: .8; }

.wr-btn.is-loading::after {
  width: 16px;
  height: 16px;
  content: "";
  border: 2px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: wr-spin .7s linear infinite;
}

@keyframes wr-spin { to { transform: rotate(360deg); } }

.wr-btn-ghost { border-width: 2px; background: transparent; box-shadow: none; }
.wr-btn-ghost:hover:not(:disabled) { background: var(--cream); box-shadow: none; transform: none; }
.wr-btn-block { width: 100%; }
.wr-btn-block + .wr-btn-block { margin-top: 10px; }

.wr-link {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: none;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.wr-link:disabled { color: var(--stone); text-decoration: none; cursor: default; }

.wr-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.wr-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.wr-check a { font-weight: 700; }

.wr-bot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Step 1: intro + verification card ---------- */
.wr-step-email {
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  align-items: center;
  gap: 32px 64px;
}

.wr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.wr-kicker::before { width: 20px; height: 2px; content: ""; background: currentColor; }

.wr-step-email h2 {
  margin-bottom: 12px;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: .92;
}

.wr-step-email h2 span {
  padding: 0 .08em;
  background: var(--yellow);
}

.wr-perks {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.wr-perks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.wr-perks svg {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  stroke-width: 2.6;
}

.wr-card {
  padding: 26px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.wr-card h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.wr-google { display: flex; justify-content: center; min-height: 44px; }

.wr-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--stone);
  font-size: 13px;
}

.wr-divider::before,
.wr-divider::after { flex: 1; height: 1px; content: ""; background: var(--line); }

.wr-inline { display: flex; gap: 10px; }
.wr-inline .wr-input { flex: 1 1 auto; min-width: 0; }

.wr-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: var(--stone);
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.wr-back svg { width: 16px; height: 16px; stroke-width: 2.4; }

.wr-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.wr-otp-box {
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--display);
  font-size: 28px;
  text-align: center;
}

.wr-otp-box:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--yellow); background: var(--white); }
.wr-otp.is-error .wr-otp-box { border-color: var(--red); animation: wr-shake .35s; }

@keyframes wr-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.wr-fine { margin: 12px 0 0; color: var(--stone); font-size: 14px; }

.wr-verified {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.wr-verified-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
}

.wr-verified-icon svg { width: 20px; height: 20px; stroke-width: 2.6; }
.wr-verified small { display: block; color: var(--stone); font-size: 13px; }
.wr-verified strong { display: block; overflow-wrap: anywhere; font-size: 16px; }

/* ---------- Step 2: billing cycle, plans, industries ---------- */
.wr-cycle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.wr-cycle label { position: relative; cursor: pointer; }
.wr-cycle input { position: absolute; opacity: 0; pointer-events: none; }

.wr-cycle span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.wr-cycle em {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green);
  font-size: 11px;
  font-style: normal;
}

.wr-cycle input:checked + span { color: var(--paper); background: var(--ink); }
.wr-cycle input:focus-visible + span { box-shadow: 0 0 0 3px var(--yellow); }

.wr-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.wr-industries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wr-plan,
.wr-industry {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s var(--ease);
}

.wr-plan { padding: 16px; }
.wr-industry { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px 14px; }

.wr-plan input,
.wr-industry input { position: absolute; opacity: 0; pointer-events: none; }

.wr-plan:hover,
.wr-industry:not(.is-disabled):hover { border-color: var(--ink); }

.wr-plan:has(input:checked) { padding: 15px; border: 2.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.wr-industry:has(input:checked) { padding: 11px 13px; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }

.wr-plan:has(input:focus-visible),
.wr-industry:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wr-plan-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 28px; }
.wr-plan-top strong { font-size: 16px; line-height: 1.2; }

.wr-plan-top em,
.wr-industry em {
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wr-plan-top em.is-dark { color: var(--paper); background: var(--ink); }

.wr-plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.wr-plan-price b { font-family: var(--display); font-size: 30px; line-height: 1; }
.wr-plan-price small { color: var(--stone); font-size: 13px; }
.wr-plan-note { color: var(--green); font-size: 12.5px; font-weight: 700; }
.wr-plan-limits { color: var(--ink); font-size: 13px; font-weight: 700; }

.wr-plan-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wr-plan-check {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: transparent;
}

.wr-plan-check svg { width: 14px; height: 14px; stroke-width: 2.8; }
.wr-plan:has(input:checked) .wr-plan-check { border-color: var(--ink); color: var(--ink); background: var(--yellow); }

.wr-industry strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wr-industry em.is-active { color: var(--white); background: var(--green); }
.wr-industry em.is-beta { color: var(--ink); background: var(--yellow); }
.wr-industry em.is-coming_soon { color: var(--stone); background: var(--cream); }
.wr-industry.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Step 3: address ---------- */
.wr-postal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 14px;
  border: 1.5px dashed var(--green);
  border-radius: 12px;
  background: #F1F8F3;
}

.wr-postal span,
.wr-postal small { color: var(--stone); font-size: 13px; }
.wr-postal strong { font-size: 17px; }

/* ---------- Step 4: owner + enterprise | review + consent ---------- */
.wr-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: start;
  gap: 28px;
}

.wr-phone { display: flex; align-items: stretch; }

.wr-phone span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  color: var(--stone);
  background: var(--cream);
  font-weight: 700;
}

.wr-phone .wr-input { border-radius: 0 12px 12px 0; }

.wr-billing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  min-height: 46px;
}

.wr-billing-row .wr-check { flex: 0 0 auto; }
.wr-billing-row .wr-input { flex: 1 1 260px; width: auto; }

.wr-enterprise {
  margin-top: 18px;
  padding: 16px;
  border: 1.5px dashed var(--ink);
  border-radius: 16px;
  background: #FFF8DC;
}

.wr-enterprise-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-bottom: 12px; }
.wr-enterprise-head span { color: var(--stone); font-size: 13px; }

.wr-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 12px;
  border: 1.5px dashed var(--stone);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.wr-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wr-upload:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow); }

.wr-upload-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 700;
}

.wr-upload strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.wr-upload small { display: block; color: var(--stone); font-size: 11.5px; }

.wr-split-side {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.wr-review .wr-section-label { margin-top: 0; }
.wr-review dl { display: grid; margin: 0; }

.wr-review dl div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.wr-review dt { color: var(--stone); font-size: 13px; }
.wr-review dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }
.wr-consents { display: grid; gap: 10px; }
.wr-consents .wr-check { font-size: 13.5px; }

/* ---------- Action bar ---------- */
.wr-nav {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.wr-nav-summary {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  min-width: 0;
  margin: 0;
  color: var(--stone);
  font-size: 13.5px;
  text-align: center;
}

.wr-nav-summary b { color: var(--ink); overflow-wrap: anywhere; }
.wr-nav [data-prev][hidden] + .wr-nav-summary { padding-left: 0; }

/* ---------- Short desktop windows: tighter spacing so steps still fit ---------- */
@media (min-width: 961px) and (max-height: 760px) {
  .wr-shell { padding: 10px; }
  .wr-top { padding: 10px 24px; }
  .wr-scroll { padding: 18px var(--pad-x) 16px; }
  .wr-step h2 { font-size: 28px; }
  .wr-step-head { margin-bottom: 12px; }
  .wr-section-label { margin: 14px 0 8px; }
  .wr-plan-desc { -webkit-line-clamp: 1; }
  .wr-nav { padding: 9px var(--pad-x); }
  .wr-btn { min-height: 44px; }
  .wr-input { min-height: 42px; }
  .wr-step-email h2 { font-size: clamp(34px, 3.6vw, 48px); }
  .wr-perks { margin-top: 14px; }
  .wr-card { padding: 20px; }
  .wr-grid { gap: 10px 14px; }
  .wr-label { margin-bottom: 3px; }
  .wr-enterprise { margin-top: 12px; padding: 12px 14px; }
  .wr-enterprise-head { margin-bottom: 8px; }
  .wr-split-side { gap: 10px; padding: 14px; }
  .wr-review dl div { padding: 4px 0; }
  .wr-consents { gap: 7px; }
  .wr-billing-row { min-height: 42px; }
}

/* Very short windows (~540px): drop the line under each step title. */
@media (min-width: 961px) and (max-height: 600px) {
  .wr-step-head .wr-lead { display: none; }
  .wr-step h2 { font-size: 26px; }
}

/* ---------- Tablets ---------- */
@media (max-width: 1180px) {
  :root { --pad-x: 28px; }
  .wr-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-split { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .wr-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wr-top { gap: 20px; }
  .wr-stepper li:not(.is-active) .wr-step-name { display: none; }
}

/* ---------- Phones and small tablets: the page scrolls normally ---------- */
@media (max-width: 960px) {
  html, body { height: auto; }
  :root { --pad-x: 20px; }

  .wr-shell { height: auto; min-height: 100dvh; padding: 0; }

  .wr-frame {
    display: block;
    height: auto;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .wr-top {
    position: sticky;
    z-index: 5;
    top: 0;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    padding: 10px 16px;
  }

  .wr-top-login { display: none; }
  .wr-stepper { margin: 0; }
  .wr-step-no { width: 26px; height: 26px; font-size: 12px; }
  .wr-stepper li { gap: 6px; font-size: 13px; }

  .wr-panel { min-height: calc(100dvh - 50px); }
  .wr-scroll { overflow: visible; padding: 22px var(--pad-x) 20px; }

  .wr-step-email { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .wr-step-email h2 { font-size: 40px; }
  .wr-card { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }

  .wr-split { grid-template-columns: 1fr; }

  .wr-nav {
    position: sticky;
    z-index: 5;
    bottom: 0;
    padding: 10px var(--pad-x) calc(10px + env(safe-area-inset-bottom));
  }

  .wr-nav-summary { display: none; }
  .wr-nav [data-next],
  .wr-nav [data-submit] { margin-left: auto; }
}

@media (max-width: 640px) {
  .wr-grid-2,
  .wr-grid-3,
  .wr-grid-4,
  .wr-plans,
  .wr-industries { grid-template-columns: 1fr; }

  .wr-span-2 { grid-column: auto; }
  .wr-step h2 { font-size: 30px; }
  .wr-step-head { align-items: flex-start; }

  .wr-stepper li.is-active .wr-step-name { display: none; }

  .wr-inline { flex-direction: column; }
  .wr-inline .wr-btn { width: 100%; }

  .wr-otp { gap: 6px; }
  .wr-otp-box { height: 52px; font-size: 26px; }

  .wr-nav .wr-btn { flex: 1 1 auto; padding: 0 14px; }
  .wr-nav [data-prev] { flex: 0 0 auto; }
  .wr-nav [data-prev] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .wr-frame,
  .wr-step.is-active { animation: none; }
  .wr-btn,
  .wr-plan,
  .wr-industry,
  .wr-stepper li::after { transition: none; }
}
