/**
 * Golf Course Tracker landing (/golf/course/tracker).
 *
 * Rides on the v2-editorial system (public/css/v2-editorial.css, scope .v2): the ONE brand palette
 * (accent #2ba8ff / accent-deep #0066cc over paper #f5f1ea, cream #fdfbf7, ink #0a0a0a),
 * Fraunces + Inter. Nothing here invents a hue; only the phone mock-up reuses the live tracker's
 * own status colours, because it is a picture of that screen.
 *
 * Fluid by design: no fixed-width blocks; grids collapse 4 -> 2 -> 1 (steps) and 2 -> 1 (the rest)
 * so no breakpoint leaves an orphan cell.
 */

.gtl { background: var(--cream); color: var(--ink); }
.gtl *, .gtl *::before, .gtl *::after { box-sizing: border-box; }

.gtl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.gtl-wrap--narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.gtl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0.85rem 1.4rem;
    border: 1.5px solid transparent;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.gtl-btn--primary { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.gtl-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); }
.gtl-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.gtl-btn--ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.gtl-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- hero ---------- */
.gtl-hero {
    background: radial-gradient(ellipse 60% 80% at 85% 40%, var(--accent-glow) 0%, transparent 62%), var(--cream);
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.gtl-hero__grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}
.gtl-hero__copy { min-width: 0; }
.gtl-hero__copy > * + * { margin-top: 1.25rem; }
.gtl-hero__title {
    margin: 1rem 0 0;
    font-size: clamp(2.35rem, 5.2vw, 4.25rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.gtl-hero__title em { font-style: italic; font-weight: 400; color: var(--accent-deep); }
.gtl-hero__deck { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 36rem; }
.gtl-hero__note { margin: 0.9rem 0 0; font-size: 0.85rem; color: var(--muted); }
.gtl-hero__note i { color: var(--accent-deep); margin-right: 0.35rem; }
.gtl-hero__visual { min-width: 0; display: flex; justify-content: center; }

/* ---------- start form ---------- */
.gtl-form {
    max-width: 30rem;
    padding: 1.25rem;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    box-shadow: 8px 8px 0 var(--accent-glow);
    display: grid;
    gap: 0.5rem;
}
.gtl-form__label {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}
.gtl-form__input {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--ink);
    border-radius: 0;
    background: var(--cream);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}
.gtl-form__input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.gtl-form__error { margin: 0; font-size: 0.85rem; color: #b91c1c; }
.gtl-form .gtl-btn { width: 100%; margin-top: 0.5rem; }

.gtl-holes { border: 0; margin: 0.25rem 0 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.gtl-holes .gtl-form__label { grid-column: 1 / -1; margin-bottom: 0.15rem; }
.gtl-holes__opt { position: relative; display: block; cursor: pointer; }
.gtl-holes__opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.gtl-holes__opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 1.5px solid var(--ink);
    background: var(--cream);
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}
.gtl-holes__opt input:checked + span { background: var(--ink); color: var(--cream); }
.gtl-holes__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- resume (returning device) ---------- */
.gtl-resume { max-width: 30rem; display: grid; gap: 1rem; }
.gtl-resume__eyebrow { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.gtl-resume__main { width: 100%; justify-content: space-between; text-align: left; padding: 1rem 1.25rem; }
.gtl-resume__main-text { display: grid; gap: 0.2rem; min-width: 0; }
.gtl-resume__main-title { font-size: 1.15rem; overflow-wrap: anywhere; }
.gtl-resume__main-sub { font-size: 0.8rem; font-weight: 500; opacity: 0.9; display: inline-flex; align-items: center; gap: 0.4rem; }
.gtl-live-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: gtl-pulse 2s ease-in-out infinite; }
.gtl-resume__list-title { margin: 0.5rem 0 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.gtl-courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.gtl-courses__item { display: flex; border: 1.5px solid var(--rule-strong); background: var(--paper); }
.gtl-courses__open { flex: 1; min-width: 0; margin: 0; }
.gtl-courses__btn {
    width: 100%;
    display: grid;
    gap: 0.1rem;
    padding: 0.75rem 1rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.gtl-courses__btn:hover { background: var(--accent-soft); }
.gtl-courses__name { font-weight: 700; overflow-wrap: anywhere; }
.gtl-courses__meta { font-size: 0.78rem; color: var(--muted); }
.gtl-courses__hub { display: flex; align-items: center; justify-content: center; width: 3rem; border-left: 1px solid var(--rule); color: var(--muted); text-decoration: none; }
.gtl-courses__hub:hover { color: var(--accent-deep); background: var(--accent-soft); }
.gtl-new { border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.gtl-new__summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: 700; color: var(--accent-deep); }
.gtl-new__summary::-webkit-details-marker { display: none; }
.gtl-new[open] .gtl-new__summary { margin-bottom: 0.75rem; }

/* ---------- phone mock-up ---------- */
.gtl-phone { margin: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.gtl-phone__frame {
    width: min(100%, 20rem);
    aspect-ratio: 9 / 18;
    padding: 0.55rem;
    border-radius: 2.4rem;
    background: #0b1220;
    box-shadow: 0 30px 60px -28px rgba(10, 10, 10, 0.55), 0 0 0 1.5px rgba(10, 10, 10, 0.5), 10px 10px 0 var(--accent-glow);
}
.gtl-phone__screen {
    --p-bg: #0f172a;
    --p-raised: #1e293b;
    --p-text: #f1f5f9;
    --p-muted: rgba(255, 255, 255, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 0.65rem 0;
    border-radius: 1.9rem;
    overflow: hidden;
    background: var(--p-bg);
    color: var(--p-text);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
}
.gtl-app__head { display: flex; justify-content: space-between; align-items: center; padding: 0.15rem 0.3rem; }
.gtl-app__course { font-weight: 700; font-size: 0.8rem; }
.gtl-app__live { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(34, 197, 94, 0.15); color: #22c55e; font-weight: 700; }
.gtl-app__dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: gtl-pulse 2s ease-in-out infinite; }
.gtl-app__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.gtl-app__stats > div { display: grid; text-align: center; padding: 0.4rem 0; border-radius: 8px; background: var(--p-raised); }
.gtl-app__stats b { font-size: 0.95rem; }
.gtl-app__stats span { color: var(--p-muted); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.06em; }
.gtl-app__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; align-content: start; flex: 1; min-height: 0; }
.gtl-app__row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.5rem;
    border-radius: 9px;
    background: var(--p-raised);
}
.gtl-app__badge, .gtl-app__hole { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 700; white-space: nowrap; }
.gtl-app__badge i { color: #22c55e; }
.gtl-app__hole i { color: #3b82f6; }
.gtl-app__where { display: grid; font-weight: 600; min-width: 0; }
.gtl-app__where small { color: var(--p-muted); font-weight: 400; font-size: 0.58rem; }
.gtl-app__pace { padding: 0.18rem 0.45rem; border-radius: 999px; font-size: 0.58rem; font-weight: 700; white-space: nowrap; }
.gtl-app__pace--on { background: rgba(34, 197, 94, 0.18); color: #22c55e; }
.gtl-app__pace--slight { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.gtl-app__pace--behind { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.gtl-app__pace--ahead { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.gtl-app__caption { display: grid; gap: 0.3rem; padding: 0 0.1rem; }
.gtl-app__caption-you, .gtl-app__caption-ai { padding: 0.45rem 0.6rem; border-radius: 12px; line-height: 1.35; }
.gtl-app__caption-you { background: rgba(255, 255, 255, 0.1); color: var(--p-text); border-bottom-left-radius: 3px; }
.gtl-app__caption-you i { color: #2ba8ff; margin-right: 0.25rem; }
.gtl-app__caption-ai { background: rgba(43, 168, 255, 0.18); color: #bfe4ff; border-bottom-right-radius: 3px; }
.gtl-app__foot {
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr;
    align-items: end;
    margin: 0.2rem -0.65rem 0;
    padding: 0.55rem 0.3rem 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.95);
    text-align: center;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--p-muted);
}
.gtl-app__foot > span { display: grid; justify-items: center; gap: 0.3rem; }
.gtl-app__foot i { font-size: 1rem; }
.gtl-app__foot-radio { color: #2ba8ff; }
.gtl-app__foot-radio i { animation: gtl-pulse 1.4s ease-in-out infinite; }
.gtl-app__spot { margin-top: -1.4rem; }
.gtl-app__spot i {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.45), 0 0 0 3px #0f172a;
}
.gtl-phone__cap { max-width: 20rem; text-align: center; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

/* ---------- sections ---------- */
.gtl-sec { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--cream); }
.gtl-sec--paper { background: var(--paper); }
.gtl-sec--ink { background: var(--ink); color: var(--cream); }
.gtl-head { max-width: 44rem; margin: 0 0 clamp(1.75rem, 4vw, 3rem); }
.gtl-head__title { margin: 1rem 0 0; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.gtl-head__title em { font-style: italic; font-weight: 400; color: var(--accent-deep); }
.gtl-sec--ink .gtl-head__title em { color: var(--accent); }
.gtl-head__deck { margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.55; color: var(--muted); max-width: 38rem; }
.gtl-sec--ink .gtl-head__deck { color: rgba(245, 241, 234, 0.72); }

/* how it works: 4 -> 2 -> 1 columns */
.gtl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.gtl-step { padding: 1.5rem 1.25rem 1.6rem; background: var(--cream); border: 1.5px solid var(--ink); display: grid; gap: 0.6rem; align-content: start; }
.gtl-step p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--muted); }
.gtl-step__num { font-size: 2.75rem; font-style: italic; font-weight: 400; line-height: 1; color: var(--accent-deep); }
.gtl-step__title { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }

/* voice */
.gtl-voice { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.gtl-voice__copy, .gtl-voice__side { min-width: 0; }
.gtl-say { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.gtl-say__item { padding: 0.75rem 0.9rem; border: 1px solid rgba(245, 241, 234, 0.22); font-size: 0.92rem; line-height: 1.4; }
.gtl-say__item i { margin-right: 0.45rem; color: var(--accent); }
.gtl-sheet { padding: 1rem; border-radius: 18px; background: #1e293b; color: #f1f5f9; box-shadow: 10px 10px 0 rgba(43, 168, 255, 0.18); display: grid; gap: 0.7rem; }
.gtl-sheet__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 0.8rem; align-items: center; }
.gtl-sheet__mic { grid-row: 1 / span 2; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: #fff; animation: gtl-ring 1.6s ease-out infinite; }
.gtl-sheet__title { font-weight: 700; }
.gtl-sheet__title b { margin-left: 0.4rem; font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.gtl-sheet__state { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.gtl-sheet__line { margin: 0; padding: 0.6rem 0.8rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; }
.gtl-sheet__line--you { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.78); }
.gtl-sheet__line--ai { background: rgba(43, 168, 255, 0.18); color: #d9efff; }
.gtl-facts { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.gtl-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.8rem; font-size: 0.95rem; line-height: 1.5; color: rgba(245, 241, 234, 0.78); }
.gtl-facts li i { margin-top: 0.2rem; color: var(--accent); }
.gtl-facts b { color: var(--cream); font-weight: 700; }

/* free vs pro */
.gtl-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.gtl-plan { padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 0.9rem; }
.gtl-plan--pro { box-shadow: 8px 8px 0 var(--accent-glow); }
.gtl-plan__tag { align-self: flex-start; padding: 0.3rem 0.7rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border: 1.5px solid var(--ink); }
.gtl-plan--pro .gtl-plan__tag { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.gtl-plan__title { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.gtl-plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.gtl-plan__list li { position: relative; padding-left: 1.7rem; line-height: 1.5; color: var(--muted); }
.gtl-plan__list li i { position: absolute; left: 0; top: 0.3rem; font-size: 0.85rem; color: var(--accent-deep); }
.gtl-plan__link { margin-top: auto; padding-top: 0.5rem; font-weight: 700; color: var(--accent-deep); text-decoration: none; }
.gtl-plan__link:hover { text-decoration: underline; }

/* faq */
.gtl-faq { border-top: 1.5px solid var(--ink); }
.gtl-faq__item { border-bottom: 1px solid var(--rule-strong); }
.gtl-faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 1rem 0; font-size: 1.05rem; font-weight: 700; }
.gtl-faq__q::-webkit-details-marker { display: none; }
.gtl-faq__q::after { content: '+'; flex: 0 0 auto; font-size: 1.5rem; font-weight: 400; color: var(--accent-deep); }
.gtl-faq__item[open] .gtl-faq__q::after { content: '\2212'; }
.gtl-faq__q:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gtl-faq__a { margin: 0; padding: 0 0 1.25rem; max-width: 40rem; line-height: 1.6; color: var(--muted); }

/* closer */
.gtl-closer { padding: clamp(3rem, 7vw, 5.5rem) 0; background: var(--accent-deep); color: #fff; text-align: center; }
.gtl-closer__title { margin: 0 auto; max-width: 38rem; font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
.gtl-closer__title em { font-style: italic; font-weight: 400; }
.gtl-closer__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.gtl-closer .gtl-btn--primary { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.gtl-closer .gtl-btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.4); }
.gtl-closer .gtl-btn--ghost { color: #fff; }
.gtl-closer .gtl-btn--ghost:hover { background: #fff; color: var(--accent-deep); border-color: #fff; }

@keyframes gtl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes gtl-ring {
    0% { box-shadow: 0 0 0 0 rgba(43, 168, 255, 0.5); }
    70% { box-shadow: 0 0 0 14px rgba(43, 168, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(43, 168, 255, 0); }
}

/* ---------- breakpoints ---------- */
@media (max-width: 1100px) {
    .gtl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .gtl-hero__grid, .gtl-voice { grid-template-columns: minmax(0, 1fr); }
    .gtl-hero__visual { order: 2; }
}
@media (max-width: 760px) {
    .gtl-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .gtl-wrap, .gtl-hero__grid { padding: 0 1rem; }
    .gtl-steps, .gtl-say { grid-template-columns: minmax(0, 1fr); }
    .gtl-form { box-shadow: 5px 5px 0 var(--accent-glow); }
    .gtl-closer__actions .gtl-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .gtl-live-dot, .gtl-app__dot, .gtl-app__foot-radio i, .gtl-sheet__mic { animation: none; }
    .gtl-btn { transition: none; }
}
