/* Plan Chasse on the web: the iOS app's design language (ios/PlanChasse/Design).
   Tokens mirror Theme.swift, surfaces mirror Glass.swift, the navigation mirrors GlassTabBar.swift.
   Pages stand on one solid colour; glass is for controls, cards are opaque. */

@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("assets/fonts/outfit-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("assets/fonts/outfit-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("assets/fonts/outfit-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("assets/fonts/outfit-700.woff2") format("woff2"); }

/* ---------- Tokens (Theme.swift) ---------- */

:root {
  color-scheme: light;
  --canvas: #f6f3eb;
  --surface: #fefdf9;
  --ink: #1a291f;
  --muted: #5f6a60;
  --border: #e0ded1;
  --accent: #123b32;          /* brand green for text, icons and controls */
  --forest: #123b32;          /* brand green as a fill under white text */
  --gold: #c28118;
  --mint: #7acfa8;
  --sage: #dbe3cc;
  --habitat: #ebe8d6;
  --launch: #0b3922;          /* the emblem's deep green */
  --cream: #f5ebd6;
  --allowed: #218c54;
  --caution: #9e570e;
  --forbidden: #e63836;
  --forbidden-fill: #e63836;
  --danger-surface: #fff0eb;

  /* GlassTokens */
  --glass-tint: rgb(255 255 255 / .72);
  --glass-edge: rgb(255 255 255 / .7);
  --glass-danger: rgb(255 20 50 / .14);
  --inset: rgb(26 41 31 / .06);
  --shadow-bar: 0 2px 3px rgb(0 0 0 / .05), 0 1px .5px rgb(0 0 0 / .04);
  --map-ground: #eef1e3;

  /* Category colours, shared with the map legend */
  --cat-association: #29995c;
  --cat-company: #2e78de;
  --cat-provincial: #de9414;
  --cat-rural: #8c5cd1;
  --cat-teaching: #e67338;
  --cat-rotation: #dbb829;
  --cat-reserve: #9e1414;

  --radius-card: 24px;
  --radius-panel: 32px;
  --gutter: 20px;
  --page: 1120px;
  --spring: cubic-bezier(.3, 1.35, .55, 1);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

/* Dark: the system's choice unless the visitor picked a theme (data-theme on <html>, set by site.js).
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #0e1311;
    --surface: #181f1b;
    --ink: #ebf2e8;
    --muted: #a2ada3;
    --border: #334036;
    --accent: #7acfa8;
    --forest: #1e6b56;
    --sage: #174538;
    --habitat: #30382b;
    --allowed: #4fcc87;
    --caution: #ffb84d;
    --forbidden: #ff736b;
    --danger-surface: #401a17;
    --glass-tint: rgb(255 255 255 / .06);
    --glass-edge: rgb(255 255 255 / .1);
    --glass-danger: rgb(255 20 50 / .22);
    --inset: rgb(255 255 255 / .08);
    --shadow-bar: 0 2px 3px rgb(0 0 0 / .3), 0 1px .5px rgb(0 0 0 / .25);
    --map-ground: #1b231e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0e1311;
  --surface: #181f1b;
  --ink: #ebf2e8;
  --muted: #a2ada3;
  --border: #334036;
  --accent: #7acfa8;
  --forest: #1e6b56;
  --sage: #174538;
  --habitat: #30382b;
  --allowed: #4fcc87;
  --caution: #ffb84d;
  --forbidden: #ff736b;
  --danger-surface: #401a17;
  --glass-tint: rgb(255 255 255 / .06);
  --glass-edge: rgb(255 255 255 / .1);
  --glass-danger: rgb(255 20 50 / .22);
  --inset: rgb(255 255 255 / .08);
  --shadow-bar: 0 2px 3px rgb(0 0 0 / .3), 0 1px .5px rgb(0 0 0 / .25);
  --map-ground: #1b231e;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.5 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sage); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--forest); color: #fff; }
.narrow-only { display: none; }

/* Artwork with a light and a dark version (the brand mark, the screens). */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.02; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Icons: the app's template glyphs, tinted by the text colour ---------- */

.icon {
  display: inline-block; flex: none; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.i-map { -webkit-mask-image: url("assets/icons/map.svg"); mask-image: url("assets/icons/map.svg"); }
.i-calendar { -webkit-mask-image: url("assets/icons/calendar.svg"); mask-image: url("assets/icons/calendar.svg"); }
.i-journal { -webkit-mask-image: url("assets/icons/journal.svg"); mask-image: url("assets/icons/journal.svg"); }
.i-group { -webkit-mask-image: url("assets/icons/group.svg"); mask-image: url("assets/icons/group.svg"); }
.i-building { -webkit-mask-image: url("assets/icons/building.svg"); mask-image: url("assets/icons/building.svg"); }
.i-flag { -webkit-mask-image: url("assets/icons/flag.svg"); mask-image: url("assets/icons/flag.svg"); }
.i-home { -webkit-mask-image: url("assets/icons/home.svg"); mask-image: url("assets/icons/home.svg"); }
.i-award { -webkit-mask-image: url("assets/icons/award.svg"); mask-image: url("assets/icons/award.svg"); }
.i-history { -webkit-mask-image: url("assets/icons/history.svg"); mask-image: url("assets/icons/history.svg"); }
.i-lock { -webkit-mask-image: url("assets/icons/lock.svg"); mask-image: url("assets/icons/lock.svg"); }
.i-warning { -webkit-mask-image: url("assets/icons/warning.svg"); mask-image: url("assets/icons/warning.svg"); }
.i-info { -webkit-mask-image: url("assets/icons/info.svg"); mask-image: url("assets/icons/info.svg"); }
.i-check { -webkit-mask-image: url("assets/icons/check.svg"); mask-image: url("assets/icons/check.svg"); }
.i-bell { -webkit-mask-image: url("assets/icons/bell.svg"); mask-image: url("assets/icons/bell.svg"); }
.i-heart { -webkit-mask-image: url("assets/icons/heart.svg"); mask-image: url("assets/icons/heart.svg"); }
.i-phone { -webkit-mask-image: url("assets/icons/phone.svg"); mask-image: url("assets/icons/phone.svg"); }
.i-pin { -webkit-mask-image: url("assets/icons/pin.svg"); mask-image: url("assets/icons/pin.svg"); }
.i-search { -webkit-mask-image: url("assets/icons/search.svg"); mask-image: url("assets/icons/search.svg"); }
.i-sun { -webkit-mask-image: url("assets/icons/sun.svg"); mask-image: url("assets/icons/sun.svg"); }
.i-sunset { -webkit-mask-image: url("assets/icons/sunset.svg"); mask-image: url("assets/icons/sunset.svg"); }
.i-shield { -webkit-mask-image: url("assets/icons/shield.svg"); mask-image: url("assets/icons/shield.svg"); }
.i-user { -webkit-mask-image: url("assets/icons/user.svg"); mask-image: url("assets/icons/user.svg"); }
.i-paw { -webkit-mask-image: url("assets/icons/paw.svg"); mask-image: url("assets/icons/paw.svg"); }
.i-leaf { -webkit-mask-image: url("assets/icons/leaf.svg"); mask-image: url("assets/icons/leaf.svg"); }
.i-firstAid { -webkit-mask-image: url("assets/icons/firstAid.svg"); mask-image: url("assets/icons/firstAid.svg"); }
.i-layers { -webkit-mask-image: url("assets/icons/layers.svg"); mask-image: url("assets/icons/layers.svg"); }
.i-moon { -webkit-mask-image: url("assets/icons/moon.svg"); mask-image: url("assets/icons/moon.svg"); }
.i-contrast { -webkit-mask-image: url("assets/icons/contrast.svg"); mask-image: url("assets/icons/contrast.svg"); }
.i-gps { -webkit-mask-image: url("assets/icons/gps.svg"); mask-image: url("assets/icons/gps.svg"); }

/* ---------- Surfaces (Glass.swift) ---------- */

/* cardSurface: an opaque card with a hairline edge. */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }

/* glassSurface: for controls only. */
.glass {
  background: var(--glass-tint);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--shadow-bar);
}

/* Pill: a small coloured capsule for categories and statuses. */
.pill {
  --tint: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; line-height: 1.4; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 15%, transparent);
}
.pill--allowed { --tint: var(--allowed); }
.pill--forbidden { --tint: var(--forbidden); }
.pill--gold { --tint: var(--caution); }
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* IconDisc: an icon on a soft disc of its own colour. */
.disc {
  --tint: var(--accent);
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent);
}
.disc--danger { --tint: var(--forbidden); }
.disc--gold { --tint: var(--caution); }

