/* ==========================================================================
   PhaserCade - "crimson arcade"
   Matched to the product's own landing page: a deep crimson-to-oxblood page
   lit by an amber glow from the top, the brand's gold #ffa800 as the single
   accent, and angular gamer-HUD geometry everywhere (hexagonal CTA frames,
   cut-corner cards, parallelogram chips, HUD corner brackets on key art).
   Barlow (display, uppercase, heavy) over Poppins (body).

   The home hero is a measured 1:1 match of the reference (layout, motion,
   breakpoints); every other section and page reuses the same tokens and
   component shapes.

   Shape rule:
     primary CTA (.btn, .cta-btn)     -> hexagon, pointed left/right ends
     header CTA / language pills      -> hexagon outline (inset box-shadow)
     cards / tiles / panels           -> cut-corner clip-path, crimson gradient
     info boxes (opt-out, FAQ, forms) -> 12px radius, flat crimson, gold hairline
     chips / numbers / icon marks     -> parallelogram
   ========================================================================== */

:root {
  --accent: #ffa800;
  --accent-hi: #ffc247;
  --accent-lo: #e68a00;
  --accent-rgb: 255, 168, 0;

  --bg: #4a0000;
  --bg-mid: #3a0000;
  --bg-deep: #2b0000;
  --bar: rgba(20, 0, 0, 0.92);
  --surface: #730000;
  --surface-2: #980404;
  --text: #fff;
  --text-soft: rgba(255, 255, 255, 0.85);
  --muted: #e3c2bb;
  --line: rgba(255, 168, 0, 0.15);
  --line-strong: rgba(255, 168, 0, 0.4);
  --danger: #ff8a6a;
  --success: #7be3a6;

  --cta-grad: linear-gradient(180deg, var(--accent-hi) 0%, var(--accent) 55%, var(--accent-lo) 100%);
  --card-grad: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%);
  --hex: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  --hex-sm: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  --para: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);

  --header-h: 68px;
  --wrap: 1120px;

  --font-display: 'Barlow', 'Poppins', Arial, sans-serif;
  --font-body: 'Poppins', Tahoma, Arial, sans-serif;
}

/* -- reset / base ---------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; padding: 0; margin: 0; -webkit-font-smoothing: antialiased; }

/* overflow-x on html only: on body it breaks the sticky header */
html { overflow-x: hidden; scroll-behavior: smooth; -webkit-text-size-adjust: none; text-size-adjust: none; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 120, 0, 0.18), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 60%, var(--bg-deep) 100%);
  background-color: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }

/* no line-height here: like the reference, card and strip headings inherit the
   body's 1.5; only section titles and heroes tighten it */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* -- layout ---------------------------------------------------------------- */

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px; }

.section { padding: 28px 0; }
.section.tight,
.section-tight { padding: 28px 0; }

main { position: relative; z-index: 1; }

/* section heading: kicker, uppercase title, short gold parallelogram bar */
.section-head { margin-bottom: 22px; }
.section-head h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  background: var(--accent);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.section-head p { color: var(--muted); margin: 14px 0 2px; } /* bar -> sub 14px, sub -> content 24px, as the reference */

.eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* -- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2.4rem;
  border: 0;
  clip-path: var(--hex);
  font-family: var(--font-body); /* the reference's buttons all render in Poppins */
  font-size: 1.05rem;
  font-weight: 800;
  line-height: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--cta-grad);
  color: var(--bg);
  filter: drop-shadow(0 6px 14px rgba(var(--accent-rgb), 0.35));
}
.btn-primary:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 20px rgba(var(--accent-rgb), 0.6)); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-lg { padding: 1.05rem 2.8rem; font-size: 1.15rem; }

