/* HTML Summoner landing page: shared system.
   Tokens, type and components every page uses. A page adds layout only.
   Deploys cache /assets/* for a year (_headers), so every page links this file as
   site.css?v=N: bump N in every page whenever this file changes. */

:root {
  --page: #ffffff;
  --panel: #f1f5ff;          /* a pale genie blue, for grouped surfaces */
  --ink: #0b0c14;            /* on --page and --panel */
  --ink-soft: #4a4e5e;       /* secondary text on --page and --panel */
  --accent: #0b23ff;         /* the app's AccentColor */
  --accent-deep: #0718b8;    /* accent hover */
  --on-accent: #ffffff;
  --gold: #e3a82b;           /* the lamp and the cuffs; decorative only, never text */
  /* the rub smoke, sampled from the app's own recording; decorative only, never text */
  --smoke-blue: #4c82fe;
  --smoke-periwinkle: #85a1f7;
  --smoke-lavender: #ba9ff7;
  --smoke-orchid: #d8abf0;

  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 112px;
  --radius: 28px;
  --measure: 34rem;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }

/* The art is drawn on white; multiply drops that white into whatever ground it sits on. */
.art { mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }

/* Type */
.eyebrow {
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.display {
  font-size: clamp(48px, 9vw, 112px); line-height: 0.98; font-weight: 500; letter-spacing: -0.03em;
  text-wrap: balance;
}
.title {
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; font-weight: 500; letter-spacing: -0.02em;
  text-wrap: balance;   /* even lines, never a one-word last line */
}
.lede { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: var(--ink-soft); max-width: var(--measure); }
.body { color: var(--ink-soft); max-width: var(--measure); }
.body + .body { margin-top: var(--space-2); }

/* The App Store badge: Apple's artwork, black, one per page, at least 40px tall,
   clear space of a quarter of its height (Apple's marketing guidelines). */
.badge { display: inline-block; padding: 14px; line-height: 0; }
.badge img { height: 54px; width: auto; }

/* The primary button, for a download ask that isn't the badge (one badge per page).
   Same colourway as the back pill: the pale panel with accent text (Rex). */
.cta {
  display: inline-block; padding: 16px 28px; border-radius: 999px;
  background: var(--panel); color: var(--accent); font-size: 18px; font-weight: 500;
}

/* The three file types: three cards in a row, each with its icon */
.types { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
@media (min-width: 720px) { .types { grid-template-columns: repeat(3, 1fr); } }
.type { background: var(--panel); border-radius: var(--radius); padding: var(--space-3); display: grid; gap: var(--space-1); align-content: start; }
.type svg { width: 32px; height: 32px; color: var(--accent); margin-bottom: var(--space-2);
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.type b { font: 500 22px/1.1 var(--mono); color: var(--ink); }
.type p { color: var(--ink-soft); font-size: 17px; }

/* Links: colour flip only */
a { color: var(--accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--accent-deep); }
}

/* Back to the home page: a pill that names where it goes, like an iOS back button */
.back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--panel); color: var(--accent); font-size: 16px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* Smoke glow: on hover a blurred band of the smoke's colours drifts behind a button.
   Rex asked for it on the buttons (2026-09-18), in place of the plain colour flip. */
.glow { position: relative; }
.glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(45deg, var(--smoke-blue), var(--smoke-periwinkle), var(--smoke-lavender), var(--smoke-orchid), var(--smoke-blue));
  background-size: 200%; filter: blur(10px); opacity: 0;
  transition: opacity 250ms ease-out; animation: smoke-drift 5s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .glow:hover::before { opacity: 1; }
}
.glow:focus-visible::before { opacity: 1; }
.glow:focus-visible { outline: none; }
@keyframes smoke-drift { 0%, 100% { background-position: 0 0; } 50% { background-position: 200% 0; } }

/* Sparkles: five four-point stars around a glowing button, twinkling in and out while
   it glows. Markup is <span class="stars" aria-hidden="true"> with five <i>. They sit
   outside the button's box. Not on the App Store badge: Apple's clear space, and Rex's call. */
.stars { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 250ms ease-out; }
.stars i {
  position: absolute; width: 18px; height: 18px; background: var(--gold);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 1.8s ease-in-out infinite; transform: scale(0);
}
.stars i:nth-child(1) { left: -16px; top: -12px; animation-delay: 0s; }
.stars i:nth-child(2) { right: 12%; top: -20px; width: 13px; height: 13px; background: var(--smoke-lavender); animation-delay: 0.5s; }
.stars i:nth-child(3) { right: -22px; top: 30%; width: 20px; height: 20px; animation-delay: 1.1s; }
.stars i:nth-child(4) { left: 24%; bottom: -20px; width: 13px; height: 13px; background: var(--smoke-orchid); animation-delay: 0.8s; }
.stars i:nth-child(5) { left: -22px; bottom: 4px; width: 11px; height: 11px; background: var(--smoke-periwinkle); animation-delay: 1.4s; }
@keyframes twinkle { 0%, 100% { transform: scale(0) rotate(-15deg); opacity: 0; } 45% { transform: scale(1) rotate(0deg); opacity: 1; } 70% { transform: scale(0.7) rotate(10deg); opacity: 0.7; } }
@media (hover: hover) and (pointer: fine) {
  .glow:hover .stars { opacity: 1; }
}
.glow:focus-visible .stars { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .stars { display: none; } }

/* The fine print: a native disclosure list */
.faq { border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.faq details { border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-3) 0;
  display: flex; justify-content: space-between; gap: var(--space-2);
  font-size: 20px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding-bottom: var(--space-3); max-width: var(--measure); }
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--accent); }
}

.footer {
  padding: var(--space-5) var(--gutter); color: var(--ink-soft); font-size: 16px;
  display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between;
}

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