/* ForecastsPro landing — the safety page (/safety), v14.
 *
 * Loaded after site.css on /safety only (site.css keeps its size budget). Tokens only, no
 * inline styles (the CSP).
 */

/* /safety opens with "You're in control" (v14, owner: "clear that he can put limit and try
   account testing and limit funds"): three big, simple points, then the custody fact in one
   bold line. It replaces the v12 safety reminder, whose advice is the third point. */
.in-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--lp-gap);
  max-width: 1040px;
  margin: clamp(28px, 4vw, 40px) auto 0;
  list-style: none;
  text-align: left;
}
.ic-card {
  padding: var(--lp-card-pad);
  border: 1px solid var(--border-soft);
  border-radius: var(--lp-card-radius);
  background: var(--lp-card-sheen), var(--bg-base);
}
.ic-card .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.ic-card h2 { margin: 16px 0 8px; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem); letter-spacing: -0.02em; }
.ic-card p { color: var(--text-muted); font-size: var(--lp-card-text); line-height: 1.6; }
.ic-card a { color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(174, 183, 255, 0.5); text-underline-offset: 3px; }
.custody-promise {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 1040px;
  margin: var(--lp-gap) auto 0;
  padding: 18px 22px;
  border: 1px solid rgba(69, 196, 116, 0.34);
  border-radius: var(--lp-card-radius);
  background: linear-gradient(180deg, rgba(69, 196, 116, 0.12), rgba(69, 196, 116, 0.04)), var(--bg-base);
  color: var(--text-default);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.55;
  text-align: left;
}
.custody-promise .icon { flex-shrink: 0; width: 24px; height: 24px; margin-top: calc((1.55em - 24px) / 2); color: var(--success); }
.custody-promise strong { color: var(--text-primary); font-weight: 700; }
@media (max-width: 900px) {
  .in-control { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .custody-promise { max-width: 560px; }
  /* Stacked, each point hangs from its icon. */
  .ic-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
  .ic-card .icon-tile { grid-row: span 2; }
  .ic-card h2 { margin: 10px 0 6px; }
}
@media (max-width: 400px) {
  .ic-card { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .ic-card .icon-tile { width: 40px; height: 40px; border-radius: 10px; }
  .ic-card h2 { margin-top: 8px; }
  .custody-promise { gap: 12px; padding: 16px; }
}

/* "Before you start" (owner, 24 October 2026: use the new designs "to show futuristic HQ
   designs"): the owner's shield, its emblem redrawn as the new mark, beside the chapter's
   heading from 1001 px (the split of chapter 01) and above it on narrower screens. It has no
   box: its see-through WebP fades out at the sides and the bottom like the home page's
   pictures. */
.dos-art { justify-self: center; width: min(420px, 100%); }
.dos-art img {
  width: 100%;
  height: auto;
  -webkit-mask-image: var(--lp-fade-x), linear-gradient(rgba(0, 0, 0, 0), #000 4%, #000 84%, rgba(0, 0, 0, 0));
  -webkit-mask-composite: source-in;
  mask-image: var(--lp-fade-x), linear-gradient(rgba(0, 0, 0, 0), #000 4%, #000 84%, rgba(0, 0, 0, 0));
  mask-composite: intersect;
}
/* Side by side, the picture's see-through lower part already spaces it from the cards. */
@media (min-width: 1001px) {
  .dos-split { margin-bottom: 16px; }
}
@media (max-width: 1000px) {
  .dos-art { order: -1; width: min(360px, 100%); margin-bottom: -24px; }
}

/* Safety & control (design notes, 6 November 2026): the two modes in the owner's two lines,
   then when real money unlocks in small grey text (one 77-word sentence before). The six cards
   that followed are in "Every safeguard" now, so the split ends the section. */
.note-lines { display: grid; gap: 6px; }
.note-fine { color: var(--text-muted); font-size: var(--lp-small); }
#safety .split { margin-bottom: 0; }

/* Every safeguard, told once (the two six-card grids merged): each card's plain line in the
   text colour, then its technical detail small and grey (--text-muted reads at 4.5:1 or more
   on the cards; --text-dim would not). Two columns from 601 to 1000 px: the first card spans
   both, so the nine leave no empty cell. */
.proof-grid .proof > p { color: var(--text-default); }
.proof-grid .proof > .proof-more { margin-top: 8px; color: var(--text-muted); font-size: var(--lp-small); line-height: 1.55; }
@media (min-width: 601px) and (max-width: 1000px) {
  .proof-grid > :first-child { grid-column: 1 / -1; }
}

/* Bigger browser text (design notes, 6 November 2026: text sizes in rem). The custody picture
   and its two key lists stack as on phones once the card is under 24.5em wide, so
   "ForecastsPro" never runs out of its box. At the default 16 px that is 392 px, and side by
   side the picture is never that narrow (404 px at 1001 px wide, 396 px beside a classic
   scrollbar), so nothing changes there; with Large or Very large text it stacks beside the
   intro (1001 px and up), and with Very large text on small tablets too. */
.custody { container-type: inline-size; }
@container (max-width: 24.5em) {
  .perms { grid-template-columns: 1fr; }
  .custody-flow { grid-template-columns: 1fr; gap: 8px; }
  .custody-link { flex-direction: row; gap: 12px; padding: 2px 0; }
  .custody-link .wire {
    width: 2px;
    height: 30px;
    background: repeating-linear-gradient(180deg, var(--accent-text) 0 6px, transparent 6px 11px);
    background-size: 2px 22px;
    animation-name: lp-flow-v;
  }
  .custody-link .wire::after {
    right: -4px;
    top: auto;
    bottom: -3px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--accent-text);
    border-bottom: 0;
  }
}
