/* ============================================================
   OLYMPOS — clean marble · v2
   ============================================================ */

:root {
  --bg:        #0a0907;
  --bg-soft:   #100e0a;
  --surface:   rgba(201,168,76,.035);
  --surface-2: rgba(201,168,76,.07);
  --line:      rgba(201,168,76,.14);
  --line-2:    rgba(201,168,76,.26);
  --text:      #f4e8c8;
  --text-2:    #b4a988;
  --text-3:    #7a6f55;
  --accent:    #c9a84c;
  --accent-2:  #e8c96a;
  --accent-bg: rgba(201,168,76,.10);
  --maxw:      1120px;
  --serif:     "Cinzel", Georgia, serif;
  --display:   "Caesar Dressing", "Cinzel", Georgia, serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --r:         14px;
  --r-lg:      22px;
  --r-pill:    999px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-bg); color: var(--accent-2); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 100; transition: width .1s linear; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; transition: background .3s ease, border-color .3s ease, padding .3s ease; border-bottom: 1px solid transparent; padding: 20px 0; }
.nav.scrolled { background: rgba(10,9,7,.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); padding: 13px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.logo { display: flex; align-items: baseline; gap: 12px; }
.logo-word { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .12em; color: var(--accent-2); }
.logo-sub { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s ease; }
.nav-links a:hover { color: var(--accent-2); }
.nav-cta { font-family: var(--serif); font-size: 12px !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #1a1206 !important; background: linear-gradient(180deg, var(--accent-2), var(--accent) 65%, #8b6f1e); padding: 10px 20px; border-radius: var(--r-pill); transition: transform .2s var(--ease), box-shadow .2s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.nav-cta:hover { transform: translateY(-1px); color: #1a1206 !important; }

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.lang-toggle button { background: none; border: none; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); padding: 6px 11px; cursor: pointer; transition: color .2s ease, background .2s ease; }
.lang-toggle button.on { color: var(--accent-2); background: var(--accent-bg); }
.lang-toggle button:not(.on):hover { color: var(--text-2); }
@media (max-width: 760px){ .nav-links { display: none; } .burger { display: flex !important; } }
.burger { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--accent-2); }
.mobile-menu { position: fixed; inset: 0; z-index: 95; background: rgba(10,9,7,.9); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 26px; letter-spacing: .06em; color: var(--text-2); padding: 12px; transition: color .2s ease; }
.mobile-menu a:hover { color: var(--accent-2); }
.mobile-close { position: absolute; top: 24px; right: 28px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--accent-2); font-size: 22px; cursor: pointer; }

/* ---------- Meander divider ---------- */
.meander { height: 12px; width: 100%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0,14 L0,4 L8,4 L8,10 L16,10 L16,4 L24,4 L24,14' fill='none' stroke='%23c9a84c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: center; opacity: .3; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }

/* ---------- Reveal ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-ready [data-reveal].d1 { transition-delay: .08s; }
.reveal-ready [data-reveal].d2 { transition-delay: .16s; }
.reveal-ready [data-reveal].d3 { transition-delay: .24s; }
.reveal-ready [data-reveal].d4 { transition-delay: .32s; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero (no glow) ---------- */
.hero { position: relative; padding: 210px 0 120px; text-align: center; overflow: hidden; }
.hero-columns { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 4vw; pointer-events: none; opacity: .5; }
.hero-columns svg { width: 60px; height: 100%; color: var(--line); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 12vw, 130px); letter-spacing: .1em; margin: 0 0 20px; color: var(--accent-2); line-height: 1; animation: heroTitle 1.3s var(--ease) both; }
@keyframes heroTitle { from { opacity: 0; letter-spacing: .32em; transform: translateY(10px); } to { opacity: 1; letter-spacing: .1em; transform: none; } }
.hero .tagline { font-family: var(--serif); font-size: 13px; letter-spacing: .34em; text-transform: uppercase; color: var(--accent); margin: 0 0 30px; animation: fadeUp 1s var(--ease) .3s both; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 54ch; margin: 0 auto 38px; line-height: 1.55; animation: fadeUp 1s var(--ease) .45s both; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: fadeUp 1s var(--ease) .6s both; }
.hero-note { margin-top: 20px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); animation: fadeUp 1s var(--ease) .75s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding: 15px 30px; border-radius: var(--r-pill); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.btn-primary { color: #1a1206; background: linear-gradient(180deg, var(--accent-2), var(--accent) 65%, #8b6f1e); border: 1px solid var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 30px -12px rgba(201,168,76,.5); color: #1a1206; }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-2); }
.btn svg { width: 15px; height: 15px; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- Block frame ---------- */
.block { padding: 110px 0; border-top: 1px solid var(--line); }
.kicker { font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.h2 { font-family: var(--serif); font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; letter-spacing: .02em; line-height: 1.1; margin: 0 0 18px; color: var(--text); }
.sub { font-size: 18px; color: var(--text-2); max-width: 58ch; margin: 0; line-height: 1.55; }
.block-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.block-head .sub { margin: 0 auto; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { position: relative; padding: 38px 32px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transition: background .3s ease; }
.feature:nth-child(-n+3) { border-top: none; }
.feature:nth-child(3n+1) { border-left: none; }
.feature:hover { background: var(--surface); }
.feature .fico { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent-2); margin-bottom: 20px; }
.feature h3 { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .03em; margin: 0 0 10px; color: var(--text); }
.feature p { font-size: 14.5px; color: var(--text-2); margin: 0; line-height: 1.6; }
.feature .tag { position: absolute; top: 22px; right: 22px; font-family: var(--serif); font-size: 9px; letter-spacing: .16em; padding: 3px 8px; border: 1px solid var(--line-2); color: var(--accent-2); border-radius: var(--r-pill); }
@media (max-width: 860px){ .features { grid-template-columns: 1fr 1fr; } .feature:nth-child(-n+3){ border-top: 1px solid var(--line); } .feature:nth-child(3n+1){ border-left: 1px solid var(--line); } .feature:nth-child(1), .feature:nth-child(2){ border-top: none; } .feature:nth-child(odd){ border-left: none; } }
@media (max-width: 560px){ .features { grid-template-columns: 1fr; } .feature { border-left: none !important; border-top: 1px solid var(--line) !important; } .feature:first-child { border-top: none !important; } }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 780px; margin: 0 auto; }
@media (max-width: 640px){ .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform .35s var(--ease), border-color .3s ease; }
.plan:hover { transform: translateY(-3px); }
.plan.max { border-color: var(--line-2); background: linear-gradient(180deg, var(--accent-bg), transparent 60%), var(--surface); }
.plan-name { font-family: var(--display); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.plan.max .plan-name { color: var(--accent-2); }
.plan-price { font-family: var(--serif); font-weight: 700; font-size: 44px; line-height: 1; color: var(--text); margin: 0 0 6px; }
.plan.max .plan-price { color: var(--accent-2); }
.plan-period { font-size: 13px; color: var(--text-3); margin-bottom: 24px; }
.plan-badge { position: absolute; top: 22px; right: 22px; font-family: var(--serif); font-size: 9px;
  letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--accent-2);
  color: var(--accent-2); background: var(--accent-bg); border-radius: var(--r-pill); }
.plan-feats { list-style: none; padding: 0; margin: 0 0 24px; }
.plan-feats li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); display: flex; align-items: flex-start; gap: 10px; }
.plan-feats li:last-child { border-bottom: none; }
.plan-feats li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.plan-note { font-size: 12px; color: var(--text-3); margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; background: var(--surface); overflow: hidden; transition: border-color .25s ease, background .25s ease; }
details[open] { border-color: var(--line-2); background: var(--surface-2); }
summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: .02em; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--serif); font-size: 22px; color: var(--accent-2); font-weight: 400; transition: transform .2s ease; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 24px 22px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
details a { color: var(--accent-2); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 110px 0; border-top: 1px solid var(--line); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(28px, 4.5vw, 44px); font-weight: 700; letter-spacing: .04em; color: var(--accent-2); margin: 0 0 16px; }
.cta-band p { color: var(--text-2); max-width: 48ch; margin: 0 auto 34px; font-size: 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 46px; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.footer-brand-word { font-family: var(--display); font-weight: 400; }
.footer-tag { font-family: var(--serif); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); opacity: .7; margin-bottom: 26px; }
.footer-links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; font-size: 14px; }
.footer-links a { color: var(--text-2); transition: color .2s ease; }
.footer-links a:hover { color: var(--accent-2); }
.footer-copy { font-size: 12px; color: var(--text-3); letter-spacing: .04em; }

