/* SCOREPAD — Marketing Website Stylesheet
   Theme: Ultra-minimalistic Web 2.0 tactile paper aesthetic
   Palette: Offwhite / light wheat, dark green, grey, black, maroon
   Typography: Strictly sans-serif fonts
   Performance: Zero external dependencies, pure CSS3, 100 PageSpeed target
*/

/* Self-Hosted DM Sans Font (Variable woff2, weights 100-1000) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paper Palette */
  --bg-wheat: #F5F1E8;
  --bg-wheat-light: #FAF7F0;
  --bg-wheat-dark: #EAE3D2;
  --bg-card: #FAF8F2;
  --bg-slit-cut: #1C2320;

  /* Brand Accents */
  --green-dark: #163A2B;
  --green-hover: #1E4E3A;
  --green-deep: #0D261C;
  --green-glow: rgba(22, 58, 43, 0.14);

  --maroon: #7A202E;
  --maroon-hover: #631722;
  --maroon-light: #F4E8EA;

  /* Neutral Spectrum */
  --black: #111827;
  --grey-dark: #2D3748;
  --grey-medium: #4A5568;
  --grey-light: #718096;
  --grey-faint: #A0AEC0;

  --border-paper: #E4DCCB;
  --border-paper-dark: #D4C9B3;

  /* Typography: Self-hosted DM Sans */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container-max: 1120px;
  --section-gap: clamp(72px, 10vw, 130px);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-wheat);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;

  /* Tactile wheat paper grain & organic fiber noise */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35) 0%, rgba(245, 241, 232, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='paper-noise' x='0%25' y='0%25' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.18  0 0 0 0 0.13  0 0 0 0 0.08  0.34 0 0 0 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23paper-noise)'/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
}

/* Focus outline for accessibility */
:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
}

/* Accessibility skip link (visually hidden until keyboard focused, preventing overscroll peek) */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  top: 20px;
  left: 20px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--green-dark);
  color: #FFFFFF;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 4vw, 36px);
  padding-right: clamp(20px, 4vw, 36px);
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--black);
  line-height: 1.18;
  letter-spacing: -0.005em;
  font-weight: 700;
}

p {
  color: var(--grey-medium);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   A. Header Section
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-paper);
  transition: all 0.25s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

/* Logo: Fluid sans-serif */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: clamp(26px, 3.2vw, 32px);
  width: auto;
  max-width: 165px;
  display: block;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
}

.mobile-nav-content {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-group-primary {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav-group-contact {
  display: flex;
  align-items: center;
}

.nav-group-divider {
  display: none;
}

.nav-group-legal {
  display: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--grey-dark);
  letter-spacing: -0.015em;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--green-dark);
  background-color: rgba(22, 58, 43, 0.06);
}

/* Flat Yellowish-Orange Pill Button for Contact */
.nav-link.nav-link-pill-orange {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #F5A623 !important;
  background: #F5A623 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.15s ease !important;
}

.nav-link.nav-link-pill-orange:hover {
  background-color: #E29314 !important;
  background: #E29314 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3) !important;
  transform: none !important;
}