/* CategoryIcon: the category's picture on a tile of its colour. */
.tile {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 28%;
  font-size: 21px; color: #fff; background: var(--c, var(--forest));
}

/* Grouped rows with full-width dividers. */
.rows > * + * { border-top: 1px solid var(--border); }
.row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; }
.row__body { flex: 1; min-width: 0; }
.row__title { font-weight: 600; line-height: 1.3; }
.row__text { color: var(--muted); font-size: .9375rem; line-height: 1.4; margin-top: 2px; }
.row--center { align-items: center; }

/* ---------- Calls to action (FieldButtonStyle, PillButtonStyle) ---------- */

.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1.0625rem/1.2 "Outfit", system-ui, sans-serif; text-decoration: none; text-align: center;
  color: #fff; background: var(--forest);
  transition: transform .25s var(--spring), opacity .2s;
}
/* ctaSheen: a lit top edge over a soft inner glow, so the pill reads as a lens. */
.btn::before, .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; }
.btn::before { background: linear-gradient(to bottom, rgb(255 255 255 / .14), rgb(255 255 255 / 0) 45%); }
.btn::after {
  padding: 1px; background: linear-gradient(to bottom, rgb(255 255 255 / .42), rgb(255 255 255 / 0) 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.97); opacity: .85; }
.btn--secondary {
  color: var(--accent); background: var(--glass-tint); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: var(--shadow-bar);
}
.btn--secondary::before, .btn--secondary::after { content: none; }
.btn--cream { color: var(--launch); background: var(--cream); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--wide { width: 100%; }
/* Not on the store yet: the same pill, drained and inert. */
.btn--soon { color: var(--accent); background: var(--sage); cursor: default; }
.btn--soon::before, .btn--soon::after { content: none; }
.btn--soon:hover, .btn--soon:active { opacity: 1; transform: none; }
.on-forest .btn--soon { color: var(--cream); background: rgb(255 255 255 / .12); }

html[data-store="soon"] .store-live, html[data-store="live"] .store-soon { display: none; }

/* ---------- The bar: brand, the glass tab capsule, the call to action ---------- */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px max(var(--gutter), calc((100vw - var(--page)) / 2));
}
/* ProgressiveBlur(edge: .top): content softens as it scrolls up under the bar. */
.bar::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--canvas) 88%, transparent), color-mix(in srgb, var(--canvas) 0%, transparent));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent); mask-image: linear-gradient(to bottom, #000 50%, transparent);
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; justify-self: start; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 25%; }
.bar__cta { justify-self: end; display: flex; align-items: center; gap: 10px; }

