:root {
  --purple: #6356FF;
  --purple-deep: #5146e6;
  --mint: #30FFB5;
  --ink: #0d0b26;
  --muted: #5d5a75;
  --line: #e7e5f3;
  --card: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--purple);
  color: #fff;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

/* Phones: one column, with the "how buying works" panel moved below the listings */
.page { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 32px; display: flex; flex-direction: column; }
.side { display: contents; }
.hero { order: 0; }
.list { order: 1; }
.how { order: 2; }
.footer { order: 3; }

/* Profile: round photo, name, bio and socials, centred like a Stan store */
.hero { padding: 44px 22px 0; text-align: center; }
.hero-photo {
  width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 14px 34px rgba(28, 18, 140, .35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-text { margin-top: 20px; }
h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.bio { margin: 10px auto 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 38ch; }
.socials { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.socials:not(:has(a:not([hidden]))) { display: none; }
.socials a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: #fff; text-decoration: none; font-size: 17px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18);
  transition: background .15s, transform .15s;
}
.socials a:hover { background: rgba(255, 255, 255, .24); transform: translateY(-1px); }
.socials svg { width: 15px; height: 15px; }

/* Newsletter signup */
.subscribe { max-width: 360px; margin: 22px auto 0; }
.sub-row {
  display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 28px rgba(28, 18, 140, .28);
  transition: box-shadow .15s;
}
.sub-row:focus-within { box-shadow: 0 0 0 3px rgba(48, 255, 181, .55), 0 10px 28px rgba(28, 18, 140, .28); }
.sub-row > i { color: var(--muted); font-size: 18px; flex: none; }
.sub-row input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink); padding: 10px 6px;
}
.sub-row input::placeholder { color: #9a98b3; }
.sub-row button {
  flex: none; border: 0; border-radius: 9px; background: var(--mint); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; padding: 11px 16px; cursor: pointer; transition: filter .15s;
}
.sub-row button:hover { filter: brightness(.95); }
.sub-row button:disabled { opacity: .7; cursor: wait; }
.sub-note { margin: 9px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.sub-note.bad { color: #ffd4d6; }
.sub-done {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px;
  font-size: 15px; font-weight: 600;
}
.sub-done i { color: var(--mint); font-size: 22px; }

/* How buying works */
.how { margin: 36px 18px 0; }
.steps {
  list-style: none; margin: 0; padding: 6px 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px;
}
.steps li { display: flex; gap: 12px; padding: 12px 0; }
.steps li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.steps i {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: rgba(48, 255, 181, .16); color: var(--mint); font-size: 17px;
}
.steps span { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .74); }
.steps strong { display: block; font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 1px; }

/* Lists */
.list { padding: 0 18px; margin-top: 32px; }
.section-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 2px 12px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .72);
}
.section-title i { font-size: 15px; }
.cards { display: grid; gap: 12px; }

.card {
  display: block; width: 100%;
  text-align: left; font: inherit; color: var(--ink);
  background: var(--card); border: 0; border-radius: 14px;
  padding: 18px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(13, 11, 38, .06), 0 8px 24px rgba(28, 18, 140, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(13, 11, 38, .06), 0 14px 32px rgba(28, 18, 140, .28); }
.card:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

.card-head { display: flex; align-items: center; gap: 12px; }
.fav {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: #f2f1fa; display: grid; place-items: center; overflow: hidden;
}
.fav img { width: 22px; height: 22px; object-fit: contain; }
.fav i { font-size: 18px; color: var(--purple); }
.card-name { font-size: 16px; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.card-desc { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.card-foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.range { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.range strong { display: block; font-size: 17px; color: var(--ink); font-weight: 700; margin-top: 3px; letter-spacing: -.01em; text-transform: none; }
.pill {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--mint); color: var(--ink);
  font-size: 15px; font-weight: 700; padding: 12px 14px; border-radius: 10px;
  transition: filter .15s;
}
.card:hover .pill { filter: brightness(.95); }

.card.domain { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card.domain .card-head { min-width: 0; }
.card.domain .range { text-align: right; }

.footer { display: flex; justify-content: center; margin-top: 48px; }
.footer .brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: #fff; text-decoration: none; opacity: .8;
  transition: opacity .15s;
}
.footer .brand:hover { opacity: 1; }
.footer .brand i { font-size: 15px; }

/* Offer sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(13, 11, 38, .55); animation: fade .2s ease; }
.sheet-panel {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  background: #fff; color: var(--ink);
  border-radius: 18px 18px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
  animation: up .25s ease;
}
@media (min-width: 560px) {
  .sheet { align-items: center; padding: 20px; }
  .sheet-panel { border-radius: 16px; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

.sheet-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #f2f1fa; color: var(--ink); font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
}
.sheet-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.offer-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px;
}
.offer-item .card-name { flex: 1; min-width: 0; }
.offer-item .range { text-align: right; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.field input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(99, 86, 255, .18); }
.field input[aria-invalid="true"] { border-color: #e5484d; }
.money { position: relative; }
.money i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; }
.money input { padding-left: 36px; font-weight: 600; }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.hint.bad { color: #d9363c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { min-height: 0; margin: 0 0 10px; font-size: 14px; color: #d9363c; }
.form-error:empty { display: none; }

.btn {
  width: 100%; border: 0; border-radius: 10px;
  background: var(--mint); color: var(--ink);
  font: inherit; font-size: 16px; font-weight: 700;
  padding: 15px 18px; cursor: pointer; transition: filter .15s, transform .1s;
}
.btn:hover { filter: brightness(.96); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .6; cursor: wait; }

.done { text-align: center; padding: 18px 4px 4px; }
.done > i { font-size: 60px; color: var(--purple); }
.done h3 { margin: 8px 0 6px; font-size: 22px; font-weight: 800; }
.done p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; }

/* Desktop: profile pinned on the left, listings in a grid on the right */
@media (min-width: 960px) {
  body {
    background:
      radial-gradient(900px 600px at 10% -10%, rgba(255, 255, 255, .16), transparent 60%),
      radial-gradient(800px 600px at 100% 100%, rgba(48, 255, 181, .10), transparent 60%),
      var(--purple);
    background-attachment: fixed;
  }
  .page {
    max-width: 1160px; padding: 56px 40px 40px;
    display: grid; grid-template-columns: clamp(300px, 30vw, 360px) minmax(0, 1fr);
    column-gap: clamp(40px, 5vw, 64px); align-items: start;
  }
  /* Left column stays put while the listings scroll. If it's taller than the window it scrolls on its own. */
  .side {
    display: block; grid-column: 1; grid-row: 1 / span 3;
    position: sticky; top: 56px; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: none;
  }
  .side::-webkit-scrollbar { display: none; }
  .hero { padding: 8px 0 0; }
  .hero-photo { width: 132px; height: 132px; }
  h1 { font-size: 30px; }
  .bio { font-size: 15px; }
  .how { margin: 28px 0 0; }

  .list { grid-column: 2; padding: 0; margin: 0 0 40px; }
  .section-title { margin: 6px 2px 16px; }
  #sites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  #sites .card { display: flex; flex-direction: column; padding: 20px; }
  #sites .card-foot { margin-top: auto; }
  #sites .card-desc { margin-bottom: 16px; }
  #sites .fav { width: 36px; height: 36px; }
  #sites .fav img { width: 24px; height: 24px; }
  #domains { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
  .card.domain { padding: 18px 20px; }
  .card:hover { transform: translateY(-3px); }

  .footer { grid-column: 2; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
