/* ============================================================
   Sport Playbook — Shared App Subsite Styles
   Matches the RattlerPlay main site design system.
   Each sport page overrides --accent / --accent-bg after this
   stylesheet is linked to set its own identity color.
   ============================================================ */

:root {
    --blue:        #007AFF;
    --blue-dark:   #0066DD;
    --blue-bg:     #F0F7FF;
    --accent:      #C05800;
    --accent-bg:   #FFF4EC;
    --ink:         #1a1a1a;
    --ink-soft:    #0a0a0a;
    --white:       #FFFFFF;
    --off-white:   #F7F7F8;
    --border:      #EBEBEB;
    --border-soft: #f0f0f0;
    --gray-text:   #555;
    --gray-mid:    #666;
    --gray-light:  #888;
    --radius-lg:   22px;
    --radius-md:   18px;
    --radius-sm:   14px;
    --shadow:      0 6px 32px rgba(0,0,0,0.07);
    --transition:  0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ── */
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.05; letter-spacing: -2.5px; color: var(--ink-soft); }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; color: var(--ink-soft); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
p  { font-size: 1.05rem; color: var(--gray-text); }

/* ── Layout helpers ── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 88px 0; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s, background var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--blue);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--blue-dark);
    box-shadow: 0 4px 20px rgba(0,122,255,0.3);
}

.btn-ghost, .btn-outline {
    background: #F5F5F7;
    color: var(--ink);
}
.btn-ghost:hover, .btn-outline:hover { background: #E8E8ED; }

/* Apple-style App Store badge, matching the main RattlerPlay site */
.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
}
.btn-store:hover { background: #1a1a1a; }

/* Non-clickable "Coming soon to the App Store" badge */
.btn-soon, .btn-soon:hover { cursor: default; transform: none; background: #000; }

/* White button for the blue call-to-action section */
.btn-notify { background: #fff; color: var(--blue); }
.btn-notify:hover { background: var(--blue-bg); }
.appstore-icon { font-size: 22px; line-height: 1; }
.appstore-text { display: flex; flex-direction: column; align-items: flex-start; }
.appstore-text small { font-size: 11px; font-weight: 400; opacity: 0.75; letter-spacing: 0.2px; }
.appstore-text strong { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.nav-logo span { color: var(--blue); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { display: block; height: 46px; width: auto; }

.nav-subbrand {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 4px 10px;
    border-radius: 100px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

.nav-cta .btn { padding: 9px 20px; font-size: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    text-align: center;
    padding: 96px 24px 72px;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--blue-bg);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }

.hero p {
    font-size: 19px;
    color: #555;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 32px;
    color: #999;
    font-size: 14px;
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    padding: 48px 0;
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.strip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.strip-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.strip-item h3 { font-size: 16px; color: var(--ink); }
.strip-item p  { font-size: 14px; color: var(--gray-mid); }

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

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

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.feature-text h2 { margin-bottom: 16px; }
.feature-text p  { margin-bottom: 12px; }

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--gray-text);
}

.feature-list .check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E8F5E9;
    color: #2E7D32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-card {
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow);
    border-color: #D8D8D8;
    transform: translateY(-2px);
}

/* Color-coded feature card interiors */
.feature-card.orange { background: linear-gradient(135deg, #FFF3E0 0%, #FFE9D2 100%); }
.feature-card.blue   { background: linear-gradient(135deg, #EEF3FF 0%, #DCE9FF 100%); }
.feature-card.green  { background: linear-gradient(135deg, #EAFAF0 0%, #D3F3DF 100%); }
.feature-card.purple { background: linear-gradient(135deg, #F5EEFF 0%, #E9DBFF 100%); }
.feature-card.red    { background: linear-gradient(135deg, #FFF0F0 0%, #FFDFDF 100%); }

.card-icon-large {
    font-size: 5rem;
    opacity: 0.45;
}

.card-pills {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

.pill {
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    color: var(--ink);
    white-space: nowrap;
}

/* ============================================================
   DRILL CATEGORIES GRID
   ============================================================ */
.categories-section {
    background: var(--off-white);
}

.categories-section h2 { text-align: center; margin-bottom: 12px; }
.categories-section > .container > p { text-align: center; margin-bottom: 56px; max-width: 560px; margin-left: auto; margin-right: auto; }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    padding: 28px 20px;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.category-card:hover {
    box-shadow: var(--shadow);
    border-color: #D8D8D8;
    transform: translateY(-2px);
}

.category-emoji { font-size: 2rem; margin-bottom: 10px; }
.category-card h3 { font-size: 15px; margin-bottom: 4px; }
.category-card p  { font-size: 13px; color: var(--gray-mid); }

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
    background: var(--off-white);
    padding: 72px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-mid);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    padding: 96px 0;
    text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 36px; }

.cta-note {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 48px 32px 32px;
    border-top: 1px solid var(--border-soft);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.footer-logo span { color: var(--blue); }
.footer-logo img { display: block; height: 36px; width: auto; }

.footer-subbrand {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 3px 9px;
    border-radius: 100px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
    color: #888;
    font-size: 13px;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    color: #bbb;
    font-size: 12px;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .feature-section { grid-template-columns: 1fr; gap: 40px; }
    .feature-section.reverse { direction: ltr; }
    .strip-grid      { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 680px) {
    section { padding: 64px 0; }
    .hero   { padding: 56px 24px 48px; }
    .nav-links { display: none; }
    .strip-grid { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { justify-content: center; text-align: center; }
    .nav-logo img { height: 30px; }
    .nav-inner { gap: 12px; }
    .nav-cta .btn { padding: 8px 14px; }
}

/* ============================================================
   PRIVACY & SUPPORT PAGES
   ============================================================ */
.page-hero {
    padding: 72px 24px 48px;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
}

.page-hero h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.page-hero p  { color: var(--gray-mid); font-size: 16px; }

.prose { max-width: 780px; margin: 0 auto; padding: 64px 24px; }
.prose h2 { font-size: 22px; margin: 48px 0 12px; color: var(--ink-soft); }
.prose h3 { font-size: 17px; margin: 32px 0 8px; color: var(--ink-soft); }
.prose p  { margin-bottom: 16px; color: var(--gray-text); }
.prose ul { padding-left: 24px; margin-bottom: 16px; color: var(--gray-text); }
.prose ul li { margin-bottom: 6px; }
.prose a  { color: var(--blue); text-decoration: underline; }

.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 48px 0;
}

.support-card {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
}

.support-card .icon { font-size: 2rem; margin-bottom: 12px; }
.support-card h3 { margin-bottom: 8px; }
.support-card p  { font-size: 14px; margin-bottom: 16px; }
.support-card a  { color: var(--blue); font-weight: 600; font-size: 14px; }

@media (max-width: 700px) {
    .support-grid { grid-template-columns: 1fr; }
}

/* ── Fade-in animation ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }
