/* ===============================
   BASE / THEME
   =============================== */

:root{
  --red:#9c2d12;
  --sage:#638372;
  --mint:#739c8c;
  --ink:#21272a;

  --bg1: #0f1416;
  --bg2: #121a1d;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);

  --radius: 20px;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --max: 980px;

  --ph-card: rgba(0,0,0,.22);
  --ph-border: rgba(255,255,255,.10);
  --ph-divider: rgba(255,255,255,.08);
  --ph-radius: 18px;
  --ph-gap: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: var(--bg1);
  overflow-x:hidden;
}

/* Apple-friendly static background */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;

  background:
    radial-gradient(900px 500px at 15% 12%, rgba(115,156,140,.28), transparent 60%),
    radial-gradient(900px 600px at 85% 18%, rgba(156,45,18,.25), transparent 62%),
    radial-gradient(1100px 700px at 50% 95%, rgba(99,131,114,.22), transparent 65%),
    linear-gradient(180deg, var(--bg2), var(--bg1));
  transform: translateZ(0);
}

.page{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding: clamp(18px, 3vw, 34px);
}

.hero{
  width:100%;
  max-width: var(--max);
  margin: 18px auto 18px;
  padding: clamp(18px, 3.2vw, 28px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 999px;
  letter-spacing:.4px;
  font-weight: 700;
  font-size: 12.5px;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, rgba(156,45,18,.22), rgba(115,156,140,.18));
}

.headline{
  margin: 14px 0 8px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.6px;
  font-size: clamp(34px, 4.6vw, 54px);
}

/* HERE button mint <-> sage pulse */
.is-pulsing {
  animation: herePulse 1.6s ease-in-out infinite;
}

@keyframes herePulse {
  0%   { color: var(--mint); }
  50%  { color: var(--sage); }
  100% { color: var(--mint); }
}

.phasesText{ display:block; color: var(--sage) !important; }
.coming{ display:block; color: rgba(255,255,255,.92); }
.toNearYou{ display:block; color: var(--mint); text-shadow: 0 10px 30px rgba(115,156,140,.18); }

.subhead{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
  max-width: 62ch;
}

.content{
  width:100%;
  max-width: var(--max);
  margin: 0 auto;
  flex: 1;
  padding: 8px 0 22px;
}

.roxie-paw{
  color: #491d8b;
  font-size: 1.1em;
  line-height: 1;
  display: inline-block;
  position: relative;
  top: -0.1em;
}

/* Utility word colors used in the headline */
.word-mint{ color: var(--mint); }
.word-sage{ color: var(--sage); }
.mint{ color: var(--mint); }
.sage{ color: var(--sage); }

.dot-mint{ color: var(--mint); }
.dot-sage{ color: var(--sage); }

/* ===============================
   SECTION WRAPPER
   =============================== */

.case-file{
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 10px 0 22px;
}

.case-section{
  position: relative;
  background: var(--ph-card);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 16px 16px;
  margin: 0 0 var(--ph-gap);
  overflow: hidden;
}

.case-section::before{
  content:"";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ph-divider), transparent);
  opacity: .95;
}

.section-top{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title{
  font-weight: 900;
  letter-spacing: .7px;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
}

.section-body[hidden]{ display:none !important; }

.notice, .note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
}

.notice--danger{
  border-style: solid;
  border-color: rgba(156,45,18,.45);
  background: rgba(156,45,18,.10);
}

.noticebox{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.smalltext{
  margin: 10px 0 0;
  color: rgba(255,255,255,.60);
  font-size: 12.5px;
}

/* ===============================
   PILLS / BUTTONS
   =============================== */

.pillbtn, .noticebtn{
  -webkit-appearance: none;
  appearance: none;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;

  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px;

  color: rgba(255,255,255,.95);
  background: linear-gradient(90deg, rgba(99,131,114,.40), rgba(156,45,18,.28));
  border: 1px solid rgba(255,255,255,.20);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);

  cursor: pointer;
}

.pillbtn--alt{
  background: linear-gradient(90deg, rgba(156,45,18,.40), rgba(99,131,114,.28));
}

.pillbtn--small{
  padding: 6px 14px;
  font-size: 11.5px;
}

.pillbtn:focus-visible,
.noticebtn:focus-visible{
  outline: 3px solid rgba(115,156,140,.55);
  outline-offset: 3px;
}

.pillbtn:disabled,
.noticebtn:disabled{
  opacity: .35;
  cursor: not-allowed;
  filter: grayscale(20%);
  box-shadow: none;
}

.linklike{
  -webkit-appearance:none;
  appearance:none;
  border:none;
  background:none;
  padding:0;
  margin:0;
  font: inherit;
  color: rgba(255,255,255,.82);
  cursor:pointer;
  text-decoration: none;
}

.linklike:disabled{
  opacity:.30;
  cursor:not-allowed;
}

