:root {
  color-scheme: light;
  --page: #f7f8fa;
  --card: rgba(255, 255, 255, 0.9);
  --text: #111827;
  --muted: #667085;
  --line: #e6e8ec;
  --input: #ffffff;
  --accent: #1664ff;
  --accent-dark: #0c4ed8;
  --accent-soft: #edf4ff;
  --success: #087a55;
  --success-soft: #eaf8f2;
  --danger: #c83349;
  --warning: #8a5a00;
  --warning-soft: #fff8e7;
  --shadow: 0 18px 50px rgba(24, 39, 75, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(22, 100, 255, 0.09), transparent 30rem),
    radial-gradient(circle at 100% 28%, rgba(71, 203, 163, 0.08), transparent 28rem),
    var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100% - 32px, 680px);
  margin: 0 auto;
  padding: max(52px, env(safe-area-inset-top)) 0 calc(40px + env(safe-area-inset-bottom));
}

.hero {
  padding: 12px 4px 28px;
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 570px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

code {
  padding: 0.12em 0.36em;
  border-radius: 6px;
  background: #eef0f3;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(8, 122, 85, 0.16);
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.privacy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ea97c;
  box-shadow: 0 0 0 4px rgba(30, 169, 124, 0.12);
}

.card {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid rgba(230, 232, 236, 0.92);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.domain-count {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

form {
  display: grid;
}

label {
  margin: 0 0 9px;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #d9dde4;
  border-radius: 13px;
  outline: none;
  background: var(--input);
  color: var(--text);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(22, 100, 255, 0.12);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-wrap {
  position: relative;
}

.field-wrap input {
  padding-right: 46px;
}

.clear-button {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #eef0f3;
  color: #667085;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.field-help,
.field-error {
  min-height: 19px;
  margin: 7px 0 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-error {
  min-height: 0;
  margin: -12px 0 17px;
  color: var(--danger);
  font-weight: 600;
}

.domain-panel {
  margin: 6px 0 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfc;
  overflow: hidden;
}

.domain-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}

.domain-panel summary::-webkit-details-marker {
  display: none;
}

.domain-panel summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 21px;
  font-weight: 400;
}

.domain-panel[open] summary::after {
  content: "−";
}

.summary-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.domain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 15px 16px;
  list-style: none;
}

.domain-list li {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: white;
  color: #475467;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 9px 22px rgba(22, 100, 255, 0.24);
  transition: background 160ms ease, transform 100ms ease;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.success-panel {
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: var(--success-soft);
  color: var(--success);
}

.success-panel:not([hidden]) {
  display: flex;
}

.success-panel p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.success-icon {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-weight: 800;
}

.info-card h2 {
  margin-bottom: 22px;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.steps li > span {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #eef0f3;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.steps p {
  margin: 3px 0 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

.warning {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #f3deb0;
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
  line-height: 1.55;
}

footer {
  padding: 8px 0;
  color: #98a2b3;
  text-align: center;
  font-size: 12px;
}

footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 680px);
    padding-top: max(34px, env(safe-area-inset-top));
  }

  .hero {
    padding-bottom: 22px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .domain-list {
    grid-template-columns: 1fr;
  }

  .summary-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