/* header CTA: hexagon outline (inset box-shadow survives the clip-path) */
.btn-sm,
.header-cta {
  padding: 9px 26px;
  clip-path: var(--hex-sm);
  background: rgba(var(--accent-rgb), 0.16);
  box-shadow: inset 0 0 0 2px var(--accent);
  color: var(--accent);
  filter: none;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-sm:hover,
.header-cta:hover { background: var(--accent); color: var(--bg); transform: none; filter: none; }

/* -- header / nav ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  direction: ltr;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }

.site-nav-desktop { display: flex; align-items: center; gap: 20px; }

.site-nav-desktop a:not(.btn),
.site-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}
.site-nav-desktop a:not(.btn):hover,
.site-nav a:not(.btn):hover,
.site-nav-desktop a.active,
.site-nav a.active { color: var(--accent); }

.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-pill {
  padding: 5px 14px;
  clip-path: var(--hex-sm);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.lang-pill:hover { color: var(--accent); }
.lang-pill.lang-active { background: var(--accent); box-shadow: none; color: var(--bg); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.nav-burger span { display: block; width: 24px; height: 3px; background: var(--accent); clip-path: polygon(2px 0, 100% 0, calc(100% - 2px) 100%, 0 100%); }

.site-nav { display: none; }

@media (max-width: 1100px) {
  .site-nav-desktop { display: none; }
  .nav-burger { display: flex; }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 40;
    padding: 12px 20px 22px;
    background: var(--bar);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }
  .site-nav a:not(.btn) { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .site-nav .btn { margin-top: 14px; align-self: flex-start; }
  .site-nav .lang-switcher { padding-top: 14px; }
  .nav-toggle:checked ~ .site-nav { transform: translateY(0); visibility: visible; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo-img { height: clamp(22px, 13.6vw - 26.5px, 30px); }
}

/* -- motion ------------------------------------------------------------------
   Same as the reference: no scroll reveals, only hover transitions and the
   floating hero badges. Nothing is ever hidden waiting for JS. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card .badge { animation: none !important; }
  /* no auto-rotation (main.js skips the timer): show the active bar full */
  .spot-dot.is-active::after { animation: none; width: 100%; }
  html.js .spot-slide,
  html.js .spot-copy { transition: none; }
}

/* -- hero (home) - 1:1 with the reference ----------------------------------- */

.hero { position: relative; isolation: isolate; padding: 40px 0 32px; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(74, 0, 0, 0.35) 0%, rgba(74, 0, 0, 0.7) 55%, var(--bg) 96%),
    url(/assets/img/hero-bg.jpg) center top / cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

.hero-kicker {
  display: inline-block;
  padding: 7px 22px;
  margin-bottom: 18px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  background: rgba(var(--accent-rgb), 0.18);
  border-left: 3px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: -1px 5px 0 rgba(var(--accent-rgb), 0.6);
  margin-bottom: 20px;
}
.hero-title .hl { display: block; color: var(--accent); text-shadow: -1px 5px 0 rgba(152, 4, 4, 0.9); }

/* reading width lives on the wrapper, never on the paragraph */
.hero-copy { min-width: 0; }
.hero-desc { max-width: 520px; margin-bottom: 24px; }
.hero-desc p { font-size: 1.05rem; color: var(--text-soft); }


.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.8rem;
  border: 0;
  clip-path: var(--hex);
  background: var(--cta-grad);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.465; /* measured: the reference <button> lays out a 27px line, an <a> 28px at "normal" */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(var(--accent-rgb), 0.35));
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta-btn:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 20px rgba(var(--accent-rgb), 0.6)); }
.cta-btn .arrow { font-size: 0.8em; line-height: 1; }

.hero-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

@media (max-width: 768px) { .hero-visual { display: none; } }

