/* =====================================================================
   RODE LIFE (rebuild) — design tokens + components
   Layered on top of Bootstrap 5 (loaded via CDN before this file).
   Palette + type extracted from the original design system.
   ===================================================================== */

:root {
  /* ---- Brand palette ---- */
  --rl-ink:        #191E24;  /* primary text / headings */
  --rl-body:       #7A7A7A;  /* body text */
  --rl-blue:       #1E90FF;  /* accent / primary action */
  --rl-blue-600:   #288CED;
  --rl-blue-700:   #1253A4;
  --rl-navy:       #002855;
  --rl-navy-900:   #0A305E;
  --rl-ink-blue:   #041223;  /* near-black blue (footer) */
  --rl-blue-050:   #EDF1FC;  /* light surface */
  --rl-blue-100:   #D0DAF7;
  --rl-white:      #FFFFFF;

  /* ---- Map onto Bootstrap theme variables ---- */
  --bs-primary:        var(--rl-blue);
  --bs-primary-rgb:    30, 144, 255;
  --bs-body-color:     var(--rl-body);
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-heading-color:  var(--rl-ink);
  --bs-link-color:     var(--rl-blue-700);
  --bs-link-hover-color: var(--rl-blue);

  /* ---- Type scale ---- */
  --rl-font-head: "Inter", system-ui, sans-serif;
  --rl-font-alt:  "Heebo", "Inter", system-ui, sans-serif;

  /* ---- Radii / shadow / spacing ---- */
  --rl-radius:    14px;
  --rl-radius-sm: 10px;
  --rl-radius-pill: 999px;
  --rl-shadow:    0 10px 30px rgba(4, 18, 35, 0.08);
  --rl-shadow-sm: 0 4px 14px rgba(4, 18, 35, 0.06);
  --rl-shadow-lg: 0 20px 50px rgba(4, 18, 35, 0.14);
  --rl-container: 1200px;
}

/* ---------------------------------------------------------------- base */
body {
  font-family: var(--bs-body-font-family);
  color: var(--rl-body);
  background: var(--rl-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
  font-family: var(--rl-font-head);
  color: var(--rl-ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.display-1, .display-2, .display-3, .display-4 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

a { text-decoration: none; }
a:hover { text-decoration: none; }

.container, .container-xl { max-width: var(--rl-container); }

.section { padding: 4.5rem 0; }
@media (max-width: 768px) { .section { padding: 3rem 0; } }

.text-ink   { color: var(--rl-ink) !important; }
.text-blue  { color: var(--rl-blue) !important; }
.bg-soft    { background: var(--rl-blue-050); }
.bg-navy    { background: var(--rl-navy); color: #fff; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--rl-blue-700);
}

/* ---------------------------------------------------------------- buttons */
.btn { border-radius: var(--rl-radius-pill); font-weight: 600; padding: 0.6rem 1.4rem; }
.btn-primary {
  --bs-btn-bg: var(--rl-blue);
  --bs-btn-border-color: var(--rl-blue);
  --bs-btn-hover-bg: var(--rl-blue-700);
  --bs-btn-hover-border-color: var(--rl-blue-700);
  --bs-btn-active-bg: var(--rl-navy);
  --bs-btn-active-border-color: var(--rl-navy);
  color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: var(--rl-blue-700);
  --bs-btn-border-color: var(--rl-blue-700);
  --bs-btn-hover-bg: var(--rl-blue-700);
  --bs-btn-hover-border-color: var(--rl-blue-700);
}
.btn-light-pill { background: #fff; color: var(--rl-navy); box-shadow: var(--rl-shadow-sm); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(4,18,35,0.06);
}
.site-header .navbar-brand img { height: 38px; width: auto; }
.site-header .nav-link {
  color: var(--rl-ink); font-weight: 600; padding: 0.5rem 0.9rem;
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--rl-blue); }
.mega-panel {
  border: 0; border-radius: var(--rl-radius); box-shadow: var(--rl-shadow-lg);
  padding: 1.25rem; min-width: 560px;
}
.mega-panel .mega-col-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rl-blue-700); font-weight: 700; margin-bottom: 0.5rem;
}
.mega-panel a { color: var(--rl-ink); display: block; padding: 0.3rem 0; }
.mega-panel a:hover { color: var(--rl-blue); }

/* ------------------------------------------------- hero banner (home) */
.hero-banner { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-banner .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-banner .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,18,35,.82) 0%, rgba(4,18,35,.55) 42%, rgba(4,18,35,.05) 75%);
}
.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 36rem; }
.hero-content h1 { letter-spacing: -.02em; }
.text-white-75 { color: rgba(255,255,255,.82) !important; }
@media (max-width: 768px) {
  .hero-banner { min-height: 480px; }
  .hero-banner .hero-overlay { background: linear-gradient(180deg, rgba(4,18,35,.55), rgba(4,18,35,.85)); }
}