.nav-link.nav-link-pill-orange:active {
  background-color: #D48810 !important;
  background: #D48810 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-paper-dark);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--black);
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1003;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:active {
  background: rgba(22, 58, 43, 0.06);
}

.mobile-nav-toggle .icon-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle .icon-close {
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle.is-active .icon-hamburger,
.mobile-nav-toggle[aria-expanded="true"] .icon-hamburger {
  display: none;
}

.mobile-nav-toggle.is-active .icon-close,
.mobile-nav-toggle[aria-expanded="true"] .icon-close {
  display: flex;
}

/* ==========================================================================
   B. Hero Section & The Slit in the Paper
   ========================================================================== */
/* ==========================================================================
   B. Hero Section
   - Top framing line
   - Headline: "The app for local golf tournaments."
   - Two-column split:
     - Left: Copy + standard store buttons
     - Right: Full mobile phone in side perspective (paper texture + vignette + logo)
/* ==========================================================================
   B. Hero Section (Centered Viewport-Height Layout)
   - Top framing line
   - Centered headline: "The app for local golf tournaments."
   - Centered subtext immediately below
   - Centered hero image: scorepad_hero.png
   - Centered App Store and Play Store buttons immediately below
   - Bottom framing line
   - Fits the height of the browser viewport
   ========================================================================== */
.hero-section {
  min-height: calc(100vh - 74px);
  min-height: calc(100dvh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(12px, 2vh, 24px);
  padding-bottom: clamp(12px, 2vh, 24px);
  position: relative;
  box-sizing: border-box;
  text-align: center;
}

.hero-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

/* Centered Content Stack */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  flex: 1;
  margin: auto 0;
}

/* Centered Headline */
.hero-header-block {
  text-align: center;
  margin-bottom: clamp(6px, 1vh, 10px);
}

.hero-headline {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  letter-spacing: 0.005em;
  font-weight: 700;
  color: var(--black);
  line-height: 1.18;
  text-align: center;
  margin: 0 auto;
  max-width: 820px;
}

/* Centered Subtext immediately below headline */
.hero-subtext {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--grey-medium);
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 auto clamp(10px, 1.8vh, 20px) auto;
  max-width: 580px;
}

/* Centered Hero Image */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto clamp(10px, 1.8vh, 22px) auto;
  max-width: 100%;
}

.hero-image {
  max-height: clamp(200px, 44vh, 430px);
  width: auto;
  max-width: 92vw;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(17, 24, 39, 0.08));
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-2px);
}

/* Centered Store Buttons immediately below image */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Device-specific Store Badge Visibility (Desktop shows both, iPhone shows App Store, Android shows Google Play) */
html.device-iphone .play-store-badge,
body.device-iphone .play-store-badge {
  display: none !important;
}

html.device-android .app-store-badge,
body.device-android .app-store-badge {
  display: none !important;
}

/* Standard Official App Store & Play Store Badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 8px 18px 8px 14px;
  border-radius: 8px; /* Official standard badge radius */
  border: 1px solid #27272A;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 162px;
  position: relative;
}

.store-badge:hover {
  background-color: #0F0F0F;
  border-color: #3F3F46;
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.22),
    0 10px 22px rgba(0, 0, 0, 0.25);
}

.store-badge:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Icons */
.store-badge-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.google-play-icon {
  width: 24px;
  height: 24px;
}

/* Standard Store Typography */
.store-badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.store-badge-sub {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #D1D5DB;
  text-transform: uppercase;
}

.app-store-badge .store-badge-sub {
  text-transform: none;
}

.store-badge-main {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

/* ==========================================================================
   Sections 2 through 6 (Minimalist, generous negative space)
   ========================================================================== */
.feature-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-top: clamp(28px, 4vh, 56px);
  padding-bottom: clamp(28px, 4vh, 56px);
  position: relative;
  z-index: 12;
}

/* Section 1: Discovery (Viewport Height) */
#tournaments.section-discovery {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-top: clamp(28px, 4vh, 56px);
  padding-bottom: clamp(28px, 4vh, 56px);
}

