/* Mnemos solutions website (pages generated by build_site.py). Uses the app's tokens and solution styles from styles.css. */
body.site { background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; }
.s-wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.site a { color: var(--brand-ink, #0a298a); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site a { color: #9fd8ff; } }
.site h1 { font: 800 clamp(26px, 4.2vw, 38px)/1.2 var(--font-display); margin: 6px 0 12px; letter-spacing: -.01em; }
.site h2 { font: 800 22px/1.3 var(--font-display); margin: 34px 0 12px; }
.site h3 { font: 700 16px/1.3 var(--font-display); margin: 24px 0 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .03em; font-size: 13px; }
.site p { margin: 0 0 12px; }

/* header */
.s-head { position: sticky; top: 0; z-index: 10; background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.s-head-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 80px; }
.s-brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.s-brand img { display: block; height: 60px; width: auto; }
.s-brand.small img { height: 44px; }
.s-brand .logo-w { display: none; }
/* white wordmark on dark backgrounds: the landing header and dark mode */
body.landing .s-head .logo-c { display: none; } body.landing .s-head .logo-w { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-brand .logo-c { display: none; } :root:not([data-theme="light"]) .s-brand .logo-w { display: block; } }
.s-nav { display: flex; gap: 4px; flex: 1; }
.s-nav a { color: var(--ink-2) !important; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.s-nav a:hover { background: var(--surface-2); color: var(--ink) !important; }
body.landing .s-nav a { color: rgba(255,255,255,.88) !important; } body.landing .s-nav a:hover { background: rgba(255,255,255,.12); color: #fff !important; }
.s-cta { background: #0a298a; color: #fff !important; font-weight: 700; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
@media (max-width: 720px) {
  .s-head-in { height: 68px; padding: 0 16px; gap: 12px; }
  .s-brand img { height: 50px; }
  .s-nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -8px; }
  .s-nav a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  .s-cta { margin-left: auto; padding: 7px 13px; }
  .s-wrap { padding: 0 16px; }
}

.s-main { padding-top: 18px; padding-bottom: 40px; min-height: 60vh; }
.s-crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.s-crumbs a { color: var(--muted) !important; text-decoration: none; }
.s-crumbs a:hover { text-decoration: underline; }
.s-lead { font-size: 17.5px; color: var(--ink-2); max-width: 70ch; }
.s-meta { font-size: 14px; color: var(--muted); margin: 0; }
.s-meta a { color: inherit !important; font-weight: 600; }
.muted { color: var(--muted); }

/* home */
.s-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 26px 0 8px; }
.s-hero-icon { border-radius: 40px; box-shadow: 0 18px 40px rgba(10, 41, 138, .3); }
.s-kicker { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #0670e8; margin: 0 0 4px !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-kicker { color: #9fd8ff; } }
@media (max-width: 720px) { .s-hero { grid-template-columns: 1fr; } .s-hero-icon { display: none; } }
.s-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.s-btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 14px; font-weight: 700; text-decoration: none; background: linear-gradient(115deg, #0a298a, #0585fe); color: #fff !important; }
.s-btn.ghost { background: var(--surface); color: var(--ink) !important; border: 1px solid var(--line); }
.s-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 4px; }
.s-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; }
.s-stats b { font: 800 26px var(--font-display); }
.s-stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .s-stats { grid-template-columns: repeat(2, 1fr); } }

/* lists, cards, chips */
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.s-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--ink) !important; transition: transform .1s, box-shadow .1s; }
.s-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 42, 68, .08); }
.s-card b { display: block; line-height: 1.3; }
.s-card small { color: var(--muted); font-size: 12.5px; }
.s-num { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink) !important; }
.s-chip:hover { border-color: #0585fe; }
.s-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.s-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; text-decoration: none; color: var(--ink) !important; }
.s-list a b { color: #0670e8; margin-right: 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-list a b { color: #9fd8ff; } }
.s-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; margin: 18px 0; }
.s-box h2 { margin-top: 0; font-size: 19px; }
.s-box ol, .s-topic ul { padding-left: 22px; margin: 0; display: grid; gap: 4px; }
.s-topic { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin: 8px 0; }
.s-topic summary { cursor: pointer; padding: 10px 0; font-family: var(--font-display); }
.s-topic .thm { margin: 8px 0; }
.s-tip { background: var(--marigold-soft); border-radius: 12px; padding: 10px 12px; margin-top: 10px !important; font-size: 15px; }

