/* lumisteps.app: the support, privacy and terms site.
   The outside is 8stacks8.com: its shaded blue page, glows, stacks tile,
   header, nav, dark cards, pill links and footer. Lumi shows only in the
   accents: the app icon, the store-banner discs, the peach buttons and the
   tool-coloured tiles.

   Shared by landing.html, support.html, privacy.html and terms.html. The
   last three also ship inside the native apps (www/), so this file is in
   scripts/sync-www.cjs and every URL here is root-relative. */

/* Body text uses the file the app already ships; headings and buttons get
   the real 700 and 800 cuts (the store banners are set in Nunito 800). */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/fonts/nunito-latin.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/nunito-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800 900; font-display: swap; src: url('/fonts/nunito-latin-800.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  /* 8stacks8.com tokens, verbatim. */
  --bg: #13335D; --card: #1A4171; --ink: #F2F7FC; --soft: #B8C8DB; --faint: #8AA1BC;
  --line: rgba(242,247,252,.10); --line-strong: rgba(242,247,252,.26);
  --btn: #F2F7FC; --btn-ink: #0F2C52;
  /* Lumi accents. */
  --peach: #C88568; --peach-dark: #B06E52; --peach-text: #F0C7B0;
  --sage: #7AA387;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #0B2244; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.6 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%23ffffff' fill-opacity='0.022'%3E%3Crect x='14' y='20' width='34' height='8' rx='3'/%3E%3Crect x='14' y='32' width='34' height='8' rx='3'/%3E%3Crect x='14' y='44' width='34' height='8' rx='3'/%3E%3Crect x='74' y='80' width='34' height='8' rx='3'/%3E%3Crect x='74' y='92' width='34' height='8' rx='3'/%3E%3Crect x='74' y='104' width='34' height='8' rx='3'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(1100px 620px at 82% -8%, rgba(92,150,230,.28), transparent 70%),
    radial-gradient(900px 700px at 0% 100%, rgba(46,110,190,.30), transparent 70%),
    linear-gradient(180deg, #0A1F3E 0%, #13335D 45%, #1D4A82 100%);
}
a { color: inherit; }
.wrap { max-width: 920px; margin: 0 auto; padding: 40px 20px 56px; }

/* Header: app icon and name, then the nav. */
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; flex: none; display: block; box-shadow: 0 8px 20px rgba(3,10,25,.35); }
.brand span { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
nav a { font-size: 15px; font-weight: 600; color: var(--soft); text-decoration: none; margin-left: 20px; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Intro block, and on the home page the disc artwork beside it. */
.intro { margin: 44px 0 8px; max-width: 620px; }
.intro h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; font-weight: 800; }
.intro p { margin: 0; color: var(--soft); font-size: 17px; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: center; margin: 44px 0 8px; }
.hero .intro { margin: 0; }
.hero .links { margin-top: 22px; }
.discs { position: relative; width: 300px; height: 236px; justify-self: end; }
.disc { position: absolute; border-radius: 50%; box-shadow: 0 16px 40px rgba(3,10,25,.45); display: block; }
.disc svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Cards: the studio's dark cards. */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 36px; }
.card {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(3,10,25,.35); border-color: var(--line-strong); }
.card h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.3; }
.card p { margin: 0; color: var(--soft); font-size: 15px; flex: 1; }
.card .help { font-size: 13px; color: var(--faint); flex: 0; margin-top: -2px; }
.tile { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; color: #FFFFFF; border: 1px solid rgba(242,247,252,.18); }
.tile svg { width: 20px; height: 20px; }
.tile.peach { background: linear-gradient(180deg, #BA7044, #DFA77B); }
.tile.sage  { background: linear-gradient(180deg, #5F8271, #8DB89B); }
.tile.amber { background: linear-gradient(180deg, #A87A33, #D4AC62); }

/* Buttons and pills. */
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none;
  padding: 11px 15px; border-radius: 10px;
  background: var(--btn); color: var(--btn-ink);
  transition: opacity .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.alt { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); padding: 10px 14px; }
.btn:hover { opacity: .86; }
.card .btn, .sheet .btn { background: var(--peach-dark); color: #FFFFFF; align-self: flex-start; }
.card .btn:hover, .sheet .btn:hover { opacity: 1; background: var(--peach); }

/* Content sheet: one dark card for the support, privacy and terms text. */
.sheet {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 38px 38px; margin-top: 30px;
}
.sheet h1 { font-size: 30px; font-weight: 800; color: var(--ink); margin: 0 0 6px; letter-spacing: -.01em; }
.sheet .lede { font-size: 16px; color: var(--soft); margin: 0 0 4px; }
.sheet .updated { font-size: 13px; color: var(--faint); margin: 0 0 26px; }
.sheet h2 { font-size: 19px; font-weight: 800; color: var(--peach-text); margin: 34px 0 8px; }
.sheet h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin: 22px 0 6px; }
.sheet p, .sheet li { font-size: 15px; color: var(--soft); margin: 8px 0; }
.sheet ul { padding-left: 22px; margin: 8px 0; }
.sheet li { margin: 4px 0; }
.sheet a { color: var(--ink); text-underline-offset: 2px; }
.sheet strong { color: var(--ink); }
.sheet code { background: rgba(242,247,252,.10); padding: 1px 6px; border-radius: 4px; font-size: 13px; color: var(--ink); }
.sheet .btn { margin: 10px 0 6px; font-size: 15px; padding: 14px 22px; border-radius: 12px; }

/* Folding sections (support FAQ, and the per-store parts of the terms). */
.sheet details { margin: 8px 0; padding: 12px 16px; background: rgba(242,247,252,.06); border-left: 3px solid var(--peach); border-radius: 8px; }
.sheet details[open] { background: rgba(242,247,252,.09); }
.sheet summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 15px; list-style: none; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::before { content: '+'; display: inline-block; width: 18px; color: var(--peach-text); font-weight: 900; }
.sheet details[open] summary::before { content: '\2212'; }
.sheet details p { margin: 8px 0 0; font-size: 14px; }
.trader-info { background: rgba(242,247,252,.06); border-left: 3px solid var(--peach); padding: 14px 18px; border-radius: 8px; margin: 14px 0; }
.trader-info p { margin: 4px 0; font-size: 14px; }

/* Per-store colour coding. Both stores show on the website; inside the app
   Capacitor names the platform and the other store is hidden. Silver is
   Apple, green is Android, and each group carries a label chip. */
body.platform-ios     [data-platform="android"] { display: none; }
body.platform-android [data-platform="ios"]     { display: none; }
[data-platform="ios"]     { --plat: #9FB0C2; --plat-text: #DCE5EE; --plat-tint: rgba(159,176,194,.10); --plat-open: rgba(159,176,194,.16); }
[data-platform="android"] { --plat: #7FBF72; --plat-text: #CFEAC8; --plat-tint: rgba(127,191,114,.10); --plat-open: rgba(127,191,114,.16); }
[data-platform][data-label]::before {
  content: attr(data-label); display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--plat-text); border: 1px solid var(--plat);
  border-radius: 20px; padding: 3px 11px; margin: 18px 0 2px;
}
[data-platform] details { background: var(--plat-tint); border-left-color: var(--plat); }
[data-platform] details[open] { background: var(--plat-open); }
[data-platform] details summary::before { color: var(--plat-text); }
[data-platform] ul li::marker { color: var(--plat); }

/* Footer, as on 8stacks8.com. */
footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
footer p { margin: 0 0 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pills a { font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; }
.pills a:hover { background: var(--card); }
footer a { color: var(--ink); text-underline-offset: 2px; }

@media (max-width: 700px) {
  .wrap { padding: 28px 16px 44px; }
  header { flex-wrap: wrap; row-gap: 14px; }
  nav { flex: 0 0 100%; }
  nav a { margin: 0 18px 0 0; }
  .intro { margin-top: 32px; }
  .intro h1 { font-size: 28px; }
  .hero { grid-template-columns: minmax(0,1fr); gap: 22px; margin-top: 30px; }
  /* The disc group is laid out in pixels for the 300x236 desktop box, so on
     a phone the whole group is scaled rather than re-positioned. The box
     shrinks with it, or the bottom disc would sit over the headline. */
  .discs { order: -1; justify-self: start; width: 300px; height: 236px; transform: scale(.74); transform-origin: top left; margin-bottom: calc(-236px * .26); margin-right: calc(-300px * .26); }
  .grid { grid-template-columns: minmax(0,1fr); margin-top: 28px; }
  .sheet { padding: 24px 20px 28px; border-radius: 16px; margin-top: 24px; }
  .sheet h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .btn { transition: none; }
  .card:hover { transform: none; }
}
