/* ============================================================
   Ripper Casino Australia — stylesheet
   Dark theme · gold accent · responsive · CSS-only interactivity
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --c-bg: #1F2326;
  --c-bg-2: #171a1c;
  --c-bg-3: #2a2f33;
  --c-card: #23282c;
  --c-line: #343b40;
  --c-text: #e7eaec;
  --c-muted: #9aa3ab;
  --c-gold: #FFC83D;
  --c-gold-2: #E89B0C;
  --c-gold-soft: rgba(255, 200, 61, .12);
  --c-red: #E84545;
  --c-green: #34c759;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,200,61,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(232,69,69,.06), transparent 55%),
    var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: #ffd86b; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; color: #fff; letter-spacing: .3px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); margin: 0 0 .6em; position: relative; }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 1.6em 0 .5em; color: var(--c-gold); }
h4 { font-size: 1.1rem; margin: 1em 0 .4em; }
p { margin: 0 0 1.1em; color: #d7dadd; }
strong { color: #fff; }

section h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 14px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-2));
  border-radius: 4px;
}

.section { padding: 56px 0; border-top: 1px solid rgba(255,255,255,.04); }
.section:nth-child(even) { background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.lead { font-size: 1.12rem; color: #e7eaec; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,24,26,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  height: 72px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }

.nav-toggle { display: none; }
.nav-menu { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav-menu > li { position: relative; list-style: none; }
.nav-menu a {
  display: block; padding: 10px 14px; color: var(--c-text);
  font-family: var(--font-display); text-transform: uppercase; font-weight: 500;
  font-size: .98rem; letter-spacing: .6px; border-radius: 8px;
}
.nav-menu a:hover { color: var(--c-gold); background: var(--c-gold-soft); }

.has-sub > a::after { content: " ▾"; font-size: .7em; color: var(--c-muted); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #1b1f22; border: 1px solid var(--c-line); border-radius: 10px;
  padding: 8px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; list-style: none;
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { font-size: .9rem; }

.nav-cta { margin-left: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); text-transform: uppercase; font-weight: 600;
  letter-spacing: .8px; cursor: pointer; border: none;
  padding: 14px 26px; border-radius: 999px; font-size: 1rem;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-2));
  color: #1a1305; box-shadow: 0 10px 24px rgba(255,200,61,.28);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 30px rgba(255,200,61,.4); color: #1a1305; }
.btn-outline {
  background: transparent; color: var(--c-gold);
  border: 2px solid var(--c-gold); padding: 12px 24px;
}
.btn-outline:hover { background: var(--c-gold-soft); transform: translateY(-2px); color: var(--c-gold); }
.btn-sm { padding: 9px 16px; font-size: .82rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 75% 30%, rgba(255,200,61,.12), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 3px; font-size: .85rem; color: var(--c-gold);
  border: 1px solid rgba(255,200,61,.4); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px; background: var(--c-gold-soft);
}
.hero h1 { margin-bottom: 14px; }
.hero h1 .accent { color: var(--c-gold); }
.hero-tag { font-size: 1.18rem; color: #cfd4d8; margin-bottom: 22px; }
.hero-rating { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.rating-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--c-gold); line-height: 1; }
.stars { color: var(--c-gold); font-size: 1.2rem; letter-spacing: 2px; }
.rating-sub { font-size: .92rem; color: var(--c-muted); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 18px; border: 1px solid var(--c-line);
  box-shadow: var(--shadow); width: 100%;
}
.hero-badge {
  position: absolute; bottom: -16px; left: -10px;
  background: linear-gradient(135deg, var(--c-red), #b22f2f);
  color: #fff; font-family: var(--font-display); font-weight: 700;
  padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow);
  text-transform: uppercase; letter-spacing: .5px; font-size: .95rem;
}

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.feature {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(255,200,61,.5); }
.feature .ic { font-size: 1.8rem; margin-bottom: 8px; }
.feature h3, .feature h4 { color: var(--c-gold); margin-top: 0; font-size: 1.15rem; }
.feature p { margin: 0; font-size: .96rem; }

/* ---------- Bonus tiers ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.tier {
  background: linear-gradient(180deg, var(--c-card), #1c2023);
  border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; position: relative;
}
.tier .step { font-size: .78rem; letter-spacing: 2px; color: var(--c-muted); text-transform: uppercase; }
.tier .pct { font-family: var(--font-display); font-size: 2.2rem; color: var(--c-gold); font-weight: 700; }
.tier .upto { font-size: .9rem; color: #cfd4d8; }
.tier.feat { border-color: var(--c-gold); box-shadow: 0 0 0 1px rgba(255,200,61,.3) inset; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--radius); border: 1px solid var(--c-line); }
table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: .94rem; }
thead th {
  background: linear-gradient(180deg, #2c3236, #232729);
  color: var(--c-gold); font-family: var(--font-display); text-transform: uppercase;
  font-weight: 600; letter-spacing: .5px; padding: 14px 12px; text-align: left;
  border-bottom: 2px solid var(--c-gold-2); white-space: nowrap;
}
tbody td { padding: 12px; border-bottom: 1px solid var(--c-line); color: #d7dadd; }
tbody tr:nth-child(odd) { background: rgba(255,255,255,.02); }
tbody tr:hover { background: var(--c-gold-soft); }
tbody td:first-child { color: #fff; font-weight: 600; }

/* ---------- Content lists ---------- */
.content ul, .content ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.content ul li, .content ol li {
  position: relative; padding: 6px 0 6px 30px; color: #d7dadd;
}
.content ul li::before {
  content: ""; position: absolute; left: 6px; top: 14px;
  width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-2));
}
.content ol { counter-reset: li; }
.content ol li { counter-increment: li; }
.content ol li::before {
  content: counter(li); position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; font-size: .8rem;
  background: var(--c-gold-soft); color: var(--c-gold); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}

