/* Landing page — builds on the tokens and components in /learn/learn.css */
.lx-top .topbar-actions { display: flex; align-items: center; gap: 8px; }
.lx-top .ea-dashboard-link { display: none !important; }
.lx-top .ea-account-button { border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }

main { overflow-x: clip; }
.hm-hero { max-width: 1180px; margin: 0 auto; padding: 56px 16px 36px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hm-hero { grid-template-columns: 1fr; padding-top: 32px; gap: 32px; } }
.hm-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; font-size: .84rem; font-weight: 700; color: var(--ink-2); margin: 0 0 18px; }
.hm-pill span { background: var(--good); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 800; }
.hm-hero h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; }
.hm-underline { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--trick) 45%, transparent) 62%); padding: 0 .06em; }
.hm-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; margin: 0 0 26px; line-height: 1.6; }
.hm-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-big { padding: 15px 24px; font-size: 1.02rem; border-radius: 14px; }
.hm-small { color: var(--muted); font-size: .86rem; margin: 12px 0 0; font-weight: 600; }

.hm-hero-demo { position: relative; margin: 50px 0; }
.hm-demo-card { margin: 0; box-shadow: var(--shadow-lift); transform: rotate(-.6deg); }
.hm-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.hm-options button { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: 12px 6px; font-size: 1.05rem; cursor: pointer; transition: transform .08s, border-color .15s; box-shadow: 0 2px 0 var(--line-2); }
.hm-options button:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-1px); }
.hm-options button.right { background: var(--good-soft); border-color: var(--good); box-shadow: 0 2px 0 var(--good); }
.hm-options button.wrong { background: var(--warn-soft); border-color: var(--warn); box-shadow: 0 2px 0 var(--warn); }
.hm-options button:disabled { cursor: default; }
.hm-feedback { margin: 0 18px 12px; padding: 10px 12px; border-radius: 12px; font-weight: 800; font-size: .92rem; animation: lxReveal .25s ease; }
.hm-feedback.good { background: var(--good-soft); color: var(--good); }
.hm-feedback.bad { background: var(--trick-soft); color: var(--trick); }
.hm-mini { margin: 12px 0 4px; box-shadow: none; }
.hm-float { position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow-lift); font-size: .82rem; color: var(--ink-2); display: flex; flex-direction: column; animation: hmBob 5s ease-in-out infinite; }
.hm-float strong { color: var(--ink); font-size: 1rem; }
.hm-float-a { top: -58px; right: 6px; }
.hm-float-b { bottom: -64px; left: 10px; animation-delay: -2.5s; }
@keyframes hmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 560px) { .hm-float { display: none; } .hm-options { grid-template-columns: repeat(2, 1fr); } }

.hm-proof { max-width: 1180px; margin: 28px auto 0; padding: 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .hm-proof { grid-template-columns: repeat(2, 1fr); } }
.hm-proof > div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; }
.hm-proof strong { font-size: 1.55rem; letter-spacing: -.02em; }
.hm-proof span { color: var(--muted); font-size: .85rem; font-weight: 600; }

.hm-section { max-width: 1180px; margin: 0 auto; padding: 84px 16px 0; }
.hm-h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 28px; font-weight: 800; max-width: 22ch; }

.hm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hm-steps { grid-template-columns: 1fr; } }
.hm-step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.hm-step-n { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }
.hm-step h3 { margin: 0 0 6px; font-size: 1.08rem; }
.hm-step p { margin: 0 0 14px; color: var(--ink-2); font-size: .93rem; }
.hm-step-vis { margin-top: auto; }
.hm-step-vis .lx-block { margin: 0; font-size: .9rem; }
.hm-assess-demo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--ex-soft); border-radius: 14px; padding: 12px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.hm-assess-demo button { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: .82rem; }
.hm-assess-demo button.on { background: var(--good); color: #fff; border-color: var(--good); }
.hm-mastery-demo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hm-mastery-demo i { height: 34px; border-radius: 9px; }
.hm-mastery-demo .l0 { background: var(--surface-2); } .hm-mastery-demo .l1 { background: color-mix(in srgb, var(--math) 18%, var(--surface)); }
.hm-mastery-demo .l2 { background: color-mix(in srgb, var(--math) 38%, var(--surface)); } .hm-mastery-demo .l3 { background: color-mix(in srgb, var(--math) 68%, var(--surface)); }
.hm-mastery-demo .l4 { background: var(--math); }
.hm-chat { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; }
.hm-chat > span { padding: 8px 10px; border-radius: 12px; max-width: 92%; }
.hm-chat .me { align-self: flex-end; background: var(--ink); color: var(--bg); }
.hm-chat .ai { align-self: flex-start; background: var(--surface-2); }

.hm-inside { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hm-inside { grid-template-columns: 1fr; } }
.hm-ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 1.02rem; }
.hm-ticks li::before { content: "✓"; font-weight: 800; color: var(--good); margin-right: 10px; }
.c-def { color: var(--def); } .c-key { color: var(--key); } .c-trick { color: var(--trick); } .c-warn { color: var(--warn); } .c-ex { color: var(--ex); } .c-pyq { color: var(--pyq); }
.hm-inside-demo { display: grid; gap: 4px; }

