/* Spanish by Leo - home page only (loaded after style.css).
   Reuses the shared tokens, buttons, cards and the featured-lesson widget from style.css. */

/* ---------- Hero ---------- */
.hero { padding: 28px 0 52px; }
.hero-grid { grid-template-areas: "copy" "media"; gap: 28px; }
.hero-copy h1 { text-wrap: balance; }
.hero-sub { max-width: 31em; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; grid-template-areas: "copy media"; gap: 48px; align-items: center; }
  .hero-copy { align-self: center; max-width: 520px; }
}

/* ---------- Section rhythm ---------- */
.home .section { padding: 52px 0; }
.home .section-head { margin-bottom: 24px; }
@media (min-width: 900px) { .home .section { padding: 68px 0; } }

/* ---------- How it works ---------- */
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how-step { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.how-ico { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; }
.how-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 2px; }
.how-step h3 { margin: 0 0 .25em; }
.how-step p { margin: 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.5; }
@media (min-width: 760px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .how-step { flex-direction: column; gap: 14px; padding: 24px; }
}

/* ---------- Featured lesson ---------- */
.feature-grid { display: grid; gap: 24px; align-items: start; }
.feature-copy h2 { margin-bottom: .3em; }
.feature-copy > p { color: var(--ink-soft); }
.feature-copy .compare { margin: 18px 0 0; }
.feature-demo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.feature-demo .mini-q { margin: 0 0 18px; background: var(--paper); }
.feature-demo .mq-opt { background: var(--white); }
.feature-note { font-size: .9rem; color: var(--ink-faint); margin: 0 0 14px; }
.feature-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mq-feedback .mq-why { display: block; }
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
  .feature-copy .compare { grid-template-columns: 1fr; }
  .feature-demo { padding: 28px; }
}

/* ---------- What you can learn ---------- */
.learn-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.learn-tile { display: flex; gap: 14px; align-items: center; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.learn-tile:hover { border-color: var(--ink); color: inherit; }
.learn-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; }
.learn-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.learn-ico.is-level { background: var(--cream-dim); font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; line-height: 1; color: var(--ink); }
.learn-tile h3 { font-size: 1.08rem; margin: 0 0 2px; }
.learn-tile p { margin: 0; font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
.learn-tile:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.learn-more { margin: 18px 0 0; color: var(--ink-soft); }
.learn-more a { font-weight: 700; }
@media (min-width: 560px) { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .learn-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } .learn-tile { padding: 18px; } }

/* ---------- Meet Leo ---------- */
.meet { display: grid; gap: 22px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 32px; padding: 22px; }
.meet-photo { display: flex; justify-content: center; align-items: flex-end; background: var(--cream-dim); border-radius: 24px; padding: 20px 12px 0; overflow: hidden; }
.meet-photo img { width: min(230px, 62vw); height: auto; }
.meet-copy h2 { margin-bottom: .45em; }
.meet-copy p { color: var(--ink-soft); max-width: 34em; }
.meet-copy .btn { margin-top: 6px; }
@media (min-width: 760px) {
  .meet { grid-template-columns: 300px 1fr; gap: 40px; padding: 32px; }
  .meet-photo { padding-top: 28px; }
  .meet-photo img { width: 250px; }
}

