/* ═══════════════════════════════════════════════════════════════════
   Duoprep — sections drawn from the Product & Engineering Report
   (trust model, marks breakdown, score range, privacy, calibration)
   Loaded after theme.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ── A. Rules award marks. AI only removes. ── */
.trust { padding: 96px 0; position: relative; overflow: hidden; }
.trust .eyebrow { color: var(--brand-mint) !important; }
.trust h2 { color: var(--cream); max-width: 20ch; }
.trust h2 em {
  font-style: italic; background: var(--mint-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trust .lede { color: var(--cream-soft); }
.trust-flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 48px; counter-reset: step;
}
.trust-step {
  position: relative; padding: 26px 24px 24px; border-radius: 14px;
  background: rgba(12, 24, 44, 0.55); border: 1px solid rgba(250, 246, 239, 0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.trust-step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  color: var(--brand-mint); display: block; margin-bottom: 14px;
}
.trust-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  color: rgba(143, 220, 194, 0.7); font-size: 1.1rem; z-index: 1;
}
.trust-step h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 8px; }
.trust-step p { color: var(--cream-soft); font-size: 0.92rem; line-height: 1.65; }
.trust-step .tag {
  display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(143, 220, 194, 0.35); color: var(--brand-mint);
}
.trust-promise {
  margin-top: 40px; text-align: center; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--cream);
}
.trust-promise span { color: var(--brand-mint); font-style: normal; }

/* ── B + C. Where the 100 marks come from + score range ── */
.marks-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; margin-top: 44px; align-items: start; }
.marks-table { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 26px; }
.mark-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mark-row:last-child { border-bottom: none; }
.mark-row .name { font-weight: 600; font-size: 0.98rem; }
.mark-row .pts { font-family: var(--serif); font-size: 1.35rem; color: var(--teal); line-height: 1; }
.mark-row .pts small { font-family: var(--mono); font-size: 0.7rem; color: var(--faint); }
.mark-row .why { grid-column: 1 / -1; font-size: 0.86rem; color: var(--soft); }
.mark-row .meter { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.mark-row .meter i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, #2F9A7C, #8FDCC2);
  transition: width 1.1s cubic-bezier(.4, 0, .2, 1);
}
.marks-table.in .meter i { width: var(--w); }
.marks-foot { font-size: 0.84rem; color: var(--soft); margin-top: 14px; }
.marks-foot strong { color: var(--ink); }

.range-card {
  border-radius: 14px; padding: 28px 26px; color: var(--cream);
  background: linear-gradient(180deg, #0B1628 0%, #122238 100%);
  box-shadow: 0 24px 50px -28px rgba(11, 22, 40, 0.6);
}
.range-card .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-mint); }
.range-card .big { font-family: var(--serif); font-size: 3.2rem; line-height: 1; margin: 14px 0 4px; }
.range-card .big small { font-size: 1.1rem; color: var(--cream-soft); }
.range-track { position: relative; height: 10px; border-radius: 99px; background: rgba(255,255,255,0.1); margin: 22px 0 8px; }
.range-band {
  position: absolute; top: 0; bottom: 0; left: 68%; width: 12%; border-radius: 99px;
  background: linear-gradient(90deg, rgba(143,220,194,0.35), rgba(143,220,194,0.85), rgba(143,220,194,0.35));
}
.range-dot {
  position: absolute; top: 50%; left: 74%; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 4px rgba(143,220,194,0.35);
}
.range-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.66rem; color: rgba(250,246,239,0.5); }
.range-card p { color: var(--cream-soft); font-size: 0.9rem; line-height: 1.65; margin-top: 18px; }
.range-card p strong { color: var(--cream); font-weight: 600; }

/* ── E + F. Your essays stay yours ── */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.privacy-item { border-top: 2px solid var(--teal-bright); padding-top: 18px; }
.privacy-item .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(47, 154, 124, 0.1); color: var(--teal); margin-bottom: 14px;
}
.privacy-item .ico svg { width: 20px; height: 20px; }
.privacy-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.privacy-item p { font-size: 0.9rem; color: var(--soft); line-height: 1.65; }
.privacy-note { margin-top: 30px; font-size: 0.84rem; color: var(--faint); max-width: 70ch; }
.privacy-note a { color: var(--teal); }

/* ── G. Calibrated in the open ── */
.calibrate {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal-bright);
  border-radius: 14px; padding: 28px 30px;
}
.calibrate .num { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--teal); }
.calibrate .num small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.calibrate h3 { font-size: 1.3rem; margin-bottom: 6px; }
.calibrate p { color: var(--soft); font-size: 0.94rem; }

/* Specimen: score shown as a practice range */
.specimen .specimen-body .specimen-range {
  font-family: var(--mono); font-size: 0.72rem; color: var(--faint);
  text-align: right; line-height: 1.4; margin: -24px 0 0 !important;
  opacity: 0; transition: opacity 0.5s ease 0.3s;
}
.marking .specimen-body .specimen-range { opacity: 1; }

/* ── Links into the Duoprep app ── */
.hero-app-link {
  display: inline-block; margin-top: 14px; font-size: 0.86rem;
  color: rgba(250, 246, 239, 0.7); text-decoration: none;
}
.hero-app-link span { color: #8FDCC2; border-bottom: 1px solid rgba(143, 220, 194, 0.4); transition: border-color .2s; }
.hero-app-link:hover span { border-color: #8FDCC2; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .trust-flow { grid-template-columns: 1fr; }
  .trust-step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -19px; transform: translateX(50%); }
  .marks-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .privacy-grid { grid-template-columns: 1fr; }
  .calibrate { grid-template-columns: 1fr; text-align: left; }
  .trust { padding: 68px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mark-row .meter i { transition: none; width: var(--w); }
  .specimen .specimen-body .specimen-range { opacity: 1; }
}
