/* ============================================================
   ileva — shared styles
   A 1996 product-catalog reconstruction (Ileva Design System):
   8px black page-frame, flat web-safe tints, Helvetica/Times
   typography, hard hairline borders, zero radius, no soft shadows.
   Plain CSS — no build step. Tokens baked in for portable FTP deploy.
   ============================================================ */

/* ---- Tokens (from the Ileva Design System) ---- */
:root {
  /* Brand & accent */
  --red:        #e91d2a;   /* CTA panel + callout ONLY */
  --on-red:     #ffffff;
  --yellow:     #fcc20f;   /* sticker */
  --purple:     #6a26a4;   /* sticker stripe */

  /* Surface */
  --ink:        #000000;
  --canvas:     #ffffff;
  --link:       #0000ee;
  --link-vis:   #551a8b;
  --green:      #2f8f3e;   /* footer rule */

  /* Ribbon tints */
  --olive:      #8e8a25;
  --sage:       #b3bd95;
  --salmon:     #d77a7a;
  --peach:      #e6915d;
  --lime:       #c0d4a7;
  --sky:        #9ab6c8;
  --steel:      #a5b8c0;
  --periwinkle: #8c9ae0;

  /* Spacing (4px base, 2/6/10 intermediates) */
  --xxs: 2px; --xs: 4px; --s: 6px; --sm: 8px; --m: 10px;
  --md: 12px; --lg: 16px; --xl: 20px; --xxl: 24px;
  --sec-sm: 32px; --sec: 40px; --sec-lg: 48px;

  /* Type */
  --f-display: "Arial Black", Arial, Helvetica, system-ui, sans-serif;
  --f-head:    Helvetica, Arial, system-ui, sans-serif;
  --f-body:    "Times New Roman", Times, serif;

  --frame: 8px;
  --page-max: 860px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); }
a:visited { color: var(--link); }
p { margin: 0 0 var(--md); }
h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Type utility classes */
.t-display { font-family: var(--f-display); font-size: 36px; font-weight: 900; line-height: 1.0; text-transform: uppercase; }
.t-h1      { font-family: var(--f-display); font-size: 24px; font-weight: 900; line-height: 1.05; }
.t-h2      { font-family: var(--f-head); font-size: 16px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.t-h3      { font-family: var(--f-head); font-size: 14px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.t-body    { font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
.t-sm      { font-family: var(--f-body); font-size: 12px; line-height: 1.4; }
.t-caption { font-family: var(--f-body); font-size: 11px; line-height: 1.35; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 6px 12px; z-index: 100; }
.skip:focus { left: 0; }

/* ============================================================
   Page frame — the literal 8px black border (the brand chrome)
   ============================================================ */
.page {
  max-width: var(--page-max);
  margin: 22px auto;
  padding-inline: 14px;
}
.frame { background: var(--ink); padding: var(--frame); }
.canvas { background: var(--canvas); position: relative; }

/* Award seal stamped over the top banner */
.stamp {
  position: absolute;
  top: -6px;
  right: 18px;
  z-index: 30;
  transform: rotate(-13deg);
  pointer-events: none;
}
@media (max-width: 640px) {
  .stamp { top: 8px; right: 8px; transform: rotate(-13deg) scale(0.72); transform-origin: top right; }
}

/* ============================================================
   Top banner — black strip: brand + tagline | sticker + callout
   ============================================================ */
.banner {
  background: var(--ink);
  color: var(--canvas);
  padding: var(--md) var(--lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lg);
  flex-wrap: wrap;
}
.brand { display: block; text-decoration: none; color: var(--canvas); }
.brand:visited { color: var(--canvas); }
.brand__row { display: flex; align-items: center; gap: var(--sm); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word { font-family: var(--f-head); font-weight: 700; font-size: 26px; letter-spacing: 0.5px; line-height: 1; }
.brand__tag { font-family: var(--f-body); font-size: 14px; margin-top: var(--xs); color: #e8e8e8; }

.banner__right { display: flex; align-items: center; gap: var(--m); flex-wrap: wrap; }

/* BUY sticker — yellow tab, hard bevel */
.sticker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  box-shadow: 1px 1px 0 0 rgba(0,0,0,0.55);
  padding: var(--xs) var(--sm);
  white-space: nowrap;
}
.sticker:visited { color: var(--ink); }
.sticker em { font-style: normal; background: var(--ink); color: var(--canvas); padding: 0 3px; }

.sticker--new {
  transform: rotate(-15deg);
  letter-spacing: 0.5px;
}

/* Red callout — reserved red #2 (was the phone number) */
.callout {
  display: inline-block;
  background: var(--ink);
  color: var(--red);
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  padding: var(--xs) var(--sm);
  white-space: nowrap;
  text-decoration: none;
}
.callout:visited { color: var(--red); }
.callout:hover { text-decoration: underline; }

/* ============================================================
   Primary nav — bordered strip of classic blue links
   ============================================================ */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--xs) var(--lg);
  padding: var(--sm) var(--lg);
  border-bottom: 1px solid var(--ink);
  background: var(--canvas);
}
.nav a {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--link);
  text-decoration: underline;
}
.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* ============================================================
   Content scaffolding
   ============================================================ */
main { display: block; }
.pad { padding: var(--lg); }
.pad-x { padding-inline: var(--lg); }

/* Section eyebrow — big tinted stenciled block */
.eyebrow {
  font-family: var(--f-display);
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 900;
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--ink);
  padding: var(--xxl) var(--lg);
}
.eyebrow--olive      { background: var(--olive); }
.eyebrow--sage       { background: var(--sage); }
.eyebrow--salmon     { background: var(--salmon); }
.eyebrow--peach      { background: var(--peach); }
.eyebrow--lime       { background: var(--lime); }
.eyebrow--sky        { background: var(--sky); }
.eyebrow--steel      { background: var(--steel); }
.eyebrow--periwinkle { background: var(--periwinkle); }