.hero-card {
  position: relative;
  border: 2px solid rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), 0 0 70px -20px rgba(var(--accent-rgb), 0.45);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
}
.hero-card .badge {
  position: absolute;
  z-index: 3;
  padding: 8px 16px;
  clip-path: var(--para);
  font-size: 13px;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.hero-card .badge-top { top: 18px; left: -18px; background: var(--accent); color: var(--bg); }
.hero-card .badge-bottom {
  bottom: 22px;
  right: -18px;
  display: flex;
  flex-direction: column;
  background: var(--bar);
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  color: var(--text);
  animation-delay: 1.2s;
}
.hero-card .badge-bottom strong { font-size: 10px; letter-spacing: 0.14em; color: var(--accent); }
.hero-card .badge-bottom .score { font-size: 18px; font-weight: 800; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(-3deg); }
}

/* HUD corner brackets (hero card, about art) */
.hud { position: absolute; z-index: 2; width: 34px; height: 34px; border: 3px solid var(--accent); pointer-events: none; }
.hud.tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.hud.br { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }

/* -- spotlight (home) - 1:1 with the reference's spotlight block ------------ */

.game-section { padding: 28px 0; }

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 30% 50%, rgba(var(--accent-rgb), 0.18), transparent 55%),
    rgba(20, 0, 0, 0.55);
  border: 1px solid var(--line);
}
@media (max-width: 1024px) {
  .spotlight-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spotlight-grid .spotlight-side { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .spotlight-grid { grid-template-columns: 1fr; padding: 22px 18px; }
  .spotlight-grid .spotlight-side { grid-template-columns: 1fr; }
}

.spotlight-media { width: 100%; max-width: 340px; }
@media (max-width: 768px) { .spotlight-media { margin: 0 auto; } }
.spotlight-art { position: relative; display: block; width: 100%; cursor: pointer; }
.spotlight-art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  transition: transform 0.3s ease;
}
.spotlight-art:hover img { transform: scale(1.03); }

/* rotation: without JS only the active slide renders; with JS every slide
   shares one grid cell and cross-fades, so the block never changes height */
.spot-slide:not(.is-active),
.spot-copy:not(.is-active) { display: none; }
html.js .spotlight-art,
html.js .spot-copies { display: grid; }
html.js .spot-slide,
html.js .spot-copy {
  display: block;
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s, transform 0.3s ease;
}
html.js .spot-slide.is-active,
html.js .spot-copy.is-active { opacity: 1; visibility: visible; }
.side-row[hidden] { display: none; }

/* pager: one bar per game; the active bar fills over the slide's dwell time
   (5s, kept in step with DWELL in main.js, which owns the timer) */
.spot-pager { display: none; justify-content: center; gap: 6px; margin-top: 14px; }
html.js .spot-pager { display: flex; }
.spot-dot {
  position: relative;
  width: 36px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.spot-dot::before,
.spot-dot::after {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  height: 6px;
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.spot-dot::before { right: 0; background: rgba(255, 255, 255, 0.2); transition: background 0.2s ease; }
.spot-dot:hover::before { background: rgba(var(--accent-rgb), 0.5); }
.spot-dot::after { width: 0; background: var(--accent); }
.spot-dot.is-active::after { animation: spot-fill 5s linear forwards; }
.spotlight-grid.is-paused .spot-dot.is-active::after { animation-play-state: paused; }
@keyframes spot-fill { from { width: 0; } to { width: 100%; } }

.spotlight-title {
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: -1px 5px 0 rgba(var(--accent-rgb), 0.55);
}
.spotlight-genre {
  display: inline-block;
  margin: 12px 0 14px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.spotlight-copy p { color: var(--text-soft); margin-bottom: 22px; }

.spotlight-side { display: grid; gap: 10px; }
.side-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: rgba(115, 0, 0, 0.75);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.side-row:hover { background: var(--surface-2); border-left-color: var(--accent); }
.side-row img { width: 48px; height: 48px; object-fit: cover; }
.side-row .text { display: flex; flex-direction: column; min-width: 0; }
.side-row .name {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-row .genre { font-size: 12px; color: rgba(255, 255, 255, 0.8); }

/* -- showcase: poster tiles ------------------------------------------------- */

.tile-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1024px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 7px 7px 14px;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 70%);
  cursor: pointer;
}
.tile-image { position: relative; margin-bottom: 10px; overflow: hidden; }
.tile-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s ease; }
.tile:hover .tile-image img { transform: scale(1.06); }
.hover-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(74, 0, 0, 0.55);
  color: var(--accent);
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tile:hover .hover-play { opacity: 1; }
.tile-icon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  clip-path: var(--para);
  background: var(--accent);
  color: var(--bg);
}
.tile-icon svg { width: 18px; height: 18px; }
.tile-cap {
  padding: 0 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  order: 2;
}
.tile-genre { padding: 0 4px; font-size: 12px; color: var(--accent); font-weight: 600; order: 3; }
.tile-desc { padding: 6px 4px 0; font-size: 13px; color: var(--text-soft); order: 4; }
.showcase-more { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* -- why-us: list rows (reference "recommended" rows) ------------------------ */

.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr; } }

