/* Augrym — site styles. The game's own look: Augrym sky, chunky rounded panels,
   heavy rounded type, the four tier colours and the orange brick of the icon.
   Every colour here is a value from Canary's Tokens.swift, except where a
   darker shade is named for text contrast (WCAG AA). */
:root {
  --sky: #6bb3ee;          /* Tokens.Colour.sky, the icon's ground */
  --sky-deep: #3d8fd6;
  --sky-pale: #eaf4fd;
  --page: #f6f9fc;
  --panel: #ffffff;
  --edge: #d9e0eb;         /* panelEdge */
  --ink: #1c2129;          /* ink */
  --ink-soft: #5a6476;     /* inkSoft, darkened to 4.5:1 on every ground here */
  --accent: #3385eb;       /* accent: tap this */
  --accent-deep: #1f63c0;
  --correct: #4db866;      /* correct */
  --correct-strong: #2a8042; /* correct, dark enough for white type */
  --gold: #f2bf38;         /* gold */
  --brick: #df7e3e;        /* the icon's brick */
  --brick-deep: #7f3e12;
  --brick-strong: #b45a1f; /* the brick, dark enough for white type and for type on white */
  --follow: #9e66f5;       /* follow */
  --grass: #cfe4b9;
  --sand: #f1e4bf;
  --t1: #e6e6de;           /* tierOne */
  --t2: #ed9933;           /* tierTwo */
  --t3: #ade0db;           /* tierThree */
  --t4: #4073e0;           /* tierFour */
  --radius: 22px;
  --round: ui-rounded, "Nunito", "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 600 17px/1.6 var(--round); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
b, strong { font-weight: 800; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
/* Not upper-cased: a pill may name iPhone, which Apple has always typeset with a lower-case i. */
.eyebrow.pill { background: rgba(255, 255, 255, .85); color: var(--ink); padding: 6px 14px; border-radius: 999px; text-transform: none; letter-spacing: .01em; font-size: 15px; box-shadow: 0 3px 0 rgba(28, 33, 41, .12); }

/* ---------- nav ---------- */
nav.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(12px); border-bottom: 2px solid var(--edge); }
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
nav.top ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
nav.top ul a { color: var(--ink-soft); font-size: 16px; font-weight: 800; }
nav.top ul a:hover, nav.top ul a[aria-current] { color: var(--ink); text-decoration: none; }
nav.top ul a[aria-current] { box-shadow: inset 0 -3px 0 var(--brick); }
nav.top ul a.btn { color: #fff; box-shadow: 0 3px 0 var(--brick-deep); }
nav.top ul a.btn:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 16px; font: 900 17px var(--round); background: var(--brick-strong); color: #fff; border: 0; cursor: pointer; box-shadow: 0 5px 0 var(--brick-deep); transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { text-decoration: none; transform: translateY(1px); box-shadow: 0 4px 0 var(--brick-deep); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--brick-deep); }
.btn.blue { background: var(--accent); box-shadow: 0 5px 0 var(--accent-deep); }
.btn.blue:hover { box-shadow: 0 4px 0 var(--accent-deep); }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(28, 33, 41, .18); }
.btn.white:hover { box-shadow: 0 4px 0 rgba(28, 33, 41, .18); }
.btn.sm { padding: 8px 16px; font-size: 15px; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- hero: Augrym sky over a strip of blocks ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #5aa8ea 0%, var(--sky) 45%, #a9d3f5 100%); color: var(--ink); padding: 72px 0 0; }
.hero .cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .85; }
.hero .cloud::before, .hero .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 999px; }
.hero .cloud.c1 { width: 180px; height: 44px; top: 70px; left: 6%; }
.hero .cloud.c1::before { width: 80px; height: 64px; left: 30px; top: -30px; }
.hero .cloud.c1::after { width: 64px; height: 50px; left: 92px; top: -20px; }
.hero .cloud.c2 { width: 140px; height: 36px; top: 150px; right: 8%; opacity: .7; }
.hero .cloud.c2::before { width: 64px; height: 52px; left: 26px; top: -24px; }
.hero .cloud.c2::after { width: 48px; height: 38px; left: 72px; top: -16px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); margin: 20px 0 20px; color: var(--ink); }
.hero h1 span { color: var(--brick-strong); background: #fff; padding: 0 .16em; border-radius: .18em; box-shadow: 0 5px 0 rgba(28, 33, 41, .14); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lede { font-size: 20px; line-height: 1.55; max-width: 32em; color: #10233d; }
.hero .lede + .lede { margin-top: 12px; }
.hero .note { margin-top: 18px; font-size: 14px; font-weight: 800; color: #10233d; }

.stage { position: relative; aspect-ratio: 1 / 1; max-width: 480px; justify-self: center; width: 100%; }
.stage .icon { position: absolute; inset: 14%; width: 72%; border-radius: 22%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .55), 0 18px 0 rgba(16, 35, 61, .16); animation: bob 5s ease-in-out infinite; }
.stage .tag { position: absolute; animation: bob 4s ease-in-out infinite; }
.stage .tag:nth-of-type(1) { left: 0; top: 6%; animation-delay: -1s; transform: rotate(-8deg); }
.stage .tag:nth-of-type(2) { right: 0; top: 0; animation-delay: -2s; }
.stage .tag:nth-of-type(3) { left: 2%; bottom: 8%; animation-delay: -3s; }
.stage .tag:nth-of-type(4) { right: 2%; bottom: 14%; animation-delay: -.5s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .stage .icon, .stage .tag { animation: none; } }

/* the ground the hero stands on: a row of blocks */
.ground { position: relative; height: 56px; margin-top: 64px; background:
  linear-gradient(180deg, #8fca6a 0 18px, #6aa84a 18px 22px, #a0703f 22px 100%);
}
.ground::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(0, 0, 0, .09) 2px, transparent 2px); background-size: 56px 100%; }

