/* Writing Cypher™ landing page — LitKids Create brand */

@font-face {
  font-family: "League Spartan";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/league-spartan-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "League Spartan";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/league-spartan-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "League Spartan";
  font-weight: 900;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/league-spartan-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --black: #111111;
  --yellow: #FFD400;
  --white: #FFFFFF;
  --orange: #E8734A;

  --font-head: "League Spartan", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Aktiv Grotesk", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul { margin-top: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
.section-black :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible { outline-color: var(--yellow); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1.05rem 1.9rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  border: 3px solid var(--black);
  border-radius: 999px;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-yellow { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.btn-yellow:hover { background: var(--white); border-color: var(--white); }

.btn-black { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-black:hover { background: var(--white); color: var(--black); }

.btn-small { padding: .7rem 1.2rem; font-size: 1rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  margin-right: auto;
}
.wordmark-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.wordmark-name sup { font-size: .5em; vertical-align: top; position: relative; top: .1em; }
.wordmark-by { font-size: .75rem; color: rgba(255, 255, 255, .78); margin-top: .2rem; }
.wordmark-link { color: var(--yellow); }

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: .4rem 0;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--yellow); }

.nav-toggle { display: none; }
.nav-enroll { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section-y);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.9rem, 7.4vw, 6.25rem);
  line-height: .93;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.hero-lede {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 2rem;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 0;
  margin: 0 0 2.25rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.specs li { padding-inline: 1.1rem; border-left: 3px solid var(--yellow); }
.specs li:first-child { padding-left: 0; border-left: 0; }

/* hero media */
.hero-media { position: relative; margin: 0; padding: 0 0 2.5rem 1.5rem; }
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--yellow);
  transform: translate(-.25rem, -.25rem);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--yellow);
  z-index: 0;
}
.photo-frame picture { position: absolute; inset: 0; z-index: 1; }
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}
.badge {
  position: absolute;
  left: -.5rem;
  bottom: 0;
  z-index: 2;
  width: clamp(7.5rem, 17vw, 11.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--black);
  background: var(--black);
}

/* single orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .badge { animation: pop .5s .45s cubic-bezier(.3, 1.4, .5, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-black { background: var(--black); color: var(--white); }
.section-yellow { background: var(--yellow); color: var(--black); }
.section-white { background: var(--white); color: var(--black); }

.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.3rem, 5.4vw, 4.25rem);
  line-height: .98;
  letter-spacing: -.005em;
  text-transform: uppercase;
  margin-bottom: 0;
  text-wrap: balance;
}
.display-wide { max-width: 16ch; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: start;
}

.prose { max-width: 34rem; font-size: 1.125rem; }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.section-black .prose { color: rgba(255, 255, 255, .88); }
.prose strong { font-weight: 700; }

/* twelve unlabeled bars */
.modules {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.3rem, 1vw, .75rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.modules span {
  display: block;
  height: clamp(1.1rem, 3vw, 2rem);
  background: var(--yellow);
  border-radius: 3px;
}

/* practice */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.practice-grid article {
  border-top: 8px solid var(--black);
  padding-top: 1.25rem;
}
.practice-grid h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: .6rem;
}
.practice-grid p { margin: 0; font-size: 1.125rem; max-width: 26rem; }

/* pace */
.pace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.pace-copy .display { margin-bottom: 1.75rem; }
.pace-copy .prose { margin-bottom: 2rem; }
.pace-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 999px 999px 0 0;
}

/* offer */
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.offer-note { font-size: 1.125rem; margin: 1.25rem 0 2rem; max-width: 24rem; }
.offer-logo { width: clamp(9rem, 20vw, 13rem); border-radius: 50%; }

.offer-card {
  background: var(--black);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: 1.25rem;
}
.offer-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: .25rem;
}
.offer-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1.5rem; }
.price {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(4rem, 9vw, 6rem);
  line-height: 1;
  color: var(--yellow);
}
.price-label { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }

.checklist { margin: 0 0 2rem; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .25); }
.checklist li {
  position: relative;
  padding: .9rem 0 .9rem 2.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.15rem;
  width: .6rem;
  height: 1rem;
  border-right: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  transform: rotate(40deg) scale(.9);
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-list details { border-top: 1px solid rgba(255, 255, 255, .3); }
.faq-list details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--black);
  background: var(--yellow);
  border-radius: 50%;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 1.5rem; max-width: 36rem; color: rgba(255, 255, 255, .88); }
.faq-list details a { color: var(--yellow); }

/* final CTA */
.final-inner { text-align: left; }
.final-inner .display { margin-bottom: 1.5rem; }
.final-copy { max-width: 36rem; font-size: 1.25rem; margin-bottom: 2.25rem; }

/* footer */
.site-footer { background: var(--black); padding-block: 2.25rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-inner p { margin: 0; font-size: .95rem; }
.footer-inner a { color: var(--yellow); }
.footer-small { color: rgba(255, 255, 255, .72); }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .site-nav ul { gap: 1rem; }
  .site-nav a { font-size: .88rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 34rem; margin-inline: auto; width: 100%; }
  .split, .pace-grid, .offer-grid, .faq-grid { grid-template-columns: 1fr; }
  .pace-media { order: -1; max-width: 26rem; }
  .display-wide { max-width: none; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .site-header .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    color: var(--white);
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    cursor: pointer;
  }
  .nav-toggle-bars,
  .nav-toggle-bars::before {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .nav-toggle-bars::before { content: ""; position: absolute; top: -6px; left: 0; }
  .nav-toggle-bars { margin-top: 6px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    padding: .5rem var(--pad) 1.5rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .site-nav a { display: block; padding: 1rem 0; font-size: 1.1rem; border-bottom: 0; }
  .site-nav li.nav-enroll { display: block; border-bottom: 0; padding-top: 1.25rem; }
  .site-nav li.nav-enroll .btn { padding: 1.05rem 1.9rem; font-size: 1.2rem; border-bottom: 3px solid var(--yellow); }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; font-size: 1rem; }
  .specs li, .specs li:first-child { padding: .6rem 0 0; border-left: 0; border-top: 3px solid var(--yellow); }
  .btn { display: block; width: 100%; }
  .hero-media { padding-left: 0; padding-bottom: 2rem; }
  .photo-frame { aspect-ratio: 1 / 1; transform: translate(.6rem, -.6rem); }
  .photo-frame::before { inset: .9rem -.9rem -.9rem .9rem; }
  .badge { left: -.25rem; bottom: -.25rem; width: 7rem; }
  .faq-list summary { font-size: 1.15rem; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
