/* CouchPortal — couchportal.com
   One stylesheet, no build step. The accent is the portal mint from the app
   icon; the dark ground is the icon's night blue. Deliberately no pixel fonts,
   no block textures, nothing that borrows the game's visual language. */

:root {
  color-scheme: light dark;
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --surface-2: #f0ece3;
  --text: #1b2130;
  --muted: #5a6072;
  --accent: #178a6a;
  --accent-ink: #0f5f49;
  --accent-soft: #dcf3ea;
  --warm: #b5813f;
  --warm-soft: #f6e9d6;
  --border: #e3ddd1;
  --shadow: 0 1px 2px rgba(27, 33, 48, .06), 0 8px 24px rgba(27, 33, 48, .06);
  --radius: 14px;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131830;
    --surface: #1b2140;
    --surface-2: #222a4d;
    --text: #eef0f6;
    --muted: #a9b0c5;
    --accent: #7fe3be;
    --accent-ink: #a8f0d5;
    --accent-soft: #1d3a3a;
    --warm: #d6a468;
    --warm-soft: #3a2f22;
    --border: #2c3558;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 40em) {
  body { font-size: 1.125rem; }
}

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 1.85rem); margin-top: 2.5rem; }
h3 { font-size: 1.15rem; margin-top: 1.75rem; }
p, ul, ol { margin: 0 0 1em; }
li + li { margin-top: .35em; }
strong { font-weight: 650; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { padding: 1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav a { color: var(--muted); text-decoration: none; margin-left: 1.1rem; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }

/* Main */
main { padding: 1.5rem 0 3rem; }
main > .wrap > section + section { margin-top: 3rem; }

.hero { text-align: left; padding: 1.5rem 0 1rem; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: .6rem; }
.hero .lede { font-size: 1.2em; color: var(--muted); max-width: 34ch; }
.hero .cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero .cta img { height: 52px; width: auto; display: block; }
.hero .cta small { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: .3em .7em; border-radius: 999px; margin-bottom: 1rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.25rem 0 0; counter-reset: step; }
.steps li { position: relative; padding-left: 3.25rem; margin: 0 0 1.25rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .05em;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent); color: #0b2a21;
  font-weight: 700; display: grid; place-items: center;
}
.steps li strong { display: block; margin-bottom: .15em; }
.steps li span { color: var(--muted); }

/* Cards and lists */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 36em) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.consoles { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.consoles li { display: flex; gap: .85rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.consoles .mark { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.consoles .yes { background: var(--accent-soft); color: var(--accent-ink); }
.consoles .no { background: var(--warm-soft); color: var(--warm); }
.consoles p { margin: 0; }
.consoles small { color: var(--muted); display: block; }

.price { display: grid; gap: 1rem; }
@media (min-width: 36em) { .price { grid-template-columns: 1fr 1fr; } }
.price .card h3 { margin-top: 0; }
.price .amount { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; margin: .2rem 0 .4rem; }
.price .amount small { font-size: .55em; color: var(--muted); font-weight: 500; letter-spacing: 0; }

.plain { list-style: none; padding: 0; }
.plain li { padding-left: 1.6rem; position: relative; }
.plain li::before { content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.note { border-left: 4px solid var(--warm); background: var(--warm-soft); padding: .85rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin-bottom: 0; }

/* Article pages */
.article h1 { margin-bottom: .25rem; }
.article .meta { color: var(--muted); margin-bottom: 2rem; }
.article h2 { font-size: 1.45rem; padding-top: .5rem; }
.article ul { padding-left: 1.3rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.toc ul { margin: .25rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 1.5rem; }
.toc li { break-inside: avoid; }

/* FAQ */
.faq details { border-top: 1px solid var(--border); padding: .35rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 650; padding: .7rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.3em; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1rem; color: var(--text); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Forms */
form.contact { display: grid; gap: 1rem; }
form.contact label { display: grid; gap: .35rem; font-weight: 600; }
form.contact input, form.contact textarea, form.contact select {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: .7rem .85rem; width: 100%;
}
form.contact input:focus, form.contact textarea:focus, form.contact select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
form.contact textarea { min-height: 9rem; resize: vertical; }
form.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.contact small { font-weight: 400; color: var(--muted); }
.button {
  display: inline-block; font: inherit; font-weight: 650; cursor: pointer;
  background: var(--accent); color: #0b2a21; border: 0; border-radius: 999px;
  padding: .8rem 1.5rem; text-decoration: none;
}
.button:hover { filter: brightness(1.05); }
.alert { padding: .85rem 1.1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); margin-bottom: 1rem; }
.alert.error { border-color: var(--warm); background: var(--warm-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
.site-footer .links a { color: var(--muted); margin-right: 1.1rem; }
.site-footer .disclaimer { margin: 1rem 0; font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.5; }
.site-footer p { margin: .4rem 0; }

/* 404 */
.lost { text-align: center; padding: 3rem 0; }
.lost .icon { width: 120px; height: 120px; border-radius: 28px; opacity: .9; }
.lost .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
