/* ============================================================
   XX88 — Ocean/Sand Stylesheet
   Mobile-first, hand-written CSS
   ============================================================ */

/* ------------------------------------------------------------
   0. Custom Properties
   ------------------------------------------------------------ */
:root {
  --base:    #0C3A54;
  --deep:    #062435;
  --accent:  #F0B67F;
  --accent2: #4FB6C8;
  --surface: #F4F7F8;
  --ink:     #0F2533;
  --muted:   #54707F;

  --radius:  4px;
  --container: 1200px;

  --font-heading: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body:    'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------
   1. Reset / Base
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  background: var(--surface);
  color: var(--ink);
}

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

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

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

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

ul {
  list-style: none;
}

/* ------------------------------------------------------------
   2. Typography
   ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--base);
  line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

/* ------------------------------------------------------------
   3. Container
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ------------------------------------------------------------
   4. Utility Strip (above header)
   ------------------------------------------------------------ */
.utility-strip {
  background: var(--deep);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.age-notice {
  color: var(--accent);
  font-weight: 600;
}

.utility-right {
  color: var(--muted);
}

/* ------------------------------------------------------------
   5. Site Header
   ------------------------------------------------------------ */
.site-header {
  background: var(--base);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(6, 36, 53, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Logo wordmark — pure CSS text mark */
.logo-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  gap: 0;
  flex-shrink: 0;
}

.logo-xx {
  color: #ffffff;
  text-shadow: 0 0 18px rgba(79, 182, 200, 0.6);
}

.logo-88 {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(240, 182, 127, 0.55);
}

.logo-wordmark:hover .logo-xx {
  color: var(--accent2);
}

.logo-wordmark:hover .logo-88 {
  color: #ffffff;
}

.logo-wordmark:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Main Nav */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  align-items: center;
  flex: 1;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.main-nav a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Header CTA button */
.btn-header {
  background: var(--accent);
  color: var(--deep);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(240, 182, 127, 0.3);
}

.btn-header:hover {
  background: #f8ca9e;
  box-shadow: 0 4px 14px rgba(240, 182, 127, 0.5);
}

.btn-header:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   6. Bonus Banners
   ------------------------------------------------------------ */
.bonus-banner {
  background: linear-gradient(135deg, var(--deep) 0%, var(--base) 55%, #0e4d6e 100%);
  color: #ffffff;
  padding: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background shape */
.bonus-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(79, 182, 200, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 85% 30%, rgba(240, 182, 127, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.banner-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0;
}

/* Bordered offer box */
.banner-offer-box {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 2rem;
  background: rgba(255, 255, 255, 0.06);
  max-width: 580px;
  width: 100%;
}

.offer-headline {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.offer-headline strong {
  color: var(--accent);
}

.offer-sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* CTA button */
.btn-cta {
  background: var(--accent);
  color: var(--deep);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(240, 182, 127, 0.4);
}

.btn-cta:hover {
  background: #f8ca9e;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(240, 182, 127, 0.55);
}

.btn-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.banner-terms {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

/* ------------------------------------------------------------
   7. Main Content Area
   ------------------------------------------------------------ */
.main-content {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

/* ------------------------------------------------------------
   8. Intro Section
   ------------------------------------------------------------ */
.intro-section {
  margin-bottom: 3rem;
}

.site-h1 {
  font-size: 2.5rem;
  color: var(--base);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.site-h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 0.4rem;
}

.intro-lead {
  font-size: 1.08rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* ------------------------------------------------------------
   9. Section Blocks
   ------------------------------------------------------------ */
.section-block {
  margin-bottom: 3rem;
}

.section-block h2 {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.section-block h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--accent2);
  border-radius: 2px;
}

.section-block h3 {
  color: var(--base);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------
   10. Steps Grid (Registration Walkthrough)
   ------------------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.step-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(84, 112, 127, 0.2);
  padding: 1.4rem 1.4rem 1.4rem 3.8rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(12, 58, 84, 0.07);
  transition: box-shadow 0.2s;
}

.step-card:hover {
  box-shadow: 0 4px 18px rgba(12, 58, 84, 0.13);
}

.step-num {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  width: 2rem;
  height: 2rem;
  background: var(--accent2);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
  line-height: 1;
}

.step-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--base);
  font-size: 1.05rem;
}

.step-card p {
  font-size: 0.93rem;
  color: var(--ink);
  margin: 0;
}

/* ------------------------------------------------------------
   11. Tables
   ------------------------------------------------------------ */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(84, 112, 127, 0.2);
}

.data-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
}

.data-table thead tr {
  border-bottom: 2px solid var(--accent2);
}

.data-table th {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--deep);
  white-space: nowrap;
}

.data-table td {
  padding: 0.75rem 1rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(84, 112, 127, 0.15);
  vertical-align: top;
}

/* No zebra — only horizontal rules */
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: rgba(79, 182, 200, 0.06);
}

/* ------------------------------------------------------------
   12. Mid-page Banner (inside main, full-width break)
   ------------------------------------------------------------ */
.banner-mid {
  margin-left: calc(-1 * 1rem);
  margin-right: calc(-1 * 1rem);
  border-radius: 0;
}

/* ------------------------------------------------------------
   13. Info Cards Grid
   ------------------------------------------------------------ */
.cards-section h2 {
  margin-bottom: 0.75rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-card {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(84, 112, 127, 0.18);
  padding: 1.6rem 1.4rem 1.4rem;
  position: relative;
  box-shadow: 0 2px 12px rgba(12, 58, 84, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.info-card:hover {
  box-shadow: 0 6px 24px rgba(12, 58, 84, 0.14);
  transform: translateY(-2px);
}

/* Circled numeral in the corner */
.card-num {
  position: absolute;
  top: -0.9rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--deep);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(240, 182, 127, 0.4);
  line-height: 1;
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--base);
  font-size: 1.1rem;
}

.info-card p {
  font-size: 0.93rem;
  color: var(--ink);
  margin: 0;
  flex: 1;
}

/* Card button */
.btn-card {
  align-self: flex-start;
  background: var(--accent);
  color: var(--deep);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(240, 182, 127, 0.3);
  margin-top: 0.25rem;
}

.btn-card:hover {
  background: #f8ca9e;
  box-shadow: 0 4px 12px rgba(240, 182, 127, 0.5);
}

.btn-card:focus-visible {
  outline: 3px solid var(--base);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   14. FAQ Accordion (CSS-only via details/summary)
   ------------------------------------------------------------ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(84, 112, 127, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(12, 58, 84, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item[open] {
  box-shadow: 0 3px 14px rgba(12, 58, 84, 0.12);
  border-color: var(--accent2);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--base);
  list-style: none;
  user-select: none;
  transition: background 0.15s, color 0.15s;
}

/* Remove default marker in all browsers */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

.faq-question:hover {
  background: rgba(79, 182, 200, 0.07);
  color: var(--deep);
}

.faq-item[open] .faq-question {
  background: rgba(79, 182, 200, 0.1);
  color: var(--deep);
  border-bottom: 1px solid rgba(84, 112, 127, 0.15);
}

.faq-question:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: -3px;
}

/* CSS-only rotating chevron */
.faq-chevron {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
  display: inline-block;
  transition: transform 0.25s ease;
}

/* Chevron drawn with pseudo-elements */
.faq-chevron::before,
.faq-chevron::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.55rem;
  height: 2px;
  background: var(--accent2);
  border-radius: 1px;
  transition: transform 0.25s ease, background 0.15s;
}

.faq-chevron::before {
  left: 0;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: right center;
}

.faq-chevron::after {
  right: 0;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: left center;
}

/* Rotate chevron when open */
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item[open] .faq-chevron::before,
.faq-item[open] .faq-chevron::after {
  background: var(--accent);
}

.faq-answer {
  padding: 1rem 1.2rem 1.2rem;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

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

/* ------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--base);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  margin-top: 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-logo {
  font-size: 2rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--accent2);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

.footer-age {
  color: var(--accent) !important;
}

.footer-bottom {
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.9rem 0;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   16. Responsive — 640px breakpoint
   ============================================================ */
@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .utility-strip {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .banner-mid {
    margin-left: calc(-1 * 1.5rem);
    margin-right: calc(-1 * 1.5rem);
  }

  .offer-headline {
    font-size: 1.75rem;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-table {
    min-width: 640px;
  }

  .bonus-banner {
    padding: 3rem 0;
  }

  .faq-question {
    font-size: 1.05rem;
  }
}

/* ============================================================
   17. Responsive — 1024px breakpoint
   ============================================================ */
@media (min-width: 1024px) {
  body {
    font-size: 17px;
  }

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .utility-strip {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .banner-mid {
    margin-left: calc(-1 * 2rem);
    margin-right: calc(-1 * 2rem);
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 2rem;
  }

  .main-nav {
    gap: 0.25rem 1.5rem;
  }

  .main-nav a {
    font-size: 0.88rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr 2fr;
    gap: 3rem;
  }

  .bonus-banner {
    padding: 4rem 0;
  }

  .offer-headline {
    font-size: 2rem;
  }

  .banner-offer-box {
    padding: 1.6rem 2.5rem;
  }

  .site-h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .main-content {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .section-block {
    margin-bottom: 3.5rem;
  }

  .faq-question {
    padding: 1.1rem 1.4rem;
    font-size: 1.08rem;
  }

  .faq-answer {
    padding: 1.1rem 1.4rem 1.4rem;
  }

  .step-card {
    padding: 1.5rem 1.5rem 1.5rem 4rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.9rem 1.25rem;
  }
}

/* ============================================================
   18. Responsive — 1200px breakpoint
   ============================================================ */
@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner-mid {
    margin-left: calc((100vw - var(--container)) / -2);
    margin-right: calc((100vw - var(--container)) / -2);
  }
}

/* ============================================================
   19. Accessibility / Focus Utilities
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .btn-cta:hover,
  .info-card:hover {
    transform: none;
  }
}