@layer tmc-page {
:root{
      --bg: #ffffff;
      --text: #111111;
      --muted: #3d3d3d;
      --line: #e5e1da;
      --teal: #1e8a95;
      --purple: #8c62a7;
      --gold: #f0b43a;
      --ink: #1a1a1a;

      --font-body: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
      --font-display: "Bebas Neue", sans-serif;
      --tracking-display: 0.04em;
      --lh-body: 1.45;
      --lh-heading: 1.05;

      --size-body: 23px;
      --size-sm: clamp(14px, 1.2vw, 16px);
      --size-lg: clamp(24px, 2.8vw, 34px);
      --size-xl: clamp(38px, 6.2vw, 77px);
      --size-hero: clamp(52px, 9vw, 110px);
      --size-headline: clamp(34px, 5.2vw, 64px);

      --max: 1200px;
      --max-wide: 1320px;
      --content-max: 72ch;
      --pad: clamp(18px, 3.5vw, 34px);

      --space-1: 6px;
      --space-2: 10px;
      --space-3: 16px;
      --space-4: 24px;
      --space-5: 36px;
      --space-6: 56px;

      --radius-sm: 10px;
      --radius-md: 16px;
      --radius-lg: 22px;

      --btn-size: clamp(16px, 1.6vw, 18px);
      --btn-size-lg: clamp(31px, 5vw, 62px);

      --topbar-height: 72px;
      --scroll-offset: calc(var(--topbar-height) + var(--space-3));
    }

    h1, h2, h3{
      margin: 0;
      font-size: var(--size-lg);
      font-family: var(--font-body);
      text-transform: none;
      letter-spacing: 0;
      line-height: var(--lh-body);
      font-weight: 700;
    }
    h1{
      font-size: calc(var(--size-hero) * 1.2);
      font-family: var(--font-display);
      text-transform: uppercase;
      letter-spacing: var(--tracking-display);
      line-height: 1.2;
    }
    h2{
      font-size: var(--size-xl);
      font-family: var(--font-display);
      text-transform: uppercase;
      letter-spacing: var(--tracking-display);
      line-height: var(--lh-heading);
    }
    h3{ font-size: var(--size-lg); }
    .measure{ max-width: var(--content-max); }

    a:not(.btn):not(.cta-large):hover,
    a:not(.btn):not(.cta-large):focus-visible{
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-underline-offset: 3px;
    }


    .btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding: 12px 18px;
      border-radius: 999px;
      font-weight: 600;
      font-family: var(--font-display);
      font-size: var(--btn-size);
      border: 1px solid transparent;
      white-space: normal;
      text-align: center;
      line-height: 0.9;
      color: #ffffff;
      transition: none;
    }
    .btn:hover,
    .btn:focus-visible{
      box-shadow: none;
      filter: none;
    }
    .btn:active{ box-shadow: none; }


    .btn.gloss{
      position: relative;
      overflow: hidden;
      transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
    }
    .btn.gloss::after{
      content: "";
      position: absolute;
      inset: -40% -20%;
      background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.65) 50%, transparent 65%);
      transform: translateX(-140%);
      opacity: 0.7;
      pointer-events: none;
      animation: gloss-sweep 2.8s ease-in-out infinite;
    }
    .btn.gloss:hover,
    .btn.gloss:focus-visible{
      box-shadow: 0 14px 26px rgba(0,0,0,0.12);
      filter: brightness(1.02);
    }
    .btn.gloss:active{
      box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    }
    @keyframes gloss-sweep{
      0%{ transform: translateX(-140%); }
      100%{ transform: translateX(140%); }
    }
    .btn.purple{
      background: var(--purple);
      color: #ffffff;
      box-shadow: 0 10px 20px rgba(140,98,167,0.25);
    }
    .btn.gold{
      background: var(--gold);
      color: #ffffff;
      box-shadow: 0 10px 20px rgba(240,180,58,0.25);
    }
    .btn.teal{
      background: var(--teal);
      color: #ffffff;
      box-shadow: 0 10px 20px rgba(30,138,149,0.25);
    }
    .btn.outline{
      background: transparent;
      border-color: #ffffff;
      color: #ffffff;
    }

    /* Hero */
    .hero{ padding: 18px 0 6px; }
    .hero-top{
      display:flex;
      align-items: center;
      gap: 28px;
      justify-content: center;
      margin: 0 auto;
      width: fit-content;
    }
    .hero-logo{
      width: 152px;
      height: 152px;
      display: block;
    }
    .hero-title-block{ text-align: left; }
    .hero-title{
      color: var(--teal);
      line-height: 0.85;
      letter-spacing: normal;
      text-align: left;
    }
    .hero-sub{
      font-family: var(--font-body);
      font-weight: 700;
      font-size: inherit;
      color: var(--ink);
      margin: 6px auto 0;
      line-height: 1.2;
      width: min(100%, 57.6rem);
      text-align: center;
    }
    .hero-image{
      width: 100%;
      border-radius: 22px;
      overflow-y: auto;
      border: 1px solid var(--line);
      margin-top: 12px;
    }
    .hero-image img{
      display:block;
      width: 100%;
      height: auto;
    }
    .hero-image.banner img{
      height: clamp(220px, 32vw, 420px);
      object-fit: cover;
      object-position: center 35%;
    }

    /* Sections */
    .section{ margin-top: var(--space-6); }
    .section-banner{
      padding: 26px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    .section-banner h2,
    .content-banner h2,
    .curriculum-banner h2,
    .deploy-banner h2,
    .math-banner h2,
    .openbook-banner h2,
    .quickfacts-banner h2,
    .reserve-banner h2,
    .teachers-banner h2,
    .why-banner h2{ font-size: clamp(34px, 5vw, 56px); line-height: 0.8; }
    .section-banner.gold{ background: var(--gold); color: #ffffff; }
    .section-banner.purple{ background: var(--purple); color: #ffffff; }
    .section-banner.teal{ background: var(--teal); color: #ffffff; }

    .section-content{
      max-width: var(--max-wide);
      margin: 0 auto;
      padding: 24px var(--pad) 10px;
    }
    .split{
      display:grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 24px;
      align-items: stretch;
    }
    .split.reverse{ grid-template-columns: 0.9fr 1.1fr; }
    .section-copy{
      display:grid;
      gap: 12px;
      max-width: var(--content-max);
      align-content: start;
    }
    .section-copy p{ margin: 0; }
    .section-image{
      border-radius: 18px;
      overflow-y: auto;
      border: 1px solid var(--line);
      height: 100%;
    }
    .section-image.square{
      aspect-ratio: 1 / 1;
      height: auto;
    }
    .section-image img{
      display:block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }
    .section-media{
      display:grid;
      gap: 12px;
      align-items: stretch;
      grid-template-rows: minmax(0, 1fr) auto;
      height: 100%;
    }
    .section-media .section-image{
      height: 100%;
      min-height: 0;
    }
    .section-media .btn{
      width: 100%;
      font-family: var(--font-display);
      font-size: var(--btn-size-lg);
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      padding: 22px 24px;
      border-radius: 16px;
    }

    .cta-stack{
      display:grid;
      gap: 14px;
      width: 100%;
      align-items: stretch;
      justify-self: stretch;
    }
    .cta-stack .btn{
      width: 100%;
      font-family: var(--font-display);
      font-size: var(--btn-size-lg);
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      padding: 22px 22px;
      border-radius: 16px;
    }

    .bullet-list{
      margin: 8px 0 0;
      padding-left: 18px;
    }
    .bullet-list li{ margin: 6px 0; }

    .note{
      margin-top: 12px;
      font-weight: 600;
    }

    .benefit-list{
      list-style: none;
      padding: 0;
      margin: 0;
      display:grid;
      gap: 10px;
    }
    .benefit-list li strong{ display:block; }

    .cta-row{
      display:grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 12px;
      width: min(100%, 720px);
      margin-left: auto;
      margin-right: auto;
    }
    .cta-row .btn{
      width: 100%;
      font-family: var(--font-display);
      font-size: var(--btn-size-lg);
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      padding: 22px 24px;
      border-radius: 16px;
      min-height: 104px;
      white-space: normal;
      line-height: 1;
      text-align: center;
    }
    .cta-note{
      max-width: 720px;
      margin: 0 auto;
      line-height: 1.2;
    }
    .cta-block{
      text-align: center;
      justify-items: center;
    }
    .cta-block h3{ line-height: 1.05; }
    .split.sign-up{
      align-items: stretch;
    }
    .split.sign-up .section-image.square{
      max-width: none;
      justify-self: stretch;
      aspect-ratio: auto;
      height: 100%;
    }
    .split.sign-up .section-copy{
      max-width: 520px;
      justify-self: center;
    }
    .cta-card{
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow-y: auto;
      background: #ffffff;
    }
    .cta-card-bar{
      background: var(--teal);
      color: #ffffff;
      padding: 14px var(--pad);
      border-bottom: 1px solid var(--line);
    }
    .cta-card-bar h2{
      font-size: clamp(26px, 3.6vw, 44px);
      margin: 0;
    }
    .cta-card-body{
      padding: 22px var(--pad) 26px;
    }
    .split.sign-up .cta-block{
      text-align: center;
      justify-items: center;
      align-content: start;
    }
    .split.sign-up .cta-note{
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }
    .split.sign-up .cta-row{
      margin-left: auto;
      margin-right: auto;
      width: 100%;
    }
    .site-footer .footer-title{
      font-family: var(--font-display);
      font-size: var(--size-lg);
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      color: #ffffff;
    }
    .site-footer .footer-tagline{
      margin: 0 auto;
      color: #ffffff;
      font-size: var(--size-body);
      line-height: var(--lh-body);
    }
    @media (min-width: 981px){
      .site-footer .footer-tagline{
        width: 100%;
        max-width: none;
      }
    }

    .btn.cta-standard{
      width: 100%;
      font-family: var(--font-display);
      font-size: clamp(22px, 3vw, 40px);
      letter-spacing: var(--tracking-display);
      text-transform: uppercase;
      padding: 28px 18px;
      border-radius: 18px;
      min-height: 96px;
      white-space: normal;
      line-height: 0.95;
      text-align: center;
    }

@media (max-width: 980px){
      :root{
        --btn-size: 35.04px;
        --btn-size-lg: 35.04px;
      }
      .section-banner h2,
      .content-banner h2,
      .curriculum-banner h2,
      .deploy-banner h2,
      .math-banner h2,
      .openbook-banner h2,
      .quickfacts-banner h2,
      .reserve-banner h2,
      .teachers-banner h2,
      .why-banner h2{
        font-size: clamp(48.96px, 7.2vw, 80.64px);
        line-height: 0.8;
      }

      .btn.cta-standard{
        font-size: 35.04px;
      }

      .split,
      .split.reverse{ grid-template-columns: 1fr; }
      .cta-row{ grid-template-columns: 1fr; }
      .cta-stack{ width: 100%; justify-self: stretch; }

      /* Mobile standards */
      .hero-logo{ display: none !important; }
      .hero-title{ display: none !important; }
      .hero-logo-mobile{ display: block !important; margin: 0 auto; }

      .hero-title{ font-size: 60px !important; line-height: 0.9 !important; letter-spacing: -0.02em !important; }
      .hero-title .org{ font-size: 28px !important; }

      body{ font-size: 23px; }
      h1, h2, h3{ font-size: 26.5px; line-height: 1.2; }
      .hero-title{ font-size: var(--size-hero); }
      .hero-sub{ font-size: inherit; line-height: 1.05; }
      .btn{
        font-family: var(--font-display);
        font-size: clamp(24px, 6.6vw, 32px);
        line-height: 0.9;
        text-transform: uppercase;
        letter-spacing: var(--tracking-display);
        margin-left: auto;
        margin-right: auto;
        text-align: center;
      }
      .topbar .btn:not(.menu-cta){
        display: inline-flex;
        font-family: var(--font-body);
        font-size: 16px;
        line-height: 1.05;
        padding: 10px 14px;
        min-height: 44px;
        border-radius: 999px;
        margin-left: 0;
        margin-right: 0;
        text-transform: none;
        letter-spacing: 0;
        white-space: nowrap;
      }
      .hero-top{
        flex-direction: column;
        gap: 16px;
        width: 100%;
      }
      .hero-logo{
        width: clamp(122px, 27.2vw, 162px);
        height: clamp(122px, 27.2vw, 162px);
      }
      .hero-title-block,
      .hero-title,
      .hero-sub{ text-align: center; }
      .hero-image,
      .hero-image.banner{
        margin-left: 0;
        margin-right: 0;
      }
      .hero-image img,
      .section-image img{
        aspect-ratio: 1 / 1;
        object-fit: cover;
        height: auto;
      }
      .section-media{
        grid-template-rows: auto;
        height: auto;
      }
      .split.sign-up{
        align-items: start;
      }
      .split.sign-up .section-image.square{
        aspect-ratio: 1 / 1;
        height: auto;
        max-width: 520px;
        justify-self: center;
      }
      footer.site-footer .inner{ text-align: center; }
      footer.site-footer .footer-logo{ width: 72px; height: 72px; }
      footer.site-footer .footer-title,
      footer.site-footer .footer-tagline{ font-size: 23px; }
      footer.site-footer .footer-tagline{ line-height: 1.1; }
    }

    @media (max-width: 640px){
      :root{
        --lh-body: 1.38;
      }


    }
}
