/* PAPMMI Domains — mobile-first public search UI (system fonts only) */

:root {
  --bg-top: #0f2a33;
  --bg-bottom: #1a3d47;
  --surface: #f7fbfb;
  --ink: #122126;
  --muted: #4a6068;
  --accent: #0d7a6f;
  --accent-hover: #0a635b;
  --available: #0b6b3a;
  --available-bg: #e8f6ee;
  --unavailable: #8a3b12;
  --unavailable-bg: #f8eee6;
  --error: #8b1e2d;
  --error-bg: #fcecee;
  --border: #cfdce0;
  --focus: #1f8a9e;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(8, 28, 34, 0.2);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 12% -8%, #2a6a74 0%, transparent 55%),
    radial-gradient(820px 460px at 100% 0%, #145a52 0%, transparent 48%),
    linear-gradient(165deg, var(--bg-top), var(--bg-bottom));
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
}

.shell {
  width: min(100%, 34rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-header {
  text-align: center;
}

.brand {
  margin: 0;
  font-size: clamp(1.65rem, 4.8vw, 2.15rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #f4fbfa;
  line-height: 1.15;
}

.brand-tagline {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: rgba(232, 244, 242, 0.8);
}

.hero {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.1rem 1.35rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-copy {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-form {
  margin: 0;
}

.search-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#domain-query {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
}

#domain-query::placeholder {
  color: #80949a;
}

#domain-query:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

#search-button {
  min-height: 3.1rem;
  padding: 0.8rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
}

#search-button:hover:not(:disabled) {
  background: var(--accent-hover);
}

#search-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

#search-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.tld-note {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.status-line {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.status-line.is-loading {
  color: var(--ink);
}

.result {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.result.is-available {
  border-color: #b7dfc8;
  background: var(--available-bg);
}

.result.is-unavailable {
  border-color: #e5cbb8;
  background: var(--unavailable-bg);
}

.result.is-error {
  border-color: #efc0c7;
  background: var(--error-bg);
}

.result-domain {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-word;
}

.result-status {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  font-weight: 650;
}

.result.is-available .result-status {
  color: var(--available);
}

.result.is-unavailable .result-status {
  color: var(--unavailable);
}

.result.is-error .result-status {
  color: var(--error);
}

.result-price {
  margin: 0.7rem 0 0;
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.result-price-note {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.result-help {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.925rem;
}

.site-footer {
  text-align: center;
  padding-top: 0.15rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(232, 244, 242, 0.7);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 560px) {
  .page {
    padding: 1.5rem 1.25rem;
  }

  .shell {
    width: min(100%, 36rem);
    gap: 0.95rem;
  }

  .hero {
    padding: 1.5rem 1.5rem 1.55rem;
  }

  .hero-copy {
    margin-bottom: 1.1rem;
  }

  .search-row {
    flex-direction: row;
    align-items: stretch;
  }

  #domain-query {
    flex: 1;
  }

  #search-button {
    min-width: 7.75rem;
  }
}
