/* Spanish at Work — sales site
   Brand: Hi-Vis (navy + safety yellow, Barlow Condensed / Barlow) */

:root {
  --navy: #12223a;
  --navy-line: #3a4a63;
  --yellow: #ffc629;
  --paper: #f6f5f1;
  --white: #ffffff;
  --ink: #12223a;
  --muted: #4a5566;
  --muted-on-navy: #c9d1dc;
  --soft-on-navy: #dfe4ea;
  --line: #dcdad3;
  --line-strong: #c9c6bd;
  --green: #1f7a4d;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", Arial, sans-serif;
  --wrap: 1180px;
  --pad: 28px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
a:hover { color: #000; }
a:focus-visible,
button:focus-visible,
audio:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--yellow); color: var(--navy); padding: 10px 14px; font-weight: 700; z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.h-xl { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 0.95; }
.h-lg { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 14px 22px; border-radius: 4px;
  font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.2;
}
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #ffd457; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #1c3358; color: var(--white); }
.btn-big { padding: 17px 28px; font-size: 19px; font-weight: 800; }
.btn-outline { border: 2px solid var(--navy); }
.text-link { font-weight: 600; text-underline-offset: 4px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo:hover { color: var(--white); }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1; text-transform: uppercase; }
.logo-word span { background: var(--yellow); color: var(--navy); padding: 1px 6px; border-radius: 3px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
.site-nav a:not(.btn) { color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); overflow: hidden; }
.hero .wrap {
  padding-top: 72px; padding-bottom: 96px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero-copy { flex: 999 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(3.2rem, 6.4vw, 5.4rem); line-height: 0.92; letter-spacing: -0.01em; max-width: 12ch; }
.hero-lede { font-size: 21px; line-height: 1.45; color: var(--soft-on-navy); max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding-top: 4px; }
.hero-actions .text-link { color: var(--white); }

.floor-sign-wrap { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; padding: 12px 0; }
.floor-sign { margin: 0; width: min(460px, 100%); }
.floor-sign-card { container-type: inline-size; background: var(--yellow); color: var(--navy); border-radius: 6px; overflow: hidden; box-shadow: 0 24px 0 -8px rgba(0, 0, 0, 0.25); }
.tape { height: 22px; background: repeating-linear-gradient(-45deg, var(--navy) 0 16px, var(--yellow) 16px 32px); }
.floor-sign-body { padding: 30px 34px 26px; display: flex; flex-direction: column; gap: 8px; }
.floor-sign-word { font-family: var(--display); font-weight: 900; font-size: 4.6rem; font-size: calc((100cqi - 72px) / 3.85); line-height: 0.85; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.floor-sign-en { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; }
.floor-sign-note { font-size: 15px; font-weight: 600; padding-top: 10px; margin-top: 10px; border-top: 2px solid var(--navy); }

/* Offer strip */
.offer-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.offer-strip .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.price-inline { display: flex; align-items: baseline; gap: 10px; }
.price-inline b { font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 0.9; }
.price-inline span { font-size: 16px; color: var(--muted); }
.offer-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; flex: 1 1 520px; font-size: 17px; font-weight: 600; }

/* Generic two-column section */
.section { padding-top: 96px; padding-bottom: 96px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px 72px; }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }
.rule-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-top { border-top: 1px solid var(--line); }

/* Problem */
.problem-points { display: flex; flex-direction: column; gap: 26px; padding-top: 6px; }
.problem-points p { font-size: 21px; line-height: 1.5; }

/* Bridge */
.bridge .wrap { display: flex; flex-direction: column; gap: 48px; }
.bridge .two-col { gap: 32px 72px; align-items: end; }
.bridge h2 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.92; }
.bridge-lede { font-size: 21px; line-height: 1.5; color: var(--soft-on-navy); }
.bridge-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 48px; border-top: 2px solid var(--navy-line); padding-top: 32px; }
.bridge-points div { display: flex; flex-direction: column; gap: 8px; }
.bridge-points h3 { font-size: 28px; color: var(--yellow); }
.bridge-points p { color: var(--soft-on-navy); }