/* ---------- Free vs. membership ---------- */
.plans { display: grid; gap: 16px; max-width: 820px; }
.plan { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.plan-member { background: var(--cream); border: 2px solid var(--ink); }
.plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.plan h3 { margin: 0; font-size: 1.4rem; }
.plan-price { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin: 2px 0 2px; }
.plan-price small { font-family: var(--font-body); font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.plan-sub { margin: 0 0 14px; font-size: .92rem; color: var(--ink-soft); }
.plan .check-list { margin: 4px 0 18px; }
.plan .check-list svg { stroke: var(--green); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-fine { margin: 12px 0 0; font-size: .85rem; color: var(--ink-faint); }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; gap: 20px; } .plan { padding: 28px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 4px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 22px; height: 22px; background:
  linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
  linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .15s ease; }
.faq-item[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat; }
.faq-item summary:hover { color: var(--orange-deep); }
.faq-item p { margin: 0 0 18px; padding: 0 4px; color: var(--ink-soft); max-width: 40em; }
.faq-item p a { font-weight: 600; }

/* ---------- Final call to action ---------- */
.home .cta-final h2 { margin-bottom: .3em; }

/* ---------- Header on tablets: the full menu needs about 880px, so keep the mobile menu until then ---------- */
@media (min-width: 760px) and (max-width: 899px) {
  .home .nav { display: none; }
  .home .menu-btn { display: inline-flex !important; }
  .home .mobile-nav.open { display: block !important; }
}

/* ---------- Phones: keep the page compact ---------- */
@media (max-width: 759px) {
  .home .section { padding: 40px 0; }
  .home .section-head { margin-bottom: 18px; }
  .how-step { padding: 16px; gap: 14px; }
  .how-ico { flex-basis: 44px; width: 44px; height: 44px; border-radius: 14px; }
  .meet { padding: 18px; gap: 18px; }
  .meet-photo { padding-top: 14px; }
  .meet-photo img { width: 150px; }
  .learn-tile { padding: 12px 14px; }
  .feature-demo, .plan { padding: 20px; }
}

/* ---------- Added: hero chips, visual steps, guides, Leo's photo ---------- */
.hero-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }

.how-step { flex-direction: column; align-items: stretch; gap: 0; }
.how-demo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 124px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px; }
.hd-pill { display: inline-block; padding: 8px 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); font-weight: 700; font-size: .92rem; }
.hd-pill.is-on { border-color: var(--ink); background: var(--cream-dim); }
.how-demo:has(.hd-pill) { flex-direction: row; flex-wrap: wrap; align-items: center; }
.hd-q { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.hd-q u { text-decoration: none; background: var(--green-tint); border-bottom: 2px solid var(--green); border-radius: 4px; padding: 0 6px; }
.hd-ok { background: var(--green-tint); border: 2px solid var(--green); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .88rem; color: var(--ink-soft); }
.hd-score { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--orange-deep); }
.hd-btn { display: inline-block; background: var(--orange); color: var(--ink); font-weight: 700; font-size: .9rem; border-radius: 999px; padding: 8px 16px; }
.how-step h3 { margin-top: 2px; }

.sub-head { font-size: 1.3rem; margin: 36px 0 14px; }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-card { display: block; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .15s ease; }
.guide-card:hover { border-color: var(--ink); color: inherit; }
.guide-card h4 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.2; margin: 8px 0 4px; }
.guide-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }
.guide-card:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .guide-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 759px) { .guide-grid li:nth-child(n+5) { display: none; } }

.meet-photo { position: relative; padding: 0; align-items: stretch; }
.meet-photo > img:first-child { width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }
.meet-photo { background: transparent; overflow: visible; }
.meet-badge { position: absolute; right: calc(50% - min(170px, 35vw) - 6px); bottom: -10px; width: 56px !important; height: 56px; border-radius: 50%; border: 3px solid var(--white); background: var(--white); }
.meet-facts { list-style: none; margin: 4px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meet-facts li { background: var(--orange-tint); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 700; color: var(--ink); }
@media (max-width: 759px) { .meet-photo img { width: 100%; } .meet-photo > img:first-child { max-width: 260px; } .meet-badge { right: calc(50% - 130px - 6px); } }
@media (min-width: 760px) { .meet { grid-template-columns: 320px 1fr; } .meet-photo > img:first-child { max-width: 320px; } .meet-badge { right: -6px; } }

.hd-q u.is-bad { background: var(--red-tint); border-bottom-color: var(--red); }
.hd-tag { display: inline-block; align-self: flex-start; background: var(--teal-tint); color: var(--teal); font-weight: 600; font-size: .82rem; border-radius: 999px; padding: 4px 12px; }
