@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Mono:wght@500;600&family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root{
  --brand-red:#DD1D21;
  --brand-red-dark:#A5181B;
  --brand-yellow:#FBCE07;
  --ink:#1B1B1B;
  --steel:#5B5852;
  --paper:#FBFAF7;
  --card:#FFFFFF;
  --hairline:#E7E2D8;
}

*{ box-sizing:border-box; margin:0; padding:0; }

html,body{
  background:#736F68;
}

html.modal-open,
html.modal-open body{
  overflow:hidden;
}

body{
  font-family:'Public Sans', sans-serif;
  color:var(--ink);
  display:flex;
  justify-content:center;
  padding:28px 0;
}

.sheet{
  width:816px;
  min-width:0;
  min-height:1056px;
  background:var(--paper);
  position:relative;
  overflow:hidden;
  box-shadow:0 20px 60px rgba(0,0,0,0.35);
}

/* ===== HEADER ===== */
.header{
  background:var(--brand-red);
  position:relative;
  padding:30px 44px 26px;
  color:#fff;
  overflow:hidden;
}
.header::after{
  content:"";
  position:absolute;
  right:-90px; top:-140px;
  width:340px; height:340px;
  border-radius:50%;
  background:var(--brand-red-dark);
  opacity:0.55;
}
.header::before{
  content:"";
  position:absolute;
  right:60px; bottom:-160px;
  width:260px; height:260px;
  border-radius:50%;
  background:var(--brand-yellow);
  opacity:0.14;
}
.eyebrow-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:relative;
  z-index:2;
}
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--brand-yellow);
  font-weight:600;
}
h1.headline{
  font-family:'Archivo Black', sans-serif;
  font-size:47px;
  line-height:1.03;
  letter-spacing:-0.5px;
  margin-top:20px;
  max-width:600px;
  position:relative; z-index:2;
  text-transform:uppercase;
}
h1.headline span{ color:var(--brand-yellow); }
.subhead{
  margin-top:12px;
  font-size:15px;
  font-weight:500;
  max-width:490px;
  line-height:1.5;
  color:#FFEFEF;
  position:relative; z-index:2;
}

