/* TKO Landing Page Styles - Mobile First */

/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --black: #1C1C1C;
    --white: #F0F0F0;
    --gold: #AB8E41;
    --gold-hover: #C9A756;
    --gray: #313131;
    --gray-medium: #7D7D7D;
    --gray-light: #A9A9A9;
    --red: #d32f2f;

    /* Spacing system (base unit: 8px) */
    --space-small: 16px;
    --space-medium: 32px;
    --space-large: 64px;
    --space-xl: 96px;

    /* Typography */
    --font-serif: 'Besley', serif;
    --font-sans: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--black);
    color: var(--white);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--space-medium);
}

h3 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-small);
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    margin-bottom: var(--space-small);
}

s {
    font-size: 0.85em;
    font-style: italic;
    opacity: 0.6;
}

/* ===========================
   Layout & Container
   =========================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

/* ===========================
   Header - Sticky Navigation
   =========================== */
/* Header shrinks on scroll via JavaScript-applied .scrolled class */
.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--black);
    border-bottom: 1px solid var(--gray);
    z-index: 100;
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 120px;
    height: auto;
}

.header-logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: gap 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.header-logo-group:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.header.scrolled .header-logo-group {
    gap: 8px;
}

.header-logo-img {
    width: 34px;
    height: auto;
    transition: width 0.3s ease;
}

.header.scrolled .header-logo-img {
    width: 17px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--white);
    transition: font-size 0.3s ease;
}

.header.scrolled .logo-text {
    font-size: 14px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: var(--gold);
}

/* ===========================
   Buttons
   =========================== */
.btn, 	.cog-button {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    min-height: 48px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(171, 142, 65, 0.3);
}

.btn-primary {
    padding: 12px 24px;
    font-size: 14px;
    min-height: auto;
    transition: padding 0.3s ease, font-size 0.3s ease;
}