/* ---------- question tags: one question, one tier, one number ---------- */
.tag { --c: var(--t1); --fg: var(--ink); display: inline-grid; place-items: center; align-content: center; width: 104px; height: 104px; border-radius: 22px; background: var(--c); color: var(--fg); box-shadow: 0 6px 0 rgba(28, 33, 41, .22), inset 0 0 0 3px rgba(255, 255, 255, .45); font-family: var(--round); }
.tag .g { font-size: 34px; font-weight: 900; line-height: 1; }
.tag .n { font-size: 26px; font-weight: 900; line-height: 1.1; margin-top: 6px; }
.tag.t2 { --c: var(--t2); }
.tag.t3 { --c: var(--t3); }
.tag.t4 { --c: var(--t4); --fg: #fff; }
.tag.sm { width: 78px; height: 78px; border-radius: 18px; }
.tag.sm .g { font-size: 24px; }
.tag.sm .n { font-size: 19px; margin-top: 3px; }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -28px; position: relative; z-index: 2; }
.stat { background: var(--panel); border: 2px solid var(--edge); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: 0 6px 0 var(--edge); }
.stat b { display: block; font-size: 32px; font-weight: 900; line-height: 1.05; color: var(--ink); }
.stat b small { font-size: 18px; color: var(--ink-soft); }
.stat span { font-size: 15px; color: var(--ink-soft); font-weight: 700; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--sky-pale); }
section.grass { background: linear-gradient(180deg, #eef7e4, #e2f0d3); }
section.night { background: #15233b; color: #e9f0fa; }
section.night .eyebrow { color: var(--gold); }
section.night p { color: #b7c6dc; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 44px; }
.head h2 { font-size: clamp(32px, 4vw, 46px); margin-top: 12px; }
.head > p { font-size: 18px; color: var(--ink-soft); }
section.night .head > p { color: #b7c6dc; }
section.night h2, section.night p b, section.night p a { color: #fff; }
.center { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.center h2 { font-size: clamp(32px, 4vw, 46px); margin: 12px 0 14px; }
.center p { font-size: 18px; color: var(--ink-soft); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 2px solid var(--edge); border-radius: var(--radius); padding: 26px; box-shadow: 0 6px 0 var(--edge); }
.card h3 { font-size: 22px; margin: 14px 0 8px; }
.card p { color: var(--ink-soft); font-size: 16px; }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: #fff; background: var(--accent); box-shadow: 0 4px 0 var(--accent-deep); }
.card .ico.brick { background: var(--brick-strong); box-shadow: 0 4px 0 var(--brick-deep); }
.card .ico.green { background: var(--correct-strong); box-shadow: 0 4px 0 #1d5c2f; }
.card .ico.gold { background: var(--gold); color: var(--ink); box-shadow: 0 4px 0 #c2921c; }
.card .ico.violet { background: var(--follow); box-shadow: 0 4px 0 #6d3fc4; }
section.night .card { background: #1d2f4d; border-color: #2c4266; box-shadow: 0 6px 0 #0d1828; }
section.night .card h3 { color: #fff; }
section.night .card p { color: #b7c6dc; }
.card .ticks { margin-top: 16px; }

/* the loop: four steps joined by arrows */
.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.loop .card { position: relative; }
.loop .card::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 17px; }
.loop .card:not(:last-child)::after { content: "→"; position: absolute; right: -19px; top: 50%; translate: 0 -50%; font-size: 22px; font-weight: 900; color: var(--brick); z-index: 1; }
.loop .card .emoji { font-size: 38px; line-height: 1; margin-top: 8px; }

/* the ladder: the four tiers, cheapest to dearest */
.ladder { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.ladder .rungs { display: flex; gap: 18px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.ladder .rung { display: grid; justify-items: center; gap: 12px; }
.ladder .rung:nth-child(2) { margin-bottom: 26px; }
.ladder .rung:nth-child(3) { margin-bottom: 52px; }
.ladder .rung:nth-child(4) { margin-bottom: 78px; }
.ladder .rung small { font-size: 13px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.ladder h2 { font-size: clamp(32px, 4vw, 46px); margin: 12px 0 18px; }
.ladder p { font-size: 18px; color: var(--ink-soft); }
.ladder p + p { margin-top: 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-size: 17px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: var(--correct-strong); color: #fff; font-size: 14px; font-weight: 900; display: grid; place-items: center; }
section.night .ticks li::before { background: var(--gold); color: var(--ink); }
.ticks.no li::before { content: "✕"; background: #e05a52; color: #fff; }

/* places: chips on a shelf */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); font-weight: 800; color: var(--ink); }
.chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 19px; background: var(--grass); }
.chip.shop i { background: #fde3cf; }
.chip.home i { background: #e8dccd; }

/* places and bazaars, full cards on the world page */
.place { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; }
.place .pic { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 38px; background: var(--grass); box-shadow: 0 5px 0 #a9c98f; }
.place .pic.shop { background: #fde3cf; box-shadow: 0 5px 0 #e9b892; }
.place .pic.home { background: #e8dccd; box-shadow: 0 5px 0 #c4ad94; }
.place h3 { margin: 4px 0 6px; }

/* a short story told in steps (the first few minutes) */
.story { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.story .beat { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start; }
.story .time { font-weight: 900; font-size: 15px; background: var(--ink); color: #fff; border-radius: 12px; padding: 6px 0; text-align: center; }
.story + .pull { margin-top: 56px; }
.story h3 { font-size: 21px; margin-bottom: 6px; }
.story p { color: var(--ink-soft); }

/* a quote that sums it up */
.pull { max-width: 860px; margin: 0 auto; text-align: center; font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.3; letter-spacing: -.01em; }
.pull em { font-style: normal; color: var(--brick-strong); }
.pull + p { text-align: center; margin-top: 18px; color: var(--ink-soft); }

/* split: words beside a visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 12px 0 16px; }
.split p { font-size: 18px; color: var(--ink-soft); }
.split p + p { margin-top: 14px; }

/* the phrase wheel, drawn */
.wheel { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 440px; margin: 0 auto; }
.wheel span { padding: 10px 16px; border-radius: 999px; background: var(--panel); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); font-weight: 800; }
.wheel span.pal { background: #efe6fe; border-color: #d7c3fb; box-shadow: 0 4px 0 #d7c3fb; color: #4c2a99; }

/* a mock keypad answer */
.answer { background: var(--panel); border: 2px solid var(--edge); border-radius: 28px; box-shadow: 0 8px 0 var(--edge); padding: 26px; max-width: 360px; margin: 0 auto; }
.answer .q { display: flex; align-items: center; gap: 16px; }
.answer .q .stmt { font-size: 34px; font-weight: 900; }
.answer .field { margin: 18px 0; border: 3px solid var(--accent); border-radius: 16px; padding: 10px 16px; font-size: 30px; font-weight: 900; text-align: right; }
.answer .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.answer .keys span { background: var(--sky-pale); border-radius: 12px; padding: 10px 0; text-align: center; font-weight: 900; font-size: 20px; box-shadow: 0 3px 0 var(--edge); }
.answer .augit { margin-top: 12px; display: block; text-align: center; background: var(--accent); color: #fff; border-radius: 16px; padding: 14px; font-weight: 900; font-size: 20px; letter-spacing: .04em; box-shadow: 0 5px 0 var(--accent-deep); }
.answer .pop { display: inline-block; margin-left: auto; background: var(--correct-strong); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 900; }

/* ---------- page header (inner pages) ---------- */
.pagehead { background: linear-gradient(180deg, var(--sky), #a9d3f5); padding: 76px 0 64px; }
.pagehead h1 { font-size: clamp(40px, 5.4vw, 62px); margin: 16px 0 16px; color: var(--ink); }
.pagehead p { font-size: 20px; color: #10233d; max-width: 38em; }

/* ---------- call to action ---------- */
.cta { text-align: center; background: linear-gradient(180deg, #a9d3f5, var(--sky)); }
.cta h2 { font-size: clamp(34px, 4.4vw, 52px); color: var(--ink); margin-top: 14px; }
.cta p { font-size: 19px; color: #10233d; max-width: 34em; margin: 14px auto 0; }
.cta .actions { justify-content: center; }
.cta .icon { width: 96px; margin: 0 auto; border-radius: 22%; box-shadow: 0 8px 0 rgba(16, 35, 61, .16); }

/* ---------- footer ---------- */
footer { background: #15233b; color: #b7c6dc; padding: 40px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
footer .brand { color: #fff; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: #dfe8f5; font-weight: 800; }
footer .by { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
footer .by a { color: #fff; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
footer .by img { width: 18px; height: 18px; }
footer .legal { flex-basis: 100%; font-size: 13px; color: #93a4bd; border-top: 1px solid #2c4266; padding-top: 18px; }

/* ---------- 404 ---------- */
.notfound { min-height: 62vh; display: grid; align-items: center; }
.notfound .tag { margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .g4, .loop { grid-template-columns: repeat(2, 1fr); }
  .loop .card:nth-child(2)::after { display: none; }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .ladder { grid-template-columns: 1fr; }
  .ladder .rungs { order: 2; }
}
@media (max-width: 820px) {
  .hero .wrap, .head, .ladder, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .stage { max-width: 340px; }
  .head { gap: 14px; }
  section { padding: 64px 0; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  nav.top .wrap { gap: 12px; }
  nav.top ul { gap: 14px; }
  nav.top ul a { font-size: 15px; }
  .brand span { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: span 2; }
  .stat b { font-size: 26px; white-space: nowrap; }
  .hero .cloud { display: none; }
  .eyebrow.pill { font-size: 13px; }
  .g2, .g3, .g4, .loop { grid-template-columns: 1fr; }
  .loop .card::after { display: none; }
  .story .beat { grid-template-columns: 1fr; gap: 8px; }
  .story .time { justify-self: start; padding: 4px 12px; }
  .tag { width: 88px; height: 88px; }
  .ladder .rungs { gap: 10px; }
  .ladder .rung .tag { width: 70px; height: 70px; border-radius: 16px; }
  .ladder .rung .tag .g { font-size: 22px; }
  .ladder .rung .tag .n { font-size: 18px; }
  footer .by { margin-left: 0; }
}

/* ---------- long-form pages: privacy, support ---------- */
.doc { max-width: 780px; margin: 0 auto; }
.doc h2 { font-size: 28px; margin: 48px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink); font-weight: 600; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid var(--edge); }
.doc th { font-weight: 900; background: var(--sky-pale); }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 28px; }
.faq details { background: var(--panel); border: 2px solid var(--edge); border-radius: 18px; box-shadow: 0 4px 0 var(--edge); padding: 16px 20px; }
.faq details + details { margin-top: 14px; }
.faq summary { font-weight: 900; font-size: 18px; cursor: pointer; }
.faq details p, .faq details ol, .faq details ul { margin-top: 10px; }
/* A page still in review says so on every screen of it, and so does every fact still to be confirmed. */
.draft { background: #fff4cc; border-bottom: 2px solid #f2bf38; color: var(--ink); font-weight: 800; font-size: 15px; padding: 10px 0; }
mark.tbc { background: #fff0b3; color: var(--ink); padding: 0 .2em; border-radius: 4px; }
@media (max-width: 560px) { .doc table { font-size: 14px; } .doc th, .doc td { padding: 8px 6px; } }