.section-meta-discover {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.section-meta-logo-dots {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Section 1: Mobile App Screen Mockup Image */
.mockup-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.mockup-screen-img {
  display: block;
  max-height: min(640px, 72vh);
  width: auto;
  max-width: 100%;
  height: auto;
  aspect-ratio: 768 / 1376;
  border-radius: 36px;
  box-shadow: 
    0 4px 6px -1px rgba(17, 24, 39, 0.04),
    0 24px 50px -12px rgba(17, 24, 39, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-screen-img:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 10px -1px rgba(17, 24, 39, 0.06),
    0 30px 60px -12px rgba(17, 24, 39, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

.feature-section:nth-of-type(even) {
  background-color: rgba(250, 247, 240, 0.45);
  border-top: 1px solid rgba(228, 220, 203, 0.6);
  border-bottom: 1px solid rgba(228, 220, 203, 0.6);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
}

.feature-grid.reverse {
  direction: rtl;
}
.feature-grid.reverse > * {
  direction: ltr;
}

/* Section Text Content */
.section-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.section-meta.maroon {
  color: var(--maroon);
}

.section-meta-dot {
  width: 6px;
  height: 6px;
  background-color: currentColor;
  border-radius: 50%;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1.18;
  color: var(--black);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 480px;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--grey-medium);
}

/* Minimalist Tactile Cards / Graphic Badges */
.feature-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-paper);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 
    0 2px 4px rgba(17, 24, 39, 0.03),
    0 10px 28px -6px rgba(17, 24, 39, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-visual-card:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 4px 8px rgba(17, 24, 39, 0.04),
    0 16px 36px -6px rgba(17, 24, 39, 0.09);
}

/* Visual Card Inner Components */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(22, 58, 43, 0.08);
  border: 1px solid rgba(22, 58, 43, 0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 18px;
}

.card-badge.maroon-badge {
  background: rgba(122, 32, 46, 0.08);
  border-color: rgba(122, 32, 46, 0.15);
  color: var(--maroon);
}

/* Leaderboard Rows (Section 3 Visual) */
.leaderboard-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid var(--border-paper);
  font-size: 0.875rem;
  font-weight: 600;
}

.lb-row.leader {
  background: #F1F7F4;
  border-color: #BBDDCE;
  color: var(--green-dark);
}

.lb-pos {
  width: 22px;
  font-weight: 800;
  font-size: 0.8125rem;
}

.lb-name {
  flex: 1;
  margin-left: 8px;
}

.lb-score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Chat bubble preview (Section 4 Visual) */
.chat-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  max-width: 82%;
  line-height: 1.4;
}

.chat-bubble.in {
  background: #FFFFFF;
  border: 1px solid var(--border-paper);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.out {
  background: var(--green-dark);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Provisions 3-Column Section (Everything you need in one place) */
.provisions-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-top: clamp(28px, 4vh, 56px);
  padding-bottom: clamp(28px, 4vh, 56px);
}

.provisions-title {
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  letter-spacing: -0.015em;
  line-height: 1.18;
  max-width: 840px;
  margin: 0 auto clamp(44px, 7vh, 80px);
}

.provisions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.provision-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: none;
}

.provision-image-wrap {
  width: clamp(140px, 14vw, 185px);
  height: clamp(140px, 14vw, 185px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50%);
  -webkit-clip-path: circle(50%);
  background-color: #FAF7F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(16px, 2vh, 24px);
  box-shadow: 0 4px 14px rgba(22, 58, 43, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.provision-card:hover .provision-image-wrap {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(22, 58, 43, 0.13);
}

.provision-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.provision-caption {
  font-family: var(--font-sans);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
  margin-top: auto;
  text-align: center;
}

@media (max-width: 860px) {
  .provisions-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 36px;
  }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-section {
  padding: clamp(64px, 10vh, 110px) 0 clamp(72px, 11vh, 120px) 0;
  position: relative;
  z-index: 10;
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-title {
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 auto clamp(40px, 6vh, 64px) auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-paper);
  border-radius: 20px;
  padding: clamp(32px, 3.8vw, 44px) clamp(16px, 1.8vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 18px rgba(22, 58, 43, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(22, 58, 43, 0.09);
  border-color: rgba(22, 58, 43, 0.18);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.contact-card-icon.whatsapp {
  background-color: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.contact-card-icon.call {
  background-color: rgba(22, 58, 43, 0.08);
  color: var(--green-dark);
}

.contact-card-icon.email {
  background-color: rgba(245, 166, 35, 0.12);
  color: #E29314;
}

.contact-col-heading {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  margin: 0 0 18px 0;
  line-height: 1.25;
}

.contact-action-wrap {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25D366;
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.05vw, 0.98rem);
  padding: 11px 20px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
}

.whatsapp-btn:hover {
  background-color: #20BA56;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.42);
}

.whatsapp-btn:active {
  background-color: #1DA84E;
  transform: translateY(0);
}

.whatsapp-btn svg {
  flex-shrink: 0;
}

.contact-info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.05vw, 0.98rem);
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 9999px;
  background-color: rgba(22, 58, 43, 0.05);
  border: 1px solid rgba(22, 58, 43, 0.1);
  transition: all 0.2s ease;
  white-space: nowrap;
  max-width: 100%;
}

.contact-info-link:hover {
  background-color: var(--green-dark);
  color: #FFFFFF !important;
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 58, 43, 0.2);
}

.contact-info-link:active {
  transform: translateY(0);
}

/* ==========================================================================
   G. Get The App CTA Section (Just above Footer)
   ========================================================================== */
.get-app-section {
  min-height: clamp(300px, 40vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(64px, 10vh, 120px) 0;
  text-align: center;
  position: relative;
  z-index: 12;
  border-top: 1px solid rgba(228, 220, 203, 0.6);
  background-color: rgba(250, 247, 240, 0.45);
}

.get-app-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  text-align: center;
}

.get-app-title {
  font-family: var(--font-sans);
  font-size: clamp(2.2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.get-app-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  margin: 0;
}

/* ==========================================================================
   H. Footer Section
   ========================================================================== */
.site-footer {
  background-color: var(--bg-wheat);
  border-top: 1px solid var(--border-paper);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(36px, 5vw, 56px);
  position: relative;
  z-index: 12;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-paper);
}

.footer-tagline {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--grey-light);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--grey-light);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  flex-wrap: wrap;
  list-style: none;
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--grey-medium);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--green-dark);
}

