:root {
  --brand: #10b981;
  --brand-light: #34d399;
  --brand-deep: #047857;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dcefe8;
  --soft: #ecfdf5;
  --surface: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 16px 34px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(52, 211, 153, 0.24), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(16, 185, 129, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fffc 0%, #f8fafc 54%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.plan-selection-step {
  background:
    radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.24), transparent 36%),
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.2), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(135deg, #ecfdf5 0%, #dffbf2 38%, #f8fffc 72%, #eefcff 100%);
  color: var(--ink);
}

body.plan-selection-step::before {
  background:
    linear-gradient(rgba(4, 120, 87, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 120, 87, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 54%);
  background-size: 38px 38px, 38px 38px, 100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 92%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.signup-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 48px;
  transition: width 0.2s ease;
}

.plan-selection-step .signup-page {
  width: min(1480px, calc(100% - 32px));
  padding-top: 10px;
  padding-bottom: 32px;
}

.signup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(220, 239, 232, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  padding: 12px 14px;
  backdrop-filter: blur(18px);
}

.plan-selection-step .signup-topbar {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
}

.plan-selection-step .home-link {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-deep);
}

.signup-brand img {
  width: clamp(184px, 18vw, 248px);
  height: auto;
}

.plan-selection-step .signup-brand img {
  width: clamp(168px, 15vw, 220px);
}

.home-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.home-link,
.secondary-action {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand-deep);
}

.primary-action {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(16, 185, 129, 0.26);
}

.home-link:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.signup-layout {
  min-height: calc(100vh - 118px);
  display: grid;
  grid-template-columns: minmax(0, 840px);
  justify-content: center;
  align-items: start;
  padding: clamp(32px, 6vw, 64px) 0 0;
}

.plan-selection-step .signup-layout {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
  padding-top: clamp(14px, 2.5vw, 24px);
}

#signupProgressText,
.recommended-tag,
.popular-tag,
.popular-banner {
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-panel {
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.78), #ffffff 58%),
    #ffffff;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 32px);
}

.plan-selection-step .signup-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.plan-selection-step .signup-panel h1 {
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.62rem);
}

.plan-selection-step .signup-panel-head {
  align-items: center;
  gap: 12px;
  width: min(720px, 100%);
  margin-inline: auto;
  padding-inline: 4px;
}

.plan-selection-step #signupProgressText {
  background: rgba(16, 185, 129, 0.12);
  color: var(--brand-deep);
  padding: 7px 10px;
}

.signup-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.signup-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.06;
}

#signupProgressText {
  white-space: nowrap;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-deep);
  padding: 8px 11px;
}

.signup-progress {
  height: 9px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
}

.plan-selection-step .signup-progress {
  width: min(720px, 100%);
  height: 8px;
  margin: 8px auto 0;
  background: rgba(4, 120, 87, 0.12);
}

.signup-progress span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  transition: width 0.2s ease;
}

.signup-card {
  display: grid;
  gap: 18px;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 5vw, 34px);
}

.plan-selection-step .signup-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  gap: 10px;
  margin-top: 10px;
  padding: 0;
  backdrop-filter: none;
}

.signup-step {
  display: grid;
  gap: 18px;
}

.signup-step h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.72rem, 4vw, 2.52rem);
  line-height: 1.08;
}

.signup-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.plan-select-step {
  gap: 8px;
}

.plan-select-header {
  display: grid;
  justify-items: center;
  gap: 11px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.plan-selection-step .plan-select-header {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 clamp(4px, 1vw, 8px);
  overflow: visible;
}

.plan-selection-step .plan-select-header::before {
  display: none;
}

.plan-selection-step .plan-select-header > * {
  position: relative;
  z-index: 1;
}

.plan-selection-step .plan-select-header h3 {
  color: var(--ink);
  font-size: clamp(1.48rem, 3vw, 2.1rem);
}

.plan-selection-step .plan-select-header p {
  color: #475569;
  line-height: 1.35;
}

.plan-select-header p strong {
  color: var(--brand-deep);
}

.plan-selection-step .plan-select-header p strong {
  color: var(--brand-deep);
}

.free-trial-callout {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  width: min(560px, 100%);
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(110, 231, 183, 0.44);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.96), rgba(52, 211, 153, 0.84) 46%, rgba(14, 165, 233, 0.82)),
    #10b981;
  box-shadow:
    0 16px 34px rgba(16, 185, 129, 0.2),
    0 0 24px rgba(52, 211, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  padding: 10px 12px;
}