.hm-subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .hm-subjects { grid-template-columns: 1fr; } }
.hm-subject { --c: var(--math); --cs: var(--math-soft); text-decoration: none; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.hm-subject.phy { --c: var(--phy); --cs: var(--phy-soft); } .hm-subject.chem { --c: var(--chem); --cs: var(--chem-soft); }
.hm-subject:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: var(--shadow-lift); }
.hm-subject .sym { width: 52px; height: 52px; border-radius: 15px; background: var(--cs); color: var(--c); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 8px; }
.hm-subject h3 { margin: 0; font-size: 1.3rem; }
.hm-subject p { margin: 0; color: var(--muted); font-weight: 600; }
.hm-go { margin-top: 14px; font-weight: 800; color: var(--c); }

/* Everything is free: what an account opens */
.hm-all-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.hm-all-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.hm-all-card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--good-soft); color: var(--good); display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.hm-all-card h3 { margin: 0; font-size: 1.08rem; }
.hm-all-card p { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.hm-all .hm-note { max-width: 70ch; }
.hm-note { color: var(--muted); font-size: .88rem; margin-top: 16px; }

.hm-faq { max-width: 820px; }
.hm-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.hm-faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.hm-faq summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); }
.hm-faq details[open] summary::after { content: "–"; }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq p { margin: 10px 0 0; color: var(--ink-2); }

.hm-final { max-width: 1180px; margin: 90px auto 0; padding: 56px 16px; text-align: center; background: var(--ink); color: var(--bg); border-radius: 28px; }
.hm-final h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 22px; }
@media (max-width: 1212px) { .hm-final { margin-left: 16px; margin-right: 16px; } }

.hm-footer { margin-top: 70px; border-top: 1px solid var(--line); }
.hm-footer-in { max-width: 1180px; margin: 0 auto; padding: 26px 16px 40px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.hm-footer p { color: var(--muted); font-size: .85rem; margin: 0; }
.hm-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.hm-footer nav a { color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; }
.hm-footer nav a:hover { color: var(--ink); text-decoration: underline; }

/* Free every day: daily test and today's concepts */
.hm-pill a { color: inherit; text-decoration: none; }
.hm-pill a:hover { text-decoration: underline; }
.hm-free-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .hm-free-grid { grid-template-columns: 1fr; } }
.hm-free-card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.hm-free-card.test { border-top: 5px solid var(--good); }
.hm-free-card.concepts { border-top: 5px solid var(--trick); }
.hm-free-card[hidden] { display: none; }
.hm-free-k { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hm-free-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.2; }
.hm-free-card > p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.hm-board-card { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; }
.hm-board-card h4 { margin: 0 0 6px; font-size: 1rem; }
.hm-board { list-style: none; margin: 0; padding: 0; }
.hm-board li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.hm-board li:last-child { border-bottom: 0; }
.hm-board li.empty { display: block; color: var(--muted); border: 0; }
.hm-board li.empty.few { color: var(--ink-2); font-weight: 600; line-height: 1.55; }
.hm-board .rk { font-weight: 800; text-align: center; }
.hm-board .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-board .sc { font-weight: 800; }
.hm-board .sc small, .hm-board .tm { color: var(--muted); font-weight: 600; font-size: .85rem; }
.hm-board-more { display: inline-block; margin-top: 8px; font-weight: 700; }
.hm-today { display: grid; gap: 10px; }
.hm-today-empty { color: var(--muted); margin: 0; }
.hm-today-item { --c: var(--math); --cs: var(--math-soft); display: grid; gap: 4px; text-decoration: none; color: inherit; border: 1.5px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: 12px 14px; background: var(--surface); transition: transform .15s ease, border-color .15s ease; }
.hm-today-item.phy { --c: var(--phy); --cs: var(--phy-soft); } .hm-today-item.chem { --c: var(--chem); --cs: var(--chem-soft); }
.hm-today-item:hover { border-color: var(--c); transform: translateY(-1px); }
.hm-today-item .s { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--c); }
.hm-today-item strong { font-size: 1.02rem; line-height: 1.3; }
.hm-today-item .m { color: var(--muted); font-size: .84rem; }

/* Rank projection advert */
.hm-rank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
@media (max-width: 960px) { .hm-rank { grid-template-columns: 1fr; } }
.hm-rank .hm-h2 { margin-bottom: 14px; }
.hm-rank .hm-lead { margin: 0 0 16px; }
.hm-rank-ticks { margin: 0 0 22px; }
.hm-rank-ticks a { font-weight: 700; }
.hm-rank-card { margin: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lift); }
.hm-rank-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 800; margin-bottom: 6px; }
.hm-rank-card figcaption small { color: var(--muted); font-weight: 600; }
.hm-rank-svg { width: 100%; height: auto; display: block; }
.hm-rank-svg .g { stroke: var(--line); }
.hm-rank-svg .a { fill: var(--muted); font-size: 11px; font-weight: 600; }
.hm-rank-svg .band { fill: var(--math); opacity: .13; }
.hm-rank-svg .ln { fill: none; stroke: var(--math); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hm-rank-svg .pt { fill: var(--surface); stroke: var(--math); stroke-width: 2.5; }
.hm-rank-svg .now { fill: var(--math); stroke: var(--surface); stroke-width: 2; }
.hm-rank-svg .lab { fill: var(--ink); font-size: 12px; font-weight: 800; }
.hm-rank-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.hm-rank-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px; text-align: center; }
.hm-rank-stats strong { display: block; font-size: 1.25rem; letter-spacing: -.02em; }
.hm-rank-stats strong.up { color: var(--good); }
.hm-rank-stats span { color: var(--muted); font-size: .78rem; font-weight: 700; }