/* Serif hero pitch */
.pitch { font-family: var(--f-display); font-size: clamp(20px, 5vw, 24px); font-weight: 900; line-height: 1.1; margin: 0 0 var(--md); }
.lede { font-family: var(--f-body); font-size: 16px; line-height: 1.55; max-width: 56ch; margin: 0 0 var(--lg); }

/* ============================================================
   Ribbon card — the signature component
   ============================================================ */
.ribbon { border: 1px solid var(--ink); background: var(--canvas); }
.ribbon__title {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  padding: var(--s) var(--md);
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sm);
}
.ribbon__title .meta { font-family: var(--f-body); font-size: 11px; font-weight: 400; text-transform: none; color: var(--ink); }
.ribbon__body {
  padding: var(--md) var(--lg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.ribbon__body > p:last-child { margin-bottom: 0; }
.ribbon--olive      .ribbon__body { background: var(--olive); }
.ribbon--sage       .ribbon__body { background: var(--sage); }
.ribbon--salmon     .ribbon__body { background: var(--salmon); }
.ribbon--peach      .ribbon__body { background: var(--peach); }
.ribbon--lime       .ribbon__body { background: var(--lime); }
.ribbon--sky        .ribbon__body { background: var(--sky); }
.ribbon--steel      .ribbon__body { background: var(--steel); }
.ribbon--periwinkle .ribbon__body { background: var(--periwinkle); }

.ribbon__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--m) var(--lg);
  margin-top: var(--md);
}

/* Ribbon card with a product screenshot notched into the right edge */
.ribbon__body.has-photo { display: flex; gap: var(--lg); align-items: center; }
.ribbon__body.has-photo .ribbon__col { flex: 1 1 auto; min-width: 0; }
.ribbon__photo { flex: 0 0 42%; max-width: 360px; }
.ribbon__photo img { display: block; width: 100%; height: auto; border: 1px solid var(--ink); box-shadow: 2px 2px 0 0 var(--ink); }
@media (max-width: 640px) {
  .ribbon__body.has-photo { flex-direction: column; }
  .ribbon__photo { flex: 1 1 auto; max-width: none; width: 100%; }
}
.ribbon__photo img { cursor: zoom-in; }

/* ---- Policy / long-form subheads ---- */
.subhead {
  font-family: var(--f-head);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ink);
  margin: var(--xxl) 0 var(--sm);
  padding-bottom: var(--xs);
  border-bottom: 1px solid var(--ink);
}
.subhead--sm {
  font-size: 12px;
  margin: var(--lg) 0 var(--xs);
  border-bottom: 0;
  padding-bottom: 0;
}

/* ---- Coming Soon watermark (scoped to a page's main content) ---- */
.is-soon #main { position: relative; container-type: inline-size; }
.is-soon #main > *:not(.soon) { opacity: 0.25; pointer-events: none; user-select: none; filter: grayscale(35%); }
.soon {
  position: absolute; inset: 0; z-index: 50;
  display: grid; place-items: center;
  pointer-events: none; overflow: hidden;
}
.soon__text {
  transform: rotate(-28deg);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 11.5cqw, 130px);
  line-height: 1;
  white-space: nowrap;
  color: var(--red);
  opacity: 0.85;
  text-transform: uppercase;
  border-top: 8px solid var(--red);
  border-bottom: 8px solid var(--red);
  padding: var(--sm) var(--xl);
}

