/* Starsill web tokens — mirrored from Quiro/Sources/DesignSystem (QuiroColors, QuiroTypography,
   QuiroSpacing, VoidBackground) and the locked V1.1 token spec (00_token_spec.md).
   No external fonts or requests: system serif (New York on Apple) and system sans (SF). */

:root {
  --bg: #0B0E1A;
  --bg-end: #141829;
  --surface: #131729;
  --surface-grouped: #1A1F35;
  --text: #ECECEF;
  --text-2: #9A9DB5;
  --text-3: #5D6080;
  --accent: #C87E5A;
  --accent-ring: rgba(200, 126, 90, .55);
  --separator: #2A2E45;
  --glass-sep: rgba(255, 255, 255, .08);
  --glass-outline: rgba(255, 255, 255, .22);
  --nebula: #1E2846;

  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, system-ui, "SF Pro Text", "Segoe UI", Roboto, sans-serif;

  --s-xxs: 4px; --s-xs: 8px; --s-sm: 12px; --s-md: 16px; --s-lg: 20px;
  --s-xl: 24px; --s-xxl: 32px; --s-xxxl: 48px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-btn: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- VoidBackground: gradient + cyan upper-left + copper lower-right + static stars ---------- */
.void {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(360px 360px at 12% 8%, rgba(0, 255, 255, .12), transparent 70%),
    radial-gradient(320px 320px at 86% 88%, rgba(200, 126, 90, .18), transparent 70%),
    linear-gradient(135deg, var(--bg), var(--bg-end));
}
.void canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Liquid Glass (web approximation of QuiroMaterial) ---------- */
.glass {
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---------- Pre-approval App Store state: V2 glass capsule, copper ring + copper label, never filled ---------- */
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  border-color: var(--accent-ring) !important;
  color: var(--accent); font: 600 17px/1 var(--sans); letter-spacing: -.01em;
}
.soon svg { flex: none; }
.meta-line { color: var(--text-2); font-size: 13px; margin-top: var(--s-sm); }

/* ---------- Type ---------- */
.overline { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.serif { font-family: var(--serif); }

/* ---------- Covers: radius 0, 2:3, 1px gutter grid ---------- */
.cov {
  aspect-ratio: 2 / 3; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8% 9%; color: #fff; font-family: var(--serif);
}
.cov b { font-weight: 600; font-size: var(--cov-t, 9px); line-height: 1.15; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.cov i { font-style: normal; font-family: var(--sans); font-size: var(--cov-a, 6.5px); opacity: .8; letter-spacing: .02em; }
.c1{background:linear-gradient(160deg,#7a3b2e,#3c1a12)} .c2{background:linear-gradient(160deg,#2e5a7a,#122c3c)}
.c3{background:linear-gradient(160deg,#5a7a2e,#26380f)} .c4{background:linear-gradient(160deg,#6b4f8a,#2a1c3c)}
.c5{background:linear-gradient(160deg,#a8842e,#4c380f)} .c6{background:linear-gradient(160deg,#8a2e4f,#3c0f1e)}
.c7{background:linear-gradient(160deg,#2e8a7a,#0f3c34)} .c8{background:linear-gradient(160deg,#54606e,#232a33)}
.c9{background:linear-gradient(160deg,#b0623a,#4e2410)} .c10{background:linear-gradient(160deg,#d8cfc0,#9c8f7a);color:#1d1a16}
.c11{background:linear-gradient(160deg,#1f2f4f,#0c1426)} .c12{background:linear-gradient(160deg,#c9a43f,#6b4b12)}
.c10 b { text-shadow: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }

/* ---------- Phone frame + app screens (mockups; final site swaps in real screenshots) ---------- */
.phone {
  --w: 280px;
  width: var(--w); aspect-ratio: 9 / 19.5; border-radius: calc(var(--w) * .15);
  position: relative; overflow: hidden; flex: none;
  box-shadow: 0 0 0 7px #1c1f2b, 0 0 0 8px #2a2e45, 0 30px 70px rgba(0, 0, 0, .6);
  font-family: var(--sans); color: var(--text);
}
.phone .scr {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(90% 55% at 85% 95%, rgba(200,126,90,.13), transparent 60%),
    radial-gradient(80% 50% at 10% 5%, rgba(60,110,160,.15), transparent 60%),
    linear-gradient(180deg, #0B0E1A, #141829);
}
.phone .island { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 30%; height: 22px; border-radius: 20px; background: #000; z-index: 5; }
.phone .status { height: 44px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0; font: 600 11px var(--sans); color: var(--text); z-index: 4; }

/* Screen 1 — a social post with a cover (fixture A situation) */
.scr.post { background: #000; }
.post .ph { display: flex; align-items: center; gap: 8px; padding: 6px 12px; font-size: 11px; }
.post .av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#e0a46b,#8a3b6b); }
.post .pic { aspect-ratio: 1; background: radial-gradient(70% 60% at 50% 40%, #6a5a48, #2e261d); display: grid; place-items: center; }
.post .pic .cov { width: 46%; --cov-t: 13px; --cov-a: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.55); transform: rotate(-4deg); }
.post .acts { display: flex; gap: 14px; padding: 10px 12px 4px; color: #fff; }
.post .cap { padding: 2px 12px; font-size: 11px; line-height: 1.4; color: #ddd; }
.post .cap b { color: #fff; }
.post .shot { position: absolute; inset: 0; border: 3px solid rgba(255,255,255,.85); border-radius: inherit; pointer-events: none; opacity: 0; }

/* Screen 2 — "Which one is your book?" */
.pick .body { padding: 8px 16px; display: flex; flex-direction: column; gap: 12px; }
.pick .thumb { width: 64px; aspect-ratio: 9/16; background: #000; border-radius: 6px; border: 1px solid var(--glass-sep); display: grid; place-items: center; align-self: center; }
.pick .thumb .cov { width: 50%; padding: 2px; --cov-t: 3.5px; --cov-a: 0px; }
.pick h4 { margin: 4px 0 0; font: 600 19px/1.2 var(--serif); text-align: center; }
.pick .row { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-md); }
.pick .row .cov { width: 44px; padding: 3px; --cov-t: 5px; --cov-a: 0; flex: none; }
.pick .row .t { font: 600 13px/1.25 var(--serif); }
.pick .row .a { font-size: 11px; color: var(--text-2); }
.pick .row .src { font-size: 9.5px; color: var(--text-3); margin-top: 2px; }
.pick .row.sel { border-color: var(--accent-ring); }

/* Screen 3 — Library (no visible count on the website: tone limit) */
.lib .hdr { padding: 6px 16px 10px; display: flex; justify-content: space-between; align-items: center; }
.lib .hdr h4 { margin: 0; font: 700 24px/1 var(--serif); }
.lib .search { margin: 0 16px 10px; padding: 7px 12px; border-radius: var(--r-btn); color: var(--text-3); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.lib .grid3 { padding: 0 16px; }
.lib .cov { --cov-t: 8px; --cov-a: 5.5px; }
.lib .new { box-shadow: 0 0 0 1.5px var(--accent), 0 0 18px rgba(200,126,90,.55); z-index: 1; }
.bottombar { position: absolute; left: 16px; right: 16px; bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.bottombar .menu { display: flex; gap: 20px; padding: 10px 18px; border-radius: 28px; font-size: 9.5px; color: var(--text-2); }
.bottombar .menu span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bottombar .menu .on { color: var(--accent); }
.bottombar .fab { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border-color: var(--accent-ring); }

/* FAQ disclosure (shared behavior) */
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
