/* Meow Client website. Colors, corners and type mirror the in-game menu (src/meow/Gui.java). */

:root {
  --pink: rgb(255 182 217);              /* Gui.PINK */
  --base: rgb(24 18 28);                 /* Gui.BASE */
  --tint: rgb(20 14 24 / 0.53);          /* Gui.TINT (alpha 135) */
  --text: rgb(250 244 250);              /* Gui.TEXT */
  --text-dim: rgb(214 192 208);          /* Gui.TEXT_DIM */
  --text-off: rgb(140 128 138);          /* Gui.TEXT_OFF */

  --pink-15: rgb(255 182 217 / 0.15);
  --pink-22: rgb(255 182 217 / 0.22);    /* button hover, pink(55) */
  --pink-35: rgb(255 182 217 / 0.35);    /* button outline, pink(90) */
  --pink-47: rgb(255 182 217 / 0.47);    /* pressed, pink(120) */
  --white-5: rgb(255 255 255 / 0.055);   /* hover row, white(14) */
  --white-6: rgb(255 255 255 / 0.063);   /* button fill, white(16) */
  --white-13: rgb(255 255 255 / 0.133);  /* toggle track off, white(34) */

  --arc: 10px;        /* window corners: ARC 20 is a diameter */
  --arc-button: 5px;  /* buttons: 10 diameter */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--base);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The "screen behind the menu": soft blurred shapes that the glass panels frost over. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgb(92 52 92 / 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgb(46 31 69 / 0.9), transparent 60%),
    var(--base);
}
.backdrop span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.backdrop span:nth-child(1) { width: 420px; height: 420px; left: 58%; top: 8%; background: #b85c8f; }
.backdrop span:nth-child(2) { width: 360px; height: 360px; left: 6%; top: 52%; background: #2e1f45; opacity: 0.9; }
.backdrop span:nth-child(3) { width: 260px; height: 260px; left: 78%; top: 62%; background: #1f7a6a; opacity: 0.35; }
.backdrop span:nth-child(4) { width: 220px; height: 220px; left: 30%; top: 14%; background: #f2b632; opacity: 0.12; }

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- Glass ---------- */

.glass {
  background: var(--tint);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
  border: 1.5px solid var(--pink);
  border-radius: var(--arc);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--base); }  /* the client's own solid fallback */
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--pink-47), transparent);
}

