/* Arcana Bloom — colours taken from the Arcana Veil app icon: deep indigo, gold, cornflower blue. */
:root {
  --night: #12143a;
  --indigo: #232765;
  --indigo-soft: #2e3380;
  --gold: #e8c66a;
  --gold-deep: #c9a443;
  --cornflower: #6495ed;
  --ink: #f4f1e8;
  --ink-muted: #c3c3dc;
  --paper: #fbf8f0;
  --paper-ink: #24264a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(100, 149, 237, 0.25), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(232, 198, 106, 0.08), transparent 60%),
    var(--night);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.04em; }
.brand span b { color: var(--gold); font-weight: 600; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }

main { flex: 1; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.78rem; color: var(--gold); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h1 em { font-style: italic; color: var(--gold); }
.lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 34em; margin: 0 0 28px; }

.store-button {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 10px;
  background: var(--gold); color: var(--night);
  font-weight: 600; text-decoration: none;
  border: 1px solid var(--gold-deep);
}
.store-button:hover { background: #f3d98d; color: var(--night); }
.store-button[aria-disabled="true"] { cursor: default; background: transparent; color: var(--gold); }
.store-button svg { width: 20px; height: 20px; }
.hero-note { margin-top: 14px; font-size: 0.88rem; color: var(--ink-muted); }

/* Fanned cards */
.fan { position: relative; height: 420px; }
.fan img {
  position: absolute; left: 50%; top: 50%;
  width: 190px; border-radius: 10px;
  border: 3px solid #1b1d48;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 120%;
}
.fan img:nth-child(1) { transform: translate(-50%, -50%) rotate(-24deg); }
.fan img:nth-child(2) { transform: translate(-50%, -52%) rotate(-8deg); }
.fan img:nth-child(3) { transform: translate(-50%, -54%) rotate(8deg); }
.fan img:nth-child(4) { transform: translate(-50%, -52%) rotate(24deg); }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-title { text-align: center; max-width: 40em; margin: 0 auto 40px; }
.section-title h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.section-title p { color: var(--ink-muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: linear-gradient(180deg, rgba(46, 51, 128, 0.55), rgba(35, 39, 101, 0.35));
  border: 1px solid rgba(232, 198, 106, 0.22);
  border-radius: var(--radius); padding: 26px;
}
.step .num { font-family: var(--serif); color: var(--gold); font-size: 1.9rem; line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-muted); }

.screenshot {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(232, 198, 106, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.caption { text-align: center; color: var(--ink-muted); font-size: 0.92rem; margin-top: 14px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; max-width: 900px; margin: 0 auto; }
.feature h3 { font-size: 1.2rem; color: var(--gold); margin-bottom: 4px; }
.feature p { margin: 0; color: var(--ink-muted); }

.studio { text-align: center; }
.studio p { max-width: 40em; margin: 0 auto; color: var(--ink-muted); }

/* ---------- Document pages (privacy, terms, support) ---------- */
.doc { padding: 24px 0 72px; }
.doc article {
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius); padding: clamp(26px, 5vw, 56px);
  max-width: 820px; margin: 0 auto;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--paper-ink); }
.doc h2 { font-size: 1.4rem; margin-top: 36px; color: var(--paper-ink); }
.doc a { color: #3a55b8; }
.doc a:hover { color: #1e2f78; }
.doc .updated { color: #6a6b86; margin-top: -6px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.callout {
  background: #eef2fd; border-left: 4px solid var(--cornflower);
  padding: 14px 18px; border-radius: 8px; margin: 20px 0;
}
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(232, 198, 106, 0.18); padding: 28px 0; font-size: 0.9rem; color: var(--ink-muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-inline: auto; }
  .fan { height: 340px; }
  .fan img { width: 150px; }
  .steps, .features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
