/* ===========================================================================
   VirtualPet — inner pages (download, account, legal, 404).

   Loaded AFTER style.css, which it deliberately does not modify: style.css is
   served with a 7-day cache and is referenced as ?v=4 by the home page, so
   editing it would leave returning visitors on a stale copy. Everything here
   is additive and only ever used by the pages that ask for it.

   Tokens, fonts, header, footer, .button, .eyebrow and the heading scale all
   come from style.css. This file adds the page shell those sections never
   needed, because the home page is one long scroll rather than a document.
   =========================================================================== */

/* The header is position:fixed, so every inner page needs its own headroom. */
.page {
  padding: 190px 9vw 120px;
  max-width: 1150px;
  margin: 0 auto;
}

.page-head { max-width: 760px; }
.page-head h1 {
  font-size: clamp(46px, 6vw, 86px);
  margin-bottom: 26px;
}
.page-head .lead {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.75;
  color: #9d9996;
  max-width: 60ch;
}
.page-head .updated {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #6f6a67;
  margin-top: 26px;
}

/* A hairline rule between the page title and its body, echoing the borders
   that separate the home page's sections. */
.page-rule {
  height: 1px;
  background: #ffffff12;
  margin: 70px 0;
}

/* --- Download pages ------------------------------------------------------ */
.pet-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: center;
}
.pet-head img {
  width: 230px;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 30px 45px #00000080);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
/* The download control is a bigger sibling of .button: same surface and
   radius, but it carries a label and a sublabel, so it cannot be a one-liner. */
.dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  background: #101012;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  transition: background .2s, border-color .2s;
}
.dl:hover { background: #17171a; border-color: #ffffff2e; }
.dl b {
  display: block;
  font: 600 16px 'Manrope', sans-serif;
  letter-spacing: -.03em;
}
.dl span {
  display: block;
  font-size: 11px;
  color: #8e8a87;
  margin-top: 7px;
  letter-spacing: .4px;
}
.dl i { font-style: normal; font-size: 20px; color: var(--red); }

/* --- Numbered steps ------------------------------------------------------ */
.step-block { margin-top: 64px; }
.step-block > h2 {
  font-size: clamp(28px, 2.6vw, 38px);
  margin-bottom: 34px;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
/* The step number is positioned, NOT a grid/flex column. A two-column grid
   here looks equivalent but is not: every inline child of the <li> — each
   <b> wrapping "right-click", "Open", "menu bar" — would become a grid item
   in its own right and the sentence would break apart into columns instead
   of flowing as prose. */
.steps li {
  counter-increment: step;
  position: relative;
  padding: 22px 0 22px 66px;
  border-bottom: 1px solid #ffffff12;
  font-size: 14px;
  line-height: 1.8;
  color: #c9c5c2;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 26px;
  font: 600 11px 'Manrope', sans-serif;
  letter-spacing: 1.5px;
  color: var(--red);
}
.steps b { color: var(--ink); font-weight: 600; }

/* A quiet note block. It is marked by the brand asterisk rather than by a
   coloured edge: the home page carries red in only three places — the brand
   mark, the full stop that ends a heading, and the progress bar — and never
   as a border. A tinted side rule would be a primitive this system does not
   own, so the panel stays on the same hairline-and-dark-fill footing as
   .price-card and .dl, and the asterisk does the signalling. */
.callout {
  position: relative;
  border: 1px solid #ffffff14;
  border-radius: 8px;
  padding: 26px 28px 26px 62px;
  margin-top: 30px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #b9b5b2;
  background: #0e0e10;
}
.callout::before {
  content: "✳";
  position: absolute;
  left: 26px;
  top: 23px;
  color: var(--red);
  font-size: 17px;
  line-height: 1.5;
}
.callout b { color: var(--ink); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #1b1b1e;
  border: 1px solid #ffffff14;
  border-radius: 5px;
  padding: 3px 8px;
  color: #efe9e2;
}
.cmd {
  display: block;
  margin-top: 16px;
  padding: 16px 18px;
  overflow-x: auto;
  white-space: nowrap;
  user-select: all;
  -webkit-user-select: all;
}

/* --- Account / code lookup ----------------------------------------------- */
.login-card {
  border: 1px solid #ffffff14;
  background: #101012;
  border-radius: 14px;
  padding: 44px 42px;
  max-width: 560px;
}
.login-card label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: #aaa6a3;
  margin-bottom: 16px;
}
.code-row { display: flex; gap: 12px; }
.code-row input {
  flex: 1;
  min-width: 0;
  background: #08080a;
  border: 1px solid #ffffff1f;
  border-radius: 8px;
  padding: 17px 18px;
  color: var(--ink);
  font: 500 15px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 1.5px;
}
.code-row input::placeholder { color: #5d5956; letter-spacing: 1.5px; }
.code-row button {
  background: #eee7dc;
  color: #121214;
  border: 0;
  border-radius: 8px;
  padding: 0 26px;
  font: 600 12px 'Manrope', sans-serif;
  letter-spacing: .3px;
  transition: opacity .2s;
}
.code-row button:hover { opacity: .85; }
.code-row button:disabled { opacity: .45; cursor: default; }
.msg { margin-top: 18px; font-size: 13px; min-height: 20px; color: #9d9996; }
.msg.err { color: var(--red); }
.msg.ok { color: #7fc99a; }
.unlocked { display: none; margin-top: 30px; gap: 14px; flex-direction: column; }
.unlocked.show { display: flex; }
.hint { font-size: 12px; line-height: 1.9; color: #6f6a67; margin-top: 26px; }
.hint a { color: #b2b0ae; border-bottom: 1px solid #ffffff2e; }

/* --- Legal prose ---------------------------------------------------------- */
.doc { max-width: 76ch; }
.doc h2 {
  font-size: clamp(21px, 2vw, 27px);
  margin: 56px 0 18px;
  letter-spacing: -.045em;
}
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li {
  font-size: 14.5px;
  line-height: 1.9;
  color: #aaa6a3;
  margin: 0 0 16px;
}
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: #d8d3cd; border-bottom: 1px solid #ffffff2e; }

/* --- Cross-links at the foot of a page ------------------------------------ */
.next-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 80px;
}
.next-links a {
  border: 1px solid #ffffff14;
  border-radius: 12px;
  padding: 28px 26px;
  transition: background .2s;
}
.next-links a:hover { background: #121214; }
.next-links .eyebrow { margin-bottom: 14px; }
.next-links b {
  font: 600 20px 'Manrope', sans-serif;
  letter-spacing: -.04em;
}

/* --- 404 ------------------------------------------------------------------ */
.lost { text-align: center; padding-top: 60px; }
.lost img {
  width: 190px;
  height: auto;
  image-rendering: pixelated;
  margin-bottom: 40px;
  filter: drop-shadow(0 30px 45px #00000080);
}
.lost .page-head { margin: 0 auto; }
.lost .lead { margin: 0 auto; }
.lost .next-links { max-width: 720px; margin-left: auto; margin-right: auto; }

/* --- Narrow screens -------------------------------------------------------- */
@media (max-width: 860px) {
  .page { padding: 150px 7vw 90px; }
  .page-rule { margin: 50px 0; }
  .pet-head { grid-template-columns: 1fr; gap: 34px; }
  .pet-head img { width: 165px; order: -1; }
  .dl-grid, .next-links { grid-template-columns: 1fr; }
  .login-card { padding: 32px 26px; }
  .callout { padding: 22px 22px 22px 52px; }
  .callout::before { left: 20px; top: 19px; }
  .step-block { margin-top: 48px; }
  .steps li { padding-left: 48px; }
}
@media (max-width: 560px) {
  .code-row { flex-direction: column; }
  .code-row button { padding: 16px 26px; }
  .cmd { font-size: 11px; }
}
