/* ---------------------------------------------------------------
   RedactPro. What this site adds to the Osquare system: the
   wordmark, the hero page that burns itself, profile cards,
   plan cards and the download card. Every value from tokens.css.
   --------------------------------------------------------------- */

/* ---------- Wordmark ---------- */
.wordmark--rp { letter-spacing: 0.3em; align-items: center; }
.wordmark--rp .wordmark__glyph { width: 17px; height: 22px; transform: none; }

/* ---------- Hero: copy left, a page being redacted right ---------- */
.rp-hero { padding: clamp(8.5rem, 13vw, 11rem) 0 clamp(4rem, 8vw, 7rem); }
.rp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.rp-hero .display { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.6rem); margin: 1.4rem 0 1.6rem; max-width: 13ch; }
.rp-hero .lead { max-width: 30em; }
.rp-hero .product__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.rp-hero .product__meta { grid-template-columns: repeat(3, auto); }

/* The page. A sheet of paper with invented text; marked values tint,
   then a black box closes over each one and its label appears. */
.sheet {
  position: relative; background: var(--paper-0); color: var(--text-on-paper);
  border-radius: 4px; padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.6rem) clamp(2rem, 4vw, 3rem);
  font-family: var(--font-body); font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.92rem); line-height: 1.95;
  box-shadow: 0 50px 120px -50px rgba(0,0,0,0.95);
  transform: rotate(0.6deg);
}
.sheet::before, .sheet::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; }
.sheet::before { top: -9px; left: -9px; border-width: 1px 0 0 1px; }
.sheet::after { bottom: -9px; right: -9px; border-width: 0 1px 1px 0; }
.sheet__h { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; margin: 0 0 1.2rem; color: var(--text-on-paper); }
.sheet p { margin: 0 0 0.9rem; }
.sheet__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; margin-top: 1.4rem; padding-top: 0.9rem; border-top: 1px solid var(--paper-line);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-on-paper-muted); }
.sheet__meta b { color: var(--text-on-paper); font-weight: 500; }

/* a marked value: the original text, a tint, a burn box with its label */
.pii { position: relative; display: inline-block; white-space: nowrap; }
.pii__box { position: absolute; inset: -0.05em -0.2em; background: #0d1014; color: rgba(255,255,255,0.82); border-radius: 1px;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.62em; letter-spacing: 0.06em; }
/* Burned is the resting state: with no script, reduced motion or a phone, the page shows as redacted. */
.pii__v { visibility: hidden; }

/* animated only when motion is allowed (main.js removes .js otherwise) */
@media (min-width: 861px) {
  .js .sheet .pii__v { visibility: visible; animation: pii-hide 0s linear forwards; animation-delay: calc(1.6s + var(--i) * 0.32s); }
  .js .sheet .pii::before { content: ""; position: absolute; inset: -0.05em -0.2em; background: var(--accent-soft); border-bottom: 1px solid var(--accent);
    opacity: 0; animation: pii-tint 0.4s var(--ease-out) forwards; animation-delay: calc(0.5s + var(--i) * 0.08s); }
  .js .sheet .pii__box { transform: scaleX(0); transform-origin: left; color: transparent;
    animation: pii-burn 0.42s var(--ease-out) forwards, pii-label 0.3s linear forwards;
    animation-delay: calc(1.6s + var(--i) * 0.32s), calc(1.95s + var(--i) * 0.32s); }
  .js .sheet .sheet__meta { opacity: 0; animation: pii-tint 0.6s var(--ease-out) forwards; animation-delay: 6.2s; }
}
@keyframes pii-tint { to { opacity: 1; } }
@keyframes pii-burn { to { transform: scaleX(1); } }
@keyframes pii-label { to { color: rgba(255,255,255,0.82); } }
@keyframes pii-hide { to { visibility: hidden; } }

/* ---------- Profiles ---------- */
.profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.profile { background: var(--ink-0); padding: 1.8rem 1.5rem 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.profile .mono { color: var(--accent); }
.profile h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.35; color: var(--text-on-ink); }
.profile p { font-size: 0.95rem; color: var(--text-on-ink-muted); margin: 0; }
.profile__rule { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--text-on-ink-faint); margin-top: auto; padding-top: 0.6rem; }
.profiles__note { margin-top: 2rem; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.plan { border: 1px solid var(--ink-line-strong); border-radius: 6px; padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; background: rgba(13,16,20,0.6); }
.plan--mark { border-color: var(--accent); }
.plan h3 { font-family: var(--font-display); font-weight: 400; font-size: 0.9rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-on-ink); }
.plan__price { margin: 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--text-on-ink); }
.plan__price small { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--text-on-ink-muted); margin-left: 0.4rem; }
.plan ul { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px solid var(--ink-line); display: grid; gap: 0.6rem; font-size: 0.95rem; color: var(--text-on-ink-muted); }
.plan li::before { content: ""; display: inline-block; width: 0.8em; height: 1px; background: var(--accent); margin-right: 0.7em; vertical-align: middle; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Beta band and download card ---------- */
.beta { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.beta .title { margin: 1.4rem 0 1.4rem; max-width: 16ch; }
.beta__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.dl { border: 1px solid var(--ink-line-strong); border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.4rem); background: rgba(13,16,20,0.6); }
.dl .facts { margin-top: 1.6rem; }
.dl .facts li { grid-template-columns: 9em 1fr; }
.dl .facts .v code { font-family: var(--font-mono); font-size: 0.8rem; word-break: break-all; color: var(--text-on-ink-muted); }
.dl__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.steps-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; color: var(--text-on-ink-muted); padding: 1rem 0; border-bottom: 1px solid var(--ink-line); }
.steps-list li::before { content: "0" counter(s); font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); padding-top: 0.3em; }
.steps-list b { color: var(--text-on-ink); font-weight: 500; }
.kbd { font-family: var(--font-mono); font-size: 0.85em; padding: 0.05em 0.45em; border: 1px solid var(--ink-line-strong); border-radius: 3px; color: var(--text-on-ink); white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rp-hero__grid, .beta { grid-template-columns: minmax(0, 1fr); }
  .rp-hero .product__meta { grid-template-columns: minmax(0, 1fr); gap: 1rem; width: auto; }
  .sheet { transform: none; }
  .plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .profiles { grid-template-columns: minmax(0, 1fr); }
  .dl .facts li { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .pii { white-space: normal; }
}
