/* My Fan website. Dark tokens from the app (docs/design/2026-11-18-ui-design.md §2); dark only, so the page matches its screenshots. */
:root {
  color-scheme: dark;
  --bg: #000; --surface: #1c1c1e; --raised: #2c2c2e; --sep: #38383a;
  --label: #fff; --label2: #98989f; --accent: #5ee6d0; --on-accent: #00302b; --wash: #12302c;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 9vw, 64px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 5vw, 34px); letter-spacing: -.01em; }
h3 { font-size: 17px; }
main.narrow h2 { margin-top: 1.6em; }
p { margin: 0 0 1em; }
.muted, small { color: var(--label2); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 1; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
header.top { padding: 16px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--label); text-decoration: none; font-weight: 600; font-size: 20px; }
.brand svg { width: 28px; height: 28px; color: var(--accent); }
nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
nav a { color: var(--label2); text-decoration: none; padding: 10px 0; display: inline-block; }
nav a:hover, nav a[aria-current] { color: var(--label); }

section { padding: 48px 0; }
.card { background: var(--surface); border-radius: 14px; padding: 16px 20px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Hero and the animated mark (UI spec §4, then a slow idle turn) */
.hero { text-align: center; padding-top: 32px; padding-bottom: 48px; }
.hero .mark { width: min(300px, 80vw); margin: 0 auto 16px; color: var(--accent); }
.hero .pitch { font-size: clamp(20px, 4vw, 24px); max-width: 30em; margin: 0 auto 24px; }
.store { margin: 12px 0; }  /* Apple's badge: unmodified, ≥ 40 px tall, clear space ≥ ¼ of its height */
.store a { display: inline-block; }
.store img { display: block; }
.store.end { margin-top: 24px; }
.mark .ring { fill: none; stroke: var(--raised); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 290 290; animation: ring .25s ease-out both; transform: rotate(-90deg); transform-origin: 50px 50px; }
.mark .hub { fill: var(--bg); }
.mark .idle { transform-origin: 50px 50px; animation: turn 6s linear 1.15s 2;  /* two slow turns, then rest */ }
.mark .blades { transform-origin: 50px 50px; animation: appear .3s ease-out both, spinup 1s cubic-bezier(.3, 0, .2, 1) .15s both; }
.mark .air rect { fill: var(--accent); opacity: 0; animation: air .55s ease-out both; }
.mark .air rect:nth-child(2) { animation-delay: .53s; }
.mark .air rect:nth-child(3) { animation-delay: .61s; }
.mark .air rect:nth-child(1) { animation-delay: .45s; }
.hero h1 { animation: word .4s ease-out .3s both; }
@keyframes ring { from { stroke-dashoffset: 290; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; scale: .6; } }
@keyframes spinup { from { rotate: 0deg; } to { rotate: 480deg; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes air { 50% { opacity: 1; } to { opacity: 0; transform: translateX(18px); } }
@keyframes word { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Siri phrases */
.phrases { list-style: none; padding: 4px 20px; margin: 0 0 1em; }
.phrases li { padding: 12px 0; border-top: 1px solid var(--sep); }
.phrases li:first-child { border-top: 0; }
.phrases q { font-size: 20px; font-weight: 600; quotes: "“" "”"; }
.phrases small { display: block; font-size: 15px; }

/* Control Center strip: the ring-gauge symbols from docs/design/symbols */
.cc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 12px; list-style: none; padding: 20px; margin: 0 0 12px; background: var(--surface); border-radius: 28px; }
.cc li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--label2); text-align: center; }
.cc span { width: 64px; height: 64px; border-radius: 50%; background: var(--raised); display: grid; place-items: center; color: var(--label); }
.cc svg { width: 30px; height: 30px; }
.cc .on span { background: var(--accent); color: var(--on-accent); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; gap: 16px; list-style: none; padding: 0; margin: 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; max-width: 280px; height: auto; margin: 0 auto; border-radius: 28px; border: 1px solid var(--sep); background: #000; }
figcaption { text-align: center; color: var(--label2); font-size: 15px; margin-top: 10px; }

/* Help-style steps on Support */
ol.steps { padding-left: 1.4em; margin: 0 0 1em; }
ol.steps li { margin: 6px 0; }
ol.steps li::marker { color: var(--accent); font-weight: 600; }
.why { list-style: none; padding: 0; margin: 0; }
.why li { padding: 12px 0; border-top: 1px solid var(--sep); }
.why li:first-child { border-top: 0; }
dl.faq dt { font-weight: 600; margin-top: 16px; }
dl.faq dd { margin: 4px 0 0; color: var(--label2); }

footer { padding: 32px 0 48px; border-top: 1px solid var(--sep); color: var(--label2); font-size: 15px; }
footer a { display: inline-block; padding: 8px 0; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0 0 8px; }