/* Static Policy Subpage Styles */
.policy-page {
  padding-top: 60px;
  padding-bottom: 90px;
  max-width: 860px;
  margin: 0 auto;
}

.policy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 24px;
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.policy-back-link:hover {
  color: var(--green-hover);
  transform: translateX(-3px);
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-paper);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.04);
}

.policy-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
  margin-bottom: 10px;
  color: var(--black);
}

.policy-updated {
  font-size: 0.8125rem;
  color: var(--grey-light);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-paper);
}

.policy-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.policy-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.policy-content p {
  font-size: 0.9375rem;
  color: var(--grey-medium);
  line-height: 1.68;
  margin-bottom: 14px;
}

.policy-content ul {
  font-size: 0.9375rem;
  color: var(--grey-medium);
  line-height: 1.68;
  margin-bottom: 16px;
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-content li strong,
.policy-content p strong {
  color: var(--black);
  font-weight: 600;
}

.policy-content a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.policy-content a:hover {
  color: var(--green-hover);
}

/* Policy Table */
.policy-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0 24px 0;
  border-radius: 12px;
  border: 1px solid var(--border-paper);
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.policy-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--grey-medium);
}

.policy-table th {
  background: var(--bg-wheat-light);
  color: var(--black);
  font-weight: 700;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-paper);
  letter-spacing: -0.01em;
}

.policy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-paper);
  vertical-align: top;
}

.policy-table tbody tr:last-child td {
  border-bottom: none;
}

.policy-table tbody tr:nth-child(even) td {
  background: rgba(245, 241, 232, 0.35);
}

.policy-table td strong {
  color: var(--black);
  font-weight: 600;
}

.policy-table td p {
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: inherit;
  line-height: 1.55;
}

.policy-table td p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive Breakpoints (Mobile Ordering & Proportions)
   ========================================================================== */