.why-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 12px 20px 14px 12px;
  border-left: 3px solid transparent;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  background: var(--surface);
  transition: background 0.2s ease;
}
.why-item:hover { background: var(--surface-2); border-left-color: var(--accent); }
.why-mark {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  background: rgba(20, 0, 0, 0.55);
  color: var(--accent);
}
.why-mark svg { width: 26px; height: 26px; }
.why-item h3 { font-size: 1.05rem; letter-spacing: 0.02em; margin: 4px 0 4px; }
.why-item p { font-size: 12px; color: var(--text-soft); }

/* -- step-style cards: features, pricing steps, values, opt-out flow -------- */

.feature-grid,
.values-grid,
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 768px) { .feature-grid, .values-grid, .steps { grid-template-columns: 1fr; } }

.feature-card,
.value-card,
.step {
  position: relative;
  padding: 22px;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  background: var(--card-grad);
  border-top: 3px solid var(--accent);
}
.card-icon,
.step-n {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  clip-path: var(--para);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 900;
}
.card-icon svg { width: 20px; height: 20px; }
.feature-card h3,
.value-card h3,
.step h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.feature-card p,
.value-card p,
.step p { font-size: 14px; color: rgba(255, 255, 255, 0.82); }

/* -- inner-page hero -------------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 28px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(74, 0, 0, 0.45) 0%, rgba(74, 0, 0, 0.8) 60%, var(--bg) 100%),
    url(/assets/img/hero-bg.jpg) center top / cover no-repeat;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -1px;
  text-shadow: -1px 5px 0 rgba(var(--accent-rgb), 0.6);
  margin-bottom: 14px;
}
.page-hero p { font-size: 1.05rem; color: var(--text-soft); }
/* line the page title up with the section content below it */
.page-hero .container-narrow { max-width: var(--wrap); }
/* legal pages keep the title over the 880px policy box */
.page-hero:has(+ .legals-wrap) .container-narrow { max-width: 880px; }

/* -- about ------------------------------------------------------------------ */

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}
.about-split h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.05; letter-spacing: -0.5px; margin-bottom: 16px; }
.about-split p { color: var(--text-soft); }
.about-split p + p { margin-top: 12px; }
@media (max-width: 768px) { .about-split { grid-template-columns: 1fr; gap: 32px; } }

.art-card {
  position: relative;
  max-width: 400px;
  margin: 8px auto;
  border: 2px solid rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), 0 0 70px -20px rgba(var(--accent-rgb), 0.45);
}
.art-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  transition: transform 0.3s ease;
}
.art-card:hover img { transform: scale(1.03); }

/* CTA strip (home) - 1:1 with the reference */
.cta-strip-section { padding: 28px 0 8px; }
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  border-top: 3px solid var(--accent);
  background:
    radial-gradient(circle at 90% 50%, rgba(var(--accent-rgb), 0.3), transparent 50%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}
@media (max-width: 768px) { .cta-strip { flex-direction: column; align-items: flex-start; padding: 26px 22px; } }
.cta-strip h2 {
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 900;
  text-shadow: -1px 4px 0 rgba(74, 0, 0, 0.8);
  margin-bottom: 6px;
}
.cta-strip p { color: var(--text-soft); }
.cta-strip .cta-btn { flex-shrink: 0; }

