/* C1 creative review: design tokens.

   Every color below is either lifted verbatim from campaigns/loans/landing/src/styles.css's
   :root block, or from that same file's `.section--ink` dark-mode overrides (the landing page's
   own "dark section" system, used for e.g. the footer). Nothing new was invented: this page just
   makes the dark tokens the GROUND instead of an occasional section, because these renders are
   warm-paper cards on warm-toned photography, and a warm-paper page behind them (the landing
   page's default) collapsed the edge between "page" and "image": nothing told the eye where the
   card stopped and the page started. A dark neutral ground is the same trick a lightbox or a
   print proof sheet uses: it goes quiet so the thing being judged is the only warm object in the
   room. See README.md "Design decisions" for the full rationale. */

:root {
  --ink:        #0f1a2a;
  --paper:      #faf8f4;
  --paper-2:    #f2eee7;
  --line:       #e2dcd2;
  --accent:     #0d6b57;
  --accent-2:   #0a5546;
  --clay:       #a4521f;

  /* Dark-ground surfaces, taken from landing's .section--ink family rather than invented:
     --panel/--panel-line = landing's ".section--ink .card" background/border,
     --text-2  = that same card's text color,
     --muted   = landing's ".section--ink .muted" color,
     --mint    = landing's ".section--ink .eyebrow" / accent-on-dark color,
     --sand    = landing's ".delta--bad dd" clay-on-dark color. */
  --bg:         #0a1420;
  --panel:      #17253a;
  --panel-2:    #121f30;
  --panel-line: #27384f;
  --text:       #f3f6f9;
  --text-2:     #d8e0ea;
  --muted:      #a9b6c6;
  --mint:       #6dd6b8;
  --sand:       #f0a875;

  --radius:     14px;
  --radius-sm:  9px;
  --container:  1180px;
  --shadow:     0 1px 2px rgba(0,0,0,.2), 0 16px 40px -20px rgba(0,0,0,.55);

  --font: 'Assistant', 'Rubik', 'Segoe UI', system-ui, -apple-system, 'Arial Hebrew', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  background:
    radial-gradient(1100px 520px at 18% -12%, rgba(13,107,87,.28) 0%, rgba(13,107,87,0) 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(164,82,31,.14) 0%, rgba(164,82,31,0) 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.18; font-weight: 800; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 5.4vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* Icons: hand-inlined Lucide paths (check, external-link) rather than an icon-font request,
   since the only external call this page is allowed is the Google Fonts stylesheet. */
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Latin/numeral strings (ad names, format codes) must never bidi-reorder inside RTL flow.
   Same technique as landing's own `.num` utility. */
.ltr { unicode-bidi: isolate; direction: ltr; display: inline-block; }

/* ---------- masthead ---------- */

.masthead { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem); }
.masthead__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--mint); background: rgba(109,214,184,.1);
  border: 1px solid rgba(109,214,184,.28); border-radius: 999px;
  padding: .4rem .9rem; margin-bottom: 1.1rem;
}
.masthead__eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex: none; }
.masthead h1 { max-width: 20ch; }
.masthead__sub { font-size: clamp(1rem, 2vw, 1.14rem); color: var(--muted); max-width: 62ch; margin-top: .6rem; }

.statusline {
  display: flex; gap: .75rem; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  margin-top: 1.6rem; max-width: 62ch;
}
.statusline .icon { color: var(--mint); margin-top: .2rem; width: 1.15em; height: 1.15em; }
.statusline strong { color: var(--text); }
.statusline p { font-size: .99rem; color: var(--text-2); }

.specs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.spec {
  font-size: .84rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--panel-line); border-radius: 999px;
  padding: .4rem .85rem; white-space: nowrap;
}
.spec b { color: var(--text-2); font-weight: 800; }