/* GlassIconButton: a glyph on a disc of glass. Here, the appearance switch. */
.disc-btn {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 50%; cursor: pointer;
  font-size: 20px; color: var(--ink); background: var(--glass-tint); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: var(--shadow-bar);
  transition: transform .25s var(--spring);
}
.disc-btn:active { transform: scale(.94); }
html:not(.theme-ready) .theme-ui { display: none; }

.tabs {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--glass-tint); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: var(--shadow-bar);
}
.tabs a {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  font-size: .9375rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: #fff; font-weight: 600; }
.tabs .icon { font-size: 18px; }
/* The active item's thumb: a fill, not glass (glass on glass vanishes into the bar). */
.tabs:not(.is-ready) a[aria-current] { background: var(--forest); }
.tabs__thumb {
  position: absolute; top: 5px; left: 0; z-index: 0; width: var(--w, 0); height: 42px; border-radius: 999px; opacity: 0;
  background: var(--forest); pointer-events: none; transform: translateX(var(--x, 0));
  transition: transform .4s var(--spring), width .4s var(--spring), height .26s var(--ease), opacity .2s;
}
.tabs.is-ready .tabs__thumb { opacity: 1; }
.tabs__thumb::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to bottom, rgb(255 255 255 / .14), rgb(255 255 255 / 0) 45%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3);
}

@media (max-width: 1000px) {
  .tabs .icon { display: none; }
  .tabs a { padding: 0 14px; }
}