@media (max-width: 860px) {
  /* Prevent background page scroll when mobile menu is open */
  body.menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body.menu-open .site-header {
    background-color: var(--bg-wheat) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Header: Logo on left, Hamburger on right */
  .site-header {
    z-index: 1002;
  }

  .site-header .container {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1003;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* Full-Screen Mobile Navigation Overlay (fills entire viewport) */
  .nav-menu {
    display: none;
  }

  .nav-menu.is-active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    width: 100dvw;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background-color: var(--bg-wheat);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    padding: 28px 24px 48px 24px;
    animation: mobileMenuFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes mobileMenuFadeIn {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-nav-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    align-items: flex-start;
  }

  /* (First group) */
  .nav-group-primary {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .nav-group-primary .nav-link-main {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    padding: 8px 0;
    border-radius: 0;
    background: none;
    text-align: left;
    display: block;
    line-height: 1.25;
  }

  .nav-group-primary .nav-link-main:hover,
  .nav-group-primary .nav-link-main:active {
    color: var(--green-dark);
    background: none;
  }

  /* Dividers between groups */
  .nav-group-divider {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--border-paper-dark);
    margin: 20px 0;
    opacity: 0.65;
  }

  /* (Second group) */
  .nav-group-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-group-contact .nav-link-pill-orange {
    font-size: 1.125rem !important;
    padding: 12px 32px !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(245, 166, 35, 0.25) !important;
  }

  /* (Third group) */
  .nav-group-legal {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }

  .nav-group-legal .nav-link-legal {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--grey-medium);
    letter-spacing: -0.01em;
    padding: 8px 0;
    border-radius: 0;
    background: none;
    text-align: left;
    display: block;
  }

  .nav-group-legal .nav-link-legal:hover,
  .nav-group-legal .nav-link-legal:active {
    color: var(--black);
    background: none;
  }

  /* (a) Hero section mobile order:
     1. Hero image
     2. Heading and subtext below hero image
     3. Play Store and app store buttons side by side below the text */
  .hero-section {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-image-wrap {
    order: 1;
    margin: 8px auto 20px auto;
  }

  .hero-image {
    max-height: clamp(200px, 42vh, 340px);
    margin: 0 auto;
  }

  .hero-header-block {
    order: 2;
    margin-bottom: 10px;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 6.5vw, 2.4rem);
  }

  .hero-subtext {
    order: 3;
    font-size: 1rem;
    margin-bottom: 22px;
    max-width: 90%;
  }

  .hero-actions {
    order: 4;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .hero-actions .play-store-badge {
    order: 1;
  }

  .hero-actions .app-store-badge {
    order: 2;
  }

  .store-badge {
    min-width: 135px;
    max-width: 165px;
    padding: 6px 12px 6px 10px;
    gap: 8px;
    flex: 0 1 auto;
  }

  .store-badge-main {
    font-size: 0.95rem;
  }

  /* (b) For the next three sections (Tournaments, Leaderboards, Rulings):
     - Image first
     - Sub-text, heading and text below the image */
  .feature-section {
    min-height: auto;
    padding-top: clamp(48px, 6vh, 64px);
    padding-bottom: clamp(48px, 6vh, 64px);
  }

  #tournaments.section-discovery {
    min-height: auto;
    padding-top: clamp(48px, 6vh, 64px);
    padding-bottom: clamp(48px, 6vh, 64px);
  }

  .feature-grid, .feature-grid.reverse {
    display: flex;
    flex-direction: column;
    direction: ltr !important;
    gap: 28px;
    align-items: center;
  }

  .feature-grid > .mockup-image-wrap {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .feature-grid > .mockup-image-wrap .mockup-screen-img {
    max-height: clamp(340px, 48vh, 460px);
    width: auto;
  }

  .feature-grid > .feature-text-block {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-grid > .feature-text-block .section-meta {
    margin-bottom: 12px;
  }

  .feature-grid > .feature-text-block .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
    text-align: center;
    margin-bottom: 12px;
  }

  .feature-grid > .feature-text-block .section-desc {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
  }

  /* (c) Everything you need section:
     - Heading first
     - First image with text below it
     - Next, second image with text below it
     - Finally, third image with text below it */
  .provisions-section {
    min-height: auto;
    padding-top: clamp(48px, 6vh, 64px);
    padding-bottom: clamp(48px, 6vh, 64px);
  }

  .provisions-title {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    margin: 0 auto clamp(32px, 4.5vh, 48px);
    text-align: center;
  }

  .provisions-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
    max-width: 360px;
    margin: 0 auto;
  }

  .provision-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .provision-image-wrap {
    width: 145px;
    height: 145px;
    margin: 0 auto 14px auto;
  }

  .provision-caption {
    font-size: 1.05rem;
    text-align: center;
  }

  /* Get the app section mobile responsiveness */
  .get-app-section {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .get-app-container {
    flex-direction: column;
    gap: 20px;
  }

  .get-app-title {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    margin: 0;
    white-space: normal;
  }

  .get-app-actions {
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .get-app-actions .play-store-badge {
    order: 1;
  }

  .get-app-actions .app-store-badge {
    order: 2;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }

  /* Contact section mobile responsiveness */
  .contact-section {
    padding: 48px 0 64px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 20px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .contact-title {
    font-size: clamp(2rem, 6.5vw, 2.6rem);
    margin-bottom: 32px;
  }
}