/* ---------- section scaffolding ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--panel-line); }
.section__head { position: relative; margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.section__n {
  position: absolute; inset-inline-end: 0; top: -.6em;
  font-size: clamp(3.5rem, 9vw, 6rem); font-weight: 800;
  color: var(--accent); opacity: .16; letter-spacing: -.04em;
  line-height: 1; pointer-events: none; z-index: 0;
}
.section__eyebrow {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  color: var(--mint); display: block; margin-bottom: .6rem; position: relative; z-index: 1;
}
.section__head h2 { position: relative; z-index: 1; max-width: 26ch; }
.section__lede { font-size: clamp(1rem, 2vw, 1.1rem); color: var(--muted); max-width: 68ch; position: relative; z-index: 1; }

/* ---------- recommendation banner ---------- */

.reco {
  display: grid; gap: 1rem; grid-template-columns: auto 1fr;
  background: linear-gradient(155deg, rgba(13,107,87,.22), rgba(13,107,87,.05));
  border: 1px solid rgba(109,214,184,.35); border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: clamp(2rem, 5vw, 3rem);
}
.reco__mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; flex: none;
}
.reco__mark .icon { width: 1.2em; height: 1.2em; }
.reco__label { font-size: .8rem; font-weight: 800; letter-spacing: .05em; color: var(--mint); margin-bottom: .35rem; display: block; }
.reco p { font-size: 1.03rem; color: var(--text-2); max-width: 72ch; }
.reco__note { font-size: .87rem; color: var(--muted); margin-top: .7rem; max-width: 72ch; }

/* ---------- hook blocks ---------- */

