/* WildCatch site: the app's own look (WildCatch/DesignSystem/WildTheme.swift).
   Light only, like the app. Flat surfaces, 2 px borders, solid bases under
   anything you can press, rounded type. No glass, no glow, no blur. */

:root {
  --paper: #f7f8f5;
  --surface: #ffffff;
  --recess: #edf1eb;
  --ink: #20352c;
  --muted: #52635b;
  --border: #d6dfd8;
  --jade: #087f65;
  --jade-base: #065b49;
  --jade-wash: #e5f3ed;
  --action: #72d447;
  --action-base: #36852b;
  --action-ink: #173b24;
  --energy: #fff2ca;
  --energy-ink: #624300;
  --energy-base: #d4b458;
  --error: #ad303d;
  --error-wash: #fdedee;
  --pro-top: #ffe38a;
  --pro-mid: #f5c542;
  --pro-bottom: #e3a421;
  --pro-base: #a8700f;
  --pro-ink: #3d2700;
  --pro-stage: #fffaeb;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.55 var(--rounded);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jade); text-underline-offset: 3px; text-decoration-thickness: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; }

/* Language (pages with <html class="switch">): the page holds both; the script on <html> picks one.
   Help, privacy and terms show both languages one after the other instead. */
html.switch[lang=en] [lang=fr], html.switch[lang=fr] [lang=en] { display: none !important; }

/* Device: some lines only make sense on one kind of device. */
html[data-device=ios] [data-on]:not([data-on~=ios]),
html[data-device=android] [data-on]:not([data-on~=android]),
html[data-device=desktop] [data-on]:not([data-on~=desktop]) { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Tactile button: a face sitting on a 4 px base, like WildButton. */
.button {
  --face: var(--action); --base: var(--action-base); --text: var(--action-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 16px;
  background: var(--face); color: var(--text);
  box-shadow: 0 4px 0 var(--base);
  font: 800 17px/1.1 var(--rounded); text-decoration: none; text-align: center;
  cursor: pointer; margin-bottom: 4px;
  transition: transform .1s ease-out, box-shadow .1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.button svg { width: 20px; height: 20px; flex: none; }
.button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--base); }
.button[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: 0 4px 0 var(--base); }
.button.secondary { --face: var(--surface); --base: var(--border); --text: var(--jade); border: 2px solid var(--border); }
.button.pro { --face: var(--pro-mid); --base: var(--pro-base); --text: var(--pro-ink); background: linear-gradient(var(--pro-top), var(--pro-mid) 55%, var(--pro-bottom)); }
.button.small { min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .button:active { transform: none; filter: brightness(.94); } }

/* Labels that look like the app's badges. */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--jade-wash); color: var(--jade-base);
  font: 800 13px/1.2 var(--rounded); letter-spacing: .06em; text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* White card with a 2 px border and a solid base, like the Dex cards. */
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 0 var(--border);
}

/* An iPhone showing a real screen of the app. */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1320 / 2868;
  border-radius: 46px;
  padding: 9px;
  background: #1b2420;
  box-shadow: 0 0 0 2px #34413b inset, 0 8px 0 rgba(32, 53, 44, .14);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--paper); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  border-bottom: 2px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--border); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.button) { color: var(--muted); font-weight: 700; text-decoration: none; font-size: 16px; }
.top nav a:not(.button):hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a:not(.button) { display: none; } }

