/* Crown Control marketing site — shared styles
   Palette: Ink #141019 / Parchment #EAD9B0 / Gold #E8A33D / Slate #8B84A0 / Blood #A93226 */
:root {
  --ink: #141019;
  --ink-2: #1E1826;
  --parchment: #EAD9B0;
  --gold: #E8A33D;
  --gold-hi: #F6C15F;
  --slate: #8B84A0;
  --blood: #A93226;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--parchment);
  font-family: "M PLUS 1p", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
h1, h2, h3, .display { font-family: "Spectral", serif; font-weight: 700; letter-spacing: .02em; }
a { color: var(--gold); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.site-header .brand { font-family: "Spectral", serif; font-size: 1.2rem; color: var(--parchment); text-decoration: none; }
.site-header nav a { margin-left: 18px; text-decoration: none; color: var(--slate); font-size: .95rem; }
.site-header nav a:hover { color: var(--gold); }

/* Hero */
.hero { text-align: center; padding: 28px 0 10px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); color: var(--gold); text-shadow: 0 2px 24px rgba(232,163,61,.25); }
.hero .tagline { color: var(--slate); margin: 8px 0 22px; font-size: 1.05rem; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000;
  border: 1px solid rgba(232,163,61,.35); border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,.6);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* CTA buttons */
.btn-steam {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(to bottom, #75B022 5%, #588A1B 95%); /* Steam wishlist green */
  color: #fff; font-family: "Spectral", serif; font-weight: 700; text-decoration: none;
  padding: 16px 34px; border-radius: 4px; font-size: 1.15rem;
  box-shadow: 0 6px 24px rgba(88,138,27,.4);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-steam:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(117,176,34,.55);
  background: linear-gradient(to bottom, #8ED629 5%, #6AA621 95%); }
.btn-steam:focus-visible { outline: 3px solid var(--parchment); outline-offset: 3px; }
.cta-row { text-align: center; padding: 26px 0 8px; }
.cta-sub { color: var(--slate); font-size: .9rem; margin-top: 10px; }

/* Steam widget */
.steam-widget { display: flex; justify-content: center; padding: 30px 0; }
.steam-widget iframe { border: 0; width: 100%; max-width: 646px; height: 190px; }

/* Sections / class cards */
section { padding: 44px 0; }
section h2 { color: var(--gold); font-size: 1.7rem; margin-bottom: 18px; text-align: center; }
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.class-card {
  background: var(--ink-2); border: 1px solid rgba(139,132,160,.25); border-radius: 10px;
  padding: 22px; text-decoration: none; color: var(--parchment);
  transition: border-color .15s ease, transform .15s ease;
}
.class-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.class-card h3 { color: var(--gold-hi); margin-bottom: 8px; }
.class-card p { color: var(--slate); font-size: .95rem; }

/* Class page */
.class-hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 30px 0;
  /* full-bleed: roughly twice the wrap width on large screens */
  width: min(96vw, 1960px); margin-left: 50%; transform: translateX(-50%);
}
.class-hero img { width: 100%; border-radius: 10px; border: 1px solid rgba(232,163,61,.3); }
@media (max-width: 760px) { .class-hero { grid-template-columns: 1fr; } }

/* Footer */
footer { border-top: 1px solid rgba(139,132,160,.2); padding: 26px 0 90px; color: var(--slate); font-size: .85rem; text-align: center; }

/* ===== Conversion layer ===== */
/* 1) Sticky bottom-right CTA */
.cta-sticky {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(to bottom, #75B022 5%, #588A1B 95%);
  color: #fff; font-family: "Spectral", serif; font-weight: 700; text-decoration: none;
  padding: 10px 18px 10px 10px; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
}
.cta-sticky:hover { transform: translateY(-2px); }

/* 2+3) Card-draw modal (timed + exit intent) */
.cta-overlay {
  position: fixed; inset: 0; z-index: 70; display: none;
  background: rgba(10,8,14,.75); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.cta-overlay.open { display: flex; }
.cta-card {
  background: linear-gradient(165deg, #241C30, var(--ink-2));
  border: 2px solid var(--gold); border-radius: 14px;
  max-width: 380px; width: 100%; padding: 34px 28px 28px; text-align: center; position: relative;
  box-shadow: 0 0 0 6px rgba(232,163,61,.12), 0 24px 80px rgba(0,0,0,.7);
  animation: draw .45s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes draw { from { transform: translateY(60px) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cta-card { animation: none; } html { scroll-behavior: auto; } }
.cta-card .eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.cta-card h3 { color: var(--gold); font-size: 1.5rem; margin: 10px 0 8px; }
.cta-card p { color: var(--parchment); font-size: .98rem; margin-bottom: 20px; }
.cta-card .btn-steam { font-size: 1rem; padding: 13px 26px; }
.cta-close {
  position: absolute; top: 10px; right: 14px; background: none; border: 0;
  color: var(--slate); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.cta-close:hover, .cta-close:focus-visible { color: var(--parchment); }

/* YouTube facade play badge */
.video-frame { cursor: pointer; }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; display: flex; align-items: center; justify-content: center;
  background: rgba(20,16,25,.8); border: 2px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-size: 2rem; padding-left: 6px;
  transition: transform .15s ease, background .15s ease;
}
.video-frame:hover .play-badge { transform: translate(-50%, -50%) scale(1.1); background: rgba(232,163,61,.2); }

/* Steam widget inside the modal */
.cta-card { max-width: 700px; }
.cta-widget { border: 0; width: 100%; height: 190px; margin-bottom: 16px; }

/* Brand logo and icons */
.brand-logo { height: 46px; width: auto; display: block; }
.nav-ico, .btn-ico { height: 22px; width: 22px; image-rendering: pixelated; vertical-align: -4px; margin-right: 6px; }
.title-ico { height: 40px; width: 40px; image-rendering: pixelated; vertical-align: -6px; margin-right: 12px; }
.hero-mascot { width: 72px; height: 72px; image-rendering: pixelated; margin-bottom: 6px; }
.cc-ico { height: 26px; width: 26px; border-radius: 50%; }
.cta-mascot { width: 64px; height: 64px; image-rendering: pixelated; margin-bottom: 4px; }
.cta-card p { line-height: 1.7; }

/* Footer pinned to the bottom on short pages */
.wrap { display: flex; flex-direction: column; min-height: 100vh; }
.wrap > main { flex: 1 0 auto; }