/* Guide */
.guide { align-items: center; }
.guide-copy { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.guide-copy p { font-size: 19px; }

/* Plan */
.plan .wrap { display: flex; flex-direction: column; gap: 48px; }
.plan h2 { max-width: 18ch; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; border-top: 4px solid var(--navy); }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.step-num { font-family: var(--display); font-weight: 900; font-size: 88px; line-height: 0.8; }
.steps h3 { font-family: var(--body); text-transform: none; font-weight: 700; font-size: 22px; }
.steps p { color: var(--muted); }

/* Download graphic */
.contents { align-items: center; }
.zip-wrap { display: flex; justify-content: center; }
.zip { width: 440px; max-width: 100%; background: var(--white); border: 2px solid var(--navy); border-radius: 6px; overflow: hidden; box-shadow: 10px 10px 0 var(--navy); }
.zip-head { background: var(--navy); color: var(--white); padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.zip-head b { flex: 1; font-size: 16px; }
.zip-head span { font-size: 14px; color: var(--muted-on-navy); }
.zip-group { padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 8px; }
.zip-group + .zip-group { padding-top: 14px; padding-bottom: 18px; }
.zip-label { display: flex; align-items: baseline; gap: 10px; }
.zip-label b { font-size: 16px; }
.zip-label span { font-size: 14px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
.tiles span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 2px; font-size: 10px; font-weight: 700; background: var(--navy); color: var(--white); }
.tiles.starter span { background: var(--yellow); color: var(--navy); border: 1.5px solid var(--navy); font-size: 11px; font-weight: 800; }
.zip-rule { border-top: 1px dashed #b9bec6; margin: 0 20px; }
.zip-docs { padding: 14px 20px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 14px; }
.zip-docs span { display: flex; align-items: center; gap: 8px; }
.contents-copy { display: flex; flex-direction: column; gap: 22px; }
.contents-copy dl { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contents-copy dt { font-weight: 700; font-size: 19px; }
.contents-copy dd { margin: 2px 0 0; color: var(--muted); }

/* Stakes */
.stakes h2 { font-size: 30px; line-height: 1.05; }
.stakes-before { display: flex; flex-direction: column; gap: 16px; }
.stakes-before h2 { font-weight: 700; color: #9aa6b6; }
.stakes-before p { font-size: 20px; line-height: 1.5; color: var(--muted-on-navy); }
.stakes-after { display: flex; flex-direction: column; gap: 16px; border-left: 4px solid var(--yellow); padding-left: 32px; }
.stakes-after h2 { color: var(--yellow); }
.stakes-after p { font-size: 20px; line-height: 1.5; }

/* Free sample */
.free { align-items: center; padding-top: 88px; padding-bottom: 88px; }
.free-copy { display: flex; flex-direction: column; gap: 14px; }
.free-copy p { font-size: 19px; }
.sample { background: var(--white); border: 2px solid var(--navy); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.sample-title b { display: block; font-size: 18px; }
.sample-title span { font-size: 15px; color: var(--muted); }
.sample audio { width: 100%; }
.sample .btn { width: 100%; font-size: 18px; }

/* Offer */
.offer { align-items: start; }
.offer-copy { display: flex; flex-direction: column; gap: 18px; }
.offer-copy p { color: var(--muted); }
.offer-copy .how-made { font-size: 16px; }
.offer-copy .how-made b { color: var(--ink); }
.price-card { border: 3px solid var(--navy); border-radius: 6px; overflow: hidden; box-shadow: 10px 10px 0 var(--yellow); background: var(--white); }
.price-top { padding: 28px 30px 8px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-top b { font-family: var(--display); font-weight: 900; font-size: 96px; line-height: 0.85; }
.price-top span { font-size: 17px; color: var(--muted); }
.checks { margin: 0; padding: 18px 30px 6px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; }
.checks svg { flex: none; margin-top: 4px; }
.price-cta { padding: 20px 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.price-cta .btn { width: 100%; }
.price-cta small { font-size: 14px; color: var(--muted); text-align: center; }
.license { background: var(--paper); border-top: 1px solid var(--line); padding: 14px 30px; font-size: 14px; line-height: 1.45; color: #3f4a59; }

/* FAQ */
.faq .wrap { max-width: 820px; padding-top: 88px; padding-bottom: 88px; }
.faq h2 { margin-bottom: 22px; }
.faq details { border-top: 1px solid var(--line-strong); padding: 18px 0; }
.faq details:first-of-type { border-top: 2px solid var(--navy); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style-position: outside; min-height: 32px; }
.faq details p { margin-top: 8px; }

/* Final CTA */
.final { background: var(--yellow); color: var(--navy); }
.final .tape { height: 18px; background: repeating-linear-gradient(-45deg, var(--navy) 0 14px, var(--yellow) 14px 28px); }
.final .wrap { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.final h2 { font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.92; max-width: 14ch; }
.final-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.final-actions .btn { font-size: 20px; padding: 18px 30px; font-weight: 800; }
.final-actions .text-link { font-weight: 700; }

/* Footer */
.site-footer { background: var(--navy); color: var(--muted-on-navy); }
.site-footer .wrap { padding-top: 30px; padding-bottom: 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.site-footer b { color: var(--white); }
.site-footer a { color: var(--muted-on-navy); }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Terms page */
.legal { padding-top: 64px; padding-bottom: 88px; max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 0.95; margin-bottom: 24px; }
.legal h2 { font-size: 28px; margin: 40px 0 10px; }
.legal p, .legal li { color: #2b3a50; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0 0; padding-left: 22px; }
.legal .note { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 14px 18px; font-size: 16px; }

/* Small screens */
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; }
  .stakes-after { padding-left: 20px; }
    .price-top b { font-size: 76px; }
  .site-nav { gap: 16px; }
}

/* ---------- Motion ----------
   Everything that moves on its own is gated by html.motion, which is only set
   when the visitor's device allows motion and the browser supports it. */

/* Buttons: lift on hover, press on click */
.btn { transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.motion .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28); }
.motion .btn:active { transform: translateY(1px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }

/* Hero sign: drops in and settles on load; straightens on hover */
.floor-sign { --tilt: -2.5deg; transform: rotate(var(--tilt)); transform-origin: 50% 0; transition: transform 0.35s ease; }
.motion .floor-sign { animation: sign-drop 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s backwards; }
.motion .floor-sign:hover { transform: rotate(0deg) scale(1.02); }
@keyframes sign-drop {
  0%   { opacity: 0; transform: translateY(-48px) rotate(-9deg); }
  55%  { opacity: 1; transform: translateY(6px) rotate(1.5deg); }
  78%  { transform: translateY(0) rotate(calc(var(--tilt) - 1.2deg)); }
  100% { transform: rotate(var(--tilt)); }
}

/* Download graphic: progress bar fills while the 51 lessons light up in order */
.zip-progress { height: 5px; background: #2a3c5a; }
.zip-progress span { display: block; height: 100%; background: var(--yellow); transform-origin: left center; }
.motion .zip .zip-progress span { transform: scaleX(0); }
.motion .zip .tiles span { opacity: 0.15; transform: scale(0.55); }
.motion .zip .zip-docs span { opacity: 0; transform: translateY(6px); }
.motion .zip.is-in .zip-progress span { transform: scaleX(1); transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.motion .zip.is-in .tiles span {
  opacity: 1; transform: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
  transition-delay: calc(var(--i, 0) * 24ms);
}
.motion .zip.is-in .zip-docs span { opacity: 1; transform: none; transition: opacity 0.3s ease, transform 0.3s ease; transition-delay: calc(1.35s + var(--i, 0) * 90ms); }

/* Plan: the rule draws across, then the step numbers stamp in */
.steps { position: relative; }
.motion .steps { border-top-color: transparent; }
.motion .steps::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px; background: var(--navy); transform: scaleX(0); transform-origin: left center; }
.motion .steps.is-in::before { transform: scaleX(1); transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.motion .steps .step-num { display: inline-block; transform: scale(0.2); opacity: 0; transform-origin: left bottom; }
.motion .steps.is-in .step-num { transform: none; opacity: 1; transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s ease; transition-delay: calc(0.35s + var(--i, 0) * 160ms); }

/* Free sample: sound bars move only while the lesson is playing */
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 28px; flex: none; }
.eq i { display: block; width: 5px; height: 30%; border-radius: 2px; background: var(--navy); }
.eq i:nth-child(2) { height: 60%; }
.eq i:nth-child(3) { height: 45%; }
.motion .sample.is-playing .eq i { animation: eq-bounce 0.9s ease-in-out infinite alternate; }
.motion .sample.is-playing .eq i:nth-child(2) { animation-delay: -0.35s; }
.motion .sample.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; }
.motion .sample.is-playing .eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq-bounce { from { height: 18%; } to { height: 100%; } }

/* FAQ: plus turns into an x, answer eases in */
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background:
    linear-gradient(var(--navy), var(--navy)) center / 100% 3px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 3px 100% no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.motion .faq details[open] p { animation: faq-in 0.3s ease both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 640px) {
  .floor-sign { --tilt: -1.5deg; }
}

/* Free sign-up (beehiiv embed) */
.signup { display: flex; flex-direction: column; gap: 10px; }
.signup-label { margin: 0; color: var(--navy); }