/* digital readout strip */
.readout{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  background:#20100F;
  border:1px solid rgba(255,255,255,0.25);
  border-radius:4px;
  overflow:hidden;
  position:relative; z-index:2;
}
.readout .cell{
  background:#20100F;
  padding:12px 14px;
  border-right:1px solid rgba(255,255,255,0.25);
  transition:background .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.readout .cell:last-child{ border-right:none; }
.readout .cell:hover{
  background:#2B1615;
  transform:translateY(-2px);
}
.readout .num{
  font-family:'IBM Plex Mono', monospace;
  font-size:20px;
  font-weight:600;
  color:var(--brand-yellow);
  text-shadow:0 0 10px rgba(251,206,7,0.5);
  letter-spacing:0.5px;
}
.readout .lbl{
  font-family:'IBM Plex Mono', monospace;
  font-size:9px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:#D9A9A9;
  margin-top:3px;
}

/* ===== BODY ===== */
.body{
  padding:26px 44px 0;
}

.two-col{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:26px;
  align-items:stretch;
}
.two-col > div{ min-width:0; }

.block-title{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:2.5px;
  text-transform:uppercase;
  color:var(--brand-red);
  font-weight:600;
  margin-bottom:10px;
  display:flex; align-items:center; gap:8px;
}
.block-title::before{
  content:"";
  width:16px; height:2px;
  background:var(--brand-red);
  display:inline-block;
}

.why-list{ list-style:none; }
.why-list li{
  position:relative;
  padding:9px 0 9px 22px;
  font-size:13.5px;
  line-height:1.45;
  color:var(--ink);
  border-bottom:1px solid var(--hairline);
  transition:transform .25s cubic-bezier(.34,1.56,.64,1), color .2s ease;
}
.why-list li:last-child{ border-bottom:none; }
.why-list li::before{
  content:"—";
  position:absolute;
  left:0; top:9px;
  color:var(--brand-red);
  font-weight:700;
}
.why-list li:hover{
  transform:translateX(6px);
  color:var(--brand-red-dark);
}

.pitch-box{
  background:var(--ink);
  border-radius:6px;
  padding:22px 22px 20px;
  color:#fff;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.pitch-box p{
  font-size:15.5px;
  line-height:1.5;
  font-weight:500;
}
.pitch-box--prominent p{
  font-size:21px;
  line-height:1.35;
  font-weight:700;
  letter-spacing:-0.2px;
}

/* ===== FEATURES ===== */
.features{
  margin-top:26px;
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.feature-card{
  background:var(--card);
  border:1px solid var(--hairline);
  border-radius:6px;
  padding:13px 14px 14px;
  position:relative;
  cursor:pointer;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover, .feature-card:focus-visible{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(27,27,27,0.14);
  border-color:var(--brand-red);
}
.feature-card h3{
  font-size:12.5px;
  font-weight:800;
  line-height:1.25;
}
.feature-card p{
  font-size:11px;
  color:var(--steel);
  line-height:1.4;
  margin-top:4px;
}

/* ===== ADVANTAGES ===== */
.advantages{
  margin-top:24px;
  background:#FFF6E0;
  border:1px solid #F1DEA1;
  border-radius:6px;
  padding:18px 22px;
}
.advantages .block-title{
  margin-bottom:0;
}
.adv-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
  margin-top:8px;
}
.adv-item{
  min-width:0;
  border-radius:5px;
  padding:6px;
  margin:-6px;
  transition:background .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.adv-item:hover{
  background:rgba(255,255,255,0.6);
  transform:translateY(-2px);
}
.adv-item h4{
  font-size:12.5px;
  font-weight:800;
  color:var(--ink);
}
.adv-item p{
  font-size:10.8px;
  color:var(--steel);
  margin-top:3px;
  line-height:1.4;
}
/* ===== FOOTER / CTA ===== */
.cta{
  margin-top:24px;
  background:var(--brand-red);
  padding:20px 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.cta::after{
  content:"";
  position:absolute;
  left:-60px; bottom:-90px;
  width:200px; height:200px;
  border-radius:50%;
  background:var(--brand-red-dark);
  opacity:0.5;
}
.cta-text{ position:relative; z-index:2; max-width:480px;}
.cta-text .k{
  font-family:'Archivo Black', sans-serif;
  font-size:18px;
  text-transform:uppercase;
  letter-spacing:0.3px;
}
.cta-text p{
  font-size:12px;
  margin-top:5px;
  color:#FFE9E9;
  line-height:1.4;
}
.qr{
  position:relative; z-index:2;
  width:92px; height:110px;
  background:var(--brand-yellow);
  border-radius:6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px;
  flex-shrink:0;
  text-decoration:none;
  color:var(--brand-red-dark);
  cursor:pointer;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  box-shadow:0 0 0 0 rgba(255,255,255,0);
}
.qr:hover, .qr:focus-visible{
  transform:translateY(-3px) scale(1.03);
  box-shadow:0 10px 22px rgba(0,0,0,0.28);
}
.qr img{
  width:64px; height:64px;
  display:block;
}
.qr .qr-caption{
  font-family:'IBM Plex Mono', monospace;
  font-size:9px;
  letter-spacing:1.5px;
  font-weight:700;
}
.qr-wrap{
  position:relative; z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.qr-note{
  font-size:10px;
  line-height:1.35;
  font-weight:500;
  color:#FFD9D9;
  text-align:center;
  max-width:112px;
}

/* ===== HOVER AFFORDANCE ("view" hint on clickable/media blocks) ===== */
[data-modal]{ position:relative; }
[data-modal] .expand-hint{
  position:absolute;
  top:8px; right:8px;
  display:flex; align-items:center; gap:4px;
  font-family:'IBM Plex Mono', monospace;
  font-size:8.5px;
  letter-spacing:1px;
  text-transform:uppercase;
  font-weight:700;
  padding:3px 7px;
  border-radius:20px;
  background:var(--brand-red);
  color:#fff;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .2s ease, transform .2s ease;
  pointer-events:none;
  white-space:nowrap;
}
[data-modal]:hover .expand-hint,
[data-modal]:focus-visible .expand-hint{
  opacity:1;
  transform:translateY(0);
}

/* ===== BRAND FOOTER ===== */
.brand-footer{
  padding:16px 44px 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-top:1px solid var(--hairline);
}
.brand-footer img{
  height:15px;
  width:auto;
  display:block;
  opacity:.8;
}
.brand-footer-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand-footer span{
  font-family:'IBM Plex Mono', monospace;
  font-size:9.5px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--steel);
}

/* ===== MODAL ===== */
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(20,16,14,0.68);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  z-index:1000;
  opacity:0;
  visibility:hidden;
  transition:opacity .2s ease, visibility 0s linear .2s;
}
.modal-overlay.is-open{
  opacity:1;
  visibility:visible;
  transition:opacity .2s ease, visibility 0s linear 0s;
}
.modal-panel{
  background:var(--paper);
  border-radius:10px;
  width:100%;
  max-width:560px;
  max-height:96vh;
  overflow-y:auto;
  box-shadow:0 30px 70px rgba(0,0,0,0.45);
  padding:22px 22px 26px;
  transition:max-width .2s ease;
}
.modal-panel.modal-panel--wide{
  max-width:940px;
}
.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.modal-eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--brand-red);
  font-weight:600;
}
.modal-title{
  font-family:'Archivo Black', sans-serif;
  font-size:19px;
  text-transform:uppercase;
  letter-spacing:-0.2px;
  margin-top:4px;
}
.modal-close{
  flex-shrink:0;
  width:30px; height:30px;
  border-radius:50%;
  border:1px solid var(--hairline);
  background:#fff;
  color:var(--ink);
  font-size:15px;
  line-height:1;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, transform .2s ease;
}
.modal-close:hover{ background:var(--brand-red); color:#fff; transform:rotate(90deg); }

.media-slot{
  border:1.5px dashed var(--hairline);
  border-radius:8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--steel);
  background:#F4F1EA;
  text-align:center;
  padding:20px;
}
.media-slot .slot-icon{ font-size:30px; line-height:1; }
.media-slot .slot-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  font-weight:600;
}
.media-image{ aspect-ratio:4/3; }
.media-video{ aspect-ratio:16/9; }
.media-video .slot-icon{
  width:46px; height:46px;
  border-radius:50%;
  background:var(--brand-red);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:16px;
}
.media-dashboard{
  aspect-ratio:16/10;
  padding:0;
  overflow:hidden;
  justify-content:flex-start;
  position:relative;
}
.media-dashboard--live{
  aspect-ratio:auto;
  height:min(75vh, 720px);
}
.dash-frame{
  flex:1;
  width:100%;
  border:0;
  display:block;
  background:#fff;
}
.dash-loading{
  position:absolute;
  inset:0;
  top:37px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#F4F1EA;
  transition:opacity .25s ease, visibility 0s linear 0s;
}
.dash-loading .spinner{
  width:28px; height:28px;
  border-radius:50%;
  border:3px solid var(--hairline);
  border-top-color:var(--brand-red);
  animation:dash-spin .8s linear infinite;
}
.dash-loading-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:10px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  font-weight:600;
  color:var(--steel);
}
.media-dashboard.is-loaded .dash-loading{
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility 0s linear .25s;
}
@keyframes dash-spin{
  to{ transform:rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .dash-loading .spinner{ animation:none; }
}
.dash-chrome{
  width:100%;
  display:flex; align-items:center; gap:6px;
  background:#E7E2D8;
  padding:8px 10px;
  border-bottom:1px solid var(--hairline);
}
.dash-chrome span{
  width:8px; height:8px;
  border-radius:50%;
  background:#C9C3B6;
  display:inline-block;
}
.dash-url{
  margin-left:8px;
  font-family:'IBM Plex Mono', monospace;
  font-size:9px;
  color:var(--steel);
  background:#fff;
  border-radius:20px;
  padding:2px 10px;
}
.dash-body{
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
}

/* ===== MOBILE ===== */
@media (max-width:640px){
  body{ padding:0; }
  .sheet{
    width:100%;
    min-height:0;
    box-shadow:none;
  }

  .header{ padding:22px 20px 20px; }
  h1.headline{ font-size:32px; max-width:100%; }
  .subhead{ max-width:100%; }
  .readout{
    grid-template-columns:1fr;
  }
  .readout .cell{
    border-right:none;
    border-bottom:1px solid rgba(255,255,255,0.25);
  }
  .readout .cell:last-child{ border-bottom:none; }

  .body{ padding:22px 20px 0; }

  .two-col{
    grid-template-columns:1fr;
    gap:18px;
  }

  .feature-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .advantages{ padding:16px; }
  .adv-grid{
    grid-template-columns:repeat(2,1fr);
    gap:16px 12px;
  }

  .cta{
    padding:20px;
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
  }
  .cta-text{ max-width:100%; }
  .qr-wrap{ align-self:center; }

  .brand-footer{ padding:14px 20px 18px; }
}

/* Page size is set to the flyer's own content height (8.5in wide, matching
   Letter/Legal), not a fixed Letter/Legal height — a fixed height is what
   left a blank gap below the brand footer once content got shorter than a
   full Legal sheet. Measured .sheet height under print media is ~12.65in
   (1214px @ 96px/in); 12.85in leaves a small buffer so minor rendering
   differences don't push the footer onto a second page. If the content
   height changes again, re-measure and update accordingly. */
@page{
  size:8.5in 12.85in;
  margin:0;
}

@media print{
  *{
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact;
  }
  html, body{ padding:0; background:#fff; }
  .sheet{ box-shadow:none; min-height:0; }

  /* Trim vertical spacing just enough that the whole flyer lands on one
     page at 100% scale — content was ~3% taller than the page,
     forcing a manual "shrink to fit". Proportions stay the same, just tighter. */
  .header{ padding:23px 44px 19px; }
  h1.headline{ margin-top:14px; font-size:45px; }
  .subhead{ margin-top:8px; }
  /* Chrome's print rasterizer can fail to clip border-radius+overflow:hidden
     when the clipped element's border uses rgba() transparency — works fine
     on screen, silently loses the rounded corners/border in print. Swapping
     in the pre-blended solid equivalents (same colors, no alpha) sidesteps
     it; the radius/overflow are redeclared as extra insurance. */
  .readout{
    margin-top:16px;
    border-radius:4px;
    overflow:hidden;
    border-color:#E65659;
  }
  .readout .cell{
    padding:11px 14px;
    border-right-color:#584C4B;
  }
  .body{ padding:18px 44px 0; }
  .features{ margin-top:18px; }
  .advantages{ margin-top:16px; padding:13px 22px; }
  .cta{ margin-top:12px; padding:13px 44px; }
  .qr-wrap{ gap:4px; }
  .qr-note{ line-height:1.15; }
  .brand-footer{ padding:8px 44px 10px; }
  .brand-footer-text{ gap:0; }
  .brand-footer span{ line-height:1.3; }
  .modal-overlay{ display:none !important; }
  .expand-hint{ display:none !important; }
  /* GSAP/ScrollTrigger animations never get a chance to run correctly in
     print — there's no scrolling, so "has this entered the viewport" never
     resolves the way it does on screen. Force every animated element back
     to its plain, fully-visible resting state so nothing prints clipped,
     faded out, or offset. */
  [data-modal],
  .eyebrow,
  h1.headline, .subhead, .readout .cell,
  .why-list li, .pitch-box, .feature-card,
  .advantages, .adv-item, .cta, .qr{
    opacity:1 !important;
    transform:none !important;
    clip-path:none !important;
  }
}
