.landing { overflow-x: hidden; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; position: relative; z-index: 1; }
.btn.big { height: 52px; padding: 0 26px; font-size: 1.02rem; }

/* Animated aurora behind the hero */
.aurora { position: absolute; inset: 0 0 auto; height: 980px; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 560px; height: 560px; left: -140px; top: -120px; background: var(--brand); }
.b2 { width: 480px; height: 480px; right: -120px; top: 40px; background: var(--pink); animation-duration: 22s; }
.b3 { width: 420px; height: 420px; left: 40%; top: 380px; background: var(--amber); opacity: 0.32; animation-duration: 26s; }
:root[data-theme="light"] .blob { opacity: 0.28; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }

.nav { position: sticky; top: 0; z-index: 10; background: var(--glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.93rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-menu-btn { display: none; }
.nav-menu-login { display: none; }
@media (max-width: 600px) { .nav-menu-login { display: block; } }

.hero { position: relative; padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.stickers { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.sticker { font-family: var(--display); font-weight: 700; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; transform: rotate(-2deg); box-shadow: var(--shadow-sm); }
.sticker.s1 { background: var(--lime); color: #14120a; }
.sticker.s2 { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); transform: rotate(2deg); }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); line-height: 0.98; letter-spacing: -0.045em; margin-bottom: 22px; font-weight: 800; }
.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.hero-note { font-size: 0.9rem; }

.hero-visual { position: relative; }
.mock { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); box-shadow: var(--shadow), 0 50px 120px -40px rgba(255, 95, 184, 0.45); }
.mock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock-bar em { margin-left: 8px; font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 178px 1fr; height: 360px; }
.mock-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--surface); }
.mock-expr { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 0.82rem; display: grid; grid-template-columns: 12px 1fr; gap: 8px; align-items: center; }
.mock-expr i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.mock-expr i.ghost { background: transparent; }
.c-rose { background: #ff5c7c; }
.c-blue { background: #5b9bff; }
:root[data-theme="light"] .c-rose { background: #e11d48; }
:root[data-theme="light"] .c-blue { background: #2563eb; }
.mock-expr code { font-family: var(--mono); }
.mock-slider { grid-column: 2; height: 4px; border-radius: 99px; background: var(--line-2); position: relative; margin-top: 6px; }
.mock-slider span { position: absolute; top: -5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 0 3px var(--brand-soft); }
.mock-lens { margin-top: auto; padding: 12px; display: grid; gap: 4px; font-size: 0.82rem; background: var(--gradient-soft); }
.mock-lens .badge { justify-self: start; }
#hero-canvas { width: 100%; height: 100%; display: block; background: var(--graph-bg); }
.float-chip { position: absolute; z-index: 2; font-size: 0.82rem; font-weight: 650; padding: 9px 14px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite alternate; white-space: nowrap; }
.float-chip.c1 { top: -22px; right: 6%; }
.float-chip.c2 { bottom: -18px; right: -12px; font-family: var(--mono); animation-delay: -2s; }
@keyframes bob { to { transform: translateY(-8px); } }

.marquee { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.marquee-track span:nth-child(3n + 1) { color: var(--pink); }
.marquee-track span:nth-child(3n + 2) { color: var(--brand); }
@keyframes scroll { to { transform: translateX(-50%); } }

.section { padding: 96px 0; position: relative; }
.kicker { text-align: center; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 10px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.04em; text-align: center; max-width: 820px; margin: 0 auto 48px; font-weight: 800; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: transparent; }
.tile h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin: 14px 0 8px; }
.tile p { color: var(--ink-2); margin: 0; }
.tile-top { display: flex; align-items: center; justify-content: space-between; }
.tile-icon { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--gradient-soft); border: 1px solid var(--line-2); }
.tile-ai { grid-column: span 4; grid-row: span 2; background: radial-gradient(500px 300px at 100% 0%, color-mix(in srgb, var(--pink) 18%, transparent), transparent), var(--surface); }
.tile-solve { grid-column: span 2; grid-row: span 2; }
.tile-check, .tile-practice, .tile-lens, .tile-analysis { grid-column: span 3; }
.tile-linalg { grid-column: span 6; display: grid; grid-template-columns: 1fr 1.3fr; column-gap: 28px; align-content: start; }
.tile-linalg .tile-top, .tile-linalg h3, .tile-linalg > p, .tile-linalg .ticks { grid-column: 1; }
.tile-linalg .shots { grid-column: 2; grid-row: 1 / span 4; display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; align-items: start; }
.tile-linalg figure { margin: 0; }
.tile-linalg img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line-2); }
.tile-linalg figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; text-align: center; }
.ticks.tight { margin: 14px 0 0; gap: 7px; flex: none; }
.tile code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }
.tile-free { grid-column: span 6; background: var(--gradient-soft); }
.tile-check .steps-demo .ok { color: var(--success); font-weight: 800; }
.tile-check .steps-demo .bad, .tile-check .steps-demo .bad span:first-child { color: var(--danger); font-weight: 700; }
.tile-check .steps-demo .bad .muted { font-weight: 500; margin-left: 6px; }