/* ------------------------------------------------- inner page hero band */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 3.5rem 0;
  background: linear-gradient(120deg, var(--rl-navy), var(--rl-blue-700));
}
.page-hero .ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .ph-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(4,18,35,.86), rgba(4,18,35,.5)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: rgba(255,255,255,.72); }
.page-hero p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.page-hero .form-select, .page-hero .form-control { color: var(--rl-ink); }
@media (max-width: 768px) { .page-hero { padding: 2.5rem 0; } }

/* ------------------------------------------------- large category tiles */
.cat-tile-lg {
  position: relative; display: block; border-radius: var(--rl-radius); overflow: hidden;
  color: #fff; box-shadow: var(--rl-shadow-sm); aspect-ratio: 3 / 4;
}
.cat-tile-lg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile-lg:hover img { transform: scale(1.06); }
.cat-tile-lg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(4,18,35,.82)); }
.cat-tile-lg-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.1rem 1.25rem; }
.cat-tile-lg-body h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.cat-tile-lg-body span { color: rgba(255,255,255,.82); font-size: .9rem; }

/* ------------------------------------------------- benefit list + misc */
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.benefit-list li { position: relative; padding-left: 1.9rem; color: var(--rl-ink); font-weight: 500; }
.benefit-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--rl-blue-050); color: var(--rl-blue-700); font-size: .8rem; font-weight: 800;
}
.shadow-soft { box-shadow: var(--rl-shadow); }

.pillar {
  background: #fff; border: 1px solid rgba(4,18,35,.06); border-radius: var(--rl-radius);
  padding: 1.75rem; height: 100%; box-shadow: var(--rl-shadow-sm); text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--rl-shadow); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 1rem;
  display: grid; place-items: center; color: #fff; background: var(--p, var(--rl-blue));
}

.cta-band {
  border-radius: var(--rl-radius); padding: 3.5rem 1.5rem;
  background: linear-gradient(120deg, var(--rl-navy), var(--rl-blue-700) 60%, var(--rl-blue));
}

/* header logo sizing for the real wordmark */
.site-header .navbar-brand img { height: 46px; }
.site-footer .footer-brand img { height: 44px; }

/* ---------------------------------------------------------------- hero */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--rl-blue-050), transparent),
    linear-gradient(180deg, #fff, var(--rl-blue-050));
  padding: 5rem 0 4rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero .lead { color: var(--rl-body); font-size: 1.15rem; max-width: 36rem; }
.hero-card {
  border-radius: var(--rl-radius); overflow: hidden; box-shadow: var(--rl-shadow-lg);
}

/* ---------------------------------------------------------------- cards */
.card {
  border: 1px solid rgba(4,18,35,0.06);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--rl-shadow); }
.card-img-top { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; background: var(--rl-blue-050); }
.card-title { color: var(--rl-ink); font-size: 1.05rem; }
.price { font-weight: 700; color: var(--rl-ink); }
.price .was { color: var(--rl-body); text-decoration: line-through; font-weight: 400; font-size: .9em; margin-left: .4rem; }
.badge-discount {
  background: var(--rl-blue-050); color: var(--rl-blue-700);
  border-radius: var(--rl-radius-pill); font-weight: 700; padding: .35rem .7rem;
}

/* category pill */
.cat-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid rgba(4,18,35,0.08);
  border-radius: var(--rl-radius-pill); padding: .5rem 1rem; color: var(--rl-ink);
  font-weight: 600; box-shadow: var(--rl-shadow-sm);
}
.cat-pill:hover { border-color: var(--rl-blue); color: var(--rl-blue); }

/* category tile */
.cat-tile {
  position: relative; border-radius: var(--rl-radius); overflow: hidden;
  display: block; color: #fff; box-shadow: var(--rl-shadow-sm);
}
.cat-tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.cat-tile .cat-tile-body {
  position: absolute; inset: auto 0 0 0; padding: 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(4,18,35,.78));
}
.cat-tile h3 { color: #fff; margin: 0; font-size: 1.15rem; }

/* creator card */
.creator-card .avatar {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: var(--rl-shadow-sm); margin-top: -44px; background: #eee;
}
.creator-cover { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }

/* ---------------------------------------------------------------- forms */
.form-control, .form-select {
  border-radius: var(--rl-radius-sm); border-color: rgba(4,18,35,0.12); padding: .7rem .9rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--rl-blue); box-shadow: 0 0 0 .2rem rgba(30,144,255,.18);
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--rl-ink-blue); color: rgba(255,255,255,.72); }
.site-footer h5 { color: #fff; font-size: .95rem; letter-spacing: .02em; }
.site-footer a { color: rgba(255,255,255,.72); display: block; padding: .25rem 0; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand img { height: 40px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }

/* ---------------------------------------------------------------- utilities */
.skeleton {
  background: linear-gradient(90deg, #eef2f9 25%, #e3e9f4 37%, #eef2f9 63%);
  background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--rl-radius-sm);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid var(--rl-blue); outline-offset: 2px; }
a, button, .nav-link, [role="button"] { cursor: pointer; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