/* ---------- App showcase (device mockups, real app look) ---------- */
.devices { display: flex; gap: 30px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.device { --g:#b8d63a; --g2:#d3ea72; --scr:#0a0a10; --card:#15151f; --ln:rgba(255,255,255,.08); --t1:#ececef; --t2:#8b8b95;
  width: 264px; flex-shrink: 0; border-radius: 40px; padding: 9px;
  background: linear-gradient(155deg, #2a2922, #0c0b08 60%); border: 1px solid var(--line-2);
  box-shadow: 0 34px 64px -28px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07); }
.devices { row-gap: 40px; }
.screen { position: relative; border-radius: 32px; overflow: hidden; background: var(--scr); height: 552px; color: var(--t1); font-family: var(--sans); display: flex; flex-direction: column; }
.screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 82px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); z-index: 5; }
.mk-status { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px 5px; font-size: 10px; color: var(--t2); }
.mk-status b { color: var(--t1); font-weight: 600; }
.mk-bars { display: inline-flex; gap: 3px; align-items: center; }
.mk-bars i { width: 3px; height: 8px; background: var(--t2); border-radius: 1px; display: inline-block; }
.mk-appbar { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; border-bottom: 1px solid var(--ln); }
.mk-coin { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--g); flex-shrink: 0; }
.mk-wordmark { font-family: var(--display); font-weight: 400; font-size: 16px; letter-spacing: .1em; color: var(--g2); }
.mk-max { font-family: var(--serif); font-size: 8px; font-weight: 700; letter-spacing: .1em; color: #0c0f04; background: var(--g); padding: 2px 6px; border-radius: 5px; }
.mk-lvl { margin-left: auto; font-family: var(--serif); font-size: 9px; letter-spacing: .1em; color: #e0a24a; border: 1px solid rgba(224,162,74,.5); padding: 3px 8px; border-radius: 6px; }
.mk-body { flex: 1; padding: 16px 16px 0; overflow: hidden; }
.mk-body.mk-center { text-align: center; }
.mk-h { font-family: var(--serif); font-size: 13px; letter-spacing: .12em; color: var(--t1); margin-bottom: 12px; }
.mk-h::before { content: "◆ "; color: var(--g); }

/* segmented tabs */
.mk-seg { display: flex; gap: 5px; background: rgba(255,255,255,.03); border: 1px solid var(--ln); border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.mk-seg span { flex: 1; text-align: center; font-size: 10px; padding: 7px 4px; border-radius: 7px; color: var(--t2); }
.mk-seg span.on { background: rgba(184,214,58,.16); color: var(--g2); border: 1px solid rgba(184,214,58,.4); }

/* timer ring */
.mk-ring { width: 148px; height: 148px; border-radius: 50%; border: 4px solid var(--g); display: grid; place-items: center; margin: 8px auto 18px; box-shadow: 0 0 26px rgba(184,214,58,.28), inset 0 0 26px rgba(184,214,58,.06); }
.mk-ring-time { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--g2); line-height: 1; }
.mk-ring-sub { font-family: var(--serif); font-size: 9px; letter-spacing: .16em; color: var(--t2); margin-top: 6px; }
.mk-stats3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.mk-stats3 > div { border: 1px solid var(--ln); border-radius: 9px; padding: 9px 4px; }
.mk-lbl { font-size: 8px; letter-spacing: .08em; color: var(--t2); margin-bottom: 5px; }
.mk-val { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--t1); }
.mk-total { font-size: 10px; color: var(--t2); margin-bottom: 14px; }
.mk-total b { color: var(--g2); }
.mk-cta { font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #0c0f04; background: linear-gradient(180deg, var(--g2), var(--g)); border-radius: 12px; padding: 13px; }

/* oracle chat */
.mk-oracle { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mk-oracle-t { font-family: var(--serif); font-size: 12px; letter-spacing: .14em; color: var(--g2); margin-right: 2px; }
.mk-chip { font-family: var(--serif); font-size: 9px; letter-spacing: .08em; color: var(--t2); border: 1px solid var(--ln); padding: 5px 9px; border-radius: 8px; }
.mk-chip.on { color: var(--g2); border-color: rgba(184,214,58,.4); background: rgba(184,214,58,.12); }
.mk-bubble-user { align-self: flex-end; margin: 0 0 12px auto; max-width: 78%; width: fit-content; background: rgba(184,214,58,.10); border: 1px solid var(--ln); color: var(--t1); font-size: 11.5px; padding: 10px 13px; border-radius: 13px 13px 4px 13px; }
.mk-bubble-ai { background: var(--card); border: 1px solid var(--ln); border-radius: 13px 13px 13px 4px; padding: 12px 13px; margin-bottom: 12px; }
.mk-ai-head { font-family: var(--serif); font-size: 10px; letter-spacing: .1em; color: var(--g2); margin-bottom: 8px; }
.mk-bubble-ai p { font-size: 11px; line-height: 1.45; color: var(--t2); margin: 0 0 6px; }
.mk-bubble-ai p:last-child { margin-bottom: 0; }
.mk-bubble-ai b { color: var(--g2); font-weight: 600; }
.mk-inputbar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ln); border-radius: 999px; padding: 6px 6px 6px 15px; margin-top: 4px; }
.mk-inputbar span { font-size: 11px; color: var(--t2); flex: 1; }
.mk-send { width: 30px; height: 30px; border-radius: 50%; background: var(--g); color: #0c0f04; display: grid; place-items: center; font-size: 13px; flex: none !important; }
.mk-qleft { text-align: center; font-size: 9px; color: var(--t2); margin: 6px 0 8px; }
.mk-qleft b { color: var(--g2); }

/* progress chart */
.mk-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ln); border-radius: 10px; padding: 9px 12px; font-size: 10px; color: var(--t2); margin-bottom: 10px; }
.mk-big { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--g2); line-height: 1; margin-top: 4px; }
.mk-big span { font-size: 15px; }
.mk-caption { font-size: 10px; color: var(--t2); margin: 6px 0 14px; }
.mk-chart { width: 100%; height: auto; display: block; }
.mk-records { margin-top: 14px; border: 1px solid var(--ln); border-radius: 12px; padding: 12px 14px; }
.mk-records-h { display: flex; justify-content: space-between; font-size: 9px; color: var(--t2); margin-bottom: 8px; }
.mk-records-h .g { color: var(--g2); }
.mk-pr { display: flex; justify-content: space-between; align-items: center; font-family: var(--serif); font-size: 13px; color: var(--t1); }
.mk-pr .to { color: var(--g2); }