.findings li, .evidence li{ margin: 0 0 10px; }
.findings, .evidence{ padding-left: 1.1rem; }

/* ===============================
   STATUS BLINK (v1)
   =============================== */

.status-open{
  font-weight: 900;
  letter-spacing: .6px;
}
.blink2{
  animation: blink2 5s infinite;
}
@keyframes blink2{
  0%, 6% { opacity: 1; }
  7%, 10% { opacity: 0; }
  11%, 16% { opacity: 1; }
  17%, 20% { opacity: 0; }
  21%, 100% { opacity: 1; }
}

/* ===============================
   SECTION 12 — system output typing
   =============================== */

.ack-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.sys-output{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.4;
  min-height: 42px;
}

.sys-output .line{ display:block; white-space: pre-wrap; }

/* Soft “typing” reveal */
.type-soft{
  display:inline-block;
  overflow:hidden;
  white-space: nowrap;
  width: 0;
  opacity: .92;
  animation: softType var(--typeDur, 900ms) ease-out forwards;
}
.type-soft::after{
  content:"";
  display:inline-block;
  width: 10px;
  height: 1em;
  margin-left: 2px;
  border-right: 1px solid rgba(255,255,255,.35);
  animation: caretBlink 700ms step-end infinite;
}
@keyframes softType{
  from { width: 0; filter: blur(.4px); }
  to   { width: 100%; filter: blur(0); }
}
@keyframes caretBlink{ 50%{ opacity:0; } }

/* ===============================
   SECTION 13 footer bits
   =============================== */

.roxie-approved-wrap{
  display:flex;
  justify-content:center;
  margin-top: 10px;
}

.pill.roxie-approved{
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,.92);
  background: linear-gradient(90deg, rgba(99,131,114,.45), rgba(156,45,18,.35));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  cursor: default;
}

.copyright{
  margin: 0;
  color: rgba(255,255,255,.70);
  font-size: 12.5px;
  text-align: center;
}
.record-seal{
  margin: 8px 0 0;
  text-align: center;
  color: rgba(255,255,255,.66);
  font-size: 12.5px;
}

/* ===============================
   Disclaimer gate — constrain + center
   =============================== */

.disclaimer-gate{
  width: min(560px, 100%);
  margin: 0 auto 14px;
  padding: 12px 12px;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 14px 45px rgba(0,0,0,.22);
}

.disclaimer-actions{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0;
}

.disclaimer-actions .pillbtn{
  width: auto;
}

@media (max-width: 520px){
  .disclaimer-actions .pillbtn{
    width: 100%;
  }
}

.disclaimer-note{
  max-width: 48ch;
  margin: 10px auto 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.68);
}

/* Mini disclaimer panel */
.mini-disclaimer{
  margin-top: 12px;
}

.mini-disclaimer__panel{
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.mini-disclaimer__p{
  margin: 0 0 10px;
  color: rgba(255,255,255,.80);
  line-height: 1.5;
}

.mini-disclaimer__fine{
  margin: 0 0 12px;
  color: rgba(255,255,255,.66);
  font-size: 12.5px;
  line-height: 1.45;
}

.mini-disclaimer__actions{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-disclaimer__ack{
  margin-top: 10px;
  width: 100%;
}

.mini-disclaimer__roxie{
  margin-top: 0;
}

/* Disclaimer confirmed highlight */
.pillbtn--confirmed{
  border-color: rgba(255,255,255,.32) !important;
  filter: brightness(1.12);
}

/* ===============================
   Optional modal styles (kept)
   =============================== */

.modal{
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__panel{
  position: relative;
  width: min(720px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding: 18px 18px 16px;
}

.modal__close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;
  border-radius: 999px;

  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.90);

  font: inherit;
  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

.modal__title{
  margin: 0 46px 10px 0;
  font-size: 16px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(255,255,255,.90);
}

.modal__text{
  margin: 0 0 10px;
  color: rgba(255,255,255,.80);
  line-height: 1.5;
}

/* ===============================
   Section 00 true blackout redaction
   =============================== */

.redacted-block{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: #000;
  color: #000;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  top: -1px;
}

.redacted-block::after{
  content: "REDACTED";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .22em;
}

/* ===============================
   Section 03 bottom pills spacing
   =============================== */

#witness-fork{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

#witness-fork .pillbtn{
  flex: 1 1 260px;
}

#witness-fork #witness-rule{
  flex: 0 0 100%;
  width: 100%;
  margin: 10px 0 0;
}

/* =========================
   Section 03 — Witness boxes
   ========================= */
#witness-stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.witness-line{
  border: 1px solid var(--ph-border);
  background: var(--ph-card);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  border-radius: 14px;
  padding: 12px 14px;
  line-height: 1.45;
  color: var(--text);
  min-height: 44px;
}