.content img { border-radius: var(--radius); border: 1px solid var(--c-line); margin: 18px 0; box-shadow: var(--shadow); }

/* ---------- Callout ---------- */
.callout {
  background: linear-gradient(135deg, rgba(255,200,61,.1), rgba(232,155,12,.04));
  border: 1px solid rgba(255,200,61,.35); border-left: 4px solid var(--c-gold);
  border-radius: var(--radius); padding: 20px 22px; margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 22px; }
.faq details {
  background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden;
}
.faq details[open] { border-color: rgba(255,200,61,.5); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px;
  font-family: var(--font-display); font-size: 1.08rem; color: #fff;
  position: relative; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--c-gold); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--c-gold); }
.faq .faq-body { padding: 0 20px 18px; color: #cfd4d8; }
.faq .faq-body p { margin: 0; }

/* ---------- Final CTA ---------- */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,200,61,.12), rgba(232,69,69,.08));
  border: 1px solid rgba(255,200,61,.3); border-radius: 20px;
  padding: 40px 24px; margin: 12px 0;
}
.cta-band h2 { display: inline-block; }
.cta-band h2::after { margin: 14px auto 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-bg-2); border-top: 1px solid var(--c-line); padding: 44px 0 26px; margin-top: 20px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-top .brand img { height: 50px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--c-muted); text-transform: uppercase; font-family: var(--font-display); font-size: .9rem; letter-spacing: .5px; }
.footer-links a:hover { color: var(--c-gold); }
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 26px 0; padding: 22px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); opacity: .85; }
.footer-badges img { height: 46px; width: auto; filter: grayscale(.2); }
.footer-note { color: var(--c-muted); font-size: .86rem; max-width: 860px; }
.copyright { color: var(--c-muted); font-size: .85rem; margin-top: 16px; text-align: center; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: rise .7s ease both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 460px; }
  .features { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-cta .btn { padding: 10px 16px; font-size: .85rem; }
  /* Mobile menu via checkbox hack */
  .nav-toggle-label {
    display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer;
    margin-left: auto; padding: 8px;
  }
  .nav-toggle-label span { width: 26px; height: 3px; background: var(--c-gold); border-radius: 2px; transition: .25s; }
  .nav-cta { margin-left: 14px; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #1b1f22; border-bottom: 1px solid var(--c-line); padding: 10px;
    gap: 2px; max-height: 0; overflow: hidden; transition: max-height .3s ease; margin: 0;
  }
  .nav-toggle:checked ~ .nav-menu { max-height: 520px; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 14px; background: transparent; }
  .features, .tiers { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
