/* home.css — the public home page (study.it-learn.io/). Studio tokens only. */
.home-top { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.home-links { display: flex; gap: 4px; font-size: .92rem; color: var(--muted); }
.home-links a { padding: 6px 10px; border-radius: 9px; }
.home-links a:hover { background: var(--accent-soft); color: var(--text); }
.home-account { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 52px; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 3.3rem); line-height: 1.02; letter-spacing: -.04em; margin: 18px 0; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--hl) 62%); padding: 0 .06em; }
[data-mode="dark"] .hero h1 em { background: none; color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .hero h1 em { background: none; color: var(--accent); } }
.hero .lede { font-size: 1.14rem; max-width: 520px; margin: 0 0 26px; }
.shot { position: relative; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 14px; box-shadow: var(--sh); }
.shot .dots { display: flex; gap: 6px; margin-bottom: 10px; } .shot .dots i { width: 9px; height: 9px; border-radius: 99px; background: var(--surface2); }
.shot .video { margin: 0; }
.float { position: absolute; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px -12px rgba(16,24,40,.28); padding: 12px 14px; font-size: .84rem; }
.float-a { left: -28px; bottom: -44px; display: flex; align-items: center; gap: 10px; }
.float-b { right: -18px; top: 46px; width: 214px; }
.float .opt { padding: 7px 9px; margin: 6px 0 0; font-size: .8rem; }
.float .opt-key { width: 18px; height: 18px; flex-basis: 18px; font-size: .62rem; border-radius: 6px; }
.welcome { padding: 40px 44px; }
.welcome h1 { font-size: 2.5rem; margin-bottom: 6px; }
.stat-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stat-strip div { padding: 18px 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.stat-strip b { display: block; font: 600 1.9rem/1.1 var(--f-head); letter-spacing: -.035em; }
.stat-strip span { font-size: .86rem; color: var(--muted); }
.home-section { padding-top: 72px; }
.home-section > .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.home-section h2 { font-size: 2.3rem; letter-spacing: -.035em; }
.home-section .head p { margin: 6px 0 0; color: var(--muted); max-width: 560px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh); min-width: 0; }
.ccard .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ccard h3 { font-size: 1.5rem; }
.ccard p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.ccard .facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.ccard .facts b { color: var(--text); font-weight: 650; }
.ccard .go { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: .92rem; }
.ccard .arrow { width: 34px; height: 34px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); display: grid; place-items: center; }
.ccard--free { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.ccard--free p, .ccard--free .facts, .ccard--free .label { color: inherit; opacity: .8; }
.ccard--free .facts { border-color: rgba(127,127,127,.3); } .ccard--free .facts b { color: inherit; }
.ccard--free .arrow, .ccard--free .chip { background: var(--hl); color: var(--hl-ink); }
[data-mode="dark"] .ccard--free .arrow, [data-mode="dark"] .ccard--free .chip { background: var(--btn-ink); color: var(--btn); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .ccard--free .arrow, :root:not([data-mode="light"]) .ccard--free .chip { background: var(--btn-ink); color: var(--btn); } }
.ccard--soon { background: transparent; border-style: dashed; box-shadow: none; }
.card-group + .card-group { margin-top: 34px; }
.card-group-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.card-group-head h3 { font-size: 1.15rem; letter-spacing: -.015em; margin: 0; }
.card-group-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step { padding: 20px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step .n { font: 700 .9rem var(--f-head); width: 30px; height: 30px; border-radius: 10px; background: var(--hl); color: var(--hl-ink); display: grid; place-items: center; }
.step h3 { font-size: 1.2rem; } .step p { margin: 0; font-size: .9rem; color: var(--muted); }
.mini { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; }
.mini .opt { padding: 6px 8px; margin: 5px 0 0; font-size: .78rem; } .mini .opt-key { width: 18px; height: 18px; flex-basis: 18px; font-size: .62rem; }
.mini .rate { display: flex; gap: 5px; margin-top: 8px; } .mini .rate i { flex: 1; text-align: center; font-style: normal; padding: 4px 0; border-radius: 7px; background: var(--surface2); font-size: .68rem; font-weight: 650; color: var(--muted); }
.mini .rate i.on { background: var(--hl); color: var(--hl-ink); }
.term { background: #0d0e11; color: #d7dbe2; border-radius: 10px; padding: 10px; font: 11.5px/1.6 var(--f-mono); } .term b { color: #D4F65A; font-weight: 600; }
.tool-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.tool-row a { padding: 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; display: flex; flex-direction: column; gap: 12px; }
.tool-row a:hover, .post:hover, .ccard:hover { border-color: var(--muted); }
.tool-row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; font: 700 .7rem var(--f-mono); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post { padding: 20px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.post .chip { align-self: flex-start; } .post h3 { font-size: 1.12rem; line-height: 1.3; } .post p { margin: 0; font-size: .86rem; color: var(--muted); }
.cta { margin-top: 72px; padding: 56px 48px; border-radius: 28px; background: var(--btn); color: var(--btn-ink); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: 2.6rem; letter-spacing: -.04em; max-width: 620px; } .cta p { margin: 10px 0 0; opacity: .78; max-width: 520px; }
.cta .btn { background: var(--hl); color: var(--hl-ink); }
[data-mode="dark"] .cta .btn { background: var(--btn-ink); color: var(--btn); }
@media (prefers-color-scheme: dark) { :root:not([data-mode="light"]) .cta .btn { background: var(--btn-ink); color: var(--btn); } }
.about { margin-top: 56px; font-size: .88rem; color: var(--muted); max-width: 820px; }
.about h2 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.home-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 36px 0 50px; font-size: .86rem; color: var(--muted); }
.home-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 40px 28px; } .shot { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 30px 18px; } .hero h1 { font-size: 2.5rem; } .float-a { left: 8px; bottom: -22px; } .float-b { display: none; }
  .cards, .steps, .posts { grid-template-columns: minmax(0, 1fr); } .stat-strip, .tool-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-section h2 { font-size: 1.8rem; } .cta { padding: 34px 22px; } .cta h2 { font-size: 1.9rem; } .welcome { padding: 26px 18px; } .welcome h1 { font-size: 1.9rem; }
  .home-account .btn--ghost { display: none; }
}

/* Spanish headlines run longer: keep the hero at three lines. */
html[lang="es"] .hero h1 { font-size: clamp(2.2rem, 3.3vw, 2.8rem); }