/* vision: the reference's CTA strip panel */
.vision-panel {
  padding: 32px 36px;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  border-top: 3px solid var(--accent);
  background:
    radial-gradient(circle at 90% 50%, rgba(var(--accent-rgb), 0.3), transparent 50%),
    linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
}
.vision-panel h2 {
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  font-weight: 900;
  text-shadow: -1px 4px 0 rgba(74, 0, 0, 0.8);
  margin-bottom: 12px;
}
.vision-panel p { color: var(--text-soft); }
.vision-panel p + p { margin-top: 12px; }
@media (max-width: 768px) { .vision-panel { padding: 26px 22px; } }

/* -- pricing ---------------------------------------------------------------- */

/* one centred card per Notion connection: operator chip, headline price,
   cadence, renewal line, what's included, full-width CTA */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 420px));
  justify-content: center;
  gap: 24px;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px 30px 30px;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  border-top: 3px solid var(--accent);
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), 0.24), transparent 60%),
    var(--card-grad);
}
.price-op {
  padding: 6px 18px;
  margin-bottom: 18px;
  clip-path: var(--para);
  background: rgba(20, 0, 0, 0.6);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-val {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  text-shadow: -1px 5px 0 rgba(var(--accent-rgb), 0.55);
}
.price-freq {
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-meta {
  align-self: stretch;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.25);
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-soft);
}
.plan-features {
  align-self: stretch;
  display: grid;
  gap: 10px;
  margin: 18px 0 26px;
  list-style: none;
  text-align: start;
}
.plan-features li { position: relative; padding-inline-start: 30px; font-size: 14px; color: var(--text-soft); }
.plan-features li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  clip-path: var(--para);
  background: var(--accent);
}
.plan-features li::after {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 7px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg);
}
.price-card .btn { align-self: stretch; margin-top: auto; }
.price-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }

/* -- opt-out / refund / FAQ: the reference's policy boxes -------------------- */

.optout,
.bullets,
.faq-item,
.care-card {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.optout { padding: 18px 22px; margin-bottom: 12px; }
.optout h3 { font-size: 1.3rem; letter-spacing: 0.02em; margin-bottom: 10px; }
.optout-sms { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; line-height: 1.7; }
.optout-to { color: var(--text-soft); }
.optout-kw,
.optout-dest {
  padding: 2px 12px;
  clip-path: var(--para);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.optout-dest a { color: inherit; }

.optout-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  list-style: none;
}
.optout-notes li {
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(20, 0, 0, 0.55);
  font-size: 13px;
  color: var(--text-soft);
}
@media (max-width: 768px) { .optout-notes { grid-template-columns: 1fr; } }

.bullets { list-style: none; padding: 18px 22px; font-size: 13px; line-height: 1.7; color: var(--text-soft); }
.bullets li { position: relative; padding-left: 20px; }
.bullets li + li { margin-top: 10px; }
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.faq-list { display: grid; gap: 10px; }
.faq-item[open] { border-color: rgba(var(--accent-rgb), 0.5); }
.faq-item summary {
  position: relative;
  padding: 16px 52px 16px 22px;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '\25B6';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.faq-body { padding: 0 22px 18px; font-size: 14px; line-height: 1.7; color: var(--text-soft); }

/* -- forms: the reference's modal panel ------------------------------------- */

.contact-form,
.form-card {
  padding: 2rem 1.75rem;
  border-radius: 15px;
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 60px -15px rgba(var(--accent-rgb), 0.35);
}
.form-card.narrow { max-width: 560px; margin: 0 auto; }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form, .form-card { padding: 1.5rem 1.1rem; }
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 0.5rem;
  border: 0;
  border-bottom: 1px solid #8b8b8b;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.form-group textarea { resize: vertical; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text); opacity: 0.55; font-weight: 400; }
.form-group input:focus,
.form-group textarea:focus { outline: none; border-bottom-color: var(--accent); }

.phone-row { display: flex; align-items: stretch; border-bottom: 1px solid #8b8b8b; }
.phone-row:focus-within { border-bottom-color: var(--accent); }
.phone-prefix { display: flex; align-items: center; gap: 0.4rem; padding: 0 0.6rem 0 0.25rem; font-weight: 600; white-space: nowrap; }
.phone-row input { flex: 1; min-width: 0; border-bottom: 0; }

.contact-form .btn,
.form-card .btn { margin-top: 1rem; }

.error-msg,
.errorMsg { display: none; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--danger); }
.form-success,
.successMsg { display: none; margin-top: 1rem; font-size: 14px; font-weight: 600; color: var(--success); }
.successMsg a { color: var(--accent); }
.form-disclaimer { margin-top: 1rem; font-size: 12px; color: var(--muted); }

.care-card { padding: 18px 22px; margin-bottom: 20px; font-size: 14px; line-height: 1.7; }
.care-card h2 { font-size: 1.3rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.care-card p { color: var(--text-soft); }
.care-card p + p { margin-top: 6px; }
.care-card a { text-decoration: underline; word-break: break-word; }

/* -- 404 -------------------------------------------------------------------- */

.not-found { padding: 72px 0 88px; text-align: center; }
.big-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  text-shadow: -2px 8px 0 rgba(152, 4, 4, 0.9);
  margin-bottom: 12px;
}
.not-found h1 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); line-height: 1.05; margin-bottom: 10px; }
.not-found p:not(.big-num) { color: var(--text-soft); margin-bottom: 26px; }

