:root {
  color-scheme: light;
  --ink: #17140f;
  --muted: #665f55;
  --paper: #fffaf0;
  --line: rgba(23, 20, 15, 0.14);
  --yellow: #ffd84d;
  --pink: #ff4f8b;
  --cyan: #19c7d4;
  --green: #22b573;
  --red: #f04438;
  --shadow: 0 24px 80px rgba(31, 21, 8, 0.18);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 216, 77, 0.62), transparent 24rem),
    radial-gradient(circle at 88% 5%, rgba(25, 199, 212, 0.38), transparent 28rem),
    linear-gradient(135deg, #fff8e8 0%, #ffe3ed 45%, #dff9ff 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

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

.topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px;
}

.brand,
nav,
.cart-button {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 900;
  gap: 10px;
}

.brand-mark {
  background: var(--ink);
  border-radius: 8px;
  color: var(--yellow);
  display: grid;
  height: 34px;
  place-items: center;
  width: 34px;
}

nav {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 8px;
  padding: 6px;
}

nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 14px;
}

nav a:hover {
  background: white;
  color: var(--ink);
}

.cart-button,
.primary,
.secondary,
.domain-input button,
.icon-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.cart-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 10px;
  padding: 10px 12px 10px 18px;
}

.cart-button strong {
  background: var(--pink);
  border-radius: 999px;
  color: white;
  display: grid;
  min-width: 28px;
  padding: 4px 8px;
  place-items: center;
}

.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 86px);
  padding: 34px 24px 58px;
}

.hero-copy {
  align-self: start;
}

.eyebrow {
  color: #8f2450;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 5.3vw, 68px);
  max-width: 780px;
}

h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.lead {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  margin: 22px 0 24px;
  max-width: 730px;
}

.search {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 760px;
  padding: 18px;
}

.search label,
.field span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.domain-input {
  align-items: center;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  overflow: hidden;
}

.domain-input input {
  border: 0;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 700;
  min-width: 0;
  outline: 0;
  padding: 18px 16px;
}

.domain-input span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  padding-right: 14px;
  white-space: nowrap;
}

.domain-input button {
  align-self: stretch;
  background: var(--yellow);
  border-left: 2px solid var(--ink);
  color: var(--ink);
  padding: 0 24px;
}

.status {
  color: var(--muted);
  font-weight: 800;
  margin: 12px 2px 0;
}

.status[data-mode="good"] {
  color: var(--green);
}

.status[data-mode="warn"] {
  color: var(--red);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.primary,
.secondary {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
}

.primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 14px 28px rgba(23, 20, 15, 0.22);
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.receipt {
  align-self: center;
  background: #17140f;
  border: 3px solid #17140f;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  overflow: hidden;
  transform: rotate(1.2deg);
}

.receipt-head {
  align-items: center;
  background: var(--yellow);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.receipt-head span {
  color: #5a4b10;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-head strong {
  font-size: 42px;
  font-weight: 900;
}

.domain-card {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 12px;
  padding: 28px 20px;
}

.domain-card code,
.cart-item code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.pulse {
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(34, 181, 115, 0.2);
  height: 12px;
  flex: 0 0 12px;
  width: 12px;
}

.receipt ul {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  margin: 0;
  padding: 24px 36px 30px;
}

.strip {
  background: var(--ink);
  color: white;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 24px;
  position: relative;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip::before,
.strip::after {
  bottom: 0;
  content: "";
  pointer-events: none;
  position: sticky;
  top: 0;
  width: 58px;
  z-index: 1;
}

.strip::before {
  background: linear-gradient(90deg, var(--ink), rgba(23, 20, 15, 0));
  flex: 0 0 58px;
  left: -24px;
  margin-left: -24px;
}

.strip::after {
  background: linear-gradient(90deg, rgba(23, 20, 15, 0), var(--ink));
  flex: 0 0 58px;
  margin-right: -24px;
  right: -24px;
}

.strip span {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  flex: 0 0 auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 10px 14px;
}

.section {
  display: grid;
  gap: 36px;
  grid-template-columns: 0.82fr 1.18fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: 88px 24px;
}

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

.feature-grid article,
.qa details {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 22px;
}

.feature-grid strong,
.qa summary {
  font-size: 18px;
  font-weight: 900;
}

.feature-grid p,
.qa p,
.fineprint {
  color: var(--muted);
  line-height: 1.55;
}

.qa {
  display: grid;
  gap: 12px;
}

.qa summary {
  cursor: pointer;
}

.cart {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 520px;
  padding: 0;
  width: calc(100% - 28px);
}

.cart::backdrop {
  background: rgba(23, 20, 15, 0.42);
  backdrop-filter: blur(8px);
}

.cart-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  padding: 24px 24px 10px;
}

.cart-head h2 {
  font-size: 34px;
}

.icon-button {
  background: #f1eee6;
  border-radius: 50%;
  font-size: 24px;
  height: 42px;
  line-height: 1;
  width: 42px;
}

.cart-item,
.field {
  display: block;
  margin: 18px 24px;
}

.cart-item {
  background: #fff6d7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.cart-item.filled {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.cart-item.filled div {
  display: grid;
  gap: 6px;
}

.cart-item.filled strong {
  color: var(--muted);
  font-size: 14px;
}

.remove-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 34px;
  font-size: 22px;
  font-weight: 900;
  height: 34px;
  line-height: 1;
  width: 34px;
}

.field input {
  border: 2px solid var(--ink);
  border-radius: 8px;
  display: block;
  outline: 0;
  padding: 15px 14px;
  width: 100%;
}

.wide {
  margin: 2px 24px 12px;
  width: calc(100% - 48px);
}

.fineprint {
  font-size: 13px;
  margin: 0;
  padding: 0 24px 24px;
}

.fineprint a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  margin: 0 auto;
  max-width: 960px;
  padding: 48px 24px 96px;
}

.legal-hero {
  padding: 36px 0 46px;
}

.legal-hero h1 {
  font-size: clamp(44px, 7vw, 82px);
  max-width: 850px;
}

.legal-content {
  display: grid;
  gap: 14px;
}

.legal-content article {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  padding: 24px;
}

.legal-content h2 {
  font-size: 26px;
  line-height: 1.12;
  margin-bottom: 12px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.62;
}

.legal-content p {
  margin: 0 0 12px;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.error-modal {
  background: var(--ink);
  border-left: 8px solid var(--pink);
  border-radius: 8px;
  border-bottom: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: var(--shadow);
  color: white;
  max-width: 420px;
  padding: 18px;
  width: calc(100% - 28px);
}

.error-modal::backdrop {
  background: rgba(23, 20, 15, 0.42);
  backdrop-filter: blur(8px);
}

.error-head {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.error-head strong {
  font-size: 22px;
  font-weight: 900;
}

.error-modal p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
  margin: 10px 0 0;
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

  .hero,
  .section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 32px;
  }

  .receipt {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 16px;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

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

  .domain-input span {
    padding: 0 16px 14px;
  }

  .domain-input button {
    border-left: 0;
    border-top: 2px solid var(--ink);
    min-height: 52px;
  }

  .cart-item.filled {
    align-items: flex-start;
    flex-direction: column;
  }

}
