/* =====================================================
   /DEALS — native page for aiwithremy.com.
   Deals from the Secret Partner API v2, laid out like the
   source page (deals.theaicourse.ai) but in AWR brand:
   white canvas, Web 1.0 raised buttons, Blueprint blue
   (#173EF5), Space Mono labels. Self-contained; pairs with
   the site's nav.css. Base tokens + gate ported from the
   verified prototype (proto.css + deals-native.css).
   ===================================================== */

@font-face {
  font-family: 'PP Neue Bit';
  src: url('/assets/fonts/ppneuebit-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-bg: #FFFFFF;
  --color-text: #121212;
  --color-text-secondary: #7E7E7E;
  --color-text-muted: #AAAAAA;
  --color-accent: #173EF5;
  --color-accent-light: rgba(23, 62, 245, 0.08);
  --color-border: #E3E3E3;
  --color-border-strong: #CCCCCC;
  --color-gray-100: #F8F8F8;
  --font-display: 'PP Neue Bit', 'Space Mono', 'Courier New', monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
/* never allow sideways page scroll (the band title clamps wide on tablets) */
html, body { overflow-x: clip; }

.text-mono { font-family: var(--font-mono); }

/* ---- Web 1.0 raised button (site signature) ---- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 24px;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: #FFFFFF;
  color: var(--color-text);
  box-shadow: inset -2px -2px 0 0 #E3E3E3;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}
.btn:active { box-shadow: inset 2px 2px 0 0 #E3E3E3; }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: inset -2px -2px 0 0 rgba(0, 0, 0, 0.28);
}
.btn--primary:active { box-shadow: inset 2px 2px 0 0 rgba(0, 0, 0, 0.28); }

/* =====================================================
   EMAIL GATE MODAL (Win95 sys-win)
   ===================================================== */
/* iOS-proof modal scroll lock: overflow alone doesn't stop Safari, so the body
   is fixed in place (deals.js saves scrollY into body.style.top and restores) */
html.gate-open { overflow: hidden; }
body.gate-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-modal[hidden] { display: none; }

.gate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: gate-fade 200ms ease;
  touch-action: none;
}

@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gate-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: gate-pop 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Win95 dialog chrome */
.gate-modal__panel.sys-win {
  background: #C0C0C0;
  color: #000;
  font-family: var(--font-mono);
  padding: 0;
  border: 2px solid;
  border-color: #dfdfdf #000 #000 #dfdfdf;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #808080, 4px 4px 0 rgba(0, 0, 0, 0.45);
}
.sys-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px;
  padding: 4px 4px 4px 8px;
  background: linear-gradient(90deg, var(--color-accent), #2a2ad6);
  color: #fff;
}
.sys-title-text { font-size: 11px; letter-spacing: 0.3px; }
.sys-x {
  width: 22px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #C0C0C0; color: #000;
  font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer;
  border: 2px solid; border-color: #fff #000 #000 #fff;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
}
.sys-x:active { border-color: #000 #fff #fff #000; box-shadow: inset 1px 1px #808080; }
.sys-body { padding: 14px 16px 16px; text-align: center; }

.gate-modal__kicker { display: inline-block; color: #000; opacity: 0.7; font-size: 10px; letter-spacing: 0.05em; margin-bottom: 10px; }
.gate-modal__title { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; color: #000; margin: 0 0 10px; }
.gate-modal__subtext { font-family: var(--font-body); font-size: 0.85rem; color: #222; line-height: 1.5; margin: 0 auto 18px; max-width: 34ch; }
.gate-modal__form { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.gate-modal__fineprint { font-size: 9px; color: #000; opacity: 0.6; letter-spacing: 0.04em; margin: 0; }
.gate-modal__switch {
  display: inline-block;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.04em; color: #000; padding: 6px 0 0; margin-bottom: 12px;
}
.gate-modal__switch span { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.gate-modal__err { font-family: var(--font-body); font-size: 0.78rem; line-height: 1.4; margin: 0 0 10px; color: #b00000; }
.gate-modal__err[hidden] { display: none; }

.signup-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.signup-form__input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  min-width: 240px;
}
/* Win95 inset input + raised button inside the dialog */
.sys-win .signup-form__input {
  background: #fff; color: #000;
  font-family: var(--font-body); font-size: 0.85rem;
  padding: 9px 12px; min-width: 0; width: 200px;
  border: 2px solid; border-color: #808080 #fff #fff #808080;
  border-radius: 0;
  box-shadow: inset 1px 1px #000;
}
.sys-win .btn--primary {
  background: #C0C0C0; color: #000;
  border: 2px solid; border-color: #fff #000 #000 #fff;
  border-radius: 0;
  box-shadow: inset 1px 1px #dfdfdf, inset -1px -1px #808080;
  padding: 9px 18px;
}
.sys-win .btn--primary:hover { background: #c9c9c9; }
.sys-win .btn--primary:active { border-color: #000 #fff #fff #000; box-shadow: inset 1px 1px #808080; }

/* =====================================================
   TOP BAND — intro + value headlines + invitation code
   ===================================================== */
/* nav.css already offsets the fixed bar via body{padding-top:58px} - no extra
   offset here, so the grey band tucks directly under the grey nav */

.dl-band {
  background: var(--color-gray-100);
  border-bottom: 1px solid var(--color-border);
}
.dl-band__inner { max-width: 1120px; margin: 0 auto; padding: 40px 24px 32px; }
/* scramble-decode heading — matches theaicourse.ai (GLYPHS, 950ms, on reveal) */
.dl-band__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1; margin-bottom: 12px;
}
.dl-band__title[data-scramble] { white-space: nowrap; }
/* release nowrap below 900px - between 561-900px the clamped title used to
   overflow the viewport and drag the whole page sideways */
@media (max-width: 900px) { .dl-band__title[data-scramble] { white-space: normal; } }
.dl-band__lead { color: var(--color-text-secondary); font-size: 0.95rem; line-height: 1.5; max-width: 52ch; margin-bottom: 20px; }

/* value-prop headlines */
.dl-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.dl-value {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border); background: #fff; border-radius: 10px;
  overflow: hidden; padding: 0;
}

/* mac-window chrome (matches the aiwithremy.com hero window) */
.dl-mac__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--color-gray-100); border-bottom: 1px solid var(--color-border);
}
.dl-mac__bar span { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--color-border-strong); background: #E3E3E3; }
.dl-mac__bar em {
  margin-left: 6px; font-style: normal; font-family: var(--font-mono);
  font-size: 0.62rem; letter-spacing: 0.05em; color: var(--color-text-muted);
}
.dl-mac__body {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto;
  align-items: center; gap: 4px; padding: 14px 18px 16px;
}
.dl-value__txt { grid-row: 1; grid-column: 1; min-width: 0; }
.dl-value .dl-invite { grid-row: 2; grid-column: 1 / -1; }

/* typing caret + appear-on-cue elements (armed by JS so no-JS stays visible) */
.dl-type-caret {
  display: inline-block; width: 8px; height: 1em; margin-left: 2px;
  background: var(--color-accent); vertical-align: -0.1em;
  animation: dlCaretBlink 0.9s steps(1) infinite;
}
@keyframes dlCaretBlink { 50% { opacity: 0; } }
.dl-mac.is-armed [data-mac-reveal] { opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease; }
.dl-mac.is-armed [data-mac-reveal].on { opacity: 1; transform: none; }

/* ARCHIVED: tier globes — wireframe icospheres with orbiting perk icons.
   Not rendered right now; re-add the .dl-globe divs + the perks-globe.js
   script tag to bring them back. */
.dl-globe { position: relative; width: 172px; height: 172px; grid-row: 1; grid-column: 1; align-self: center; justify-self: center; }
.dl-globe canvas { position: absolute; inset: 0; z-index: 2; }
.dl-globe .gb-ic {
  position: absolute; top: 0; left: 0; border-radius: 6px; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14); will-change: transform, opacity;
}
.dl-globe--members canvas { filter: drop-shadow(0 0 9px rgba(23, 62, 245, 0.38)); }

/* unlock states + the fineprint row under each card's action row */
.dl-value__join-ok { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; color: #0a7d33; text-transform: uppercase; letter-spacing: 0.04em; }
.dl-value__fine {
  grid-row: 3; grid-column: 1 / -1; margin: 8px 0 0; text-align: center;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--color-text-muted); text-decoration: none;
}
.dl-value__fine--link { color: var(--color-accent); }
.dl-value__fine--link:hover { text-decoration: underline; }
.dl-invite.is-member + .dl-value__fine--link { display: none; }
.dl-value--free { box-shadow: inset -2px -2px 0 0 #EFEFEF; }
.dl-value--members {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
  /* faint blueprint grid over the accent tint */
  background-image:
    linear-gradient(rgba(23, 62, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 62, 245, 0.05) 1px, transparent 1px);
  background-size: 12px 12px;
}
.dl-value__num { font-family: var(--font-display); font-weight: 700; font-size: 2.5rem; line-height: 0.9; color: var(--color-accent); margin: 3px 0 4px; }
.dl-value__kicker { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 2px; }
.dl-value--members .dl-value__kicker { color: var(--color-accent); }
.dl-value__h { font-weight: 700; font-size: 0.98rem; color: var(--color-text); line-height: 1.2; }
.dl-value__sub { color: var(--color-text-secondary); font-size: 0.82rem; margin-top: 3px; }

/* invitation code — Win95 sunken field + raised submit */
.dl-invite {
  flex-basis: 100%; min-width: 0;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed rgba(23, 62, 245, 0.3);
}
.dl-invite__h { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text); }
.dl-invite__sub { font-size: 0.78rem; color: var(--color-text-secondary); margin-top: 2px; }
.dl-invite__form { display: flex; gap: 8px; flex: 1 1 220px; justify-content: flex-end; min-width: 0; }
.dl-invite__input {
  font-family: var(--font-mono); font-size: 0.85rem; padding: 9px 12px; width: 230px;
  background: #fff; color: #000;
  border: 2px solid; border-color: #808080 #fff #fff #808080; border-radius: 0;
  box-shadow: inset 1px 1px #000;
}
.dl-invite__form .dl-invite__input { flex: 1 1 auto; width: auto; min-width: 0; max-width: 260px; }
.dl-invite__input:focus { outline: none; }
.dl-invite.is-member { border-top: 1px solid var(--color-accent); }
.dl-invite__ok { font-family: var(--font-mono); font-size: 0.72rem; color: #0a7d33; text-transform: uppercase; letter-spacing: 0.04em; }
.dl-invite__err { font-family: var(--font-mono); font-size: 0.68rem; color: #b00000; margin-top: 4px; }
.dl-invite .dl-invite__err { flex-basis: 100%; margin: 0; text-align: right; }
.dl-invite__err[hidden] { display: none; }

/* =====================================================
   MAIN — categories sidebar + content
   ===================================================== */
.dl-main { max-width: 1120px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 190px 1fr; gap: 28px; }
/* grid/flex items default to min-width:auto - without these the toolbar's
   intrinsic width blows the 1fr column past the viewport and the whole
   content column gets clipped on mobile (overflow-x: clip hides it) */
.dl-content { min-width: 0; }
.dl-value { min-width: 0; }

.dl-side__label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); padding: 0 10px 8px; }
.dl-cat {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  gap: 10px;
  font-family: var(--font-body); font-size: 0.9rem; text-align: left;
  padding: 8px 10px; background: none; border: 0; border-radius: 6px;
  color: var(--color-text-secondary); cursor: pointer; transition: background .12s, color .12s;
}
.dl-cat:hover { color: var(--color-text); background: #fff; }
.dl-cat.is-active { color: var(--color-text); background: var(--color-gray-100); font-weight: 600; box-shadow: inset 2px 0 0 var(--color-accent); }
.dl-cat__n { font-family: var(--font-mono); font-size: 0.66rem; color: var(--color-text-muted); }

.dl-search {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 12px 16px; border: 1px solid var(--color-border-strong); border-radius: 6px; margin-bottom: 16px;
}
.dl-search:focus { outline: none; border-color: var(--color-accent); }

.dl-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.dl-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
/* mobile-only Categories button (desktop keeps the sidebar) */
.dl-catbtn {
  display: none; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 8px 12px; cursor: pointer;
  background: #fff; color: var(--color-text);
  border: 1px solid var(--color-border-strong); border-radius: 4px;
  box-shadow: inset -2px -2px 0 0 #E3E3E3;
  white-space: nowrap; flex: 0 0 auto;
}
.dl-catbtn:active { box-shadow: inset 2px 2px 0 0 #E3E3E3; }
.dl-catbtn.is-open, .dl-catbtn.is-filtered {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
  box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.28);
}
/* Web 1.0 raised toggle pills */
.dl-toggle {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 9px 16px; cursor: pointer;
  background: #fff; color: var(--color-text);
  border: 1px solid var(--color-border-strong); border-radius: 4px;
  box-shadow: inset -2px -2px 0 0 #E3E3E3;
}
.dl-toggle:active { box-shadow: inset 2px 2px 0 0 #E3E3E3; }
.dl-toggle.is-active {
  background: var(--color-accent); color: #fff; border-color: var(--color-accent);
  box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.28);
}
.dl-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- deal grid ---- */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dl-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--color-border); border-radius: 10px; background: #fff;
  padding: 14px; text-align: left; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.dl-card:hover { border-color: var(--color-border-strong); box-shadow: 0 8px 24px rgba(18,18,18,0.08); transform: translateY(-2px); }
.dl-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.dl-card__logo { width: 34px; height: 34px; border-radius: 7px; object-fit: contain; background: var(--color-gray-100); border: 1px solid var(--color-border); padding: 4px; flex-shrink: 0; }
.dl-card__nm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-card__name { font-weight: 700; font-size: 0.92rem; color: var(--color-text); }
.dl-badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 7px; border-radius: 3px; }
.dl-badge--free { color: #0a7d33; background: rgba(10,125,51,0.10); }
.dl-badge--members { color: var(--color-accent); background: var(--color-accent-light); }
.dl-card__tagline { font-size: 0.76rem; color: var(--color-text-muted); line-height: 1.4; margin-bottom: 8px; }
.dl-card__deal { font-weight: 600; font-size: 0.86rem; color: var(--color-text); line-height: 1.35; margin-bottom: 10px; flex-grow: 1; }
.dl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dl-card__save { font-family: var(--font-mono); font-size: 0.74rem; color: #0a7d33; font-weight: 700; }
.dl-card__get {
  font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 8px 13px; cursor: pointer; background: #fff; color: var(--color-text);
  border: 1px solid var(--color-border-strong); border-radius: 4px; box-shadow: inset -2px -2px 0 0 #E3E3E3; white-space: nowrap;
}
.dl-card__get:active { box-shadow: inset 2px 2px 0 0 #E3E3E3; }
.dl-card__get[disabled] { opacity: 0.6; cursor: default; }
/* members "Get the deal" button carries the accent so it reads as the premium tier
   (deals are always fully visible - no blur) */
.dl-card--members .dl-card__get { background: var(--color-accent); color: #fff; border-color: var(--color-accent); box-shadow: inset -2px -2px 0 0 rgba(0,0,0,0.28); }

/* high-velocity spin + pop when a deal is opened.
   +5 full rotations (2210deg) pushed toward the viewer with translateZ + a bigger end scale. */
@keyframes deal-spinpop {
  0%   { transform: perspective(600px) translateZ(0) rotate(0deg) scale(1); opacity: 1; }
  30%  { transform: perspective(600px) translateZ(140px) rotate(880deg) scale(1.6); opacity: 1; box-shadow: 0 24px 70px rgba(23,62,245,0.4); }
  100% { transform: perspective(600px) translateZ(420px) rotate(2210deg) scale(3.4); opacity: 0; box-shadow: 0 44px 110px rgba(23,62,245,0); }
}
.dl-card.is-popping { animation: deal-spinpop 520ms cubic-bezier(0.3, 0.05, 0.2, 1) forwards; position: relative; z-index: 60; transform-origin: center center; }
@keyframes deal-reveal-in {
  0% { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.06) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.dl-empty { padding: 40px 0; text-align: center; color: var(--color-text-muted); font-family: var(--font-mono); font-size: 0.8rem; }
.dl-empty[hidden] { display: none; }

/* ---- reveal modal ---- */
.dl-reveal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dl-reveal[hidden] { display: none; }
.dl-reveal__backdrop { position: absolute; inset: 0; background: rgba(18,18,18,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); touch-action: none; }
.dl-reveal__panel { position: relative; width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--color-border-strong); border-radius: 12px; padding: 28px; box-shadow: 0 24px 64px rgba(18,18,18,0.22); animation: deal-reveal-in 300ms cubic-bezier(0.2, 0.9, 0.25, 1.2); }
.dl-reveal__x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.2rem; color: var(--color-text-muted); cursor: pointer; }
.dl-reveal__top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dl-reveal__logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: var(--color-gray-100); border: 1px solid var(--color-border); padding: 6px; }
.dl-reveal__name { font-family: var(--font-display); font-size: 1.6rem; }
.dl-reveal__kicker { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent); margin-bottom: 8px; }
.dl-reveal__body { font-size: 0.9rem; color: var(--color-text); line-height: 1.55; background: var(--color-gray-100); border: 1px solid var(--color-border); border-radius: 8px; padding: 16px; margin-bottom: 16px; word-break: break-word; max-height: 46vh; overflow-y: auto; }
.dl-reveal__body.is-loading { color: var(--color-text-muted); font-family: var(--font-mono); font-size: 0.8rem; }
/* structured secret: lead line -> linked url block -> blue-diamond steps */
.dl-reveal__lead { margin: 0 0 10px; color: var(--color-text); }
.dl-reveal__lead:last-child { margin-bottom: 0; }
.dl-reveal__link {
  display: block; margin: 0 0 12px; padding: 10px 12px;
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.4;
  color: var(--color-accent); text-decoration: none; word-break: break-all;
  background: #fff; border: 1px solid var(--color-border); border-radius: 6px;
}
.dl-reveal__link:hover { text-decoration: underline; text-underline-offset: 2px; border-color: var(--color-accent); }
.dl-reveal__steps { list-style: none; margin: 4px 0 0; padding: 0; }
.dl-reveal__steps li { position: relative; padding-left: 20px; margin-bottom: 9px; line-height: 1.5; }
.dl-reveal__steps li:last-child { margin-bottom: 0; }
.dl-reveal__steps li::before { content: '\25C6'; position: absolute; left: 2px; top: 0.06em; color: var(--color-accent); font-size: 0.62rem; }
.dl-reveal__note { font-family: var(--font-mono); font-size: 0.62rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }

/* premium upsell modal */
.dl-upsell .dl-reveal__panel { text-align: center; }
.dl-upsell__title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; margin: 8px 0 12px; }
.dl-upsell__body { color: var(--color-text-secondary); font-size: 0.92rem; line-height: 1.5; margin-bottom: 20px; }
.dl-upsell__cta { display: inline-block; margin-bottom: 14px; white-space: normal; line-height: 1.5; }
/* in-modal access code - unlock right here instead of hunting for the top box */
.dl-upsell__code { display: flex; gap: 8px; justify-content: center; margin: 8px 0 4px; flex-wrap: wrap; }
.dl-upsell__code .dl-invite__input { width: 230px; }
.dl-upsell .dl-invite__err { margin-top: 8px; }

@media (max-width: 900px) {
  .dl-values { grid-template-columns: 1fr; }
  .dl-value { flex-wrap: wrap; }
  .dl-value__cta { margin-left: 56px; width: auto; margin-top: 4px; }
  .dl-main { grid-template-columns: 1fr; }
  /* categories collapse behind the toolbar button (deals.js moves .dl-side
     under the toolbar on this breakpoint) */
  .dl-catbtn { display: inline-flex; }
  .dl-side { display: none; margin: -6px 0 16px; }
  .dl-side.is-open { display: block; }
  .dl-side__label { display: none; }
  .dl-side__cats { display: flex; flex-wrap: wrap; gap: 6px; }
  .dl-cat { width: auto; border: 1px solid var(--color-border); border-radius: 999px; padding: 6px 12px; }
  .dl-cat.is-active { box-shadow: none; background: var(--color-accent-light); }
  .dl-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sys-win .signup-form__input { width: 100%; }
  .gate-modal__form { flex-direction: column; }
  /* filter pills: one horizontal rail, scrolls sideways instead of wrapping */
  .dl-toolbar { flex-wrap: nowrap; }
  .dl-toggles {
    flex-wrap: nowrap; flex: 1 1 auto; min-width: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px;
  }
  .dl-toggles::-webkit-scrollbar { display: none; }
  .dl-toggle { flex: 0 0 auto; padding: 8px 12px; font-size: 0.62rem; }
  .dl-count { display: none; }
  /* modals never touch the screen edges */
  .gate-modal, .dl-reveal { padding: 16px; }
  .gate-modal__panel, .dl-reveal__panel { max-width: calc(100vw - 32px); }
  .dl-reveal__body { overflow-wrap: anywhere; }
  .dl-invite__input, .signup-form__input, .dl-search { font-size: 16px; }
  .dl-reveal__panel { padding: 22px 16px; }
  .dl-reveal__body { max-height: 52vh; }
  .dl-upsell__code .dl-invite__input { flex: 1 1 auto; width: auto; min-width: 0; }
}


@media (max-width: 640px) {
  .dl-value { text-align: center; }
  .dl-mac__body { grid-template-rows: auto auto auto; gap: 8px; padding: 14px; }
  .dl-invite { justify-content: center; }
  .dl-invite .dl-invite__err { text-align: center; }
}

/* =====================================================
   PERKS HERO — text left, three stacked logo rails right
   (mirrors the theaicourse.ai Member Perks section)
   ===================================================== */
.dl-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; margin-bottom: 26px; }
.dl-hero__eyebrow {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 10px;
}
.dl-hero .dl-band__title { font-size: clamp(2.4rem, 3.8vw, 3.4rem); }
.dl-hero .dl-band__title[data-scramble] { white-space: normal; }
.dl-hero .dl-band__lead { margin-bottom: 0; }
.dl-hero__cap {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-text-muted); margin-top: 14px;
}
.dl-hero__rails { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; min-width: 0; }
/* each rail fades in at its right edge and out at its left */
.dl-hero__rail {
  min-width: 0; max-width: 100%; overflow-x: clip;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
/* two identical sets per track, sliding exactly one set width per cycle */
.dl-hero__track { display: flex; width: max-content; will-change: transform; animation: dlHeroRail 30s linear infinite; }
.dl-hero__rail--r .dl-hero__track { animation-direction: reverse; }
.dl-hero__rail:nth-child(1) .dl-hero__track { animation-duration: 34s; }
.dl-hero__rail:nth-child(2) .dl-hero__track { animation-duration: 42s; }
.dl-hero__rail:nth-child(3) .dl-hero__track { animation-duration: 28s; }
.dl-hero__set { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.dl-hero__set img { height: 32px; width: auto; border-radius: 7px; }
@keyframes dlHeroRail {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (min-width: 901px) {
  .dl-band__inner { padding: 64px 24px 44px; }
  .dl-hero { gap: 56px; margin-bottom: 40px; }
  .dl-hero .dl-band__title { font-size: clamp(2.8rem, 4.4vw, 4rem); }
}
@media (max-width: 900px) {
  .dl-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 22px; }
  .dl-hero__rails { gap: 18px; }
  .dl-hero__rail {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .dl-hero__txt { text-align: center; }
  .dl-hero .dl-band__lead { margin-left: auto; margin-right: auto; }
  .dl-hero__set { gap: 30px; padding-right: 30px; }
  .dl-hero__set img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-hero__track { animation: none; }
}