.header.scrolled .btn-primary {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-primary-large {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
}

.btn-subtext {
    font-weight: 300;
    font-size: 14px;
    font-style: italic;
    line-height: 1;
    display: block;
    margin-top: -2px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-logo {
    width: 260px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
}

.hero-headline {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-headline .highlight,
.problems-header .highlight {
    position: relative;
    color: var(--gold);
    display: inline-block;
    padding-bottom: 0.2em;
}

.hero-headline .highlight::after,
.problems-header .highlight::after {
    content: "";
    position: absolute;
    left: -0.05em;
    right: -0.05em;
    bottom: 0.1em;
    height: 0.15em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8'%3E%3Cpath d='M0,4 Q5,3 10,4 T20,4 T30,3.5 T40,4 T50,3.8 T60,4 T70,3.7 T80,4 T90,3.9 T100,4 T110,3.6 T120,4 T130,3.8 T140,4 T150,3.7 T160,4 T170,3.9 T180,4 T190,3.8 T200,4 T210,3.7 T220,4 T230,3.9 T240,4 T250,3.8 T260,4 T270,3.7 T280,4 T290,3.9 L300,4' stroke='%23AB8E41' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 100% 100%;
    background-position: 0 50%;
    z-index: -1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-subheadline {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: var(--space-medium);
    color: var(--white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.trust-signal {
    margin-top: 24px;
    font-size: 16px;
    color: var(--gold);
    font-weight: 600;
}

/* ===========================
   Section 2: Problems
   =========================== */
.section-problems {
    background: var(--gray);
    padding: 80px 0;
}

.problems-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.problems-header h2 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 0;
    overflow: visible;
    padding-bottom: 8px;
    position: relative;
    z-index: 1;
}

.hero-problems {
    width: 150px;
    height: auto;
    justify-self: center;
    background-color: var(--gray);
}

.section-problems h2 {
    text-align: left;
    color: var(--white);
    margin-bottom: var(--space-large);
    margin-left: var(--space-medium); 
}

.section-intro {
    text-align: center;
    font-size: 20px;
    margin-bottom: var(--space-large);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-medium);
    margin-bottom: var(--space-large);
}

.problem-item {
    background: var(--black);
    padding: var(--space-medium);
    border-radius: 8px;
    border: 1px solid var(--gray);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: var(--space-small);
}

.problem-item h3 {
    color: var(--gold);
    margin-bottom: var(--space-small);
}

.validation-statement {
    margin-top: var(--space-large);
}

.validation-statement p:last-child {
    margin-bottom: 0;
}

/* ===========================
   Section 3: Who This Is For
   =========================== */
.section-fit {
    padding: 80px 0;
}

.section-fit h2 {
    text-align: center;
    color: var(--white);
}

.section-fit-image {
    display: block;
    width: 50%;
    max-width: 300px;
    height: auto;
    margin: 32px auto;
}

.kit-images-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin-top: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.kit-image {
    width: 150px;
    height: auto;
    display: block;
}

.checklist {
    list-style: none;
    margin: var(--space-medium) 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.checklist li {
    font-size: 20px;
    padding: var(--space-small);
    margin-bottom: 12px;
    background: var(--gray);
    border-radius: 8px;
}

.disqualifier {
    text-align: center;
    margin: var(--space-large) 0;
    padding: 24px;
    background: var(--gray);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-fit h3 {
    text-align: center;
    margin-top: var(--space-large);
    margin-bottom: var(--space-medium);
}

.examples-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto var(--space-medium);
}

.examples-list li {
    padding: 12px 0 12px 24px;
    position: relative;
}

.why-havent {
    text-align: center;
    margin-top: var(--space-medium);
    font-size: 18px;
}

/* ===========================
   Section 6: Pilot Program
   =========================== */
.section-pilot {
    background: var(--black);
    padding: 20px 0;
}

.section-pilot .container {
    border: 2px solid var(--gray);
    border-radius: 8px;
    padding: 40px 32px;
}

.section-pilot h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    font-size: 28px;
    color: var(--gray-light);
    font-style: italic;
    margin-bottom: var(--space-large);
}

.emphasis {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1em;
}

.pilot-intro {
    text-align: center;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto var(--space-large);
}

.section-pilot h3 {
    text-align: center;
    color: var(--gold);
    margin: var(--space-large) 0 var(--space-medium);
}

.pilot-details {
    list-style: none;
    max-width: 700px;
    margin: 0 auto var(--space-large);
}

.pilot-details li {
    padding: 12px 0 12px 24px;
    position: relative;
    font-size: 18px;
}

/* Custom bullet point using ::before pseudo-element */
.pilot-details li:before {
    content: "•";
    color: var(--gold);
    font-size: 24px;
    position: absolute;
    left: 0;
    top: 8px;
}

.proof-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-large);
    margin-top: var(--space-large);
    margin-bottom: var(--space-large);
}

.proof-item {
    background: var(--gray);
    padding: 72px var(--space-large) var(--space-medium);
    border-radius: 8px;
    text-align: center;
    position: relative;
}

.proof-item::before {
    content: '';
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 96px;
    background: var(--black);
    border-radius: 50%;
    z-index: 9;
}

.proof-item-icon {
    position: absolute;
    top: -48px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: auto;
    z-index: 10;
}

.proof-item h4 {
    color: var(--gold);
    margin-bottom: var(--space-small);
    font-size: 20px;
}

.proof-item p {
    margin-bottom: 0;
    font-size: 21.6px;
}

.pilot-cta-center {
    text-align: center;
    margin-top: var(--space-large);
}

.pilot-cta-center p {
    margin-bottom: var(--space-medium);
    font-size: 20px;
}

/* ===========================
   Content Pages (Privacy, Terms, etc.)
   =========================== */
.content-page {
    padding: 80px 0;
    min-height: calc(100vh - 400px);
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    text-align: center;
    color: var(--gold);
    margin-bottom: var(--space-small);
}

.content-page h2 {
    color: var(--gold);
    font-size: 24px;
    margin-top: var(--space-large);
    margin-bottom: var(--space-small);
}

.content-page p {
    margin-bottom: var(--space-small);
    line-height: 1.8;
}

.content-page a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-page a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

.content-page strong {
    color: var(--white);
    font-weight: 600;
}

.content-page em {
    font-style: italic;
}

.content-meta {
    text-align: center;
    color: var(--gray-light);
    font-size: 16px;
    margin-bottom: var(--space-large);
}

.content-intro {
    text-align: left;
    font-size: 22px;
    margin-top: var(--space-large);
    margin-bottom: var(--space-large);
}

.content-back-link {
    display: inline-block;
    margin-top: var(--space-large);
    padding: 12px 24px;
    background: var(--gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.content-back-link:hover {
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    transform: translateX(-4px);
}

/* ===========================
   Section 7: FAQ
   =========================== */
.section-faq {
    padding: 80px 0;
}

.section-faq h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: var(--space-large);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--gray);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.faq-item:hover {
    background: #4a4a4a;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--space-small);
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: 0;
    text-align: left;
    color: var(--white);
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--gold-hover);
}

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

.faq-question-text {
    flex: 1;
}

.faq-icon {
    font-size: 24px;
    color: var(--gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 var(--space-small);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--space-small) var(--space-small);
}

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

/* ===========================
   Section 8: Final CTA
   =========================== */
.section-cta {
    background: var(--gray);
    padding: 80px 0;
    text-align: center;
}

.section-cta .container {
    max-width: 800px;
}

.section-cta h2 {
    color: var(--gold);
    font-size: 36px;
    margin-bottom: 24px;
}

.cta-subheadline {
    font-size: 22px;
    margin-bottom: var(--space-large);
}

.final-trust-signal {
    margin-top: var(--space-medium);
    font-size: 18px;
    color: var(--white);
    opacity: 0.9;
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--gray);
}

.logo-footer {
    width: 150px;
    height: auto;
    margin-bottom: 24px;
}

.footer-tagline {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer-tagline-link {
    color: var(--gold);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-tagline-link:hover {
    opacity: 0.8;
}

/* ===========================
   Tablet Styles (768px+)
   =========================== */
/* Responsive breakpoints: 768px (tablet), 1024px (desktop), 1440px (large desktop) */
@media (min-width: 768px) {
    /* Typography */
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 24px;
    }

    /* Header */
    .logo {
        width: 180px;
    }

    .header-logo-img {
        width: 42px;
    }

    .header.scrolled .header-logo-img {
        width: 21px;
    }

    .logo-text {
        font-size: 32px;
    }

    .header.scrolled .logo-text {
        font-size: 16px;
    }

    /* Hero */
    .hero-logo {
        width: 260px;
    }

    .hero-headline {
        font-size: 52px;
    }

    .hero-subheadline {
        font-size: 22px;
    }

    /* Problems Header */
    .problems-header {
        grid-template-columns: auto 1fr;
        gap: 32px;
        margin-bottom: 64px;
    }

    .problems-header h2 {
        text-align: left;
    }

    .hero-problems {
        width: 200px;
        justify-self: start;
    }

    /* Kit Images Grid */
    .kit-image {
        width: 180px;
    }

    /* Section Pilot */
    .section-pilot .container {
        padding: 60px 40px;
    }

    /* Problem Items */
    .problem-item {
        padding: var(--space-large);
    }

    /* Grids - 2 columns */
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Transformation items switch to horizontal layout on tablet+ */
    .transformation-item {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        text-align: left;
    }

    .transformation-arrow {
        margin: 0 var(--space-small);
    }
}

/* ===========================
   Desktop Styles (1024px+)
   =========================== */
@media (min-width: 1024px) {
    /* Typography */
    h1 {
        font-size: 56px;
    }

    h2 {
        font-size: 42px;
    }

    /* Header */
    .logo {
        width: 200px;
    }

    .header-logo-img {
        width: 51px;
    }

    .header.scrolled .header-logo-img {
        width: 26px;
    }

    .logo-text {
        font-size: 36px;
    }

    .header.scrolled .logo-text {
        font-size: 18px;
    }

    .header {
        padding: 24px 40px;
    }

    .header.scrolled {
        padding: 12px 40px;
    }

    /* Hero */
    .hero {
        padding: 120px 0;
    }

    .hero-logo {
        width: 260px;
    }

    .hero-headline {
        font-size: 64px;
    }

    /* Sections */
    section {
        padding: 80px 0;
    }

    .section-problems,
    .section-pilot,
    .section-cta {
        padding: 100px 0;
    }


    .hero-problems {
        width: 240px;
    }

    /* Section Pilot */
    .section-pilot .container {
        padding: 120px 80px;
    }

}

/* ===========================
   Large Desktop (1440px+)
   =========================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    .hero-headline {
        font-size: 72px;
    }
}

/* ===========================
   Retired Banner
   =========================== */
.retired-banner {
    width: 100%;
    background: var(--red);
    padding: 40px 20px;
    text-align: center;
}

.retired-banner::before {
    content: 'PROJECT RETIRED';
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 72px;
    letter-spacing: 8px;
    text-transform: uppercase;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .retired-banner {
        padding: 24px 20px;
    }

    .retired-banner::before {
        font-size: 36px;
        letter-spacing: 4px;
    }
}

/* ===========================
   Accessibility & UX
   =========================== */
/* Focus states for keyboard navigation */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid var(--white);
    }
}
