/* rivetai.xyz (SIDE-107, 2026-11-06): Rivet's public page for Rivet on the web. The app's tokens and glass, both themes
   through prefers-color-scheme, the bundled Inter font. No scripts, pictures, cookies or outside requests. The /app
   pages build on this file (app.css). */
@font-face { font-family: "Inter"; src: url("fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #0f0e0d; --surface: #1b1a19; --text: #f2efeb; --text-2: #bcb7b0; --text-3: #9a948d; --line: rgb(255 247 238 / .08); --line-2: rgb(255 247 238 / .13);
  --glass: rgb(32 31 29 / .72); --glass-rim: rgb(255 255 255 / .12); --sheen: rgb(255 255 255 / .06); --accent: #4065e7; --accent-ink: #8db7ff;
  --primary: #f2efeb; --primary-hover: #ffffff; --on-primary: #141311; --primary-sheen: rgb(255 255 255 / .5); --primary-shadow: rgb(0 0 0 / .55);
  --glow-a: rgb(43 116 240 / .16); --glow-b: rgb(56 189 248 / .08); --glow-c: rgb(214 132 74 / .08);
  --r-md: 14px; --r-lg: 20px; --r-full: 999px; --column: 1080px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f3f0ea; --surface: #fffdf9; --text: #1c1a17; --text-2: #4a453f; --text-3: #5d5750; --line: rgb(58 44 30 / .1); --line-2: rgb(58 44 30 / .16);
    --glass: rgb(255 255 255 / .72); --glass-rim: rgb(58 44 30 / .12); --sheen: rgb(255 255 255 / .6); --accent: #2f55d9; --accent-ink: #1652b8;
    --primary: #1c1a17; --primary-hover: #2e2a25; --on-primary: #f7f4ee; --primary-sheen: rgb(255 255 255 / .12); --primary-shadow: rgb(40 28 16 / .35);
    --glow-a: rgb(43 116 240 / .1); --glow-b: rgb(56 189 248 / .08); --glow-c: rgb(214 132 74 / .08); color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font: 16px/1.55 "Inter", system-ui, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden;
  background-image: radial-gradient(60rem 30rem at 15% -10%, var(--glow-a), transparent 70%), radial-gradient(50rem 28rem at 95% 10%, var(--glow-b), transparent 70%), radial-gradient(40rem 30rem at 50% 110%, var(--glow-c), transparent 70%); background-attachment: fixed; }
a { color: var(--accent-ink); }
.glass { background: linear-gradient(180deg, var(--sheen), transparent 55%), var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--line-2), 0 18px 40px -26px rgb(0 0 0 / .6); border-radius: var(--r-lg); }

/* The top bar: the R logo with the drawn wordmark, and two quiet links. */
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--column); margin: 0 auto; padding: 16px 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.wordmark { width: 66px; height: 22px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-link { font-size: 14px; font-weight: 520; color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-full); }
.nav-link:hover { color: var(--text); }
.top-link { font-size: 14px; font-weight: 520; color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: var(--r-full); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--sheen); }
.top-link:hover { box-shadow: inset 0 0 0 1px var(--glass-rim); }

main { max-width: var(--column); margin: 0 auto; padding: 8px 20px 64px; display: grid; gap: 96px; }

/* The top of the page: one strong line, one sentence, two buttons. */
.hero { text-align: center; padding: 72px 0 0; display: grid; justify-items: center; gap: 20px; }
h1 { margin: 0; max-width: 15ch; font-size: clamp(38px, 7vw, 68px); line-height: 1.03; letter-spacing: -.035em; font-weight: 660; }
.lead { margin: 0; max-width: 580px; font-size: clamp(17px, 2.2vw, 19px); color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--r-full); font-weight: 600; font-size: 16px; text-decoration: none; }
/* Main buttons (SIDE-105, 2026-11-06): no blue glow. A light pill in dark mode and a dark pill in light mode. */
.button.primary { color: var(--on-primary); background: linear-gradient(180deg, var(--primary-sheen), transparent 65%), var(--primary);
  box-shadow: inset 0 1px 0 var(--primary-sheen), 0 8px 18px -12px var(--primary-shadow); transition: transform .14s cubic-bezier(.2, .8, .2, 1), background-color .14s; }
.button.primary:hover { background-color: var(--primary-hover); }
.button.primary:active { transform: scale(.97); }
.button.ghost { color: var(--text); background: var(--sheen); box-shadow: inset 0 0 0 1px var(--line-2); }
.button.ghost:hover { box-shadow: inset 0 0 0 1px var(--glass-rim); }
.button.primary:focus-visible, .button:focus-visible, .top-link:focus-visible, .nav-link:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