.free-trial-callout::before {
  content: "30";
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.72));
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 950;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 22px rgba(4, 120, 87, 0.22);
}

.free-trial-callout::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -20%;
  width: 38%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0.6;
}

.free-trial-callout span {
  color: #ffffff;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.1;
}

.free-trial-callout p {
  margin: 0;
  grid-column: 2;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.36;
}

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

.choice-card,
.plan-choice-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.choice-card {
  padding: 16px;
}

.choice-card strong {
  display: block;
  font-size: 1.03rem;
}

.choice-card small,
.plan-choice-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.42;
}

.choice-card small {
  margin-top: 6px;
}

.choice-card.active {
  border-color: var(--brand);
  background: var(--soft);
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.13);
}

.signup-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 880;
}

.signup-field input,
.signup-field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 15px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.signup-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 23px,
    calc(100% - 12px) 23px;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.signup-field input:focus,
.signup-field select:focus {
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.address-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(118px, 0.75fr) minmax(116px, 0.75fr);
  gap: 12px;
}

.signup-field-note {
  margin: -2px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.lookup-panel,
.summary-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 18px;
  background: var(--soft);
  padding: 16px;
}

.lookup-panel[data-lookup-status="error"],
.lookup-panel[data-lookup-status="notFound"] {
  border-color: rgba(202, 138, 4, 0.38);
  background: #fefce8;
}

.lookup-panel p,
.summary-panel p {
  margin: 0;
  color: #475569;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-grid span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 12px;
}

.summary-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.signup-redirect-debug {
  margin: 0;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(15, 118, 110, 0.28);
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.82);
  color: #0f766e;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.legal-agreement-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.78), rgba(255, 255, 255, 0.96)),
    #ffffff;
  padding: 16px;
}

.legal-agreement-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.48;
}

.legal-agreement-check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.legal-agreement-card p,
.legal-agreement-card small {
  margin: 0;
  color: #475569;
  font-weight: 750;
  line-height: 1.55;
}

.legal-agreement-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-inline-button {
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 950;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-inline-button:hover,
.legal-inline-button:focus-visible {
  color: #065f46;
}

.plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(158px, 1fr));
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 14px 8px 52px;
  scroll-padding-inline: 8px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(16, 185, 129, 0.45) rgba(100, 116, 139, 0.1);
}

.plan-scroll-shell {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  margin: -8px -8px -24px;
}

.plan-scroll-shell::before,
.plan-scroll-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 12px;
  z-index: 2;
  width: 34px;
  pointer-events: none;
}

.plan-scroll-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), transparent);
}

.plan-scroll-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.96), transparent);
}

.plan-selection-step .plan-choice-grid {
  scrollbar-color: rgba(16, 185, 129, 0.58) rgba(4, 120, 87, 0.08);
  padding-bottom: 132px;
}

.plan-selection-step .plan-scroll-shell::before {
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.96), transparent);
}

.plan-selection-step .plan-scroll-shell::after {
  background: linear-gradient(270deg, rgba(236, 253, 245, 0.96), transparent);
}

.plan-choice-card {
  --tier: var(--brand);
  --tier-soft: var(--soft);
  --tier-glow: rgba(16, 185, 129, 0.12);
  --tier-deep: var(--brand-deep);
  --tier-card-bg:
    linear-gradient(160deg, rgba(248, 252, 250, 0.96), rgba(255, 255, 255, 0.98));
  --tier-action-bg: rgba(236, 253, 245, 0.62);
  position: relative;
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 270px;
  overflow: visible;
  border-color: rgba(190, 218, 208, 0.78);
  background: var(--tier-card-bg);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  padding: 26px 16px 16px;
  scroll-snap-align: start;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.plan-choice-card::before {
  content: "";
  position: absolute;
  inset: 10px 12px auto;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(4, 120, 87, 0.78), rgba(16, 185, 129, 0.7), rgba(209, 250, 229, 0.7));
  box-shadow: none;
}

