/* styles.css */

/* ---------- Base ---------- */
:root{
    --navy-900: #07162b;
    --navy-800: #0b1f3b;
  
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.82);
    --muted2: rgba(255,255,255,0.60);
  
    --lime: #b8d000;
    --lime-soft: rgba(184,208,0,0.18);
  
    --shadow: 0 14px 40px rgba(0,0,0,0.35);
    --radius: 18px;
    --maxw: 1220px;
  
    /* Layout knobs */
    --nav-h: 45px;
    --hero-pad-x: clamp(20px, 4vw, 56px);
    --hero-pad-y: clamp(44px, 7.5vw, 120px);
  
    /* Independent hero shifts */
    --hero-text-shift: 0px;
    --hero-cta-shift:  0px;
  
    /* Hero background framing */
    --hero-bg-size: 100% auto;
    --hero-bg-x: 0%;
    --hero-bg-y: 10%;
  
    /* Width controls */
    --hero-title-max: 980px;
    --hero-sub-max: 760px;
  
    /* Typography knobs */
    --hero-title-size: clamp(38px, 3.2vw, 66px);
    --hero-subtitle-size: clamp(16px, 1.6vw, 30px);
    --cta-title-size: clamp(18px, 1.9vw, 24px);
  
    /* CTA placeholder image URLs */
    --cta-bg-1: url("../assets/cta-teammates.png");
    --cta-bg-2: url("../assets/mdc-transparent-bg.png");
  
    /* Per-CTA background control defaults */
    --cta-1-bg-size: 70%;
    --cta-1-bg-pos: 90% -15%;
    --cta-2-bg-size: 22%;
    --cta-2-bg-pos: 83%;
  
    /* Built For role accents */
    --role-athletes: #B7D33B;
    --role-parents: #B7D33B;
    --role-coaches: #B7D33B;
    --role-evaluators: #B7D33B;
    --role-associations: #B7D33B;
  
    /* Panel styling */
    --panel-border: rgba(184,208,0,0.55);
    --panel-bg: rgba(7, 22, 43, 0.55);
  }
  
  /* ---------- Global Background ---------- */
  html, body { height: 100%; }
  
  html{
    overflow-x: clip;                  /* prevent Zendesk widget from widening viewport */
    background:
      radial-gradient(1200px 600px at 60% 40%, rgba(255,255,255,0.05), rgba(255,255,255,0) 60%),
      url("../assets/texture-med-5.png");
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
    scroll-behavior: smooth;
  }
  
  body{
    overflow-x: clip;
    margin: 0;
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
    color: var(--text);
    background: transparent;
  }
  
  /* ---------- Hero ---------- */
  .hero{
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: var(--hero-pad-y) var(--hero-pad-x);
    background: transparent;
    overflow: hidden;
    isolation: isolate;
  }
  
  .hero::before{
    content: "";
    position: absolute;
    inset: 0;
  
    background-image: url("../assets/hero-skater-halo-2.png");
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: -15% 200%;
  
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
  }
  
  .hero::after{
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: 0;
  }
  
  .hero__content{
    position: relative;
    z-index: 1;

    max-width: 980px;
    width: 100%;
    margin: 0 0 0 auto;

    background: linear-gradient(to right, transparent 0%, rgba(7, 22, 43, 0.55) 6%);
    backdrop-filter: blur(4px);
    padding: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 44px);
    border-radius: var(--radius);
    border: 1px solid rgba(184, 208, 0, 0.18);

    transform: translateY(-14px);
  }
  
  .hero__title{
    max-width: var(--hero-title-max);
    font-size: var(--hero-title-size);
    line-height: 1.05;
  
    margin: 0 0 16px;
  
    letter-spacing: -0.02em;
    text-shadow: 0 10px 26px rgba(0,0,0,0.35);
  
    margin-left: var(--hero-text-shift);
  }
  
  .hero__subtitle{
    max-width: var(--hero-sub-max);
    font-size: var(--hero-subtitle-size);
    line-height: 1.55;
    color: var(--muted);
    text-shadow: 0 10px 22px rgba(0,0,0,0.35);
    margin-top: 30px;
  
    margin-left: var(--hero-text-shift);
  }
  
  /* CTA cards */
  .hero__ctas{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    max-width: 980px;
    margin-top: 80px;
  
    margin-left: var(--hero-cta-shift);
  }
  
  .hero__ctas .cta-card:nth-child(1){
    --cta-bg: var(--cta-bg-1);
    --cta-bg-size: var(--cta-1-bg-size);
    --cta-bg-position: var(--cta-1-bg-pos);
  }
  
  .hero__ctas .cta-card:nth-child(2){
    --cta-bg: var(--cta-bg-2);
    --cta-bg-size: var(--cta-2-bg-size);
    --cta-bg-position: var(--cta-2-bg-pos);
  }
  
  .cta-card{
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  
    padding: 18px 20px;
    min-height: 96px;
  
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
  
    border: 3px solid rgba(184,208,0,0.9);
    box-shadow: var(--shadow);
  
    background-color: rgba(11, 31, 59, 0.55);
    background-image: var(--cta-bg);
    background-size: var(--cta-bg-size, cover);
    background-position: var(--cta-bg-position, center);
    background-repeat: no-repeat;
  
    backdrop-filter: blur(6px);
  
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
  
  .cta-card:hover{
    border-color: rgba(184,208,0,1);
    transform: translateY(-1px);
    box-shadow: 0 16px 46px rgba(0,0,0,0.42);
  }
  
  .cta-card__title{
    font-size: var(--cta-title-size);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
  }
  
  .cta-card__icon{
    font-size: 72px;
    line-height: 1;
    color: rgba(255,255,255,0.85);
    justify-self: end;
    padding-right: 6px;
  }
  
  /* ---------- Sections ---------- */
  .container{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 18px;
  }
  
  .section p{
    margin: 0;
    color: var(--muted2);
    max-width: 800px;
  }
  
  .spacer{ height: 800px; }
  
  /* ---------- Built For ---------- */
  .builtfor{
    padding: 20px 0 90px;
    margin-top: 0;
  }
  
  .builtfor__inner{ max-width: var(--maxw); }
  
  .builtfor__header{
    text-align: center;
    max-width: 980px;
    margin: 0 auto 34px;
  }
  
  .builtfor__title{
    margin: 0 0 10px;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  
  .builtfor__rule{
    height: 2px;
    width: min(820px, 92%);
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.18);
  }
  
  .builtfor__subtitle{
    margin: 0 0 10px;
    font-size: clamp(18px, 1.8vw, 26px);
    color: rgba(255,255,255,0.85);
    font-weight: 700;
  }
  
  /* Tabs row */
  .role-tabs{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: stretch;
    margin: 34px auto 16px;
    max-width: 1040px;
  }
  
  .role-tab{
    appearance: none;
    border: 1px solid rgba(255,255,255,0.14);
    border-bottom: 2px solid rgba(255,255,255,0.12);
    background: rgba(7, 22, 43, 0.35);
    color: rgba(255,255,255,0.90);
    border-radius: 10px;
    padding: 14px 12px;
  
    display: grid;
    place-items: center;
    gap: 10px;
  
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  }
  
  .role-tab__icon{ font-size: 26px; opacity: 0.95; }
  .role-tab__label{ font-weight: 800; font-size: 18px; }
  
  .role-tab:hover{
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.32);
  }
  
  .role-tab.is-active{
    border-color: color-mix(in srgb, var(--role-accent) 65%, rgba(255,255,255,0.12));
    outline: 2px solid color-mix(in srgb, var(--role-accent) 70%, transparent);
    background: color-mix(in srgb, rgba(7, 22, 43, 0.38) 70%, var(--role-accent));
  }
  
  /* Panel wrapper and pointer triangle */
  .role-panelwrap{
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
  
    --active-accent: rgba(184,208,0,0.65);
    --pointer-left: 50%;
  }
  
  .role-panelwrap::before{
    content: "";
    position: absolute;
    top: -12px;
  
    left: var(--pointer-left);
    transform: translateX(-50%);
  
    width: 0; height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 14px solid color-mix(in srgb, var(--active-accent) 45%, transparent);
  
    filter: drop-shadow(0 10px 16px rgba(0,0,0,0.35));
  }
  
  .role-panel{
    border: 2px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-bg);
    box-shadow: 0 18px 50px rgba(0,0,0,0.38);
    padding: 26px 28px;
    min-height: 260px;
  }
  
  .role-panel__title{
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 800;
  }
  
  .role-panel p{
    color: rgba(255,255,255,0.78);
    line-height: 1.6;
    font-size: 16px;
  }
  
  .role-panel__bullets{
    list-style: none;
    padding: 0;
    margin: 14px 0 18px;
  }
  
  .role-panel__bullets li{
    position: relative;
    padding-left: 26px;
    margin: 10px 0;
    color: rgba(255,255,255,0.86);
    font-weight: 700;
  }
  
  .role-panel__bullets li::before{
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--lime);
    font-weight: 900;
  }
  
  .role-panel__cta{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(11, 31, 59, 0.55);
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 800;
  
    transition: transform 160ms ease, border-color 160ms ease;
  }
  
  .role-panel__cta:hover{
    border-color: rgba(255,255,255,0.26);
    transform: translateY(-1px);
  }
  
  /* ---------- MDC ---------- */
  .mdc{
    padding: 10px 0 80px;
  }
  
  .mdc .container{
    padding-top: 20px;
  }
  
  /* ✅ Header centered, always */
  .mdc__header{
    text-align: center;
    max-width: 980px;
    margin: 0 auto 18px;
  }
  
  .mdc__title{
    margin: 0 0 10px;
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  
  .mdc__rule{
    height: 2px;
    width: min(820px, 92%);
    margin: 0 auto 16px;
    background: rgba(255,255,255,0.18);
  }
  
  /* ✅ This is the subtitle centering fix */
  .mdc .mdc__subtitle{
    margin: 0 auto;
    max-width: 960px;
    width: 100%;
    text-align: center;
    font-size: clamp(18px, 1.8vw, 26px);
    color: rgba(255,255,255,0.85);
    font-weight: 700;
  }
  
  
  /* Pills */
  .mdc-tabs{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin: 18px auto 28px;
  }
  
  .mdc-tab{
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(7, 22, 43, 0.28);
    color: rgba(255,255,255,0.90);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
  
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  }
  
  .mdc-tab:hover{
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.25);
  }
  
  .mdc-tab.is-active{
    background: rgba(7, 22, 43, 0.40);
    border-color: rgba(184,208,0,0.45);
    border-width: 3px;
  }
  
  /* Grid */
  .mdc__grid{
    display:grid;
    grid-template-columns: minmax(320px, 520px) 1fr;
    gap: 24px;
    align-items:start;
  }
  
  /* Cycle “box” (outer) */
  .mdc__cycleBox{
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,0.14);
    background: rgba(7, 22, 43, 0.60);
    box-shadow: 0 18px 50px rgba(0,0,0,0.30);
    min-height: 300px;
    display:flex;
    flex-direction: column;
    place-items:center;
    padding: 14px 14px 0px;
  }
  
  /* Cycle (inner) */
  .mdc__cycle{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 8px;
    box-sizing: border-box;
  
    overflow: visible; /* prevents clipping */
  }
  
  .mdc__cycleImg{
    display: block;
    max-width: 85%;
    height: auto;
    margin: 0;
  }
  
  /* Panels text */
  .mdc-panel p{
    margin: 0 0 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
  }
  
  /* Steps */
  .mdc-steps{
    display:flex;
    flex-direction:column;
    gap: 10px;
    margin-top: 8px;
  }
  
  .mdc-step{
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 14px 34px rgba(0,0,0,0.25);
    padding: 8px 10px;
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  
  .mdc-step:hover{
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.30);
  }
  
  .mdc-step__title{
    font-weight: 900;
    letter-spacing: -0.01em;
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .mdc-step__body{
    color: rgba(255,255,255,0.82);
    line-height: 1.4;
  }
  
  /* Step tints */
  .mdc-step--assess{ background: rgba(47, 183, 179, 0.22); }
  .mdc-step--calibrate{ background: rgba(139, 197, 63, 0.20); }
  .mdc-step--interpret{ background: rgba(243, 156, 18, 0.18); }
  .mdc-step--develop{ background: rgba(231, 76, 60, 0.18); }
  .mdc-step--learn{ background: rgba(155, 89, 182, 0.18); }

  .mdc-introwrap{
    width: 100%;
    min-height: 72px;
    align-items: center;
    display: flex;
    justify-content: center;   /* centers the block horizontally */
    text-align: center;        /* centers the text inside */
    margin: 0 0 16px 0;
  }
  
  .mdc-introblock{
    font-size: 16px;
    line-height: 1.45;
    opacity: 0.92;
    max-width: 420px;
  }
  
  
  /* ---------- Responsive ---------- */
  @media (max-width: 980px){
    :root{
      --hero-text-shift: 0px;
      --hero-cta-shift:  0px;
  
      --hero-bg-x: 0%;
      --hero-bg-y: 10%;
      --hero-bg-size: 92% auto;
  
      --cta-1-bg-size: cover;
    }

    .role-tabs{ grid-template-columns: repeat(2, 1fr); }
  
    /* MDC stacks */
    .mdc__grid{ grid-template-columns: 1fr; }
  }
  
  @media (max-width: 820px){
    .hero{
      padding: clamp(34px, 6vw, 58px) clamp(18px, 4vw, 26px);
    }
  
    .hero__content{
      transform: translateY(-6px);
      padding: clamp(20px, 4vw, 32px) clamp(16px, 3vw, 24px);
      background: rgba(7, 22, 43, 0.50);
      border-radius: 12px;
    }
  
    :root{
      --hero-text-shift: 0px;
      --hero-cta-shift: 0px;
  
      --hero-bg-x: 0%;
      --hero-bg-y: 10%;
      --hero-bg-size: 100% auto;
  
      --cta-1-bg-size: cover;
      --cta-1-bg-pos: center;
    }
  
    .hero__ctas{
      grid-template-columns: 1fr;
      max-width: 560px;
      gap: 14px;
    }
  
    .cta-card{ max-width: 100%; }
  }
  
  @media (max-width: 620px){
    .role-tabs{ grid-template-columns: 1fr; }
    .role-panelwrap::before{ left: 50%; }
  }  