/* -- legal pages (shared partials render inside .legals) --------------------- */

.legals-wrap { padding: 0 0 48px; }
.legals { padding: 4px 0 0; }
.legals .container {
  max-width: 880px;
  padding: 24px 28px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}
@media (max-width: 640px) { .legals .container { margin: 0 12px; width: auto; padding: 18px 16px; } }
.legals h1 { display: none; } /* terms-dcb.html injects a hardcoded <h1> */
.legals h2, .legals h3, .legals h4, .legals h5 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 1.6rem 0 0.5rem;
}
.legals h6 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.6rem 0 0.5rem;
}
.legals p,
.legals li { font-size: 14px; line-height: 1.75; color: var(--text-soft); }
.legals p { margin-bottom: 0.8rem; }
.legals ul, .legals ol { margin: 0.5rem 0 1rem; padding-inline-start: 1.2rem; }
.legals li { margin-bottom: 0.35rem; }
.legals a { text-decoration: underline; }
.legals strong { color: var(--text); }
.legals table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 13px; }
.legals th, .legals td { border: 1px solid rgba(var(--accent-rgb), 0.18); padding: 0.55rem 0.7rem; text-align: left; }
.legals th { background: var(--surface-2); font-weight: 700; }

/* -- footer: the reference's footer band ------------------------------------ */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-deep);
  line-height: 1.6;
}
.site-footer > .container { padding-top: 40px; padding-bottom: 28px; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; }
@media (max-width: 768px) { .footer-grid { display: block; } }

.footer-brand { flex: 1; max-width: 380px; }
.footer-brand .logo-img { height: 30px; margin-bottom: 6px; }
.footer-brand > p { margin-top: 10px; font-size: 13px; color: var(--muted); }
.footer-entity { margin-top: 14px; }
.footer-entity p { font-size: 13px; color: var(--muted); }
.footer-entity a { color: var(--muted); word-break: break-word; }
.footer-entity a:hover { color: var(--accent); }

.footer-col { margin: 0 20px; }
@media (max-width: 768px) { .footer-col { margin: 24px 0 0; } }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 4px; }
.footer-col a { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom p { font-size: 12px; color: var(--muted); }
.footer-version { opacity: 0.7; }
