/* Capital Rivals website. One sheet for all three pages.
   Palette: sky (the city art), land (a daytime map), navy (the game's cards),
   gold (money), red (a rival). Fonts are the game's own: Lilita One and Nunito. */

@font-face {
  font-family: "Lilita One";
  src: url("fonts/LilitaOne-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --sky: #1f8fef;
  --sky-deep: #0b5fd0;
  --land: #e4f3d5;
  --land-edge: #cfe6b9;
  --park: #9fdb7f;
  --water: #7ccbfa;
  --navy: #152a52;
  --navy-deep: #0c1a37;
  --navy-soft: #24407a;
  --gold: #ffc12e;
  --gold-deep: #f29a0b;
  --amber: #a85f00;
  --red: #c42d33;
  --red-deep: #9c1d24;
  --white: #fff;
  --ink-soft: #3d5384;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --reading: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --gutter: 20px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--land);
  color: var(--navy);
  font-family: var(--body);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible, .paper :focus-visible { outline-color: var(--sky-deep); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 400; line-height: 1.05; letter-spacing: .2px; }

/* The daytime map that the page sits on: land, white streets, a few blocks. */
.land {
  background-color: var(--land);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cg fill='none' stroke='%23fff' stroke-width='14' stroke-linecap='round' opacity='.75'%3E%3Cpath d='M-20 92h400M-20 272h400M88-20v400M268-20v400'/%3E%3C/g%3E%3Cg fill='%23d6ebc1'%3E%3Crect x='112' y='116' width='56' height='44' rx='8'/%3E%3Crect x='180' y='116' width='64' height='60' rx='8'/%3E%3Crect x='112' y='172' width='56' height='76' rx='8'/%3E%3Crect x='180' y='188' width='64' height='60' rx='8'/%3E%3Crect x='292' y='116' width='52' height='132' rx='8'/%3E%3Crect x='10' y='116' width='54' height='60' rx='8'/%3E%3Crect x='10' y='188' width='54' height='60' rx='8'/%3E%3Crect x='112' y='296' width='132' height='48' rx='8'/%3E%3Crect x='112' y='16' width='132' height='52' rx='8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 360px 360px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex; flex-direction: column; align-items: center;
  padding: 28px var(--gutter) 150px;
  color: var(--white);
  text-align: center;
  /* The art sits on the bottom edge; above it the sky carries on in the art's own blue. */
  background:
    url("img/city-720.webp") center bottom / 100% auto no-repeat,
    linear-gradient(#0a5cd2 0, #0183f6 calc(100% - 177.7vw)) #0183f6;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 500px) {
  .hero { background-image: url("img/city-941.webp"), linear-gradient(#0a5cd2 0, #0183f6 calc(100% - 177.7vw)); }
}
@media (min-width: 760px) {
  .hero {
    background: #0183f6 url("img/city-wide-1600.webp") center bottom / cover no-repeat;
    padding-top: 44px;
  }
}
@media (min-width: 1500px) { .hero { background-image: url("img/city-wide-2400.webp"); } }
.hero::before { /* a little more depth in the sky so white type holds */
  content: ""; position: absolute; inset: 0 0 35% 0; z-index: -1;
  background: linear-gradient(#0a4fb8b3, #0a4fb866 55%, #0a4fb800);
}
.hero-logo { width: min(86vw, 560px); height: auto; filter: drop-shadow(0 10px 0 #0a3d9440) drop-shadow(0 18px 24px #06255a66); }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(28px, 7.4vw, 50px);
  max-width: 15em;
  text-shadow: 0 3px 0 var(--navy), 0 0 22px #06255acc, 0 6px 18px #06255a99;
  text-wrap: balance;
}
.hero h1 span { display: block; }
.hero-sub { margin-top: 12px; max-width: 30em; font-size: 18px; text-shadow: 0 2px 0 #0b2f78, 0 3px 12px #06255acc; text-wrap: balance; }

.dl-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: min(100%, 420px); margin: 24px auto 0; }
.dl {
  position: relative; display: inline-grid; place-items: center; flex: 1 1 116px; max-width: 200px; min-width: 0; padding: 9px 8px 13px;
  background: var(--navy); color: var(--white); cursor: pointer; text-decoration: none;
  border: 3px solid var(--gold); border-radius: 20px;
  box-shadow: 0 6px 0 var(--navy-deep), 0 14px 24px #06255a80;
  transition: transform .1s, box-shadow .1s;
}
.dl:hover { transform: translateY(-2px); }
.dl:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy-deep); }
.dl-main { display: block; text-align: center; }
.dl small { display: block; font-family: var(--body); font-weight: 800; font-size: 13.5px; line-height: 1.2; color: #d7e3ff; }
.dl b { display: block; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.05; color: var(--gold); }
.dl-soon {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  font-family: var(--display); font-size: 19px; line-height: 1; white-space: nowrap; color: var(--white);
}
.dl.is-soon .dl-main { visibility: hidden; }
.dl.is-soon .dl-soon { opacity: 1; animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
.soon-card .dl { box-shadow: 0 6px 0 var(--navy-deep); background: var(--navy-soft); }

.coin-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.coin { position: absolute; width: var(--s, 44px); height: var(--s, 44px); animation: bob 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.coin svg { width: 100%; height: 100%; filter: drop-shadow(0 5px 0 #7a430055); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, -8deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--r, -8deg) * -1)); }
}

.shore { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; }

/* ---------- Section basics ---------- */
.band { padding: 72px 0; position: relative; }
.band-head { max-width: 640px; }
.band-head h2 { font-size: clamp(34px, 8vw, 54px); text-wrap: balance; }
.band-head p { margin-top: 10px; font-size: 18px; color: var(--ink-soft); }
@media (min-width: 900px) { .band { padding: 104px 0; } }

/* ---------- How it works ---------- */
.how-grid { display: grid; gap: 28px; margin-top: 34px; }
@media (min-width: 900px) {
  .how-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: center; }
}

.scene-card {
  background: var(--navy); border-radius: 30px; padding: 10px;
  box-shadow: 0 8px 0 var(--navy-deep), 0 22px 40px #152a5240;
}
.scene { display: block; width: 100%; height: auto; border-radius: 22px; background: #dcefc9; }
.scene text { font-family: var(--display); }
.scene .player, .scene .ring-g { transition: transform 1.5s cubic-bezier(.45, 0, .25, 1); }
.scene[data-step="0"] .player, .scene[data-step="0"] .ring-g { transform: translate(-150px, 0); }
.scene[data-step="4"] .player, .scene[data-step="4"] .ring-g { transform: translate(-112px, 0); }
.scene[data-step="5"] .player, .scene[data-step="5"] .ring-g { transform: translate(140px, 0); }
.scene .ring { transform-box: fill-box; transform-origin: center; animation: ring 2.6s ease-in-out infinite; }
@keyframes ring { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: .78; } }

.scene .pin-body { transition: fill .35s; }
.scene .pin { transform-box: fill-box; transform-origin: 50% 100%; }
.scene .pin .ico-sale, .scene .pin .ico-crown, .scene .pin .ico-rival { transition: opacity .3s; }
.scene .ico-crown { opacity: 0; }

/* the café: for sale, then yours from step 2 */
.scene .pin-cafe .pin-body { fill: #fff; }
.scene:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .pin-cafe .pin-body { fill: var(--gold); }
.scene:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .pin-cafe .ico-sale { opacity: 0; }
.scene:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) .pin-cafe .ico-crown { opacity: 1; }
.scene[data-step="2"] .pin-cafe { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* the rival's place: red, yours after the roll in step 5 */
.scene .pin-rival .pin-body { fill: #e8474c; }
.scene[data-step="5"] .pin-rival .pin-body { fill: var(--gold); transition-delay: 2.3s; }
.scene[data-step="5"] .pin-rival .ico-rival { opacity: 0; transition-delay: 2.3s; }
.scene[data-step="5"] .pin-rival .ico-crown { opacity: 1; transition-delay: 2.3s; }
.scene[data-step="5"] .pin-rival { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) 2.3s; }

.scene .tag { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.scene[data-step="1"] .tag-range { opacity: 1; transform: none; transition-delay: 1.3s; }
.scene[data-step="2"] .tag-bought { opacity: 1; transform: none; }
.scene[data-step="3"] .tag-collect { opacity: 1; transform: none; }
.scene[data-step="4"] .tag-royal { opacity: 1; transform: none; }
.scene[data-step="5"] .tag-dice { opacity: 1; transform: none; transition-delay: 1.4s; }
.scene[data-step="5"] .die { transform-box: fill-box; transform-origin: center; animation: tumble .9s ease-out 1.4s both; }
@keyframes tumble { 0% { transform: rotate(-200deg) scale(.4); } 70% { transform: rotate(12deg) scale(1.1); } 100% { transform: none; } }

.scene .fly { opacity: 0; }
.scene[data-step="3"] .fly { animation: fly 1s ease-in both; animation-delay: var(--d, 0s); }
@keyframes fly {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: 1; transform: translate(var(--mx, 0), -26px) scale(1); }
  100% { opacity: 0; transform: translate(118px, -196px) scale(.7); }
}
/* Royalties reuse the coin flight under a second name, so it restarts after Collect. */
.scene[data-step="4"] .fly { animation: fly-again 1s ease-in both; animation-delay: var(--d, 0s); }
@keyframes fly-again {
  0% { opacity: 0; transform: translate(0, 0) scale(.6); }
  15% { opacity: 1; transform: translate(var(--mx, 0), -26px) scale(1); }
  100% { opacity: 0; transform: translate(118px, -196px) scale(.7); }
}
.scene .hud { transform-box: fill-box; transform-origin: center; }
.scene[data-step="3"] .hud { animation: pop .4s ease-out .95s; }
.scene[data-step="4"] .hud { animation: pop-again .4s ease-out .95s; }
@keyframes pop-again { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }

.steps { position: relative; display: grid; gap: 14px; }
.steps::before { /* the walking route that joins the stops */
  content: ""; position: absolute; left: 35px; top: 30px; bottom: 30px; width: 0;
  border-left: 5px dashed #fff; filter: drop-shadow(0 2px 0 var(--land-edge));
}
.step {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  width: 100%; padding: 14px 16px 16px 10px; text-align: left; cursor: pointer;
  background: #fff; border: 0; border-radius: 22px;
  box-shadow: 0 5px 0 var(--land-edge);
  transition: transform .15s, box-shadow .15s, background-color .2s;
}
.step:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--land-edge); }
.step-num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--land); color: var(--navy); font-family: var(--display); font-size: 26px;
  box-shadow: inset 0 -4px 0 var(--land-edge);
}
.step-title { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; padding-top: 4px; }
.step-text { display: block; margin-top: 4px; font-size: 16px; line-height: 1.4; color: var(--ink-soft); }
.step[aria-pressed="true"] { background: var(--navy); box-shadow: 0 6px 0 var(--navy-deep); }
.step[aria-pressed="true"] .step-title { color: var(--gold); }
.step[aria-pressed="true"] .step-text { color: #d7e3ff; }
.step[aria-pressed="true"] .step-num { background: var(--gold); color: var(--navy-deep); box-shadow: inset 0 -4px 0 var(--gold-deep); }


/* ---------- Takeover ---------- */
.takeover {
  background: var(--red);
  background-image: radial-gradient(circle at 20% 0%, #c93339 0, #c9333900 55%), repeating-linear-gradient(135deg, #0000 0 26px, #00000012 26px 52px);
  color: var(--white);
}
.takeover .band-head p { color: #fff0f0; }
.take-grid { display: grid; gap: 30px; margin-top: 34px; }
@media (min-width: 900px) { .take-grid { grid-template-columns: 1fr minmax(0, 430px); gap: 64px; align-items: center; } }

.rules { display: grid; gap: 16px; counter-reset: rule; }
.rules li { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.rules img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 0 #0000002e); }
.rules strong { display: block; font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.15; }
.rules span { display: block; font-size: 16px; line-height: 1.4; color: #fff0f0; }

.duel {
  background: var(--navy); border-radius: 28px; padding: 20px;
  box-shadow: 0 8px 0 var(--navy-deep), 0 22px 44px #5a0c1180;
}
.duel-place { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.duel-ico { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--red); transition: box-shadow .3s; }
.duel-ico img { width: 44px; height: 44px; }
.duel[data-result="win"] .duel-ico { box-shadow: 0 0 0 4px var(--gold); }
.duel-place strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; }
.duel-owner { display: block; font-size: 15px; color: #ffb9bc; }
.duel[data-result="win"] .duel-owner { color: var(--gold); }

.odds { margin-top: 18px; }
.odds-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: #d7e3ff; }
.odds-row b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--white); }
.odds-bar { position: relative; height: 16px; margin-top: 6px; border-radius: 99px; background: var(--navy-deep); overflow: hidden; }
.odds-bar i { position: absolute; inset: 0 30% 0 0; border-radius: 99px; background: linear-gradient(#ffd45e, var(--gold-deep)); }
.odds-bar u { /* where the roll landed */
  position: absolute; top: -3px; bottom: -3px; width: 5px; margin-left: -2px; left: 0; border-radius: 3px;
  background: #fff; opacity: 0; transition: left .5s cubic-bezier(.2, .9, .3, 1), opacity .2s;
}
.duel[data-result] .odds-bar u { opacity: 1; }

.roll-row { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; margin-top: 20px; }
.die-face {
  width: 84px; height: 84px; border-radius: 20px; background: #fff; color: var(--navy);
  display: grid; place-items: center; font-family: var(--display); font-size: 40px; line-height: 1;
  box-shadow: inset 0 -7px 0 #cfd8ea, 0 5px 0 var(--navy-deep);
}
.die-face.rolling { animation: shake .5s linear infinite; }
@keyframes shake {
  0% { transform: rotate(-9deg) translateY(0); } 25% { transform: rotate(8deg) translateY(-6px); }
  50% { transform: rotate(-6deg) translateY(0); } 75% { transform: rotate(9deg) translateY(-4px); } 100% { transform: rotate(-9deg) translateY(0); }
}
.duel[data-result="win"] .die-face { background: var(--gold); box-shadow: inset 0 -7px 0 var(--gold-deep), 0 5px 0 var(--navy-deep); color: var(--navy-deep); }
.btn-roll {
  min-height: 64px; width: 100%; padding: 8px 18px; border: 0; border-radius: 20px; cursor: pointer;
  background: #e0383e; color: #fff; font-family: var(--display); font-size: 25px; line-height: 1.1;
  box-shadow: inset 0 -6px 0 var(--red-deep), 0 5px 0 var(--navy-deep);
  transition: transform .1s, box-shadow .1s;
}
.btn-roll:hover { background: #e8474c; }
.btn-roll:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 var(--red-deep), 0 1px 0 var(--navy-deep); }
.btn-roll[disabled] { cursor: default; opacity: .75; }
.duel-result { margin-top: 16px; min-height: 3em; font-size: 16px; line-height: 1.4; color: #d7e3ff; }
.duel-result b { color: var(--gold); font-weight: 900; }

/* ---------- Features ---------- */
.loot-stage { max-width: 520px; margin: 0 auto; }
@media (min-width: 900px) {
  .loot-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 56px; align-items: end; }
  .loot-grid .band-head { padding-bottom: 46px; }
  .loot-stage { margin: 0; width: 100%; }
}
.roofs {
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 0;
  margin-top: 36px; padding: 0 2px;
}
@media (min-width: 900px) { .roofs { margin-top: 0; } }
.roof { position: relative; display: flex; flex-direction: column; align-items: center; }
.chest {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; padding: 0; margin-bottom: -10%;
  background: none; border: 0; cursor: pointer;
}
.chest img { position: absolute; left: 6%; bottom: 0; width: 88%; height: auto; transition: opacity .15s, transform .25s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
.chest .open { opacity: 0; transform: scale(.8); }
.chest[aria-pressed="true"] .closed { opacity: 0; }
.chest[aria-pressed="true"] .open { opacity: 1; transform: scale(1.08); }
.chest:hover .closed { transform: scale(1.05) rotate(-2deg); }
.building {
  position: relative; width: 100%; height: var(--h, 90px); border-radius: 10px 10px 0 0;
  background: var(--c, #f6c98a);
  background-image: linear-gradient(90deg, #0000 0 62%, #0000001c 62%), radial-gradient(circle, #ffffffb8 0 5px, #0000 6px);
  background-size: 100% 100%, 26px 30px; background-position: 0 0, 50% 30px;
  box-shadow: inset 0 14px 0 #ffffff55, inset 0 16px 0 #0000001a;
}
.roof-name {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 5px 0 7px; text-align: center;
  background: linear-gradient(#00000047, #00000047), var(--c, #f6c98a); font-family: var(--display); font-size: clamp(13px, 3.6vw, 20px); color: #fff; text-shadow: 0 2px 0 #00000059;
}
.street { height: 16px; background: #fff; border-radius: 8px; box-shadow: 0 4px 0 var(--land-edge); margin: 0 -6px; }
.roofs-hint { margin-top: 14px; font-size: 15px; color: var(--ink-soft); text-align: center; }

.perks { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 640px) { .perks { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perk {
  display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center;
  padding: 16px 18px 18px 16px; background: var(--navy); color: #fff; border-radius: 22px;
  box-shadow: 0 6px 0 var(--navy-deep);
}
.perk-ico { width: 68px; height: 68px; border-radius: 50%; background: #f3f7ff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--ring, var(--gold)); }
.perk-ico img { width: 46px; height: 46px; object-fit: contain; }
.perk h3 { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.1; }
.perk p { margin-top: 4px; font-size: 15.5px; line-height: 1.4; color: #d7e3ff; }

/* ---------- Coming soon ---------- */
.band.soon { padding-top: 0; padding-bottom: 96px; text-align: center; }
.soon-card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 760px; margin: 0 auto; padding: 44px 22px 40px; border-radius: 34px;
  background: var(--navy); color: #fff;
  border: 4px solid var(--gold);
  box-shadow: 0 9px 0 var(--navy-deep), 0 26px 50px #152a5247;
}
.soon-card::before { /* rays behind the crown, like the game's reward popup */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 96px; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(from 0deg, #ffc12e24 0 9deg, #0000 9deg 18deg);
  mask-image: radial-gradient(circle, #000 0, #0000 62%);
  animation: rays 60s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.soon-card img { width: 132px; height: auto; margin: 0 auto; filter: drop-shadow(0 8px 0 #00000040); }
.soon-card h2 { margin-top: 18px; font-size: clamp(32px, 8vw, 50px); color: var(--white); text-wrap: balance; }
.soon-card p { margin: 22px auto 0; max-width: 30em; font-size: 17px; color: #d7e3ff; text-wrap: balance; }
.soon-card a { color: #fff; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.foot { background: var(--navy-deep); color: #c9d6f5; padding: 40px 0 46px; font-size: 15.5px; }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot .foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.foot-brand img { width: 46px; height: auto; }
.foot-brand span { font-family: var(--display); font-size: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #fff; text-decoration: underline; text-decoration-color: #ffffff59; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot a:hover { text-decoration-color: var(--gold); }
.foot-links a { display: inline-block; padding: 8px 0; }
.foot small { display: block; margin-top: 16px; font-size: 14px; line-height: 1.5; color: #a9b9df; max-width: 46em; }

/* ---------- Text pages (privacy, delete account) ---------- */
.top {
  background: var(--sky-deep);
  background-image: linear-gradient(#0a55c4, #1672dc);
  color: #fff; padding: 18px 0 62px; position: relative;
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-logo img { width: 150px; height: auto; }
.top-home { color: #fff; font-size: 15.5px; text-decoration: underline; text-decoration-color: #ffffff80; text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 10px 0; }
.top .shore { height: 44px; }

.paper {
  position: relative; max-width: 760px; margin: -8px auto 72px; padding: 30px 22px 36px;
  background: #fff; border-radius: 28px; box-shadow: 0 7px 0 var(--land-edge);
  font-family: var(--reading); font-weight: 400; font-size: 17px; line-height: 1.65; color: #1c2b4d;
}
@media (min-width: 700px) { .paper { padding: 46px 54px 52px; } }
.paper h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 8vw, 48px); line-height: 1.05; color: var(--navy); }
.paper .updated { margin-top: 8px; color: #55648a; font-size: 15px; }
.paper h2 { margin-top: 38px; font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.15; color: var(--navy); }
.paper h3 { margin-top: 24px; font-size: 18px; font-weight: 700; color: var(--navy); }
.paper p { margin-top: 12px; max-width: 68ch; }
.paper ul, .paper ol { margin-top: 12px; padding-left: 22px; max-width: 68ch; }
.paper ul { list-style: disc; }
.paper ol { list-style: decimal; }
.paper li { margin-top: 6px; }
.paper li::marker { color: var(--amber); font-weight: 700; }
.paper a { color: #0a4fb8; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.paper strong { font-weight: 700; }
.paper code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: #eef3fb; padding: 1px 5px; border-radius: 5px; }

.wip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 7px 16px 7px 10px;
  border-radius: 999px; background: #fff4d1; border: 2px solid var(--gold-deep); color: #5c3600;
  font-size: 15px; line-height: 1.35; font-weight: 700;
}
.wip-cone { /* a small traffic cone */
  flex: none; width: 20px; height: 22px;
  background: linear-gradient(#f2760b 0 28%, #fff 28% 46%, #f2760b 46% 64%, #fff 64% 80%, #f2760b 80%);
  clip-path: polygon(40% 0, 60% 0, 86% 82%, 100% 82%, 100% 100%, 0 100%, 0 82%, 14% 82%);
}

.callout { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: 0 5px 0 var(--navy-deep); }
.callout p { margin-top: 6px; color: #d7e3ff; }
.callout p:first-child { margin-top: 0; }
.callout strong { color: var(--gold); }
.callout a { color: #fff; text-decoration-color: var(--gold); }

.table-scroll { margin-top: 14px; border-radius: 14px; border: 2px solid #dfe7f5; }
.paper table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.paper th, .paper td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #dfe7f5; }
.paper thead th { background: #eef3fb; font-weight: 700; color: var(--navy); }
.paper thead th:first-child { border-top-left-radius: 12px; }
.paper thead th:last-child { border-top-right-radius: 12px; }
.paper tbody tr:last-child td, .paper tbody tr:last-child th { border-bottom: 0; }
.paper tbody th { font-weight: 700; width: 30%; color: var(--navy); }
@media (max-width: 599px) { /* on a phone each row becomes a small block, so nothing scrolls sideways */
  .paper table, .paper tbody, .paper tr, .paper tbody th, .paper td { display: block; width: auto; }
  .paper thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .paper tbody tr { padding: 12px 14px; border-bottom: 1px solid #dfe7f5; }
  .paper tbody tr:last-child { border-bottom: 0; }
  .paper tbody th, .paper td { padding: 0; border: 0; }
  .paper td { margin-top: 4px; }
  .paper td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: #55648a; }
}

.toc { margin-top: 22px; padding: 14px 18px; background: #f3f7ff; border-radius: 16px; }
.toc ol { margin-top: 0; columns: 2 220px; column-gap: 28px; }
.toc li { margin-top: 3px; break-inside: avoid; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 404 page */
.lost { text-align: center; }
.lost p { margin-left: auto; margin-right: auto; }
.lost-pin { width: 96px; height: auto; margin: 0 auto 14px; }
.paper a.lost-home { display: inline-flex; align-items: center; justify-content: center; width: auto; margin-top: 26px; padding: 8px 28px; color: #fff; text-decoration: none; }

/* Short pages (404, policy pages on tall screens): keep the footer at the bottom of the window. */
body.land { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.land > .paper { width: 100%; }
body.land > .foot { margin-top: auto; }