/* ============================================================
   Lightbox (image enlarge modal) — catalog-styled
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}
.lightbox[hidden] { display: none; }
.lightbox__frame {
  background: var(--ink);
  padding: var(--frame);
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  animation: lb-in 0.14s ease;
}
.lightbox__inner { background: var(--canvas); display: flex; flex-direction: column; max-height: calc(92vh - 16px); }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lg);
  padding: var(--s) var(--md);
  border-bottom: 1px solid var(--ink);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
#lightbox-cap { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__controls { display: flex; align-items: center; gap: var(--s); flex: none; }
.lightbox__controls .btn { padding: var(--xs) var(--m); }
#lightbox-count { font-family: var(--f-head); font-size: 12px; font-weight: 700; min-width: 42px; text-align: center; }
#lightbox-img { display: block; width: 100%; height: auto; max-height: calc(92vh - 70px); object-fit: contain; background: var(--canvas); }
@keyframes lb-in { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox__frame { animation: none; } }

/* product detail line (specs-style) */
.speclist { margin: 0 0 var(--md); }
.speclist li { font-family: var(--f-body); font-size: 14px; line-height: 1.5; padding-left: 14px; position: relative; }
.speclist li::before { content: "\00BB"; position: absolute; left: 0; }

/* ============================================================
   CTA block — vivid red sales panel (one per page max)
   ============================================================ */
