/* ==========================================================================
   Team Grader — public marketing site
   Standalone stylesheet: used only by index.html, product.html,
   club-cycle.html and pricing.html. The app shells (TGPrivate/TGGrading)
   do not load this file.
   ========================================================================== */

:root {
    --brand: #0e7c48;
    --brand-dark: #0a5c36;
    --brand-tint: #e7f4ee;
    --ink: #14202e;
    --muted: #55677c;
    --bg: #ffffff;
    --surface: #f5f8f7;
    --border: #dde5e1;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(20, 32, 46, 0.06), 0 8px 24px rgba(20, 32, 46, 0.08);
    --maxw: 1120px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--brand-dark); }
a:hover { color: var(--brand); }

h1, h2, h3 {
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--brand);
}
.btn-outline:hover { background: var(--brand-tint); color: var(--brand-dark); }

.btn-light {
    background: #fff;
    color: var(--brand-dark);
}
.btn-light:hover { background: var(--brand-tint); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand-tag {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 14px;
    border-radius: 8px;
}

.site-nav a:hover { background: var(--surface); color: var(--ink); }
.site-nav a.active { color: var(--brand-dark); font-weight: 700; }

.site-nav .btn {
    padding: 9px 20px;
    font-size: 0.95rem;
    margin-left: 8px;
}
.site-nav .btn:hover { background: var(--brand-dark); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--ink);
}

.nav-toggle svg { display: block; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    color: #fff;
    background:
        linear-gradient(rgba(10, 25, 18, 0.72), rgba(10, 25, 18, 0.72)),
        url("../slider-images/slideshow0.jpg") center / cover no-repeat;
}

.hero .wrap {
    padding-top: 96px;
    padding-bottom: 96px;
    max-width: 820px;
    text-align: center;
}

.hero h1 { color: #fff; }

.hero .lede {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.8em;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Subpage hero */
.page-hero {
    background: linear-gradient(180deg, var(--brand-tint), var(--bg));
    border-bottom: 1px solid var(--border);
}

.page-hero .wrap {
    padding-top: 56px;
    padding-bottom: 40px;
    max-width: 820px;
}

.page-hero .lede { font-size: 1.15rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 72px 0; }
.section-alt { background: var(--surface); }

.section-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-head .kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Sports strip */
.sports-strip {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.sports-strip .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 16px 56px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.sports-strip .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.sports-copy p {
    margin: 0;
    font-size: 0.98rem;
    color: var(--muted);
}

.sports-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.sports-strip .sport {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(20, 32, 46, 0.05);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sports-strip .sport:hover {
    border-color: var(--brand);
}

.sports-strip .sport.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.sports-strip .sport.active::before {
    background: #fff;
}

.sports-strip .sport::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.sports-strip .sport-more {
    background: transparent;
    border-style: dashed;
    color: var(--muted);
    box-shadow: none;
}

.sports-strip .sport-more::before {
    background: var(--muted);
}

.sports-strip .sport-more.active {
    background: var(--ink);
    border-color: var(--ink);
    border-style: solid;
    color: #fff;
}

/* Sport detail panels */
.sport-panels { padding-top: 0; }

.sport-panel {
    margin-top: 4px;
    padding: 28px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: panel-in 0.2s ease;
}

@keyframes panel-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.sport-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.sport-panel h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.sport-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sport-panel li {
    position: relative;
    padding: 0 0 8px 18px;
    font-size: 0.95rem;
    color: var(--muted);
}

.sport-panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
}

.sport-panel p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

@media (max-width: 760px) {
    .sport-panel-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Card grids */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card .icon svg { display: block; }

.card p { color: var(--muted); margin-bottom: 0; font-size: 0.98rem; }

/* Club cycle — numbered steps */
.cycle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.cycle .step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    counter-increment: step;
}

.cycle .step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
}

.cycle .step h3 { font-size: 1.02rem; }
.cycle .step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Vertical timeline (club-cycle page) */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: phase;
}

.timeline li {
    position: relative;
    padding: 0 0 36px 64px;
    counter-increment: phase;
}

.timeline li::before {
    content: counter(phase);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline li::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 4px;
    width: 2px;
    background: var(--border);
}

.timeline li:last-child::after { display: none; }

.timeline h3 { margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; }

.timeline .step-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px 48px;
    align-items: center;
}

.timeline .step-media img {
    width: 100%;
    display: block;
}

@media (max-width: 900px) {
    .timeline .step-inner { grid-template-columns: 1fr; }

    .timeline .step-media img {
        max-width: 340px;
        margin-top: 4px;
    }
}

/* Split layout (text + media) */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split .media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Product screenshots — real screens from the app, shown at the size they can be read at */
.shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.shots figure,
.shot-single {
    margin: 0;
}

.shot-single {
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
}

.shots img,
.shot-single img {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
}

.shots figcaption,
.shot-single figcaption {
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

.shot-single figcaption {
    text-align: center;
}

/* Integrations */
.integrations {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.integration {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 700;
    color: var(--ink);
}

/* Video */
.video-embed {
    position: relative;
    padding-top: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Checklist */
.checklist {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}

.checklist li {
    position: relative;
    padding: 0 0 12px 32px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand-tint);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a5c36' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Pricing */
.price-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
}

.price-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.price-card.featured { border-color: var(--brand); border-width: 2px; }

.price-card h3 { font-size: 1.25rem; }
.price-card .sub { color: var(--muted); font-size: 0.95rem; }

/* FAQ */
.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    padding: 0;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 16px 20px;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    float: right;
    font-weight: 700;
    color: var(--brand-dark);
}

.faq details[open] summary::after { content: "\2013"; }

.faq details p {
    padding: 0 20px 16px;
    margin: 0;
    color: var(--muted);
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    text-align: center;
}

.cta-band .wrap {
    padding-top: 64px;
    padding-bottom: 64px;
    max-width: 720px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; }

.cta-band .hero-ctas { margin-top: 24px; }

.cta-band a:not(.btn) { color: #fff; font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: #10241a;
    color: #b8c9c0;
    font-size: 0.95rem;
}

.site-footer .wrap {
    padding-top: 56px;
    padding-bottom: 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.site-footer h3 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.site-footer a { color: #d8e5de; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li { margin-bottom: 10px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #8fa79b;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .shots { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 12px 24px 20px;
        gap: 4px;
    }

    .site-nav.open { display: flex; }

    .site-nav a { padding: 12px 14px; }

    .site-nav .btn {
        margin: 10px 0 0;
        text-align: center;
    }

    .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
    .section { padding: 52px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }

    .sports-strip .wrap {
        grid-template-columns: 1fr;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .sports-pills { justify-content: flex-start; }
}