.plan-choice-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.38);
  box-shadow:
    0 22px 44px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-choice-card:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.38);
  outline-offset: 3px;
}

.plan-choice-card.active {
  border-color: var(--tier);
  background: var(--tier-card-bg);
  box-shadow:
    0 0 0 2px rgba(16, 185, 129, 0.52),
    0 20px 42px rgba(16, 185, 129, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.plan-choice-card.recommended {
  border-color: rgba(16, 185, 129, 0.44);
}

.plan-choice-card.tier-basic,
.plan-choice-card.tier-core,
.plan-choice-card.tier-plus,
.plan-choice-card.tier-pro,
.plan-choice-card.tier-enterprise {
  --tier: var(--brand);
  --tier-deep: var(--brand-deep);
  --tier-soft: var(--soft);
  --tier-glow: rgba(16, 185, 129, 0.12);
  --tier-action-bg: rgba(236, 253, 245, 0.62);
  --tier-card-bg:
    linear-gradient(160deg, rgba(248, 252, 250, 0.96), rgba(255, 255, 255, 0.98));
}

.plan-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 20px;
}

.recommended-tag,
.popular-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
}

.recommended-tag {
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.9);
  color: var(--brand-deep);
  box-shadow: none;
}

.popular-tag {
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: rgba(236, 253, 245, 0.78);
  color: var(--brand-deep);
  box-shadow: none;
}

.popular-banner {
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 28px);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 0 0 12px 12px;
  background: rgba(236, 253, 245, 0.92);
  color: var(--brand-deep);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 5px 11px 6px;
  pointer-events: none;
}

.plan-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
}

.plan-card-heading strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.12;
}

.plan-price {
  color: var(--ink);
  flex: 0 0 auto;
  max-width: 96px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.18;
  opacity: 0.72;
  text-align: right;
}

.truck-limit-hero {
  display: block;
  min-height: 52px;
  color: var(--ink);
  font-size: clamp(1.32rem, 1.62vw, 1.78rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.02;
}

.plan-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--tier) 38%, white);
  border-radius: 12px;
  background: var(--tier-action-bg);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
  text-align: center;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.plan-choice-card.active .plan-card-action {
  border-color: var(--tier);
  background: linear-gradient(135deg, var(--tier-deep), var(--tier));
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(16, 185, 129, 0.16);
}

.plan-choice-card.contact-only .plan-card-action {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(236, 253, 245, 0.72);
  color: var(--brand-deep);
}

.plan-limit-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-limit-list li {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.36;
}

.plan-limit-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--tier);
  vertical-align: 0.08em;
}

.signup-message {
  min-height: 20px;
  margin: 0;
  color: var(--brand-deep);
  font-weight: 850;
  line-height: 1.45;
}

.signup-message.error {
  color: #b91c1c;
}

.signup-dialog {
  width: min(480px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  border: 1px solid rgba(220, 239, 232, 0.92);
  border-radius: 18px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legal-policy-dialog {
  width: min(760px, calc(100vw - 28px));
}

.email-confirmation-dialog {
  width: min(520px, calc(100vw - 28px));
}

.signup-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.signup-dialog-head,
.signup-dialog-body,
.signup-dialog-actions {
  padding: 18px;
}

.signup-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.signup-dialog-head h2 {
  margin: 3px 0 0;
  font-size: 1.35rem;
}

.signup-dialog-head .eyebrow {
  margin: 0;
}

.dialog-close-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.signup-dialog-body {
  display: grid;
  gap: 10px;
}

.legal-policy-dialog-body {
  max-height: min(62vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.signup-dialog-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.signup-dialog-body a {
  color: var(--brand-deep);
  font-weight: 950;
}

.email-confirmation-dialog .signup-dialog-head {
  border-bottom-color: rgba(16, 185, 129, 0.18);
  background:
    radial-gradient(circle at 18% 0%, rgba(52, 211, 153, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 255, 255, 0.98));
}

.email-confirmation-dialog .signup-dialog-body {
  justify-items: center;
  padding-top: 22px;
  text-align: center;
}

.email-confirmation-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(52, 211, 153, 0.24), rgba(236, 253, 245, 0.92)),
    #ffffff;
  color: var(--brand-deep);
  font-size: 1.55rem;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(4, 120, 87, 0.14);
}

.email-confirmation-dialog .signup-dialog-body p {
  max-width: 390px;
}

.email-confirmation-secondary {
  color: #475569 !important;
}

.email-confirmation-address {
  width: min(100%, 390px);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 14px;
  background: var(--soft);
  color: var(--brand-deep) !important;
  font-weight: 950 !important;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.legal-policy-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.legal-policy-meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 8px;
}

.legal-policy-meta-row {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.82);
  padding: 10px;
}

.legal-policy-meta-row dt,
.legal-policy-meta-row dd {
  margin: 0;
}

.legal-policy-meta-row dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-policy-meta-row dd {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.legal-policy-dialog-body h3,
.legal-policy-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(203, 213, 225, 0.72);
}

.legal-policy-dialog-body h3,
.legal-policy-section h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.28;
}

