:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #64707d;
  --line: #d9e0e7;
  --panel: #ffffff;
  --canvas: #f5f8fb;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --rose: #c2415d;
  --success: #0f7a47;
  --danger: #b42318;
  --shadow: 0 20px 50px rgba(31, 41, 51, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(245, 248, 251, 0.92), rgba(245, 248, 251, 0.82)),
    var(--canvas);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}

.signup-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
}

.intro {
  margin-top: 46px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro > p:last-child {
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.signup-form {
  margin-top: 34px;
}

label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.92rem;
  font-weight: 750;
}

.domain-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 1px solid #b9c4cf;
  border-radius: 8px;
  padding: 0 15px;
  color: var(--ink);
  background: #fbfdff;
}

input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.18);
  border-color: var(--accent);
}

button {
  height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

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

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.field-help {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status {
  display: none;
  margin-top: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 16px;
  line-height: 1.5;
  background: #fbfdff;
}

.status.is-visible {
  display: block;
}

.status.is-success {
  border-color: rgba(15, 122, 71, 0.28);
  background: #f1fbf6;
}

.status.is-error {
  border-color: rgba(180, 35, 24, 0.26);
  background: #fff5f3;
}

.status-title {
  margin: 0;
  font-weight: 850;
}

.status-detail {
  margin: 6px 0 0;
  color: var(--muted);
}

.status a {
  color: var(--accent-dark);
  font-weight: 800;
}

.site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.status a.site-link {
  color: white;
}

.progress {
  width: 100%;
  height: 10px;
  margin: 14px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6ee;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--rose));
  transition: width 220ms ease;
}

.status dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 12px;
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.status dt {
  color: var(--muted);
}

.status dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.dns-records {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.dns-record {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.record-type {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #e7f4f2;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.dns-record p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dns-record dl {
  margin-top: 12px;
}

code {
  display: inline-block;
  max-width: 100%;
  border-radius: 6px;
  padding: 2px 6px;
  background: #f3f6f8;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.preview-panel {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.photo-card {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-card {
  width: min(430px, 82%);
  position: absolute;
  right: -10px;
  bottom: -26px;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 40px rgba(31, 41, 51, 0.2);
}

.site-card-header {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.site-card-header span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #9aa7b4;
}

.site-card-header span:first-child {
  background: var(--rose);
}

.site-card-body {
  padding: 22px;
}

.site-name {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 850;
  text-transform: uppercase;
}

.site-card h2 {
  margin: 0;
  max-width: 18ch;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.service-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 620px);
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 28px 0 54px;
  }

  .signup-panel {
    padding: 24px;
  }

  .intro {
    margin-top: 34px;
  }

  h1 {
    max-width: 12ch;
  }

  .preview-panel {
    order: -1;
  }

  .site-card {
    right: 14px;
    bottom: -18px;
  }
}

@media (max-width: 540px) {
  .domain-entry {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .site-card {
    position: static;
    width: calc(100% - 22px);
    margin: -34px auto 0;
  }
}