/* questions as printed */
.s-q { margin: 0 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.s-q figcaption { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.s-q img { width: 100%; height: auto; display: block; background: #fff; border-radius: 8px; }
.s-q.big img { max-width: 820px; }
.s-q.big figcaption { margin: 6px 0 0; }
.s-qtext p { margin: 0 0 8px; line-height: 1.6; }
.s-qtext .s-sub b { color: var(--ink-2); margin-right: 4px; }
.s-q .sol-fig figcaption { margin: 2px 0 0; text-align: center; }
.s-q.big h2 { font-size: 17px; margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-q img { padding: 8px; } }
.s-opts { margin: 8px 0 0; padding-left: 26px; display: grid; gap: 4px; }
.s-answer { font-size: 17px; background: var(--tick-soft); border-radius: 12px; padding: 10px 12px; }
.ans-steps { display: grid; gap: 4px; font-size: 16px; }
.ans-steps .or { text-align: center; font-weight: 800; color: var(--muted); letter-spacing: .08em; margin: 6px 0; }
.ans-steps .gap { height: 6px; }
.site .sol { margin: 6px 0 10px; }
.s-prevnext { display: flex; justify-content: space-between; margin: 8px 0 18px; font-weight: 700; }

/* app call-to-action */
.s-app-card { display: flex; align-items: center; gap: 14px; margin: 26px 0 6px; padding: 16px 18px; border-radius: 20px; text-decoration: none;
  background: linear-gradient(115deg, #0a298a, #0585fe); color: #fff !important; box-shadow: 0 10px 26px rgba(10, 41, 138, .25); }
.s-app-card img { border-radius: 12px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); flex: none; }
.s-app-card span { display: grid; flex: 1; }
.s-app-card b { font: 800 17.5px var(--font-display); }
.s-app-card small { opacity: .88; font-size: 13.5px; }
.s-arrow { font-size: 22px; flex: none !important; }

/* footer */
.s-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 22px 0 30px; font-size: 14px; color: var(--muted); }
.s-foot-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.s-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.s-foot-links a { color: var(--ink-2) !important; }
/* the app's phone-frame rules must not apply to website pages */
body.site { padding: 0 !important; background: var(--bg) !important; }
/* small screens: give long equations the full width; the reason goes under the step */
@media (max-width: 600px) {
  .site .sol-step.has-why { grid-template-columns: 22px minmax(0, 1fr); }
  .site .sol-step.has-why .sol-why { grid-column: 2; text-align: left; padding-top: 0; }
  .site .s-box { padding: 14px 12px; }
  .site .sol-part { padding: 10px 10px 8px; }
}

/* ======================= landing page (home) ======================= */
.s-landing { padding: 0 0 20px; }
body.landing .s-head { background: #061238; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.l-hero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(900px 500px at 85% 20%, rgba(5, 133, 254, .55), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(10, 41, 138, .55), transparent 60%),
    radial-gradient(500px 300px at 60% 110%, rgba(56, 189, 248, .35), transparent 60%), #061238; }
.l-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.l-kicker { display: inline-block; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #9fd8ff; margin: 0 0 14px !important; }
.l-kicker.dark { color: #0670e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .l-kicker.dark { color: #9fd8ff; } }
.l-hero h1 { font: 800 clamp(36px, 6vw, 62px)/1.05 var(--font-display); letter-spacing: -.025em; margin: 0 0 18px; color: #fff; }
.l-sub { font-size: clamp(16.5px, 2vw, 19px); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 540px; }
.l-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.l-ctas.center { justify-content: center; }
.l-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font: 700 16px var(--font-body);
  text-decoration: none; background: #fff; color: #0a298a !important; box-shadow: 0 10px 30px rgba(5, 133, 254, .35); transition: transform .12s; }
.l-btn:hover { transform: translateY(-1px); }
.l-btn.ghost { background: rgba(255,255,255,.08); color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.l-btn.small { padding: 11px 18px; font-size: 15px; background: linear-gradient(115deg, #0a298a, #0585fe); color: #fff !important; margin-top: 8px; }
.l-note { margin-top: 18px !important; font-size: 14px; color: rgba(255,255,255,.65); }
.l-soon { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); padding: 6px 12px; border-radius: 999px; }
.l-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }

/* phones */
.l-phones { position: relative; height: 560px; }
.l-phone { position: absolute; width: 258px; border-radius: 40px; padding: 10px; background: #111; box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 0 0 2px #2b2b33; }
.l-phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.l-phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 76px; height: 20px; border-radius: 20px; background: #111; z-index: 2; }
.l-phones .l-phone { right: 40px; top: 10px; transform: rotate(4deg); }
.l-phones .l-phone.back { right: 220px; top: 50px; transform: rotate(-8deg) scale(.9); opacity: .9; filter: saturate(.9); }
.l-phone.single { position: relative; margin: 0 auto; transform: rotate(2deg); }

/* the idea */
.l-idea { background: #061238; color: #fff; padding: 64px 0 70px; border-top: 1px solid rgba(255,255,255,.06); }
.l-big { font: 700 clamp(22px, 3.3vw, 34px)/1.35 var(--font-display); letter-spacing: -.01em; max-width: 880px; margin: 0 0 18px !important; }
.l-big em { font-style: normal; background: linear-gradient(90deg, #fdbf27, #6fd5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-big.muted-l { color: rgba(255,255,255,.6); }

/* sections */
.l-section { padding-top: 64px; }
.l-h2 { font: 800 clamp(26px, 3.6vw, 38px)/1.15 var(--font-display) !important; letter-spacing: -.02em; margin: 0 0 22px !important; }
.l-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.l-step { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink) !important; transition: transform .12s, box-shadow .12s; }
.l-step:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 42, 68, .1); }
.l-step b { font: 800 22px var(--font-display); }
.l-step p { color: var(--ink-2); margin: 0 !important; flex: 1; }
.l-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); }
.l-go { font-weight: 700; color: #0670e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .l-go { color: #9fd8ff; } }
.l-show { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.l-ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.l-ticks li { padding-left: 32px; position: relative; color: var(--ink-2); }
.l-ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--tick-soft); color: var(--tick); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.l-ticks b { color: var(--ink); }
.l-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 28px; border-radius: 26px; background: linear-gradient(115deg, #0a298a, #0585fe); color: #fff; }
.l-stats div { display: grid; gap: 4px; }
.l-stats b { font: 800 clamp(30px, 4vw, 44px) var(--font-display); }
.l-stats span { font-size: 14px; opacity: .85; }
.l-subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.l-subj { display: grid; gap: 4px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; opacity: .7; }
.l-subj.live { opacity: 1; border-color: #0585fe; box-shadow: 0 10px 26px rgba(5, 133, 254, .15); }
.l-subj span { font-size: 28px; }
.l-subj b { font: 800 18px var(--font-display); }
.l-subj small { color: var(--muted); }
.l-subj em { font-style: normal; font-size: 12.5px; font-weight: 700; margin-top: 6px; color: var(--muted); }
.l-subj.live em { color: var(--tick); }
.l-private { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 30px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.l-private p { color: var(--ink-2); font-size: 17px; }
.l-private .l-ticks { margin: 0; }
.l-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.l-faq summary { cursor: pointer; font: 700 17px var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.l-faq details[open] summary::after { content: "−"; }
.l-faq p { color: var(--ink-2); margin: 10px 0 0 !important; max-width: 760px; }
.l-final { margin-top: 70px; padding: 64px 0; text-align: center; color: #fff; background:
    radial-gradient(600px 300px at 50% 0%, rgba(5, 133, 254, .6), transparent 70%), #061238; }
.l-final h2 { font: 800 clamp(30px, 5vw, 52px)/1.1 var(--font-display) !important; margin: 0 0 6px !important; color: #fff; }

/* landing on phones */
@media (max-width: 860px) {
  .l-hero-in { grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 0; gap: 10px; }
  .l-phones { height: 430px; margin: 10px -16px 0; overflow: hidden; }
  .l-phones .l-phone { width: 220px; right: auto; left: 50%; margin-left: -60px; top: 20px; }
  .l-phones .l-phone.back { left: 50%; margin-left: -175px; top: 56px; }
  .l-three, .l-show, .l-private { grid-template-columns: 1fr; }
  .l-show .l-phone.single { width: 230px; }
  .l-stats { grid-template-columns: repeat(2, 1fr); padding: 22px; }
  .l-subjects { grid-template-columns: repeat(2, 1fr); }
  .l-section { padding-top: 48px; }
  .l-idea { padding: 46px 0 50px; }
  .l-btn { flex: 1 1 auto; justify-content: center; }
}

body.landing .s-cta { background: #fff; color: #0a298a !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-cta { background: #0585fe; } }