/* profile stats grid */
.mk-statgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px 4px; border: 1px solid var(--ln); border-radius: 12px; padding: 11px 6px; margin-bottom: 11px; text-align: center; }
.mk-statgrid .n { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--g2); line-height: 1; }
.mk-statgrid .l { font-size: 7.5px; letter-spacing: .05em; color: var(--t2); margin-top: 5px; }

/* theme cards */
.mk-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mk-theme { border: 1px solid var(--ln); border-radius: 11px; padding: 9px; }
.mk-theme.on { border-color: rgba(184,214,58,.5); box-shadow: inset 0 0 0 1px rgba(184,214,58,.25); }
.mk-theme .prev { height: 42px; border-radius: 7px; display: flex; align-items: center; padding: 0 10px; margin-bottom: 8px; position: relative; }
.mk-theme.dark .prev { background: #111119; border: 1px solid var(--ln); }
.mk-theme.light .prev { background: #efe9dc; }
.mk-theme .prev::before { content: ""; height: 4px; width: 50%; border-radius: 2px; background: var(--g); }
.mk-theme.light .prev::before { background: #b58b3a; }
.mk-theme .prev::after { content: ""; position: absolute; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--g); }
.mk-theme.light .prev::after { background: #8a6a2a; }
.mk-theme .tn { font-family: var(--serif); font-size: 11px; font-weight: 600; color: var(--t1); }
.mk-theme .ts { font-size: 8px; color: var(--t2); margin-top: 2px; }

/* toggle rows */
.mk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ln); }
.mk-row .rl { font-size: 11px; color: var(--t1); }
.mk-row .rs { font-size: 8px; color: var(--t2); margin-top: 2px; }
.mk-tog { width: 34px; height: 19px; border-radius: 999px; background: rgba(255,255,255,.1); position: relative; flex: none; }
.mk-tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--t2); transition: .2s; }
.mk-tog.on { background: rgba(184,214,58,.4); }
.mk-tog.on::after { left: 17px; background: var(--g2); }
.mk-swrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 0; }
.mk-swrow .rl { font-size: 11px; color: var(--t1); }
.mk-sw { display: flex; gap: 7px; }
.mk-sw i { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.mk-sw i.sel { box-shadow: 0 0 0 2px var(--scr), 0 0 0 3.5px var(--g); }

/* records / celebration screen */
.mk-meander { height: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0,14 L0,4 L8,4 L8,10 L16,10 L16,4 L24,4 L24,14' fill='none' stroke='%23c9a84c' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: repeat-x; background-position: center; opacity: .5; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); margin-bottom: 10px; }
.mk-trophy { text-align: center; color: var(--g2); margin-bottom: 2px; }
.mk-nr { text-align: center; font-family: var(--serif); font-size: 11px; letter-spacing: .26em; color: var(--t2); margin-bottom: 3px; }
.mk-prs-big { text-align: center; font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--g2); margin-bottom: 9px; }
.mk-prrow { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.03); border: 1px solid var(--ln); border-radius: 9px; padding: 7px 13px; margin-bottom: 5px; }
.mk-prrow .pn { font-size: 11px; color: var(--t1); }
.mk-prrow .pk { font-family: var(--serif); font-size: 13px; font-weight: 600; color: var(--g2); }
.mk-continue { margin-top: 10px; text-align: center; font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #0c0f04; background: linear-gradient(180deg, var(--g2), var(--g)); border-radius: 11px; padding: 13px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 160px 0 90px; }
.legal h1 { font-family: var(--serif); font-weight: 700; font-size: 38px; letter-spacing: .03em; color: var(--accent-2); margin: 0 0 8px; }
.legal .updated { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0 0 36px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: .03em; color: var(--text); margin: 40px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal h3 { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--accent-2); margin: 24px 0 8px; letter-spacing: .03em; }
.legal p, .legal li { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.legal ul, .legal ol { padding-left: 22px; }
.legal strong { color: var(--text); }
.legal code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; background: var(--accent-bg); padding: 2px 6px; border-radius: 3px; color: var(--accent-2); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 13.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.legal th { color: var(--text); font-family: var(--serif); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 32px; }
.back:hover { color: var(--accent-2); }