.legal-policy-dialog-body h4 {
  margin: 16px 0 6px;
  color: #0f766e;
  font-size: 0.9rem;
  line-height: 1.32;
}

.legal-policy-dialog-body p,
.legal-policy-dialog-body li,
.legal-policy-section p,
.legal-policy-section li {
  color: #334155;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.62;
}

.legal-policy-dialog-body ol,
.legal-policy-dialog-body ul,
.legal-policy-section ul {
  margin: 6px 0 12px;
  padding-left: 22px;
}

.signup-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 0;
}

.signup-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.plan-selection-step .signup-actions {
  position: sticky;
  z-index: 20;
  bottom: env(safe-area-inset-bottom, 0);
  width: min(760px, 100%);
  margin: -60px auto 0;
  align-items: center;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 253, 245, 0.78)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    0 -8px 24px rgba(4, 120, 87, 0.08),
    0 18px 42px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  padding: 6px;
  backdrop-filter: blur(18px);
}

.signup-actions .primary-action,
.signup-actions .secondary-action {
  min-width: 160px;
}

.plan-selection-step .signup-actions .primary-action,
.plan-selection-step .signup-actions .secondary-action {
  min-width: min(220px, 48%);
}

@media (max-width: 980px) {
  .signup-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

}

@media (max-width: 700px) {
  .signup-page {
    width: calc(100% - 28px);
    padding-top: 10px;
  }

  .signup-topbar,
  .signup-panel-head,
  .signup-actions {
    display: grid;
  }

  .signup-topbar {
    gap: 10px;
  }

  .signup-brand img {
    width: min(206px, 70vw);
  }

  .home-link,
  .signup-actions .primary-action,
  .signup-actions .secondary-action {
    width: 100%;
  }

  .signup-layout {
    min-height: auto;
    padding-top: 28px;
  }

  .plan-selection-step .signup-layout {
    padding-top: 14px;
  }

  .choice-grid,
  .summary-grid,
  .address-field-grid {
    grid-template-columns: 1fr;
  }

  .plan-choice-card {
    min-height: auto;
  }

  .plan-selection-step .signup-panel,
  .plan-selection-step .signup-card,
  .plan-selection-step .plan-select-header {
    border-radius: 24px;
  }

  .free-trial-callout {
    width: 100%;
    border-radius: 18px;
    padding: 7px 9px;
  }

  .free-trial-callout::before {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 0.86rem;
  }

  .free-trial-callout span {
    font-size: 0.82rem;
  }

  .free-trial-callout p {
    font-size: 0.72rem;
  }

  .plan-choice-grid {
    grid-template-columns: repeat(6, minmax(224px, 82vw));
    padding-bottom: 142px;
  }

  .plan-selection-step .signup-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    margin-top: -60px;
    border-radius: 18px;
    padding: 6px;
  }

  .plan-selection-step .signup-actions .primary-action,
  .plan-selection-step .signup-actions .secondary-action {
    min-width: 0;
    width: 100%;
  }
}
