/* ==========================================================================
   Card page — shared section system. Each section sets a tone (its ground
   and text colours); layouts are the split, the head, and the figures row.
   Slots (.cp-slot) are where each section's visual goes.
   ========================================================================== */
.cp { position: relative; padding-block: clamp(88px, 10vw, 152px); overflow: clip; background: var(--bg); color: var(--fg); }
.cp[data-tone="paper"]  { --bg: var(--paper); --fg: var(--ink); --fg2: var(--ink-70); --rule: var(--ink-13); }
.cp[data-tone="ink"]    { --bg: #16211D; --fg: #F2F4F1; --fg2: rgba(242,244,241,.66); --rule: rgba(242,244,241,.14); }
.cp[data-tone="cobalt"] { --bg: #24409E; --fg: #F2F4F1; --fg2: rgba(242,244,241,.74); --rule: rgba(242,244,241,.2); }
.cp[data-tone="green"]  { --bg: #6FCB9F; --fg: var(--ink); --fg2: rgba(22,33,29,.72); --rule: rgba(22,33,29,.18); }
.cp[data-tone="amber"]  { --bg: #E3B667; --fg: var(--ink); --fg2: rgba(22,33,29,.72); --rule: rgba(22,33,29,.18); }
.cp .eyebrow { color: var(--fg2); }
.cp-h { margin-top: var(--s3); font-size: clamp(44px, 6.4vw, 100px); line-height: .9; letter-spacing: -0.05em; }
.cp-lead { margin-top: clamp(18px, 1.8vw, 26px); max-width: 38ch; text-wrap: pretty; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.45; color: var(--fg2); }
.cp-head { max-width: 980px; }

/* split: words one side, visual the other */
.cp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 96px); align-items: center; }
.cp-split.flip > :first-child { order: 2; }

/* figures row: ruled top and bottom, figure + caption centred between the rules */
.cp-figs { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cp-figs li { display: grid; gap: 8px; align-content: start; padding: 24px 24px 24px 0; }
.cp-figs li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.cp-figs b { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -0.04em; }
.cp-figs.big b { font-size: clamp(56px, 7vw, 104px); }
.cp-figs span { font-size: 14.5px; line-height: 1.35; color: var(--fg2); }

/* placeholder until a visual is built */
.cp-slot { position: relative; min-height: 320px; display: grid; place-items: center; text-align: center; padding: 16px;
  border: 1.5px dashed var(--rule); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg2); }

/* accordion (In the app + Questions) */
.cp-acc { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--rule); }
.cp-acc details { border-bottom: 1px solid var(--rule); }
.cp-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -0.025em; }
.cp-acc summary::-webkit-details-marker { display: none; }
.cp-acc summary svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: transform .35s var(--ease); }
.cp-acc details[open] summary svg { transform: rotate(180deg); }
.cp-acc details p { padding: 0 48px 24px 0; max-width: 60ch; color: var(--fg2); font-size: 16px; line-height: 1.55; }

@media (max-width: 900px) {
  .cp-split { grid-template-columns: minmax(0, 1fr); }
  .cp-split.flip > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .cp-figs { grid-template-columns: minmax(0, 1fr); }
  .cp-figs li { padding: 18px 0; }
  .cp-figs li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .cp-acc details p { padding-right: 0; }
}

/* a line break used only on phones */
.br-sm { display: none; }
@media (max-width: 560px) { .br-sm { display: inline; } }
/* short figures (cycle) stay three across on phones */
@media (max-width: 640px) {
  #cp-cycle .cp-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #cp-cycle .cp-figs li { padding: 18px 12px 18px 0; }
  #cp-cycle .cp-figs li + li { padding-left: 14px; border-top: 0; border-left: 1px solid var(--rule); }
}

/* page-hero tag: the home page has its pill; inner pages get an icon tile, the page name and one hook */
.hero-tag { display: inline-flex; align-items: center; gap: 12px; }
.hero-tag .ht-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--fg); color: var(--bg); }
.hero-tag .ht-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-tag .ht-t { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1; letter-spacing: -0.02em; color: var(--fg); }
.hero-tag .ht-sep { width: 1px; height: 16px; background: var(--fg); opacity: .3; }
.hero-tag .ht-s { font-family: var(--f-mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--fg2); }
.cp .hero-tag + .cp-h { margin-top: clamp(22px, 2.2vw, 30px); }
@media (max-width: 640px) {
  #er-yours .cp-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #er-yours .cp-figs li { padding: 18px 12px 18px 0; }
  #er-yours .cp-figs li + li { padding-left: 14px; border-top: 0; border-left: 1px solid var(--rule); }
}