/* Footer */
.foot { border-top: 2px solid var(--border); padding-block: 28px max(28px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .copy { margin-left: auto; }
.foot button { background: none; border: 0; padding: 0; font: 700 15px var(--rounded); color: var(--jade); cursor: pointer; }
@media (max-width: 640px) { .foot .copy { margin-left: 0; width: 100%; } }

/* Help, privacy and terms: both languages, one after the other. */
.top.line { border-bottom-color: var(--border); }
.narrow { max-width: 820px; padding-block: 44px 8px; scroll-margin-top: 72px; }
.narrow + .narrow { padding-top: 64px; }
.doc-head { display: grid; gap: 12px; margin-bottom: 24px; }
.doc-head h1 { font-size: clamp(32px, 4.6vw, 46px); line-height: 1.1; }
.meta { color: var(--muted); font-weight: 700; font-size: 15px; }
.lang { display: flex; gap: 8px; font-size: 15px; font-weight: 800; }
.lang span, .lang a { padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.lang span { background: var(--jade-wash); color: var(--jade-base); }
.lang a { color: var(--muted); border: 2px solid var(--border); padding: 4px 12px; }
.lang a:hover { color: var(--ink); }
.contact-box { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--jade-wash); color: var(--ink); }
.contact-box .bubble { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--jade); color: #fff; box-shadow: 0 3px 0 var(--jade-base); }
.contact-box svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-box a { font-weight: 800; overflow-wrap: anywhere; }
.doc { padding: clamp(22px, 4vw, 40px); font-size: 17px; line-height: 1.65; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: 23px; line-height: 1.25; margin: 36px 0 10px; }
.doc h3 { font-size: 18px; line-height: 1.3; margin: 24px 0 8px; }
.doc p, .doc ul { margin: 0 0 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--jade); }
.doc a { overflow-wrap: anywhere; }
.summary { padding: 16px 20px; margin-bottom: 8px; border-radius: 16px; background: var(--jade-wash); border: 2px solid #cfe7dc; }
.summary p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 20px; font-size: 15px; line-height: 1.5; border: 2px solid var(--border); border-radius: 16px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; }
.doc th { background: var(--recess); font-weight: 800; }
.doc td { border-top: 2px solid var(--recess); }
@media (max-width: 700px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc tr:first-child { display: none; }
  .doc tr + tr { border-top: 2px solid var(--border); }
  .doc td { border: 0; padding: 4px 14px; }
  .doc tr td:first-child { padding-top: 14px; font-weight: 800; }
  .doc tr td:last-child { padding-bottom: 14px; }
  .doc td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
}
.faq { display: grid; gap: 10px; }
.faq details { border: 2px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 3px 0 var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--jade-wash); color: var(--jade); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ── 1.1 look (16 Nov. 2026) ─────────────────────────────────────────────
   Same language as the 1.1 App Store screenshots (docs/app-store/screenshots-1.1/compose_1_1.py):
   one tint per band with soft rays, a two-tone headline (the key word in action green with an ink
   outline), the app's rarity chips, the embroidered patches, Billy dressed. Billy is never mirrored. */

/* Tinted band: a gradient from the app palette, soft rays from one point, a pale glow in the middle. */
.tint { position: relative; isolation: isolate; background: linear-gradient(var(--t-top), var(--t-bottom)); overflow: hidden; }
.tint::before, .tint::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.tint::before {
  background: repeating-conic-gradient(from -5.6deg at var(--ray-x, 50%) var(--ray-y, 34%), var(--t-ray) 0 11.25deg, transparent 11.25deg 22.5deg);
  -webkit-mask: radial-gradient(circle at var(--ray-x, 50%) var(--ray-y, 34%), #000 0, rgba(0, 0, 0, .55) 34%, transparent 72%);
          mask: radial-gradient(circle at var(--ray-x, 50%) var(--ray-y, 34%), #000 0, rgba(0, 0, 0, .55) 34%, transparent 72%);
}
.tint::after { background: radial-gradient(ellipse 70% 46% at 50% 52%, rgba(255, 255, 244, .62), transparent 72%); }
.t-green  { --t-top: #fbf8ee; --t-bottom: #c8eeb2; --t-ray: rgba(114, 212, 71, .2); }
.t-yellow { --t-top: #fff7e2; --t-bottom: #ffe39b; --t-ray: rgba(255, 194, 60, .22); }
.t-blue   { --t-top: #f3f8ff; --t-bottom: #c2e1f7; --t-ray: rgba(91, 176, 235, .2); }
.t-orange { --t-top: #fff5ec; --t-bottom: #ffd5b8; --t-ray: rgba(255, 150, 90, .2); }
.t-purple { --t-top: #f8f3ff; --t-bottom: #dfcff5; --t-ray: rgba(167, 123, 219, .2); }
.t-mint   { --t-top: #f1fbf4; --t-bottom: #bfebd8; --t-ray: rgba(60, 194, 140, .2); }
.t-pink   { --t-top: #fff3f6; --t-bottom: #ffd3e0; --t-ray: rgba(255, 143, 177, .2); }
.t-sand   { --t-top: #fff9ee; --t-bottom: #f6e2bb; --t-ray: rgba(232, 176, 79, .22); }

/* Two-tone headline: the key word in action green, outlined in ink and set on an ink drop, like the screenshots. */
.hl {
  color: var(--action);
  text-shadow:
    .055em 0 0 var(--ink), -.055em 0 0 var(--ink), 0 .055em 0 var(--ink), 0 -.055em 0 var(--ink),
    .04em .04em 0 var(--ink), -.04em .04em 0 var(--ink), .04em -.04em 0 var(--ink), -.04em -.04em 0 var(--ink),
    0 .11em 0 var(--ink), .04em .1em 0 var(--ink), -.04em .1em 0 var(--ink),
    0 .16em .32em rgba(32, 53, 44, .22);
  padding-inline: .06em;
}

/* Rarity chips, as drawn in the app (WildTheme.rarity): wash, 3 px edge, a dot in the ink colour. */
.chip {
  --rink: var(--jade-base); --wash: var(--jade-wash); --edge: #8fcab4;
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap;
  padding: .5em .9em .5em .75em; border-radius: 999px;
  background: var(--wash); color: var(--rink); border: 3px solid var(--edge);
  font: 900 14px/1 var(--rounded); letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(32, 53, 44, .14);
}
.chip::before { content: ""; width: .62em; height: .62em; border-radius: 50%; background: currentColor; flex: none; }
.chip.xp { --rink: var(--energy-ink); --wash: var(--energy); --edge: var(--energy-base); }
.chip.xp::before { display: none; }
.r-common   { --rink: #355941; --wash: #eaf2e6; --edge: #8db17e; }
.r-uncommon { --rink: #17632f; --wash: #e2f4dc; --edge: #69b557; }
.r-rare     { --rink: #304ba0; --wash: #eaf0ff; --edge: #7b9ae1; }
.r-epic     { --rink: #683da0; --wash: #f2eafb; --edge: #b08cdb; }
.r-mythic   { --rink: #79500e; --wash: #fff2d3; --edge: #ddb454; }
/* Billy's own rarity: the app's UniqueRainbow ring (WildComponents.swift), turning once every 6 s like in the app. */
@property --turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.r-unique {
  --rink: #6b2fa0; --wash: #f8efff;
  border-color: transparent;
  background:
    linear-gradient(var(--wash), var(--wash)) padding-box,
    conic-gradient(from var(--turn), #ff5c8a, #ff9b3d, #ffd23f, #52d681, #3cc3f0, #6e7bff, #c56bff, #ff5c8a) border-box;
  animation: unique-turn 6s linear infinite;
}
.r-unique::before { background: conic-gradient(from var(--turn), #ff5c8a, #ff9b3d, #ffd23f, #52d681, #3cc3f0, #6e7bff, #c56bff, #ff5c8a); }
@keyframes unique-turn { to { --turn: 360deg; } }
@media (prefers-reduced-motion: reduce) { .r-unique { animation: none; } }

/* The Dynamic Island on the phone frames (the raw shots are taken without it). */
.phone::after {
  content: ""; position: absolute; left: 50%; top: calc(9px + 1.5%);
  width: 28%; height: 3.5%; transform: translateX(-50%);
  border-radius: 999px; background: #050806;
}

/* Embroidered patches from the app, round, with a soft drop. */
.patch { border-radius: 50%; filter: drop-shadow(0 6px 10px rgba(32, 53, 44, .22)); }

/* Confetti: a few flat pieces in the app's colours, only around celebrations. */
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.confetti i { position: absolute; width: 10px; height: 16px; border-radius: 3px; background: var(--c); transform: rotate(var(--r)); opacity: .9; }
.confetti i:nth-child(3n) { width: 12px; height: 12px; border-radius: 50%; }

/* Help, privacy and terms (1.1): the same soft green tint, rays from the top, Billy dressed on the help page. */
.t-soft { --t-top: #fbf8ee; --t-bottom: #e4f4d8; --t-ray: rgba(114, 212, 71, .16); --ray-y: 0%; }
main.tint { padding-bottom: 56px; }
.doc-head.with-billy { grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; }
.doc-head.with-billy > :not(.billy) { grid-column: 1; }
.doc-head .billy { grid-column: 2; grid-row: 1 / span 3; height: 210px; width: auto; max-width: none; filter: drop-shadow(0 8px 10px rgba(32, 53, 44, .16)); }
@media (max-width: 640px) {
  .doc-head.with-billy { grid-template-columns: 1fr; }
  .doc-head .billy { grid-column: 1; grid-row: auto; height: 128px; justify-self: start; }
}
