/* Book of Ra DE landing — Frontender_coopyrigter */
:root {
  --navy: #181934;
  --navy-soft: #22244a;
  --coral: #f53b57;
  --coral-hover: #e02e48;
  --cyan: #4bcffa;
  --cream: #f7f0e4;
  --gold: #d4a84b;
  --gold-border: #e8d5a8;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --text: #1a1b2e;
  --muted: #5c6078;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(24, 25, 52, 0.08);
  --header-h: 64px;
  --font: "Rubik", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--coral);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, 100% - 2rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--cyan);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--coral), #ff6b81);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 1.05rem;
}

.nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--cyan);
}

.btn-header {
  margin-left: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .btn-header {
    margin-left: 0.5rem;
  }
}

/* Mobile nav open */
@media (max-width: 899px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--navy-soft);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-cta {
  background: var(--coral);
  color: #fff;
}

.btn-cta:hover {
  background: var(--coral-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #2a2c5a 55%, #1e2040 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(75, 207, 250, 0.15);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.2;
  font-weight: 700;
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero-art {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d0e1f;
}

.hero-art img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Sections */
.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-cream {
  background: linear-gradient(180deg, #faf6ee 0%, #f3ead8 100%);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--navy);
  line-height: 1.25;
}

.section-intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 42em;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.table-note {
  margin: 0 0 1.25rem;
}

/* Path cards */
.path-cards {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .path-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.path-card {
  background: #fff;
  border: 1px solid #e4e6f0;
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.path-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.path-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.path-card-accent {
  border-color: rgba(245, 59, 87, 0.35);
  background: linear-gradient(180deg, #fff 0%, #fff5f7 100%);
}

.path-card .btn {
  margin-top: 0.25rem;
}

/* Feature list */
.feature-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-bottom: 1px solid #e8eaf2;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.feature-list li:last-child {
  border-bottom: 0;
}

/* Fact table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #e0e3ef;
  background: #fff;
  box-shadow: var(--shadow);
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.fact-table th,
.fact-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #eceef6;
}

.fact-table tr:last-child th,
.fact-table tr:last-child td {
  border-bottom: 0;
}

.fact-table th {
  width: 36%;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

.fact-table tr:nth-child(even) td {
  background: #fafbfe;
}

/* Version grid */
.version-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .version-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .version-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.version-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(120, 90, 40, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.version-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(120, 90, 40, 0.14);
}

.version-img-link {
  display: block;
  background: #1a1b2e;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.version-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.version-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.05rem 1.15rem;
}

.version-body h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.version-body p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.version-body .btn {
  align-self: flex-start;
}

/* FAQ / Fixed blocks */
.faq-block {
  background: #fff;
  border: 1px solid #e4e6f0;
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.faq-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.faq-block p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.faq-block p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e4e6f0;
  border-radius: var(--radius);
  padding: 0.15rem 1.15rem 0.15rem;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--coral);
  font-weight: 500;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item a {
  color: var(--coral);
  font-weight: 500;
}

/* Compare table */
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #e0e3ef;
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

.compare-table th,
.compare-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid #eceef6;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--navy);
  background: #f8f9fc;
  width: 22%;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.center-cta {
  text-align: center;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0 0 0.75rem;
  max-width: 52em;
}

.footer-inner a {
  color: var(--cyan);
}

.footer-age {
  color: #fff;
}

.footer-disclosure {
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-copy {
  margin-top: 1.25rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Hero outline on light sections shouldn't apply; only hero uses outline */
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