/* Study together */
.together-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.section-title.left { text-align: left; margin: 0 0 18px; }
.together-copy .kicker { text-align: left; }
.together-copy .lede { margin: 0 0 18px; }
.together-copy .ticks { margin: 0 0 24px; }
.live-mock { transform: perspective(1400px) rotateY(5deg) rotateX(2deg); }
.live-dot { margin-left: auto; font-size: 0.75rem; color: var(--success); }
.live-body { position: relative; background: var(--graph-bg); }
.live-graph { display: block; width: 100%; height: auto; }
.live-axis { stroke: var(--grid-axis); stroke-width: 1.5; fill: none; }
.live-curve { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.live-curve.c1 { stroke: var(--pink); }
.live-curve.c2 { stroke: var(--brand); }
.live-pt { fill: var(--poi); }
.cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; animation: drift 6s ease-in-out infinite alternate; }
.cursor svg { width: 16px; height: 16px; fill: var(--c); stroke: #fff; stroke-width: 1; }
.cursor span { font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--c); padding: 2px 7px; border-radius: 8px; margin-top: 12px; }
.cursor.k1 { --c: #e0457b; left: 60%; top: 30%; }
.cursor.k2 { --c: #2f7de1; left: 24%; top: 58%; animation-delay: -2s; }
.cursor.k3 { --c: #16a34a; left: 78%; top: 66%; animation-delay: -4s; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(18px, -12px); } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.chat { margin-top: 22px; display: grid; gap: 10px; max-width: 560px; }
.bubble { padding: 12px 16px; border-radius: 18px; font-size: 0.95rem; line-height: 1.5; }
.bubble.me { justify-self: end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; }
.bubble.bot { background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.bubble .add { display: inline-block; margin-left: 6px; font-weight: 700; font-size: 0.82rem; padding: 2px 10px; border-radius: 999px; background: var(--lime); color: #14120a; }
.steps-demo { margin: 16px 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 0.9rem; }
.steps-demo div { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.steps-demo .hl { background: var(--gradient); color: #fff; font-weight: 700; }
.streak { margin-top: 14px; display: inline-block; font-family: var(--display); font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: #14120a; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare th { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.compare tr:last-child td { border-bottom: none; }
.compare .hl { background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.compare .no { color: var(--muted); }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; box-shadow: var(--glow); }
.price-card .flag { position: absolute; top: -13px; left: 24px; background: var(--lime); color: #14120a; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 1.15rem; }
.price { font-family: var(--display); font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; margin: 4px 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 10px 0 24px; display: grid; gap: 9px; flex: 1; }
.ticks li { padding-left: 26px; position: relative; font-size: 0.95rem; color: var(--ink-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 800; }
#trial-note { margin-top: 20px; }

.faq { max-width: 780px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 4px 20px; margin-bottom: 10px; background: var(--surface); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-family: var(--display); font-size: 1.05rem; }
.faq p { color: var(--ink-2); }
.faq code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.88em; }

.cta-final { text-align: center; padding: 64px 24px; border-radius: 32px; background: var(--gradient); color: #fff; box-shadow: var(--glow); }
.cta-final h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.04em; color: #fff; max-width: 760px; margin: 0 auto 14px; }
.cta-final p { color: rgba(255, 255, 255, 0.88); margin-bottom: 26px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--ink); }
.small-brand { font-size: 1.05rem; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock, .live-mock { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-ai, .tile-solve, .tile-linalg, .tile-check, .tile-practice, .tile-lens, .tile-analysis, .tile-free { grid-column: span 2; grid-row: auto; }
  .tile-check, .tile-practice, .tile-lens, .tile-analysis { grid-column: span 1; }
  .together-grid { grid-template-columns: 1fr; }
  .tile-linalg { display: block; }
  .tile-linalg .shots { margin-top: 18px; }
  .tile-practice, .tile-lens { grid-column: span 1; }
  .pricing { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .nav-links { display: none; }
  /* Phone and tablet menu: the section links and Log in drop down under the bar. */
  .nav-menu-btn { display: inline-flex; }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 8px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-practice, .tile-lens { grid-column: span 1; }
  .tile-ai, .tile-solve, .tile-linalg, .tile-check, .tile-analysis, .tile-free { grid-column: span 1; }
  .tile-linalg .shots { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; height: auto; }
  .mock-list { display: none; }
  #hero-canvas { height: 260px; }
  .nav-cta .ghost { display: none; }
  .hero { padding-top: 40px; }
  .section { padding: 64px 0; }
  .float-chip.c1 { right: 0; top: -30px; }
  .float-chip.c2 { left: 4px; }
  .cta-final { padding: 44px 18px; }
}

.nav { padding-top: env(safe-area-inset-top); }