/* Phones: the capsule drops to the bottom and becomes the app's tab bar, icon over label.
   Scrolling down folds the labels away; scrolling up brings them back. */
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .bar { grid-template-columns: 1fr auto; padding-top: 10px; padding-bottom: 10px; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .tabs {
    position: fixed; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); transform: translateX(-50%);
    width: min(calc(100vw - 56px), 420px);
    transition: width .26s var(--ease);
  }
  .tabs a { flex: 1 1 0; flex-direction: column; gap: 3px; height: 54px; padding: 0 4px; min-width: 0; font-size: .65625rem; transition: color .2s, height .26s var(--ease), gap .26s var(--ease); }
  .tabs .icon { display: inline-block; font-size: 22px; }
  .tabs__label { height: 14px; line-height: 14px; transition: height .26s var(--ease), opacity .26s var(--ease), transform .26s var(--ease), filter .26s var(--ease); }
  /* Items share the row evenly, so the thumb follows from the index and tracks the fold frame by frame. */
  .tabs__thumb {
    left: 5px; height: 54px; width: calc((100% - 10px - (var(--n, 5) - 1) * 2px) / var(--n, 5));
    transform: translateX(calc(var(--at, 0) * (100% + 2px)));
    transition: transform .4s var(--spring), height .26s var(--ease), opacity .2s;
  }
  .tabs.is-compact { width: min(calc(100vw - 56px), calc(var(--n, 5) * 58px + 10px)); }
  .tabs.is-compact a { height: 42px; gap: 0; }
  .tabs.is-compact .tabs__label { height: 0; opacity: 0; transform: scale(.8); filter: blur(6px); }
  .tabs.is-compact .tabs__thumb { height: 42px; }
  /* ProgressiveBlur(edge: .bottom) under the tab bar. */
  body::after {
    content: ""; position: fixed; inset: auto 0 0 0; height: calc(96px + env(safe-area-inset-bottom)); z-index: 40; pointer-events: none;
    background: linear-gradient(to top, color-mix(in srgb, var(--canvas) 88%, transparent), color-mix(in srgb, var(--canvas) 0%, transparent));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent);
  }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Sections ---------- */