.hookblock + .hookblock { margin-top: clamp(3rem, 7vw, 4.5rem); }
.hookblock__head { display: grid; gap: clamp(1.2rem, 3vw, 2rem); margin-bottom: clamp(1.6rem, 4vw, 2.2rem); }
@media (min-width: 900px) { .hookblock__head { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.hooktag { display: inline-block; font-size: .82rem; font-weight: 800; letter-spacing: .05em; color: var(--sand); margin-bottom: .5rem; }
.hookline {
  font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 800; color: var(--text);
  line-height: 1.35; max-width: 20ch; border-inline-start: 3px solid var(--accent);
  padding-inline-start: 1rem; margin: 0;
}

.copycard {
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: clamp(1rem, 2.6vw, 1.4rem);
  display: grid; gap: .9rem;
}
.copyfield__label { font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); margin-bottom: .3rem; display: block; }
.copyfield p { font-size: .96rem; color: var(--text-2); line-height: 1.6; margin: 0; }
.copyfield--head p { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* ---------- format groups + comparisons ---------- */

.formatgroup + .formatgroup { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.formatgroup__head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .9rem; flex-wrap: wrap; }
.formatgroup__title { font-size: .95rem; font-weight: 800; color: var(--text); }
.formatgroup__ratio { font-size: .82rem; color: var(--muted); }

.compare { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }

.unit {
  background: var(--panel-2); border: 1px solid var(--panel-line);
  border-radius: var(--radius); padding: .9rem; display: flex; flex-direction: column; gap: .65rem;
  position: relative;
}
.unit--reco { border-color: rgba(109,214,184,.55); box-shadow: 0 0 0 1px rgba(109,214,184,.2) inset; }

.unit__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.adname {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  letter-spacing: .01em; background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: 999px; padding: .3rem .7rem;
}
.badge--reco {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .74rem; font-weight: 800; color: #06281f;
  background: var(--mint); border-radius: 999px; padding: .28rem .6rem .28rem .5rem;
}
.badge--reco .icon { width: .95em; height: .95em; }

.unit__figwrap { text-align: center; display: block; text-decoration: none; }
.unit__figwrap img { border-radius: 10px; margin-inline: auto; background: #05090f; transition: opacity .15s ease; }
.unit__figwrap:hover img, .unit__figwrap:focus-visible img { opacity: .88; }
.fig--916 img { max-height: 72vh; width: auto; }
.fig--45 img, .fig--11 img { max-height: 620px; width: auto; }

.unit__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.openfull {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .84rem; font-weight: 700; color: var(--mint); text-decoration: none;
}
.openfull:hover { text-decoration: underline; }
.unit__note { font-size: .83rem; color: var(--muted); margin: 0; }

/* ---------- disclosure (collapsed sections) ---------- */

.disclosure {
  background: transparent; border: 0; padding: 0;
}
.disclosure__summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.3rem;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius-sm);
}
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary h3 { margin: 0; font-size: 1.05rem; }
.disclosure__summary span.sub { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; margin-top: .2rem; }
.disclosure__summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--mint); line-height: 1; flex: none; }
.disclosure[open] .disclosure__summary::after { content: "\2212"; }
.disclosure[open] .disclosure__summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.disclosure__body {
  border: 1px solid var(--panel-line); border-top: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

/* v1 comparison rows inside the disclosure */
.v1row + .v1row { margin-top: 2rem; padding-top: 2rem; border-top: 1px dashed var(--panel-line); }
.v1row__title { font-size: 1rem; font-weight: 800; color: var(--muted); margin: 0 0 .6rem; }
.v1row__why {
  background: rgba(164,82,31,.12); border: 1px solid rgba(164,82,31,.3);
  border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1rem;
  font-size: .9rem; color: #f4d9c4;
}
.v1row__why strong { color: var(--sand); }
.v1grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.v1grid .unit__figwrap img { max-height: 480px; }

/* background candidate grid */
.candgrid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .candgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .candgrid { grid-template-columns: repeat(3, 1fr); } }
.cand {
  background: var(--panel-2); border: 1px solid var(--panel-line); border-radius: var(--radius);
  padding: .9rem; display: flex; flex-direction: column; gap: .65rem;
}
.cand--shipped { border-color: rgba(109,214,184,.55); }
.cand__img { border-radius: 10px; max-height: 340px; width: auto; margin-inline: auto; }
.cand__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cand__letter { font-weight: 800; color: var(--text); font-size: .95rem; }
.cand__verdict { font-size: .87rem; color: var(--text-2); line-height: 1.55; margin: 0; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .03em; border-radius: 999px; padding: .25rem .6rem; }
.tag--reject { color: var(--sand); background: rgba(240,168,117,.14); border: 1px solid rgba(240,168,117,.3); }
.tag--close { color: #e8d68a; background: rgba(232,214,138,.12); border: 1px solid rgba(232,214,138,.28); }
.tag--ship { color: #06281f; background: var(--mint); }

/* ---------- open items ---------- */

.openlist { display: grid; gap: 1rem; }
.openitem {
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  padding: clamp(1rem, 2.6vw, 1.4rem); display: grid; gap: .5rem;
  grid-template-columns: auto 1fr; align-items: start;
}
.openitem__mark {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--sand); color: var(--sand);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none;
}
.openitem p { font-size: .99rem; color: var(--text-2); margin: 0; max-width: 72ch; }
.openitem p + p { margin-top: .5rem; color: var(--muted); font-size: .9rem; max-width: 72ch; }

/* ---------- footer ---------- */

.footer { padding-block: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--panel-line); }
.footer p { font-size: .85rem; color: var(--muted); max-width: 62ch; }
.footer strong { color: var(--text-2); }

/* ---------- side wayfinding rail (desktop only) ---------- */

.railnav {
  position: fixed; top: 50%; inset-inline-start: 30px; transform: translateY(-50%);
  display: none; flex-direction: column; z-index: 40;
  padding-inline-start: 1rem; border-inline-start: 1px solid var(--panel-line);
}
@media (min-width: 1320px) {
  .railnav { display: flex; }
}
.railnav a {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-size: .78rem; font-weight: 700; color: var(--muted); padding-block: .5rem;
  opacity: .65; transition: opacity .15s ease;
}
.railnav a:hover, .railnav a:focus-visible { opacity: 1; }
.railnav__num {
  font-size: .68rem; font-weight: 800; color: var(--mint); flex: none;
  width: 1.4em; text-align: center;
}
.railnav__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .2s ease; }
.railnav a:hover .railnav__label, .railnav a:focus-visible .railnav__label { max-width: 14em; }
