/* MintGrade: a storybook on cream paper. Chunky ink outlines, sticker shadows,
   rounded everything, and a few hand-lettered notes. Light only, on purpose. */
:root {
  --paper: #FFF9EF;
  --paper-2: #FFF3DF;
  --ink: #1F2544;
  --ink-2: #4A5173;
  --muted: #6B7191;
  --mint: #2EC4A0;
  --mint-deep: #11977A;
  --mint-soft: #D9F6EC;
  --sun: #FFC93C;
  --sun-soft: #FFF0C2;
  --coral: #FF7A6B;
  --coral-soft: #FFE1DC;
  --sky: #5BC0FF;
  --sky-soft: #DDF2FF;
  --grape: #9B7BFF;
  --grape-soft: #ECE5FF;
  --line: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --radius-sm: 14px;
  --display: 'Fredoka', 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Patrick Hand', 'Comic Sans MS', 'Chalkboard SE', cursive;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65;
  background-image: radial-gradient(rgba(31, 37, 68, .055) 1.2px, transparent 1.3px); background-size: 22px 22px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; }
a:hover { color: var(--ink); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(255, 249, 239, .92); backdrop-filter: blur(8px); border-bottom: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.5rem; font-weight: 600; }
.brand b { color: var(--mint-deep); font-weight: 700; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 800; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--mint-soft); }
.nav-cta { background: var(--sun) !important; border: var(--line); box-shadow: var(--shadow-sm); margin-left: 6px; }
.nav-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: grid; gap: 5px; width: 46px; height: 42px; place-content: center; background: var(--paper); border: var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); cursor: pointer; }
  .nav-toggle i { display: block; width: 20px; height: 3px; background: var(--ink); border-radius: 3px; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 18px; background: var(--paper); border-bottom: var(--line); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding: 12px 22px; border: var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; background: var(--paper); line-height: 1.2; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-lg { font-size: 1.15rem; padding: 15px 26px; }
.btn-mint { background: var(--mint); }
.btn-sun { background: var(--sun); }
.btn-coral { background: var(--coral); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; }
.btn-paper { background: #fff; }

/* ---------- layout ---------- */
main { overflow-x: clip; }
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 76px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.kicker, .kicker-pill { font-family: var(--hand); font-size: 1.3rem; color: var(--coral); margin: 0 0 6px; letter-spacing: .02em; }
.kicker a { color: var(--coral); }
.kicker-pill { display: inline-block; background: var(--coral-soft); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; transform: rotate(-2deg); }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lede { font-size: 1.15rem; color: var(--ink-2); }
.title { font-size: clamp(2rem, 5vw, 3.2rem); }
.band { max-width: none; background: var(--sun-soft); border-top: var(--line); border-bottom: var(--line); }
.band-in { max-width: var(--wrap); margin: 0 auto; }

/* ---------- hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(32px, 6vw, 70px) clamp(16px, 4vw, 40px) 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-h { font-size: clamp(2.3rem, 5.6vw, 4.1rem); margin: 14px 0 16px; }
.hero-h em { font-style: normal; color: var(--mint-deep); background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding: 0 4px; }
.hero-sub { font-size: 1.2rem; color: var(--ink-2); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 14px; }
.hero-note { font-family: var(--hand); font-size: 1.2rem; color: var(--muted); }
.hero-art img { border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(1.5deg); background: #fff; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 420px; margin: 0 auto; } }

/* ---------- tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.tool-card { position: relative; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.tool-card:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.tool-card img { border-bottom: var(--line); aspect-ratio: 16 / 9; object-fit: cover; }
.tool-card h3 { font-size: 1.45rem; margin: 16px 20px 6px; }
.tool-card p { margin: 0 20px 14px; color: var(--ink-2); font-weight: 400; }
.tool-go { margin: auto 20px 20px; font-family: var(--display); font-weight: 600; color: var(--mint-deep); }
.tool-badge { position: absolute; top: 14px; left: 14px; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-family: var(--display); font-weight: 600; font-size: .9rem; transform: rotate(-4deg); }
.tool-coral .tool-badge { background: var(--coral-soft); }
.tool-sky .tool-badge { background: var(--sky-soft); }

/* ---------- steps and checks ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: s; }
.step { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; position: relative; }
.step:nth-child(2n) { transform: rotate(.8deg); }
.step:nth-child(2n+1) { transform: rotate(-.6deg); }
.step .num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: var(--line); font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; background: var(--mint); }
.step-2 .num { background: var(--sky); } .step-3 .num { background: var(--coral); } .step-4 .num { background: var(--grape); }
.step h3 { font-size: 1.3rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split-art img { border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1.5deg); background: #fff; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { border: var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); background: var(--mint-soft); }
.check-sun { background: var(--sun-soft); } .check-coral { background: var(--coral-soft); } .check-sky { background: var(--sky-soft); }
.check h3 { font-size: 1.15rem; margin: 0 0 4px; }
.check p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* ---------- guide cards ---------- */
.guide-grid { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.guide-card { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.guide-card img { border-bottom: var(--line); aspect-ratio: 16 / 9; object-fit: cover; }
.guide-card > div { padding: 14px 18px 18px; }
.guide-card h3 { font-size: 1.2rem; margin: 0; }
.guide-card h3 a, .guide-card h3 .link-pending { color: var(--ink); text-decoration: none; }
.guide-card h3 a:hover { color: var(--mint-deep); text-decoration: underline; }
.tag { display: inline-block; font-family: var(--hand); font-size: 1.05rem; color: var(--ink); background: var(--mint-soft); border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; margin: 0 0 8px; text-transform: lowercase; }
.link-pending { color: inherit; font-weight: 700; }

/* ---------- honesty, faq ---------- */
.honest-wrap { padding-top: 10px; }
.honesty { max-width: 820px; margin: 0 auto; background: var(--sky-soft); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px clamp(20px, 4vw, 38px) 12px; }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 52px 14px 18px; font-family: var(--display); font-weight: 600; font-size: 1.12rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; background: var(--sun); font-size: 1.1rem; line-height: 1; }
.faq-item[open] summary::after { content: '\2212'; background: var(--mint); }
.faq-a { padding: 0 18px 8px; color: var(--ink-2); }

/* ---------- CTA / waitlist ---------- */
.cta { width: calc(100% - 32px); max-width: 1000px; margin: clamp(30px, 5vw, 60px) auto; padding: clamp(22px, 4vw, 38px); display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; background: var(--mint-soft); border: var(--line); border-radius: 30px; box-shadow: 8px 8px 0 var(--ink); position: relative; }
.cta-art img { width: 120px; height: 120px; transform: rotate(-6deg); }
.cta-kicker { font-family: var(--hand); font-size: 1.25rem; color: var(--coral); margin: 0; }
.cta-h { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 4px 0 10px; }
.cta-sub { color: var(--ink-2); }
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.waitlist input[type=email] { flex: 1 1 240px; min-width: 0; font: inherit; font-weight: 600; padding: 13px 18px; border: var(--line); border-radius: 999px; background: #fff; color: var(--ink); box-shadow: inset 2px 2px 0 rgba(31, 37, 68, .08); }
.waitlist input[type=email]:focus { outline: none; border-color: var(--mint-deep); box-shadow: 0 0 0 4px rgba(46, 196, 160, .3); }
.waitlist-msg { flex-basis: 100%; margin: 4px 0 0; font-weight: 800; min-height: 1.4em; }
.waitlist-msg.ok { color: var(--mint-deep); }
.waitlist-msg.err { color: #C0392B; }
.cta-fine { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; } .cta-art img { width: 84px; height: 84px; } .waitlist .btn { width: 100%; } }

/* ---------- prose (posts and pages) ---------- */
.prose { max-width: 800px; }
.prose > * { max-width: 740px; margin-left: auto; margin-right: auto; }
.prose .title { margin-top: 6px; }
.byline { font-weight: 600; color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.byline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); }
.post-hero, .page-hero { margin: 22px auto 30px; max-width: 800px !important; }
.post-hero img, .page-hero img { border: var(--line); border-radius: 26px; box-shadow: 7px 7px 0 var(--ink); background: #fff; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 1.9em auto .55em; }
.prose h2::after { content: ''; display: block; width: 72px; height: 8px; margin-top: 10px; border-radius: 8px; background: var(--sun); border: 2px solid var(--ink); }
.prose h2:nth-of-type(3n+2)::after { background: var(--sky); }
.prose h2:nth-of-type(3n)::after { background: var(--coral); }
.prose h3 { font-size: 1.35rem; margin: 1.5em auto .45em; }
.prose p, .prose li { font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--mint-deep); font-weight: 800; }
.prose strong { font-weight: 800; }
.prose hr { border: none; border-top: 3px dashed var(--ink-2); opacity: .35; margin: 2em auto; }
.prose img { border-radius: 20px; }
.prose code { background: var(--paper-2); border: 2px solid rgba(31, 37, 68, .15); border-radius: 8px; padding: 1px 6px; font-size: .92em; }
.story-fig { margin: 30px auto; max-width: 780px !important; }
.story-fig img { border: var(--line); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); background: #fff; }
.story-fig:nth-of-type(odd) img { transform: rotate(-.7deg); }
.story-fig:nth-of-type(even) img { transform: rotate(.7deg); }
.story-fig figcaption { font-family: var(--hand); font-size: 1.25rem; color: var(--ink-2); text-align: center; margin-top: 14px; line-height: 1.35; }
.sticky-note { position: relative; background: var(--sun-soft); border: var(--line); border-radius: 6px 22px 6px 22px; box-shadow: var(--shadow); padding: 20px 26px 12px; margin: 28px auto 34px; transform: rotate(-.6deg); }
.sticky-note::before { content: ''; position: absolute; top: -14px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(91, 192, 255, .45); border: 2px solid rgba(31, 37, 68, .25); transform: rotate(3deg); }
.sticky-note h2 { margin: 4px 0 8px !important; font-size: 1.5rem !important; }
.sticky-note h2::after { display: none !important; }
.sticky-note ul { list-style: none; padding-left: 0; }
.sticky-note li { position: relative; padding-left: 30px; }
.sticky-note li::before { content: ''; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--mint); }
.callout { border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 22px 4px; margin: 26px auto; background: var(--mint-soft); position: relative; }
.callout-label { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .95rem; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 12px; margin: 0 0 10px; }
.callout-quick { background: var(--mint-soft); }
.callout-tip { background: var(--sky-soft); }
.callout-warn { background: var(--coral-soft); }
.callout-fact { background: var(--grape-soft); }
.callout-try { background: var(--sun-soft); }
.table-wrap { overflow-x: auto; border: var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); margin: 24px auto; background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table-wrap th { background: var(--mint); text-align: left; font-family: var(--display); font-weight: 600; padding: 10px 14px; border-bottom: var(--line); white-space: nowrap; }
.table-wrap td { padding: 10px 14px; border-top: 2px solid rgba(31, 37, 68, .1); vertical-align: top; }
.table-wrap tr:nth-child(even) td { background: var(--paper); }
.disclaimer { margin-top: 36px; }
.section-sub { margin-top: 44px; }
.section-sub .h2 { font-size: 1.7rem; }
.sources a { word-break: break-word; font-weight: 600; }
.plainlist { padding-left: 1.2em; }
.four04 { text-align: left; }

/* ---------- blog index ---------- */
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post-card { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.post-card-link { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; height: 100%; font-weight: 400; }
.post-card-link img { border-bottom: var(--line); aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h2 { font-size: 1.35rem; margin: 0 0 8px; }
.post-card p { color: var(--ink-2); font-size: 1rem; margin: 0 0 12px; }
.post-card time { margin-top: auto; font-family: var(--hand); font-size: 1.1rem; color: var(--muted); }

/* ---------- tool pages ---------- */
.tool-page { padding-bottom: 20px; }
.tool-head { text-align: center; max-width: 800px; margin: 0 auto 26px; }
.tool-mount { background: #fff; border: var(--line); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); padding: clamp(16px, 3vw, 30px); }
.tool-copy { padding-top: 10px; }
.t-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .t-grid { grid-template-columns: 1fr; } }
.t-panel { background: var(--paper); border: var(--line); border-radius: var(--radius); padding: 18px 20px; }
.t-panel h2, .t-panel h3 { font-size: 1.3rem; margin: 0 0 10px; }
.t-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.t-field { display: grid; gap: 4px; margin: 0 0 12px; }
.t-field label, .t-label { font-weight: 800; font-size: .95rem; }
.t-field small { color: var(--muted); font-size: .85rem; }
.t-field input, .t-field select { font: inherit; font-weight: 600; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.t-field input:focus, .t-field select:focus { outline: none; box-shadow: 0 0 0 4px rgba(46, 196, 160, .3); }
.t-money input { padding-left: 28px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='18'%3E%3Ctext x='0' y='14' font-family='Arial' font-weight='700' font-size='15' fill='%236B7191'%3E$%3C/text%3E%3C/svg%3E") no-repeat 12px center; }
.t-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.t-cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 520px) { .t-cols3 { grid-template-columns: 1fr 1fr; } }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { font: inherit; font-weight: 800; border: 0; background: transparent; padding: 8px 16px; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed=true] { background: var(--mint); }
.seg button + button { border-left: 2px solid var(--ink); }
.dropzone { display: block; border: 3px dashed var(--ink-2); border-radius: var(--radius); background: var(--paper); padding: 26px 18px; text-align: center; cursor: pointer; transition: background .15s; }
.dropzone:hover, .dropzone.drag { background: var(--mint-soft); }
.dropzone strong { font-family: var(--display); font-size: 1.25rem; display: block; margin-bottom: 4px; }
.dropzone span { color: var(--muted); font-size: .95rem; }
.tool-mount { overflow: hidden; }
.t-grid > * { min-width: 0; }
.stage { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; border: var(--line); border-radius: 18px; overflow: hidden; background: #2b2f45; }
.stage canvas { display: block; width: 100%; height: auto; }
.stage .gl { position: absolute; z-index: 2; }
.stage .gl-v { top: 0; bottom: 0; width: 26px; margin-left: -13px; cursor: ew-resize; }
.stage .gl-h { left: 0; right: 0; height: 26px; margin-top: -13px; cursor: ns-resize; }
.stage .gl::after { content: ''; position: absolute; background: var(--c, var(--sun)); box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.stage .gl-v::after { left: 12px; top: 0; bottom: 0; width: 2px; }
.stage .gl-h::after { top: 12px; left: 0; right: 0; height: 2px; }
.stage .gl .knob { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--c, var(--sun)); border: 2px solid var(--ink); z-index: 3; }
.stage .gl-v .knob { left: 2px; top: 50%; margin-top: -11px; }
.stage .gl-h .knob { top: 2px; left: 50%; margin-left: -11px; }
.stage .gl.inner { --c: var(--mint); }
.stage .gl.outer { --c: var(--sun); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; font-weight: 700; color: var(--ink-2); margin: 10px 0 0; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -2px; margin-right: 6px; }
.big-ratio { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.ratio-box { background: #fff; border: var(--line); border-radius: var(--radius-sm); padding: 12px 14px; text-align: center; }
.ratio-box span { display: block; font-weight: 800; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ratio-box b { font-family: var(--display); font-size: 2rem; font-weight: 700; display: block; }
.ratio-box small { display: block; font-family: var(--hand); font-size: 1.05rem; color: var(--ink-2); min-height: 1.2em; }
.verdict { border: var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 14px; font-weight: 800; background: var(--mint-soft); }
.verdict.meh { background: var(--sun-soft); }
.verdict.bad { background: var(--coral-soft); }
.grade-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.grade-table th, .grade-table td { padding: 7px 8px; border-bottom: 2px solid rgba(31, 37, 68, .1); text-align: left; }
.grade-table th { font-family: var(--display); font-weight: 600; }
.grade-table .yes { color: var(--mint-deep); font-weight: 800; }
.grade-table .no { color: #B03A2E; font-weight: 800; }
.chip { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; font-weight: 800; font-size: .85rem; background: #fff; }
.chip.best { background: var(--mint); }
.result-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.result-card { background: #fff; border: var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.result-card span { display: block; font-weight: 800; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.result-card b { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.result-card.win { background: var(--mint-soft); }
.result-card.lose { background: var(--coral-soft); }
.bar { height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; overflow: hidden; margin: 4px 0 10px; }
.bar i { display: block; height: 100%; background: var(--mint); }
.t-note { font-size: .88rem; color: var(--muted); }
.probs { display: grid; gap: 8px; margin: 6px 0 12px; }
.prob-row { display: grid; grid-template-columns: 70px 1fr 54px; gap: 10px; align-items: center; font-weight: 800; }
.prob-row input[type=range] { width: 100%; accent-color: var(--mint-deep); }

/* ---------- footer ---------- */
.site-foot { border-top: var(--line); background: var(--ink); color: #E8EAF6; margin-top: 40px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 44px clamp(16px, 4vw, 40px) 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand img { background: var(--paper); border-radius: 16px; padding: 4px; }
.foot-brand p { margin: 0; color: #C9CDE4; }
.foot-brand strong { color: #fff; font-family: var(--display); font-size: 1.25rem; }
.site-foot a { color: #fff; font-weight: 600; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a { text-decoration: none; color: #DDE1F5; }
.foot-links a:hover { color: var(--sun); }
.foot-h { font-family: var(--hand); font-size: 1.25rem; color: var(--sun); margin: 0 0 4px; }
.foot-legal { max-width: var(--wrap); margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 36px; font-size: .82rem; color: #A9AECB; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