main { padding-top: 96px; }
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section--tight { padding: clamp(32px, 5vw, 56px) 0; }
.section__head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head .pill { margin-bottom: 16px; }
.section__head h2 + .lead { margin-top: 14px; }
.section__head--center { margin-inline: auto; text-align: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split > .section__head { margin-bottom: 0; }
.split--media-first > :first-child { order: 0; }
@media (max-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--media-first > .section__head { order: -1; }
}

.points { display: grid; gap: 14px; margin-top: 28px; }
.point { display: flex; align-items: center; gap: 14px; }
.point p { font-weight: 500; line-height: 1.35; }

/* ---------- Hero ---------- */

.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy .pill { margin-bottom: 20px; }
.hero__copy .lead { margin-top: 20px; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__notes { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: .9375rem; color: var(--muted); }
.hero__notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero__notes .icon { color: var(--allowed); font-size: 18px; }

/* The stage: two real screens on the illustration ground of the species cards, a partridge at its foot. */
.stage { position: relative; }
.stage__ground {
  position: relative; display: flex; justify-content: center; padding: 48px 0;
  background: var(--habitat); border-radius: 40px; overflow: hidden;
}
.stage .phone--front { --w: 290px; position: relative; z-index: 2; margin-right: 22%; }
.stage .phone--back { --w: 250px; position: absolute; z-index: 1; right: 6%; top: 104px; }
.stage__art { position: absolute; z-index: 3; right: -20px; bottom: -18px; width: 176px; pointer-events: none; }
.stage__art--small { width: 148px; right: -12px; }

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy .lead { max-width: 46ch; }
  .stage { max-width: 560px; }
}
@media (max-width: 560px) {
  .stage__ground { padding: 32px 0; border-radius: 32px; }
  .stage .phone--front { --w: min(62vw, 260px); margin-right: 26%; }
  .stage .phone--back { --w: min(52vw, 220px); right: -8%; top: 84px; }
  .stage__art { width: 124px; right: -8px; bottom: -14px; }
  .stage__art--small { width: 104px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* A device around a simulator capture (1206 x 2622). */
.phone {
  --w: 280px; position: relative; flex: none; width: var(--w); padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .185); background: #0f1412;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 24px 48px -28px rgb(16 20 18 / .45);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: calc(var(--w) * .152); background: var(--canvas); }
.phone::after {
  content: ""; position: absolute; top: calc(var(--w) * .0665); left: 50%; transform: translateX(-50%);
  width: calc(var(--w) * .29); height: calc(var(--w) * .084); border-radius: 999px; background: #000;
}

/* ---------- Figures strip ---------- */

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { padding: 24px 24px 22px; }
.figure + .figure { border-inline-start: 1px solid var(--border); }
.figure__value { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--accent); }
.figure__label { margin-top: 4px; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
@media (max-width: 760px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { padding: 18px 18px 16px; }
  .figure:nth-child(odd) { border-inline-start: 0; }
  .figure:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ---------- Map legend card ---------- */

.legend__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.legend__head h3 { font-size: 1.0625rem; }
.legend .row { padding: 13px 20px; }
.legend__count { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9375rem; }

/* ---------- Alert demo: a drawn plan, the hunter at the limit, the banner ---------- */

.alert-demo { position: relative; overflow: hidden; padding: 0; }
.alert-demo__map { display: block; width: 100%; height: auto; background: var(--map-ground); }
.alert-demo__banner {
  position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 22px; color: var(--ink);
  background: var(--glass-danger); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: var(--shadow-bar);
}
.alert-demo__banner .icon { font-size: 26px; color: var(--forbidden); }
.alert-demo__banner strong { display: block; font-weight: 600; line-height: 1.25; color: var(--forbidden); }
.alert-demo__banner span { display: block; font-size: .875rem; line-height: 1.3; color: var(--muted); }
.alert-demo__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.alert-demo__foot .muted { font-size: .875rem; }
.hunter-halo { transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(.5); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }

/* ---------- Species scroller (fadedEdges) ---------- */

.species {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--page)) / 2)) 8px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.species::-webkit-scrollbar { display: none; }
.species__card { flex: 0 0 188px; scroll-snap-align: center; overflow: hidden; }
.species__art { display: grid; place-items: center; aspect-ratio: 1 / .92; padding: 14px; background: var(--habitat); }
.species__art img { width: 100%; height: 100%; object-fit: contain; }
.species__name { padding: 14px 16px 16px; font-weight: 600; font-size: 1.0625rem; }
@media (max-width: 560px) { .species__card { flex-basis: 156px; } }

/* ---------- Field grid: SOS and the rest ---------- */

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bento > * { grid-column: span 2; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.bento h3 { font-size: 1.125rem; }
.bento p { color: var(--muted); font-size: .9375rem; line-height: 1.45; margin-top: 4px; }
.bento__sos { grid-column: span 3; grid-row: span 2; background: var(--danger-surface); border-color: color-mix(in srgb, var(--forbidden) 22%, var(--border)); }
.bento__journal { grid-column: span 3; grid-row: span 2; }
.bento__sos h3, .bento__journal h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.bento__art { margin-top: auto; border-radius: 18px; background: var(--habitat); display: grid; place-items: center; padding: 12px; }
.bento__art img { width: min(200px, 64%); }
.tile--sos { width: 52px; height: 52px; font-size: 28px; background: var(--forbidden-fill); }
.message { margin-top: auto; padding: 16px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--border); }
.message__label { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.message__text { font-weight: 600; color: var(--ink); line-height: 1.35; }
.message__link { font-size: .9375rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > * { grid-column: span 1; }
  .bento__sos, .bento__journal { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .bento__sos, .bento__journal { grid-column: span 1; }
}

/* ---------- Pricing: the paywall's plan rows ---------- */

.plans { display: grid; gap: 12px; }
.plan { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.plan--selected { border: 2px solid var(--accent); padding: 17px 19px; }
.plan__radio { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border); color: #fff; font-size: 16px; }
.plan--selected .plan__radio { border-color: var(--forest); background: var(--forest); }
.plan__body { flex: 1; min-width: 0; }
.plan__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 600; font-size: 1.125rem; }
.plan__trial { margin-top: 2px; color: var(--allowed); font-weight: 500; font-size: .9375rem; line-height: 1.35; }
.plan__price { text-align: end; flex: none; }
.plan__price strong { display: block; font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; }
.plan__price span { font-size: .8125rem; color: var(--muted); }
.pricing__cta { margin-top: 20px; }
.pricing__fine { margin-top: 16px; font-size: .875rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 420px) { .plan { gap: 12px; padding-inline: 16px; } .plan--selected { padding-inline: 15px; } }

/* ---------- Two cards: on-device data, field limits ---------- */

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.duo__head { padding: 24px 20px 12px; }
.duo__head h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.duo__head p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.duo__foot { padding: 14px 20px 18px; border-top: 1px solid var(--border); font-weight: 600; }
@media (max-width: 880px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing panel on the emblem's green ---------- */

.closing { position: relative; overflow: hidden; border-radius: var(--radius-panel); background: var(--launch); color: var(--cream); padding: clamp(36px, 6vw, 72px); }
.closing__terrain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.closing__body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.closing img { width: 72px; height: 72px; border-radius: 25%; margin-bottom: 24px; }
.closing h2 { color: var(--cream); max-width: 16ch; }
.closing p { margin-top: 14px; color: color-mix(in srgb, var(--cream) 78%, transparent); max-width: 44ch; }
@media (max-width: 760px) { .closing__body { grid-template-columns: minmax(0, 1fr); } .closing .btn { width: 100%; } }

/* ---------- Footer ---------- */

.footer { padding: 40px 0 48px; color: var(--muted); font-size: .9375rem; }
.footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { font-weight: 500; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__note { margin-top: 18px; font-size: .8125rem; line-height: 1.5; max-width: 80ch; }

/* Apparence: Système, Clair, Sombre, as in the app's Settings. */
.footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 18px; }
.footer__base .footer__note { margin-top: 0; flex: 1 1 320px; }
.footer__base--end { justify-content: flex-end; }
.appearance { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; font-weight: 500; white-space: nowrap; }
.appearance .segmented { flex: none; }
@media (max-width: 760px) { .footer__base--end { justify-content: flex-start; } }
.segmented {
  --n: 3; position: relative; display: inline-grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--glass-tint); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: var(--shadow-bar);
}
.segmented button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; cursor: pointer; white-space: nowrap;
  font: 500 .875rem/1 "Outfit", system-ui, sans-serif; color: var(--muted); transition: color .2s;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { color: #fff; font-weight: 600; }
.segmented .icon { font-size: 16px; }
.segmented__thumb {
  position: absolute; top: 4px; left: 4px; z-index: 0; height: 36px; border-radius: 999px; background: var(--forest); pointer-events: none;
  width: calc((100% - 8px - (var(--n) - 1) * 2px) / var(--n));
  transform: translateX(calc(var(--at, 0) * (100% + 2px)));
  transition: transform .4s var(--spring);
  background-image: linear-gradient(to bottom, rgb(255 255 255 / .14), rgb(255 255 255 / 0) 45%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3);
}

/* ---------- Document pages (privacy, account deletion, sign-in link) ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: clamp(16px, 4vw, 40px) 0 24px; }
.doc__head { padding: 8px 0 28px; }
.doc__head h1 { font-size: clamp(2.125rem, 4.6vw, 3rem); line-height: 1.06; }
.doc__head .meta { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.doc section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 24px; margin-bottom: 12px; }
.doc section h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.005em; margin-bottom: 10px; }
.doc section p, .doc section ul { margin-bottom: 12px; line-height: 1.6; }
.doc section > :last-child { margin-bottom: 0; }
.doc section p { color: color-mix(in srgb, var(--ink) 86%, transparent); }
.doc section ul { display: grid; gap: 10px; }
.doc section li { position: relative; padding-inline-start: 30px; line-height: 1.5; }
.doc section li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .16em; width: 20px; height: 20px; background: var(--allowed);
  -webkit-mask: url("assets/icons/check.svg") center / contain no-repeat; mask: url("assets/icons/check.svg") center / contain no-repeat;
}
.doc a { font-weight: 500; }
@media (max-width: 560px) { .doc section { padding: 18px; } }

.gate { min-height: calc(100vh - 260px); display: grid; place-items: center; padding: 24px 0; }
.gate__card { max-width: 480px; padding: 32px 28px; text-align: center; }
.gate__card img { width: 76px; height: 76px; border-radius: 25%; margin: 0 auto 22px; }
.gate__card h1 { font-size: clamp(1.75rem, 5vw, 2.125rem); line-height: 1.1; }
.gate__card .meta { margin-top: 10px; color: var(--muted); }
.gate__card p + p { margin-top: 16px; }
.gate__text { color: color-mix(in srgb, var(--ink) 86%, transparent); line-height: 1.55; text-align: start; }

/* ---------- appear(): fade and lift in, one after another. Skipped with Reduce Motion. ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .appear { opacity: 0; transform: translateY(18px); }
  .js .appear.is-in { opacity: 1; transform: none; transition: opacity .5s ease-out, transform .6s var(--spring); transition-delay: calc(var(--i, 0) * 50ms); }
}
@media print { .appear { opacity: 1 !important; transform: none !important; } .bar, body::after { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hunter-halo { animation: none; opacity: 0; }
  .tabs__thumb, .tabs, .tabs a, .tabs__label, .btn, .segmented__thumb, .disc-btn { transition: none; }
}
