/* Phase policy pages. The same paper, serif and sky as the app page, set for long reading:
   a short night sky that blends into the page, a contents list that stays beside the text, and one measure of type. */
:root {
  --paper: #f5f3ee; --surface: #ffffff; --ink: #1a1c20; --ink-2: #5f5c56; --ink-3: #9a968d; --hair: #e6e2d9;
  --btn: #111114; --btn-ink: #ffffff; --chip: #eceae3; --blue: #3478f6;
  --serif: ui-serif, "New York", "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Geist", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --card: 0 0 0 1px rgba(26, 28, 32, 0.04), 0 1px 2px rgba(26, 28, 32, 0.04), 0 18px 40px -26px rgba(26, 28, 32, 0.22);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b0c11; --surface: #17181f; --ink: #f0f2f5; --ink-2: #a5a2ad; --ink-3: #6f6d79; --hair: #272833;
    --btn: #f5f5f7; --btn-ink: #111114; --chip: #20212a; --blue: #6ea2ff;
    --card: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 18px 40px -26px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17.5px; line-height: 1.6; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

/* sky */
.sky { position: relative; isolation: isolate; color: #fff; padding: 12px 0 clamp(150px, 20vw, 230px);
  background: linear-gradient(180deg, #171848 0%, #25256a 26%, #4a3d8c 48%, #7d5196 62%, #c9667f 74%, #f98f55 83%, #ffb061 89%, var(--paper) 100%); }
.sky::after { content: ""; position: absolute; z-index: -1; inset: 0 0 45% 0; background-image: radial-gradient(1.4px 1.4px at 8% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 19% 64%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 33% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 46% 70%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 58% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 71% 58%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 83% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 93% 66%, #fff 50%, transparent 51%); animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.45; } }
.bar { display: flex; align-items: center; gap: 6px; width: min(100%, 860px); margin-inline: auto; padding: 7px 7px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 34px -16px rgba(0, 0, 0, 0.5); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 10px; text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.3), 0 4px 10px -4px rgba(0, 0, 0, 0.5); }
.bar nav { display: flex; margin-left: auto; }
.bar nav a { padding: 11px 13px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.82; transition: opacity 0.2s, background-color 0.2s; }
.bar nav a:hover, .bar nav a[aria-current] { opacity: 1; background: rgba(255, 255, 255, 0.14); }
.bar .get { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: #fff; color: #111114; text-decoration: none; font-weight: 600; font-size: 15px; transition: scale 0.2s var(--ease); }
.bar .get:hover { scale: 1.04; }
@media (max-width: 560px) { .bar .get { display: none; } .bar nav a { padding-inline: 10px; } }
.mast { display: flex; flex-direction: column; gap: 16px; padding-top: clamp(56px, 9vw, 110px); }
.mast .kicker { color: rgba(255, 255, 255, 0.74); }
.mast h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 8vw, 100px); line-height: 0.98; letter-spacing: -0.03em; text-shadow: 0 2px 30px rgba(20, 16, 70, 0.35); }
.mast p { color: rgba(255, 255, 255, 0.88); font-size: clamp(17px, 1.7vw, 20px); max-width: 50ch; }

/* body */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; margin-top: clamp(-110px, -11vw, -70px); position: relative; z-index: 1; padding-bottom: clamp(70px, 10vw, 130px); }
.toc { position: sticky; top: 24px; background: var(--surface); border-radius: 22px; box-shadow: var(--card); padding: 18px 8px 10px; max-height: calc(100vh - 48px); overflow: auto; }
.toc .kicker { display: block; padding: 0 14px 8px; }
.toc ol { list-style: none; counter-reset: n; }
.toc li { counter-increment: n; }
.toc a { display: grid; grid-template-columns: 26px 1fr; padding: 7px 14px; border-radius: 12px; text-decoration: none; font-size: 15px; line-height: 1.35; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.toc a::before { content: counter(n); font-family: var(--serif); color: var(--ink-3); }
.toc a:hover { background: var(--chip); color: var(--ink); }
.text { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 56px); max-width: 68ch; }
.short { background: var(--surface); border-radius: 26px; box-shadow: var(--card); padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; }
.short h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; }
.short ul { list-style: none; display: flex; flex-direction: column; }
.short li { position: relative; padding: 11px 0 11px 34px; border-top: 1px solid var(--hair); }
.short li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 7px; border-left: 2.2px solid var(--blue); border-bottom: 2.2px solid var(--blue); rotate: -45deg; }
.text section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
.text section > h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.text section > h2 span { font-size: 0.62em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.text h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-top: 8px; }
.text p, .text li { color: var(--ink-2); }
.text strong { color: var(--ink); font-weight: 600; }
.text section ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.text a { color: var(--ink); }
.note { background: var(--chip); border-radius: 18px; padding: 16px 20px; color: var(--ink); }
.note p { color: var(--ink); }
/* the App Store privacy label, laid out the way the store shows it: one card per group */
.labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.lab { background: var(--surface); border-radius: 22px; box-shadow: var(--card); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.lab svg { color: var(--blue); }
.lab h3 { margin: 4px 0 0; font-size: 18px; }
.lab p { font-size: 15.5px; line-height: 1.45; }
.lab ul { list-style: none; padding: 0 !important; margin-top: 4px; gap: 0 !important; }
.lab li { padding: 9px 0; border-top: 1px solid var(--hair); font-size: 15.5px; line-height: 1.4; }
.lab li b { display: block; color: var(--ink); font-weight: 600; }
.lab .none { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
th { color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.table { overflow-x: auto; }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc ol { columns: 2; column-gap: 4px; }
  td:first-child { white-space: normal; }
}
@media (max-width: 480px) { .toc ol { columns: 1; } }

footer { border-top: 1px solid var(--hair); padding-block: 26px calc(30px + env(safe-area-inset-bottom, 0px)); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; font-size: 15px; color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { text-decoration: none; font-weight: 500; color: var(--ink); }
.foot a:hover { text-decoration: underline; }
.studio { display: inline-flex; align-items: center; gap: 9px; }
.studio svg { width: 22px; height: 22px; }
.studio em { font-family: Baskerville, "Iowan Old Style", Georgia, serif; font-size: 1.1em; }

@media (prefers-reduced-motion: no-preference) {
  .mast > * { animation: up 1.1s var(--ease) both; }
  .mast > :nth-child(2) { animation-delay: 0.08s; } .mast > :nth-child(3) { animation-delay: 0.18s; }
  .doc { animation: up 1.1s var(--ease) 0.25s both; }
}
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .sky { background: none; color: #000; padding-bottom: 20px; } .bar, .toc, footer { display: none; } .doc { display: block; margin-top: 0; } .mast .kicker, .mast p { color: #333; } }