/* A drawn path from the chat to the game: three quiet chips joined by a thin line. */
.flow { list-style: none; margin: 32px 0 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 40px; font-size: 14px; font-weight: 560; color: var(--text-2); }
.flow li { position: relative; padding: 8px 16px; border-radius: var(--r-full); background: var(--sheen); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.flow li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--text-3)); }
.flow li:nth-child(2) { color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-rim); }

/* Sections: a small kicker, one heading, then cards. */
.section { display: grid; gap: 28px; scroll-margin-top: 80px; }
.section-head { display: grid; gap: 8px; }
.kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
h2 { margin: 0; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.12; letter-spacing: -.025em; font-weight: 640; }
.grid3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 620; }
.card p { margin: 0; color: var(--text-2); }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 20px; border-radius: 50%; font-size: 14px; font-weight: 650; color: var(--on-primary); background: var(--primary); }
.point h3::before { content: ""; display: block; width: 18px; height: 10px; margin: 4px 0 18px 2px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }

/* Credits: three plain rows. No prices and no payment links (payments are on hold). */
.credits { padding: 8px 24px; }
.credit-list { margin: 0; display: grid; }
.credit-list div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; }
.credit-list div + div { border-top: 1px solid var(--line-2); }
.credit-list dt { color: var(--text-2); }
.credit-list dd { margin: 0; font-weight: 620; text-align: right; }

.faq { display: grid; gap: 12px; }
.faq details { padding: 16px 20px; border-radius: var(--r-md); }
.faq summary { cursor: pointer; font-weight: 580; list-style-position: inside; }
.faq p { margin: 10px 0 0; color: var(--text-2); max-width: 720px; }

.foot { max-width: var(--column); margin: 0 auto; padding: 24px 20px 48px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }
.foot p { margin: 8px 0 0; max-width: 820px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 8px; }
.foot-links a { color: var(--text-2); }
.foot-links a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* Legal pages (SIDE-116): one calm reading column, a plain table, and the owner's details still to fill in, in amber. */
.legal { display: block; padding-top: 40px; }
.legal article { max-width: 720px; margin: 0 auto; }
.legal h1 { max-width: none; margin: 10px 0 18px; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; }
.legal h2 { margin: 44px 0 10px; font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 620; }
.legal p, .legal li, .legal td { color: var(--text-2); }
.legal p { margin: 0 0 12px; }
.legal .lead { margin-bottom: 14px; }
.legal .stamp { font-size: 13px; color: var(--text-3); }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; }
.legal b { color: var(--text); font-weight: 600; }
.legal code { font: 13.5px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--text); padding: 1px 6px; border-radius: 6px; background: var(--sheen); box-shadow: inset 0 0 0 1px var(--line-2); overflow-wrap: anywhere; }
.legal table { width: 100%; margin: 8px 0 18px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal th { padding: 0 16px 10px 0; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.legal td { padding: 14px 16px 14px 0; vertical-align: top; border-top: 1px solid var(--line-2); }
.legal td:first-child { width: 44%; color: var(--text); }
.legal td:last-child { padding-right: 0; }
mark.todo { color: var(--text); background: rgb(214 132 74 / .16); box-shadow: inset 0 0 0 1px rgb(214 132 74 / .5); border-radius: 5px; padding: 1px 5px; }

@media (max-width: 760px) {
  main { gap: 72px; padding-top: 0; }
  .hero { padding-top: 32px; }
  .grid3 { grid-template-columns: 1fr; }
  .nav-link { display: none; }
  .flow { flex-direction: column; gap: 24px; }
  .flow li + li::before { right: auto; left: 50%; top: auto; bottom: 100%; width: 1px; height: 24px; background: linear-gradient(180deg, transparent, var(--text-3)); }
  /* The legal table stacks: each row becomes a short block with its own labels. */
  .legal { padding-top: 16px; }
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: auto; }
  .legal tr { padding: 14px 0; border-top: 1px solid var(--line-2); }
  .legal td { padding: 0; border: 0; }
  .legal td:first-child { width: auto; margin-bottom: 6px; font-weight: 560; }
  .legal td + td { margin-top: 4px; }
  .legal td[data-label]::before { content: attr(data-label) ": "; color: var(--text-3); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button.primary { transition: none; } .button.primary:active { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); } }
