:root {
  --brand-blue: #2EB7E9;
}
html, body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.brand-label {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 10;
  height: 100px;
}
.hero {
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #ffffff;
  box-sizing: border-box;
}
.content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-sizing: border-box;
}
.avatar-stage {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#fx-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}
#ben-photo, #ben-photo-fallback {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}
#ben-photo {
  object-fit: cover;
  background: #eef7fb;
  box-shadow: 0 8px 30px rgba(46, 183, 233, 0.28);
}
#ben-photo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-blue), #1c8fbf);
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(46, 183, 233, 0.28);
}

/* ---------- Rotating headline ---------- */
h1 {
  margin: 0px 0 8px;
  font-size: 28px;
  color: #10202b;
  text-align: center;
}
.rotating-word {
  display: inline-block;
  color: var(--brand-blue);
  min-width: 260px;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wordOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}
.rotating-word.out { animation: wordOut 0.3s ease forwards; }
.rotating-word.in  { animation: wordIn 0.3s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  .rotating-word.out, .rotating-word.in { animation: none !important; opacity: 1 !important; transform: none !important; }
}

p.description {
  margin: 0 0 18px;
  color: #5b6b73;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.4;
}
#status {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 22px;
  min-height: 20px;
}
.buttons {
  display: flex;
  gap: 12px;
}
button {
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid #d8e6ec;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #10202b;
  transition: background 0.15s, color 0.15s, border-color 0.15s, opacity 0.15s;
}
button.primary {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.text-fallback {
  display: none;
  gap: 10px;
  margin-top: 4px;
}
.text-fallback input {
  padding: 12px 18px;
  font-size: 15px;
  border-radius: 999px;
  border: 1px solid #d8e6ec;
  min-width: 260px;
  font-family: inherit;
}
.text-fallback input:disabled {
  opacity: 0.5;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Pricing ---------- */
.pricing {
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 80px 24px 100px;
}
.pricing .wrap {
  max-width: 1080px;
  margin: 0 auto;
}
.pricing header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.pricing .eyebrow {
  color: var(--brand-blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}
.pricing h2 {
  font-size: 32px;
  color: #10202b;
  margin: 0 0 14px;
  line-height: 1.25;
}
.pricing header p {
  color: #5b6b73;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}
.pricing .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing .card {
  background: #fff;
  border: 1px solid #e5edf1;
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(16, 32, 43, 0.04);
}
.pricing .card.featured {
  border-color: var(--brand-blue);
  box-shadow: 0 12px 32px rgba(46, 183, 233, 0.18);
  position: relative;
}
.pricing .badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.pricing .tier-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.pricing .price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.pricing .price .amount {
  font-size: 34px;
  font-weight: 700;
  color: #10202b;
}
.pricing .price .period {
  font-size: 14px;
  color: #8a9aa3;
}
.pricing .tier-desc {
  color: #5b6b73;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 42px;
}
.pricing .features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}
.pricing .features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #2b3a42;
  line-height: 1.5;
  padding: 7px 0;
  border-top: 1px solid #f0f4f6;
}
.pricing .features li:first-child {
  border-top: none;
}
.pricing .features li.included-all {
  color: #7c8a92;
}
.pricing .check {
  color: var(--brand-blue);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing .cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f5f8f9;
  color: #10202b;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid #d8e6ec;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pricing .card.featured .cta {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.pricing .cta:hover {
  opacity: 0.9;
}
.pricing .all-include {
  text-align: center;
  max-width: 720px;
  margin: 48px auto 0;
  color: #5b6b73;
  font-size: 14px;
  line-height: 1.6;
}
.pricing .all-include strong {
  color: #10202b;
}
@media (max-width: 860px) {
  .pricing .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Domain check modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 43, 0.45);
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
  box-sizing: border-box;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(16, 32, 43, 0.18);
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #d8e6ec;
  background: #fff;
  color: #5b6b73;
  font-size: 16px;
  line-height: 1;
}
.modal-domain {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  word-break: break-all;
}
.modal-icon {
  font-size: 38px;
  margin-bottom: 10px;
  line-height: 1;
}
.modal-icon.good { color: #1fa971; }
.modal-icon.bad { color: #c94b4b; }
.modal-title {
  font-size: 19px;
  font-weight: 700;
  color: #10202b;
  margin-bottom: 8px;
}
.modal-subtext {
  color: #5b6b73;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.modal-meta {
  text-align: left;
  background: #f5f8f9;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #2b3a42;
}
.modal-meta .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.modal-meta .row span:first-child {
  color: #7c8a92;
}
.modal-action {
  width: 100%;
  box-sizing: border-box;
}
.modal-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5edf1;
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: modalSpin 0.8s linear infinite;
}
@keyframes modalSpin {
  to { transform: rotate(360deg); }
}