.heading {
  margin: 0;
  color: var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.accent { color: var(--pink); }
.dim { color: var(--text-dim); }

/* ---------- Buttons (Gui.PinkButton) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid var(--pink-35);
  border-radius: var(--arc-button);
  background: var(--white-6);
  color: var(--text);
  font: 700 13px/1 var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--pink-22); border-color: var(--pink); text-decoration: none; }
.btn:active { background: var(--pink-47); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.btn[disabled] { cursor: not-allowed; color: var(--text-off); border-color: var(--pink-15); background: var(--white-6); }

.btn-lg { min-height: 44px; padding: 0 24px; font-size: 14px; }
.btn-solid { background: var(--pink-22); border-color: var(--pink); }
.btn-solid:hover { background: var(--pink-47); }

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  outline: 1px solid rgb(255 255 255 / 0.35);
  outline-offset: -1px;
  flex: none;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  margin-top: 12px;
}
.nav .glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
}
.brand {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  color: var(--text-dim);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--arc-button);
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--white-5); text-decoration: none; }
@media (max-width: 560px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-block: 56px 72px;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-block: 88px 104px; }
}

.hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero .lede {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--text-dim);
  font-size: 17px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid var(--pink-35);
  border-radius: 999px;
  background: var(--white-6);
  color: var(--text-dim);
  font-size: 12px;
}
.pill b { color: var(--pink); font-weight: 700; }

.notice {
  margin-top: 22px;
  max-width: 34em;
  color: var(--text-off);
  font-size: 13px;
}

/* ---------- The menu replica ---------- */

.menu {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px 20px 14px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45);
  user-select: none;
}
.menu-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  font-size: 16px;
  font-weight: 700;
}
.menu-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.menu-close:hover { background: rgb(255 182 217 / 0.2); color: var(--pink); }
.menu .divider { margin: 10px 0 8px; }
.menu .section { margin: 12px 0; }
.menu .heading { margin-bottom: 8px; }

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  margin: 2px 0;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.toggle:hover { background: var(--white-5); }
.toggle:focus-visible { outline: 2px solid var(--pink); }
.toggle .t { display: block; font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.35; }
.toggle .s { display: block; font-size: 12px; color: var(--text-dim); line-height: 1.35; }
.track {
  position: relative;
  flex: none;
  width: 38px;
  height: 20px;
  border-radius: 10px;
  border: 1px solid rgb(255 182 217 / 0.51);
  background: var(--white-13);
  transition: background 0.18s;
}
.track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: transform 0.18s, background 0.18s;
}
.toggle[aria-pressed="true"] .track { background: var(--pink); }
.toggle[aria-pressed="true"] .track::after { transform: translateX(18px); background: #fff; }

.amount { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.amount label { width: 56px; color: var(--text-dim); font-size: 13px; font-weight: 700; }
.amount .btn { min-height: 28px; padding: 0; width: 28px; }
.amount .chip { width: 36px; font-weight: 400; font-size: 12px; }
.amount input {
  width: 52px;
  height: 28px;
  border: 1px solid var(--pink-35);
  border-radius: var(--arc-button);
  background: rgb(255 255 255 / 0.08);
  color: var(--text);
  font: 700 13px var(--font);
  text-align: center;
}
.amount input:focus { outline: 0; border-color: var(--pink); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-2 .btn, .row-3 .btn, .row-2 .btn { padding: 0 6px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row-3 .btn, .row-2 .btn { min-height: 32px; }
.menu-status { min-height: 18px; color: var(--text-dim); font-size: 12px; }

/* ---------- Sections ---------- */

section { padding: 64px 0; }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head h2 {
  margin: 10px 0 10px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-head p { margin: 0; color: var(--text-dim); }

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }

.card { padding: 22px 22px 20px; }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card .sub { margin: 0 0 12px; color: var(--pink); font-size: 12px; font-weight: 700; }
.card p { margin: 0 0 12px; color: var(--text-dim); font-size: 14px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.card li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  flex: none;
}
.card li.sw::before { display: none; }
.card .legend { display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (min-width: 680px) { .card.wide { grid-column: span 2; } }
.tag-new { border-color: var(--pink); background: var(--pink-22); color: var(--pink); font-weight: 700; }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border: 1px solid var(--pink-35);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 400;
  vertical-align: 2px;
}

/* Versions + steps */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }

.version {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgb(255 182 217 / 0.14);
}
.version:last-child { border-bottom: 0; padding-bottom: 0; }
.version b { font-size: 14px; }
.version span { color: var(--text-dim); font-size: 13px; text-align: right; }
.version.no b, .version.no span { color: var(--text-off); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 0 0 18px 44px;
  counter-increment: step;
  color: var(--text-dim);
  font-size: 14px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pink-35);
  border-radius: var(--arc-button);
  background: var(--white-6);
  color: var(--pink);
  font-weight: 700;
  font-size: 13px;
}
.steps b { display: block; color: var(--text); font-size: 15px; }

code, kbd {
  font-family: Consolas, "Cascadia Mono", ui-monospace, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border: 1px solid var(--pink-15);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  color: var(--text);
}

/* Pricing teaser */
.price-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
}
.price-band h2 { margin: 8px 0 6px; font-size: clamp(24px, 4vw, 30px); }
.price-band p { margin: 0; color: var(--text-dim); }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: 48px; font-weight: 700; line-height: 1; }
.price .cur { color: var(--text-dim); font-size: 14px; }

/* ---------- Purchase page ---------- */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-block: 48px 80px;
  align-items: start;
}
@media (min-width: 880px) { .checkout { grid-template-columns: 1.05fr 0.95fr; } }

.checkout h1 { margin: 10px 0 8px; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; }
.checkout .intro { margin: 0 0 24px; color: var(--text-dim); }

.panel { padding: 24px; }
.panel + .panel { margin-top: 16px; }
.split .panel + .panel { margin-top: 0; }
.panel h2 { margin: 0 0 14px; font-size: 16px; }

.line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.line.total { color: var(--text); font-size: 16px; font-weight: 700; padding-top: 12px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; color: var(--text-dim); font-size: 13px; font-weight: 700; }
.field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--pink-35);
  border-radius: var(--arc-button);
  background: rgb(255 255 255 / 0.08);
  color: var(--text);
  font: 14px var(--font);
}
.field input::placeholder { color: var(--text-off); }
.field input:focus { outline: 0; border-color: var(--pink); background: rgb(255 255 255 / 0.1); }

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 18px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
}
.check input { accent-color: var(--pink); margin-top: 3px; flex: none; }

.placeholder-pay {
  display: grid;
  place-items: center;
  min-height: 92px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px dashed var(--pink-35);
  border-radius: var(--arc-button);
  background: rgb(255 255 255 / 0.03);
  color: var(--text-off);
  font-size: 13px;
  text-align: center;
}

.form-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 13px;
}
.form-status.ok { color: var(--pink); }

.btn-block { width: 100%; }

/* ---------- Footer ---------- */

footer { padding: 40px 0 48px; color: var(--text-off); font-size: 13px; }
footer .divider { margin-bottom: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { color: var(--text-dim); }

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