/* mufucloud site styles. Plain CSS, no build step. */
:root {
  --ink: #0F172A;
  --text: #374151;
  --muted: #4B5563;
  --line: #E5E7EB;
  --field: #9CA3AF;
  --soft: #F5F8F6;
  --gray: #F3F4F6;
  --accent: #047857;
  --accent-dark: #065F46;
  --accent-tint: #D1FAE5;
  --accent-wash: #ECFDF5;
  --white: #FFFFFF;
  --radius: 16px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: 88px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.container-narrow { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

.section { padding-block: 96px; }
.section-sm { padding-block: 56px; }
.band { background: var(--soft); border-block: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-sm { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-top { align-items: flex-start; }
.center { text-align: center; align-items: center; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.06em; }
.pill { align-self: flex-start; display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.display { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.5vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
.h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 600px; }
.body { font-size: 16px; line-height: 1.6; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }
.max-640 { max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: #D1D5DB; }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--white); color: var(--accent-dark); }
.btn-light:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; }

/* Nav */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; border-radius: 8px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--gray); }
.nav-links .btn { margin-left: 8px; min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 10px; }

/* Footer */
.site-footer { background: var(--ink); color: #CBD5E1; }
.site-footer a { color: #CBD5E1; text-decoration: none; font-size: 15px; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding-block: 64px 48px; }
.footer-about { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.6; }
.footer-about .brand { color: var(--white); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; min-width: 140px; }
.footer-col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.footer-bottom { border-top: 1px solid #1E293B; padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #94A3B8; }
.footer-mail { color: #6EE7B7 !important; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card-soft { background: var(--soft); border-radius: 14px; padding: 18px; }
.card-dashed { border: 1px dashed #CBD5E1; background: #F9FAFB; justify-content: center; }
.icon { width: 28px; height: 28px; flex-shrink: 0; }
.step-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: var(--accent-tint); color: var(--accent-dark); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-icon-lg { width: 64px; height: 64px; border-radius: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--gray); font-size: 14px; color: var(--text); }
.tag-shopify { background: #ECFDF5; color: #047857; }
.tag-web { background: #EFF6FF; color: #1D4ED8; }
.tag-game { background: #F5F3FF; color: #6D28D9; }
.tag-free { background: #FFFBEB; color: #B45309; }
.tag-price { background: #FFF7ED; color: #C2410C; }
.tag-soon { background: transparent; color: var(--muted); border: 1px dashed var(--field); }
.tag-shopify, .tag-web, .tag-game, .tag-free, .tag-price { font-weight: 600; }
.app-icon-img { background: none; overflow: hidden; }
.app-icon-img img { width: 100%; height: 100%; object-fit: cover; }

/* Trust strip under the hero */
.features-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 28px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 4px 20px; }
.feature:first-child { padding-left: 0; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 20px; height: 20px; }
.feature-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feature-text strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.feature-text span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 960px) {
  .features-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .feature:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .features-strip { grid-template-columns: 1fr; row-gap: 16px; }
  .feature { padding-left: 0; border-left: 0 !important; }
}

/* Hero mock */
.mock { width: 100%; max-width: 440px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.25); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.mock-num { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.scale { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #93C5FD 0 14%, #6EE7B7 14% 40%, #FDBA74 40% 60%, #FCA5A5 60%); }
.scale-lg { height: 12px; }
.scale-marker { position: absolute; top: -5px; width: 20px; height: 20px; margin-left: -10px; border-radius: 999px; background: var(--white); border: 3px solid var(--ink); transition: left .2s ease; }
.scale-lg .scale-marker { top: -6px; width: 24px; height: 24px; margin-left: -12px; }
.scale-labels { display: grid; grid-template-columns: 14fr 26fr 20fr 40fr; font-size: 13px; color: var(--muted); }
.mock-product { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.mock-thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--line); flex-shrink: 0; }
.mock-btn { padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--white); font-size: 13px; font-weight: 600; }
.mock-code { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--accent); background: var(--accent-wash); color: var(--accent-dark); font-size: 14px; }
.mock-code strong { font-family: var(--display); font-size: 16px; }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge-under { background: #DBEAFE; color: #1E40AF; }
.badge-healthy { background: var(--accent-tint); color: var(--accent-dark); }
.badge-over { background: #FFEDD5; color: #9A3412; }
.badge-obese { background: #FEE2E2; color: #991B1B; }
.badge-none { background: var(--gray); color: var(--text); }

/* CTA band */
.cta { border-radius: 24px; background: var(--accent); color: var(--white); padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta p { color: var(--accent-tint); font-size: 18px; }
.cta-sm { padding: 32px; border-radius: 20px; }

/* Pricing */
.toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--gray); }
.toggle button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15); }
.save { padding: 2px 8px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.plans { width: 100%; max-width: 880px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.plan { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 20px; text-align: left; }
.plan-pro { border: 2px solid var(--accent); }
.plan-flag { position: absolute; top: -14px; left: 32px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 13px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -0.03em; }
.price-note { font-size: 14px; font-weight: 600; color: var(--accent-dark); min-height: 21px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--text); }
.checks li { display: flex; gap: 10px; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.faq summary { font-size: 17px; font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.input { font: inherit; font-size: 16px; width: 100%; padding: 13px 14px; border: 1px solid var(--field); border-radius: 10px; color: var(--ink); background: var(--white); }
.input-lg { font-size: 18px; padding: 14px 16px; border-radius: 12px; }
textarea.input { resize: vertical; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.span-all { grid-column: 1 / -1; }
.error { color: #B91C1C; font-size: 14px; }
.alert { padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.alert-success { background: var(--accent-wash); color: var(--accent-dark); border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; border: 1px solid #D1D5DB; background: var(--white); color: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }
/* auto-fill, not auto-fit: a lone card keeps its column width instead of stretching across the row */
.post-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.post-card:hover { color: var(--ink); }
.post-card:hover .h3 { text-decoration: underline; text-underline-offset: 3px; }
.cover { aspect-ratio: 16 / 10; width: 100%; border-radius: 16px; object-fit: cover; background: var(--accent-tint); }
.cover-wide { aspect-ratio: 16 / 9; border-radius: 20px; }
.cover-hero { aspect-ratio: 21 / 9; border-radius: 20px; }
.cover-placeholder { display: flex; align-items: center; justify-content: center; }
.cover-placeholder svg { width: 40%; max-width: 160px; opacity: .5; }
.meta { font-size: 14px; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed #CBD5E1; border-radius: 20px; color: var(--muted); }

/* Article */
.article-layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.toc { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; position: sticky; top: 96px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { flex: 3 1 560px; min-width: 0; font-size: 18px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-family: var(--display); font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-top: 40px; scroll-margin-top: 96px; }
.prose h3 { font-size: 22px; color: var(--ink); margin-top: 32px; scroll-margin-top: 96px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding: 20px 24px; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 19px; }
.prose img { border-radius: 16px; }
.prose pre { overflow-x: auto; background: var(--ink); color: #E2E8F0; padding: 18px; border-radius: 12px; font-size: 15px; }
.prose code { font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--white); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.breadcrumb { font-size: 14px; color: var(--muted); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 360px; }
.prose .table { display: table; }
.table th { background: #F9FAFB; text-align: left; padding: 14px 18px; }
.table td { padding: 14px 18px; border-top: 1px solid var(--line); }

/* Calculator */
.calc-result { font-family: var(--display); font-size: 72px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .cta { padding: 40px 24px; }
  .nav-links .btn { margin-left: 0; }
  .toc { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scale-marker { transition: none; }
}

/* Cookie consent */
.footer-link { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: #CBD5E1; text-align: left; cursor: pointer; }
.footer-link:hover { color: var(--white); }
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14); padding: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--text); }
.consent[hidden] { display: none; }
.consent-actions { display: flex; gap: 12px; }
.consent-actions .btn { flex: 1; min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* Product list in the home hero */
.app-icon-sm { width: 44px; height: 44px; border-radius: 12px; }
.product-row { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
a.product-row:hover { border-color: var(--accent); color: var(--ink); }
.product-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.product-row .tag { font-size: 12px; padding: 4px 10px; white-space: nowrap; }
.product-row-soon { border-style: dashed; background: #F9FAFB; }

/* Wrongdoku game card */
.app-icon-game { background: var(--ink); }
.made-note { border-left: 3px solid var(--accent); background: var(--accent-wash); border-radius: 0 12px 12px 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; }
.made-note strong { font-size: 15px; color: var(--accent-dark); }
.made-note p { font-size: 15px; color: var(--text); }
.wd-board-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wd-board { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 260px; aspect-ratio: 1; background: var(--ink); border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; gap: 2px; }
.wd-cell { background: #1E293B; color: #E2E8F0; font-family: var(--display); font-weight: 600; font-size: 26px; display: flex; align-items: center; justify-content: center; }
.wd-cell:nth-child(4n+2) { margin-right: 2px; }
.wd-cell:nth-child(n+5):nth-child(-n+8) { margin-bottom: 2px; }
.wd-wrong { background: #B91C1C; color: #fff; }
.wd-locked { background: #065F46; color: #D1FAE5; }
.wd-hud { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
.wd-hud b { color: var(--ink); }
.wd-hearts { color: #B91C1C !important; letter-spacing: 2px; }
.wd-hearts span { color: #CBD5E1; }