.cta {
  background: var(--red);
  color: var(--on-red);
  border: 1px solid var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  padding: var(--lg);
}
.cta strong { font-family: var(--f-head); font-size: 16px; text-transform: uppercase; display: block; margin-bottom: var(--s); }
.cta p:last-child { margin-bottom: 0; }
.cta a { color: #fff; }
.cta .btn { margin-top: var(--md); display: block; padding-block: var(--sm); }
.cta .btn--secondary { color: var(--ink); }

/* ============================================================
   Buttons, inputs, links
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--s) var(--lg);
  border: 1px solid var(--ink);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:visited { color: #fff; }
.btn--secondary { background: var(--canvas); color: var(--ink); }
.btn--secondary:visited { color: var(--ink); }

.tlink { font-family: var(--f-body); font-size: 15px; color: var(--link); text-decoration: underline; }
.tlink:visited { color: var(--link); }
.tlink::after { content: " \00BB"; }

label { font-family: var(--f-head); font-size: 12px; font-weight: 700; text-transform: uppercase; display: block; margin-bottom: var(--xs); }
.input, textarea.input {
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--ink);
  padding: var(--s) var(--sm);
  width: 100%;
}
textarea.input { resize: vertical; min-height: 140px; line-height: 1.5; }
.field { margin-bottom: var(--lg); }

/* ============================================================
   Award seal — round red (only round thing on the site)
   ============================================================ */
.seal { width: 116px; height: 116px; border-radius: 9999px; background: var(--red); border: 2px solid var(--red); box-shadow: 1px 1px 0 0 rgba(0,0,0,0.55); position: relative; display: inline-block; }
.seal svg { display: block; }
.seal__ring { fill: #fff; font-family: var(--f-head); font-weight: 700; font-size: 8px; letter-spacing: 0.4px; }
.seal__field { position: absolute; inset: 24%; border-radius: 9999px; background: #fff; border: 1px solid var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.seal__label { font-family: var(--f-head); font-weight: 900; font-size: 18px; color: var(--red); line-height: 1; }
.seal__sub { font-family: var(--f-head); font-weight: 700; font-size: 8px; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; margin-top: 2px; }

/* ============================================================
   HOME — two-column catalog layout
   ============================================================ */
.home { display: flex; gap: var(--lg); padding: var(--lg); align-items: flex-start; }
.rail { flex: 0 0 32%; display: flex; flex-direction: column; gap: var(--md); }
.rail__seal { display: flex; justify-content: center; padding: var(--sm); }
.stack { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--md); min-width: 0; }

/* a generic single-column content region */
.region { padding: var(--lg); display: flex; flex-direction: column; gap: var(--md); }

/* ============================================================
   RESOURCES — ribbon card grid
   ============================================================ */
.grid { display: grid; gap: var(--md); grid-template-columns: 1fr 1fr; }
.grid .ribbon { display: flex; flex-direction: column; }
.grid .ribbon__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.grid .ribbon__body .desc { flex: 1 1 auto; }
.price { font-family: var(--f-head); font-size: 16px; font-weight: 700; }

/* Resources intro row: lede + request-a-resource panel */
.res-intro { display: flex; gap: var(--lg); align-items: stretch; flex-wrap: wrap; }
.res-intro .lede { flex: 1 1 320px; margin-bottom: 0; }
.res-intro .cta { flex: 1 1 280px; }
.tagrow { display: flex; flex-wrap: wrap; gap: var(--xs); margin-bottom: var(--sm); }
.tag {
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--ink);
  padding: 1px var(--s);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: flex; gap: var(--xl); padding: var(--lg); align-items: flex-start; flex-wrap: wrap; }
.contact__form { flex: 1 1 340px; min-width: 0; }
.contact__aside { flex: 0 0 240px; }
.note { font-family: var(--f-body); font-size: 13px; line-height: 1.5; }
.formstatus { font-family: var(--f-head); font-size: 12px; font-weight: 700; text-transform: uppercase; padding: var(--sm) var(--md); border: 1px solid var(--ink); margin-bottom: var(--lg); display: none; }
.formstatus.show { display: block; }
.formstatus--ok { background: var(--lime); }
.formstatus--err { background: var(--salmon); }

/* ============================================================
   Footer — icon-label nav + copyright small print
   ============================================================ */
.footer { background: var(--canvas); border-top: 1px solid var(--ink); padding: var(--lg); }
.iconnav { position: relative; padding: var(--lg) var(--sm) var(--s); }
.iconnav__rule { position: absolute; left: 12%; right: 12%; top: calc(var(--lg) + 14px); height: 2px; background: var(--green); }
.iconnav__row { position: relative; display: flex; justify-content: space-around; align-items: flex-start; }
.iconnav a { display: flex; flex-direction: column; align-items: center; gap: var(--xs); min-width: 56px; text-decoration: none; color: var(--ink); }
.iconnav a:visited { color: var(--ink); }
.iconnav__glyph { background: var(--canvas); padding: 0 var(--s); color: var(--ink); }
.iconnav__label { font-family: var(--f-head); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.footer__fine { text-align: center; margin-top: var(--md); }
.footer__fine p { font-family: var(--f-body); margin: var(--xxs) 0 0; }
.footer__fine .cr { font-size: 11px; }
.footer__fine .bv { font-size: 12px; }

/* ============================================================
   Rollover animations — hover / press (hard-edged, period-style)
   ============================================================ */
.btn, a.sticker {
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover, .btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 var(--ink);
}
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--secondary:hover, .btn--secondary:focus-visible { background: var(--ink); color: #fff; }

a.sticker:hover, a.sticker:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.6);
}
a.sticker:active { transform: translate(0, 0); box-shadow: 1px 1px 0 0 rgba(0, 0, 0, 0.55); }

/* Demo button — deliberately distinct from primary/sticker buttons */
.btn--demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--canvas);
  color: var(--purple);
  border: 2px solid var(--purple);
  padding: calc(var(--s) - 1px) calc(var(--lg) - 1px);
}
.btn--demo svg { width: 9px; height: 11px; fill: var(--purple); transition: fill 0.12s ease; }
.btn--demo:visited { color: var(--purple); }
.btn--demo:hover, .btn--demo:focus-visible {
  background: var(--purple);
  color: #fff;
  box-shadow: 3px 3px 0 0 var(--purple);
}
.btn--demo:hover svg, .btn--demo:focus-visible svg { fill: #fff; }

.tlink { transition: color 0.12s ease; }
.tlink:hover { color: var(--link-vis); }
.nav a { transition: color 0.12s ease; }
.nav a:hover { color: var(--ink); }
.iconnav a .iconnav__label { transition: color 0.12s ease; }
.iconnav a:hover { color: var(--link); }

@media (prefers-reduced-motion: reduce) {
  .btn, a.sticker, .tlink, .nav a { transition: none; }
  .btn:hover, .btn:focus-visible,
  a.sticker:hover, a.sticker:focus-visible { transform: none; }
}

/* ============================================================
   Responsive — collapse the catalog columns
   ============================================================ */
@media (max-width: 640px) {
  .home { flex-direction: column; padding: var(--md); }
  .rail { flex: 1 1 auto; width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .banner { padding: var(--md); }
  .brand__word { font-size: 22px; }
  .contact { flex-direction: column; }
  .contact__aside { flex: 1 1 auto; }
  .iconnav a { min-width: 44px; }
  .iconnav__label { font-size: 10px; }
}
