/* askrux.com
   The Five Moods look: each section sits on one mood's circuit board, in the app's own colors
   (App/AskRux/Shared/Theme+*.swift). Dark only. No scripts, no web fonts, nothing from other sites. */

:root {
  color-scheme: dark;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page: #0b0d0e;
  --bubble: #fffdf6;
  --bubble-ink: #1b1f20;
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 70rem;
}

/* The five moods: board, copper, pins, the eyes' glow and the text, as the app has them. */
.mood-grumpy { --top: #10503a; --bottom: #072a1e; --trace: rgb(30 110 78 / .35); --tray: #062419; --pad: #0d3f2d; --copper: #b98a3a; --pin: #c9a24a; --row: rgb(201 162 74 / .55); --eye: #c2f73e; --text: #e9f3ee; --muted: #9cc9b5; --off: #2f6b52; --glow: rgb(194 247 62 / .45); }
.mood-happy { --top: #4b2378; --bottom: #24103d; --trace: rgb(122 79 176 / .35); --tray: #1c0c30; --pad: #3a1d5c; --copper: #c0904a; --pin: #dcb65e; --row: rgb(220 182 94 / .55); --eye: #ff8ad4; --text: #f6eefb; --muted: #cdb8e3; --off: #5e3d86; --glow: rgb(255 138 212 / .45); }
.mood-sad { --top: #2e3e4e; --bottom: #161f29; --trace: rgb(74 97 120 / .35); --tray: #121a22; --pad: #263443; --copper: #8f7457; --pin: #a9b3bd; --row: rgb(169 179 189 / .55); --eye: #8fb4ff; --text: #e6ecf2; --muted: #a9b7c5; --off: #3e5165; --glow: rgb(143 180 255 / .35); }
.mood-sleepy { --top: #262a2b; --bottom: #111314; --trace: rgb(74 82 84 / .35); --tray: #0d0f10; --pad: #202426; --copper: #9c7a45; --pin: #b89650; --row: rgb(184 150 80 / .55); --eye: #c4b5fd; --text: #e8e8ea; --muted: #a9aeb2; --off: #3c4245; --glow: rgb(196 181 253 / .35); }
.mood-dramatic { --top: #1b3c8f; --bottom: #0c1c4c; --trace: rgb(61 99 196 / .35); --tray: #0a1640; --pad: #17327a; --copper: #c08a3e; --pin: #d4af52; --row: rgb(212 175 82 / .55); --eye: #fff1cc; --text: #eef2ff; --muted: #b8c4ea; --off: #2f4c99; --glow: rgb(255 241 204 / .55); }

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: #e8e8ea;
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--eye, #c4b5fd); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--eye, #c4b5fd); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--mono); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--bubble); color: var(--bubble-ink); padding: .5rem .9rem; border-radius: 8px;
  font-family: var(--mono); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* The circuit board: a 24-point grid of traces over the mood's gradient, with four copper runs
   at the corners (App/AskRux/Shared/CircuitBoard.swift). */
.board {
  position: relative;
  isolation: isolate;
  color: var(--text);
  background-color: var(--bottom);
  background-image:
    linear-gradient(to right, var(--trace) 1px, transparent 1px),
    linear-gradient(to bottom, var(--trace) 1px, transparent 1px),
    linear-gradient(to bottom, var(--top), var(--bottom));
  background-size: 24px 24px, 24px 24px, 100% 100%;
}
.runs { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.runs line { stroke: var(--copper); stroke-opacity: .45; stroke-width: 2; stroke-linecap: round; }
.runs circle { fill: none; stroke: var(--copper); stroke-opacity: .6; stroke-width: 2; }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.muted { color: var(--muted, #a9aeb2); }
.eyebrow {
  font-family: var(--mono); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--eye); margin-bottom: 1rem;
}

/* Header and footer */
.site-header { background: #0d0f10; border-bottom: 1px solid rgb(255 255 255 / .08); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .8rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: #f2f2f3; font: 700 1.1rem/1 var(--mono); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--mono); font-size: .92rem; }
.nav a { color: #c9cdd0; text-decoration: none; padding-block: .3rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

.site-footer { padding-block: 3rem 2.5rem; }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--row); font-family: var(--mono); font-size: .85rem; color: var(--muted); }

/* Hero */
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .hero__grid { grid-template-columns: 1.15fr .85fr; } }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--text); max-width: 34rem; }
.promise { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.5rem 0; padding: 0; }
.promise li {
  font: 700 .95rem/1 var(--mono); padding: .7rem 1rem; border-radius: 999px;
  background: var(--tray); border: 1px solid var(--row); color: var(--text);
}
.promise li::before { content: "●"; color: var(--eye); margin-right: .5rem; text-shadow: 0 0 6px var(--glow); }

/* The App Store spot. It holds Apple's badge, linked to the listing, once the app is live. */
.store-spot { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: 1.75rem; }
.store-spot__badge {
  display: inline-flex; align-items: center; min-height: 48px; padding: .75rem 1.1rem; border-radius: 12px;
  border: 1.5px dashed var(--row); color: var(--text); font: 700 .95rem/1.2 var(--mono);
}
.store-spot__price { font-family: var(--mono); color: var(--muted); font-size: .95rem; }

.hero__rux { margin: 0; display: grid; justify-items: center; gap: 1.25rem; }
.hero__rux img { width: min(100%, 340px); }
.rux { filter: drop-shadow(0 0 6px var(--glow)); }

.bubble {
  position: relative; background: var(--bubble); color: var(--bubble-ink); border-radius: var(--radius);
  padding: .75rem 1rem; font: 600 1rem/1.35 var(--sans); max-width: 22rem; text-align: center;
  box-shadow: 0 6px 18px rgb(0 0 0 / .35);
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px;
  background: var(--bubble); border-radius: 2px; transform: rotate(45deg);
}

/* The round's lights: 20, one for each question */
.lights { display: grid; grid-template-columns: repeat(10, 11px); gap: 8px; justify-content: center; }
.lights span { width: 11px; height: 11px; border-radius: 50%; background: var(--off); }
.lights .on { background: var(--eye); box-shadow: 0 0 7px var(--glow); }

/* How a round works */
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  counter-increment: step; background: var(--tray); border: 1px solid var(--row); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.2rem;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; margin-bottom: .9rem;
  border-radius: 8px; background: var(--eye); color: var(--tray); font: 700 1.05rem/1 var(--mono);
}
.steps p:last-child { margin-bottom: 0; }
.note { margin-top: 1.75rem; color: var(--muted); max-width: 46rem; }

/* Five moods */
.moods { list-style: none; margin: 2.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.mood-card {
  flex: 1 1 8rem; max-width: 13rem;
  border-radius: var(--radius); border: 1px solid var(--row); padding: 1.25rem .75rem 1.1rem; overflow: hidden;
  display: grid; justify-items: center; align-content: start; gap: .9rem; text-align: center;
}
.mood-card img { width: 100%; max-width: 170px; }
.mood-card h3 { margin: 0; color: var(--eye); }
.mood-card .bubble { font-size: .92rem; padding: .6rem .8rem; }
.mood-card .bubble::after { top: -7px; bottom: auto; }

/* Categories, on three pages like the app */
.pages { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 760px) { .pages { grid-template-columns: repeat(3, 1fr); } }
.page { background: var(--tray); border: 1px solid var(--row); border-radius: var(--radius); padding: 1.25rem; }
.page h3 { color: var(--eye); }
.tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tiles li { font: 600 .9rem/1.2 var(--mono); padding: .5rem .7rem; border-radius: 10px; background: var(--pad); border: 1px solid var(--row); }

/* Cards: what $4.99 includes, devices, good to know */
.cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .cards--four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--tray); border: 1px solid var(--row); border-radius: var(--radius); padding: 1.3rem; }
.card h3 { color: var(--eye); }
.card p:last-child { margin-bottom: 0; }
.fine { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }

/* FAQ, support answers */
.faq { display: grid; gap: .75rem; margin-top: 2rem; max-width: 50rem; }
.qa { background: var(--tray); border: 1px solid var(--row); border-radius: 12px; }
.qa summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 700 1.2rem/1 var(--mono); color: var(--eye); }
.qa[open] summary::after { content: "−"; }
.qa summary h2, .qa summary h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.qa__a { padding: 0 1.2rem 1rem; }
.qa__a p:last-child, .qa__a ul:last-child, .qa__a ol:last-child { margin-bottom: 0; }

/* Long pages: support and privacy */
.doc { max-width: 50rem; }
.doc h2 { margin-top: 2.2rem; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.5rem); }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin-bottom: .4rem; }
.panel { background: var(--tray); border: 1px solid var(--row); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.25rem); }
.crumbs { font-family: var(--mono); font-size: .9rem; margin-bottom: 1.25rem; color: var(--muted); }
.updated { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--row); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .85rem; border-bottom: 1px solid var(--row); }
th { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
code { font-family: var(--mono); font-size: .92em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.3rem;
  border-radius: 12px; background: var(--eye); color: var(--tray); font: 700 1rem/1 var(--mono); text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }

.center { text-align: center; }
.fill { min-height: 100vh; min-height: 100dvh; display: grid; }
.not-found { display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding-block: 3rem; }
.not-found img { width: min(70vw, 260px); }

@media (prefers-reduced-motion: no-preference) {
  .lights .on { transition: box-shadow .3s ease; }
}

.still { margin-top: 2.5rem; }

/* On a phone, each table row becomes a card, with the column's name over each cell */
@media (max-width: 640px) {
  .stack table, .stack tbody, .stack tr, .stack td { display: block; }
  .stack table { min-width: 0; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .stack tr { padding: .5rem 0; border-bottom: 1px solid var(--row); }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: .3rem .9rem; }
  .stack td::before { content: attr(data-label); display: block; font: 700 .78rem/1.4 var(--mono); color: var(--muted); }
}
@media (min-width: 641px) { .stack td:first-child { white-space: nowrap; } }
