/* Craps Royale — shared styles. Mobile-first; column max-width 460px. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #080503;
  color: rgba(245, 238, 220, 0.7);
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: #F4D772; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout columns ---- */
.col {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.col-home {
  background:
    radial-gradient(130% 50% at 50% 0%, #1d1308 0%, #0c0805 42%, #070504 100%);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}
.col-doc {
  padding: 0 22px;
  background:
    radial-gradient(130% 50% at 50% 0%, #1d1308 0%, #0c0805 42%, #070504 100%);
  min-height: 100vh;
}

/* ---- Typography helpers ---- */
.cinzel { font-family: 'Cinzel', serif; }
.barlow-sc { font-family: 'Barlow Semi Condensed', sans-serif; }

.eyebrow {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9962E;
}
.subhead {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E9D8A6;
}

.gold-foil {
  background: linear-gradient(180deg, #FFF7D2 0%, #F7DE84 24%, #E6BB52 46%, #B07F2A 72%, #8C6420 86%, #EAC56F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 100% 220%;
  text-shadow: 0 2px 1px rgba(0,0,0,0.6);
  animation: goldShimmer 7s ease-in-out infinite alternate;
}
.section-title-gradient {
  background: linear-gradient(180deg, #FBEDB0, #E6BB52 55%, #A87E2C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.small-wordmark {
  background: linear-gradient(180deg, #F6E4A6, #C9962E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes goldShimmer {
  0% { background-position: 50% 0; }
  100% { background-position: 50% 100%; }
}
@keyframes floatYrot {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-3deg) translateY(-9px); }
}
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 6px 18px rgba(0,0,0,0.5),
      0 0 22px rgba(231,190,85,0.25),
      0 0 0 1px rgba(231,190,85,0.55) inset;
  }
  50% {
    box-shadow:
      0 6px 18px rgba(0,0,0,0.5),
      0 0 34px rgba(231,190,85,0.5),
      0 0 0 1px rgba(231,190,85,0.85) inset;
  }
}

/* ---- Flourish divider ---- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px auto;
}
.flourish .rule { width: 44px; height: 1px; }
.flourish .rule.l { background: linear-gradient(90deg, transparent, #C9962E); }
.flourish .rule.r { background: linear-gradient(270deg, transparent, #C9962E); }
.flourish .diamond { color: #C9962E; font-size: 11px; line-height: 1; }

/* ---- App Store badge ---- */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  border-radius: 13px;
  background: linear-gradient(180deg, #1a1a1a, #000);
  border: 1px solid rgba(231,190,85,0.55);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  color: #fff;
  text-decoration: none;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge .apple {
  width: 20px; height: 24px; fill: #fff; flex: none;
}
.appstore-badge .stack { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.appstore-badge .stack .top { font-size: 9px; opacity: 0.85; }
.appstore-badge .stack .bot { font-size: 17px; font-weight: 600; margin-top: 2px; }
.appstore-badge.pulse { animation: glowPulse 4s ease-in-out infinite; }

/* ---- Sections (home) ---- */
.section {
  padding: 46px 26px;
  border-top: 1px solid rgba(231,190,85,0.12);
}
.section.hero {
  padding: 30px 26px 38px;
  position: relative;
  border-top: none;
  background: radial-gradient(125% 60% at 50% -8%, #2c1e0e, #150d06 46%, #080503 100%);
  overflow: hidden;
}
.section.features { background: linear-gradient(180deg, #0b0703, #0e0a05); }
.section.practice { background: radial-gradient(120% 55% at 50% 0%, #1a0f0a, #0b0703); }
.section.levelup  { background: linear-gradient(180deg, #0b0703, #0e0a05); }
.section.bets {
  background: radial-gradient(135% 70% at 50% 100%, #0a3f24, #072a18 50%, #06180e 100%);
}
.section.cta-band {
  background: linear-gradient(180deg, #150d06, #080503);
  border-top: 1px solid rgba(231,190,85,0.2);
  text-align: center;
  padding: 38px 26px;
}

.hero .bokeh {
  position: absolute;
  top: -40px; right: -60px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(231,190,85,0.2), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

/* Inline header used in hero */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.hero-header .wordmark-sm {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.hero-header nav a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233,216,166,0.6);
  margin-left: 18px;
}
.hero-header nav a:hover { color: #E9D8A6; text-decoration: none; }

/* Hero content */
.hero-inner { text-align: center; position: relative; z-index: 1; }
.hero-eyebrow { margin: 22px auto 10px; color: rgba(231,190,85,0.6); }
.h1-wordmark {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 54px;
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 6px 0 14px;
}
.tagline {
  max-width: 340px;
  margin: 14px auto 22px;
  color: rgba(245,238,220,0.7);
  font-size: 14.5px;
}

/* Section titles */
.h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.08;
  text-align: center;
  margin: 0 0 8px;
}
.h2.small { font-size: 24px; }
.section .sub {
  text-align: center;
  margin: 4px auto 22px;
  max-width: 340px;
  color: rgba(245,238,220,0.7);
  font-size: 14.5px;
}

/* Feature rows */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}
.feature-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.icon-circle {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 32%, rgba(231,190,85,0.2), rgba(0,0,0,0.2));
  border: 1px solid rgba(231,190,85,0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 4px 12px rgba(0,0,0,0.4);
  color: #F4D772;
  font-size: 21px;
  line-height: 1;
}
.icon-circle.sm { width: 44px; height: 44px; font-size: 20px; }
.feature-title {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F4D772;
  margin: 2px 0 4px;
}
.feature-body {
  color: rgba(245,238,220,0.7);
  font-size: 14px;
  line-height: 1.5;
}

/* Bar-chart icon (Session Reports) */
.bar-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.bar-icon span {
  display: block;
  width: 4px;
  background: #F4D772;
  border-radius: 1px;
}
.bar-icon span:nth-child(1) { height: 8px; }
.bar-icon span:nth-child(2) { height: 13px; }
.bar-icon span:nth-child(3) { height: 17px; }

/* Phone mockup */
.phone {
  margin: 28px auto 0;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 19.5 / 9;
  border-radius: 30px;
  padding: 5px;
  background: linear-gradient(135deg, #caa44a, #7a5a1e 38%, #e9cf86 66%, #6e4f1a);
  box-shadow:
    0 26px 50px -14px rgba(0,0,0,0.8),
    inset 0 0 0 1px rgba(255,255,255,0.12);
  position: relative;
}
.phone.float { animation: floatYrot 6s ease-in-out infinite; transform: rotate(-3deg); }
.phone .screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background: #000;
}
.phone .screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.phone .island {
  position: absolute;
  left: 8px; top: 50%;
  width: 7px; height: 56px;
  background: #000;
  border-radius: 6px;
  transform: translateY(-50%);
  z-index: 2;
}

/* XP widget */
.xp-widget {
  max-width: 300px;
  margin: 6px auto 22px;
}
.xp-top {
  display: flex; justify-content: space-between;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #E9D8A6;
  margin-bottom: 8px;
}
.xp-top .xp-amt { opacity: 0.7; font-weight: 500; }
.xp-bar {
  height: 9px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(231,190,85,0.25);
  overflow: hidden;
}
.xp-fill {
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #7a5cff, #b9a4ff);
  box-shadow: 0 0 12px rgba(140,110,255,0.6);
  border-radius: 6px;
}

/* Tag chips (bets) */
.tags {
  display: flex; flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 18px;
}
.tag {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #E9D8A6;
  background: linear-gradient(180deg, rgba(231,190,85,0.1), rgba(0,0,0,0.2));
  border: 1px solid rgba(231,190,85,0.3);
  border-radius: 999px;
  padding: 7px 13px;
}
.tag.hi {
  color: #F4D772;
  background: linear-gradient(180deg, rgba(231,190,85,0.22), rgba(0,0,0,0.2));
  border-color: rgba(231,190,85,0.55);
}

/* CTA band */
.cta-line {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
}
.cta-line .d { color: #C9962E; margin: 0 8px; }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 38px 26px 32px;
  border-top: 1px solid rgba(231,190,85,0.14);
}
.footer .wordmark-lg {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.footer nav {
  display: flex; justify-content: center; gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer nav a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233,216,166,0.7);
}
.footer nav a.current { color: #E9D8A6; }
.footer .email-link {
  display: inline-block;
  font-size: 13px;
  color: #F4D772;
  margin-bottom: 14px;
}
.footer .disclaimer {
  max-width: 340px;
  margin: 14px auto 12px;
  color: rgba(245,238,220,0.4);
  font-size: 11px;
  line-height: 1.55;
}
.footer .madeby {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,238,220,0.5);
  margin-bottom: 6px;
}
.footer .madeby a {
  color: #F4D772;
}
.footer .copyright {
  color: rgba(245,238,220,0.3);
  font-size: 11px;
}

/* ---- Doc page header ---- */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 18px;
  border-bottom: 1px solid rgba(231,190,85,0.14);
}
.doc-header .wordmark-sm {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
}
.doc-header nav a {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(233,216,166,0.6);
  margin-left: 18px;
}
.doc-header nav a.current { color: #E9D8A6; }
.doc-header nav a:hover { color: #E9D8A6; text-decoration: none; }

/* Doc title block */
.doc-title-block { text-align: center; padding: 34px 0 12px; }
.h1-doc {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 6px 0 12px;
}
.doc-intro {
  max-width: 380px;
  margin: 0 auto;
  color: rgba(245,238,220,0.7);
  font-size: 14.5px;
}

/* Contact / highlight card */
.card {
  background: linear-gradient(180deg, rgba(40,30,15,0.7), rgba(20,14,7,0.5));
  border: 1px solid rgba(231,190,85,0.35);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,0.7);
  margin: 24px 0;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card:hover { text-decoration: none; }
.card .card-eyebrow {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9962E;
  margin-bottom: 8px;
}
.card .card-email {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 19px;
  color: #F4D772;
  margin: 4px 0 8px;
  word-break: break-all;
}
.card .card-sub {
  font-size: 13.5px;
  color: rgba(245,238,220,0.66);
  line-height: 1.55;
}
.card .diamond-lg {
  font-size: 26px;
  color: #F4D772;
  display: block;
  margin-bottom: 6px;
}
.card h3 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  color: #F4D772;
  margin: 4px 0 8px;
}

/* FAQ */
.faq-group {
  margin: 32px 0 4px;
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9962E;
}
details.faq {
  border-bottom: 1px solid rgba(231,190,85,0.13);
}
details.faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: #F0E4C2;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq .crq {
  flex: none;
  color: #C9962E;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
details.faq[open] .crq { transform: rotate(45deg); }
details.faq .a {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245,238,220,0.66);
}
details.faq .a p + p { margin-top: 10px; }
details.faq .a ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
details.faq .a li { margin: 4px 0; }

/* Privacy prose */
.prose h2 {
  font-family: 'Barlow Semi Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F4D772;
  margin: 34px 0 10px;
}
.prose p {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(245,238,220,0.7);
  margin: 0 0 12px;
}
.prose a.lnk {
  color: #F4D772;
  text-decoration: underline;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gold-foil { animation: none; }
  .phone.float { animation: none; }
  .appstore-badge.pulse { animation: none; }
}

/* =========================================================
   Responsive scale-up — iPad and desktop
   Mobile (<=767px) stays exactly as designed.
   ========================================================= */

/* ---- iPad / small desktop: 768px+ ---- */
@media (min-width: 768px) {
  body {
    background:
      radial-gradient(60% 40% at 50% 0%, #1d1308 0%, #0c0805 60%, #070504 100%);
  }

  /* Widen the column so it doesn't read as a phone strip */
  .col { max-width: 760px; }
  .col-home { box-shadow: 0 0 120px rgba(0,0,0,0.75); }
  .col-doc { padding: 0 40px; }

  /* Section breathing room */
  .section { padding: 72px 48px; }
  .section.hero { padding: 56px 48px 64px; }
  .section.cta-band { padding: 56px 48px; }

  /* Type scale */
  .h1-wordmark { font-size: 88px; }
  .h2 { font-size: 36px; }
  .h2.small { font-size: 32px; }
  .h1-doc { font-size: 54px; }
  .tagline, .sub { max-width: 460px; font-size: 16px; }
  .feature-body { font-size: 15px; }

  /* Hero: text + phone side-by-side */
  .section.hero .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
    text-align: left;
  }
  .section.hero .hero-inner > .eyebrow,
  .section.hero .hero-inner > .flourish,
  .section.hero .hero-inner > .h1-wordmark,
  .section.hero .hero-inner > .subhead,
  .section.hero .hero-inner > .tagline,
  .section.hero .hero-inner > .appstore-badge {
    grid-column: 1;
    justify-self: start;
  }
  .section.hero .hero-inner > .flourish { margin-left: 0; }
  .section.hero .hero-inner > .tagline { margin-left: 0; }
  .section.hero .hero-inner > .phone {
    grid-column: 2;
    grid-row: 1 / span 6;
    max-width: 100%;
    margin: 0;
    justify-self: center;
  }

  /* Features and other sections: 2-column grid of rows */
  .features .feature-list,
  .practice .feature-list,
  .levelup .feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
  }

  /* Practice section: phone bigger, centered above grid */
  .section.practice .phone { max-width: 520px; }

  /* Larger phone bezel/screen */
  .phone { max-width: 460px; border-radius: 36px; padding: 6px; }
  .phone .screen { border-radius: 30px; }
  .phone .island { height: 72px; width: 8px; }

  /* Doc pages — wider prose */
  .doc-intro { max-width: 560px; font-size: 16px; }
  .prose p { font-size: 15.5px; }
  details.faq > summary { font-size: 17px; padding: 22px 0; }
  details.faq .a { font-size: 15px; padding-bottom: 22px; }

  /* Footer */
  .footer { padding: 56px 48px 44px; }
  .footer .wordmark-lg { font-size: 32px; }
}

/* ---- Desktop: 1100px+ ---- */
@media (min-width: 1100px) {
  .col { max-width: 1080px; }
  .col-doc { padding: 0 64px; }

  .section { padding: 96px 72px; }
  .section.hero { padding: 72px 72px 80px; }
  .section.cta-band { padding: 72px 72px; }

  .h1-wordmark { font-size: 112px; }
  .h2 { font-size: 44px; }
  .h2.small { font-size: 38px; }
  .h1-doc { font-size: 68px; }
  .tagline, .sub { max-width: 520px; font-size: 17px; }

  /* Hero side-by-side gets more room */
  .section.hero .hero-inner { gap: 56px; }
  .section.hero .hero-inner > .phone { max-width: 560px; }

  /* Features go 3-up on wide screens for density */
  .features .feature-list { grid-template-columns: 1fr 1fr 1fr; }
  .levelup .feature-list { grid-template-columns: 1fr 1fr 1fr; }

  /* Practice phone center-stage */
  .section.practice .phone { max-width: 640px; }

  /* Doc prose stays comfortably narrow even in wide column */
  .col-doc .doc-title-block,
  .col-doc .card,
  .col-doc .faq-group,
  .col-doc details.faq,
  .col-doc .prose { max-width: 760px; margin-left: auto; margin-right: auto; }
}
