/* Makhie — shared design system.
   Premium glass on a light ground: layered soft colour washes behind frosted
   white surfaces, hairline borders that catch the light, multi-layer shadows,
   and micro-interactions with a single easing voice. Old and cheap phones get
   near-solid fallbacks via @supports; motion respects reduced-motion. */

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f6f8fc;
  --ink: #1b2740;
  --mute: #536178;
  --line: #dfe6f2;
  --card: #ffffff;
  --accent: #1E5FD6;
  --accent-ink: #16408f;
  --accent-soft: #eef3fc;
  --ok: #0d7a55;
  --ok-soft: #e7f6ef;
  --warn: #9a4d00;
  --warn-soft: #fdf1e3;
  /* Glass tokens: fallback surfaces are near-solid; blur variants are applied
     only inside @supports (backdrop-filter). */
  --glass: rgba(255, 255, 255, .62);
  --glass-solid: rgba(255, 255, 255, .93);
  --glass-edge: rgba(27, 39, 64, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(27,39,64,.05), 0 10px 28px -18px rgba(27,39,64,.28),
    0 24px 50px -32px rgba(30,95,214,.16);
  --shadow-lift: 0 2px 4px rgba(27,39,64,.06), 0 18px 44px -18px rgba(27,39,64,.30),
    0 28px 60px -28px rgba(30,95,214,.28);
}
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  min-height: 100vh; overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  /* Layered light washes — enough colour beneath the glass for the blur to
     find, never enough to leave the light corporate ground. */
  background:
    radial-gradient(1000px 600px at 88% -8%, rgba(30,95,214,.16), transparent 60%),
    radial-gradient(820px 540px at -6% 30%, rgba(14,116,144,.13), transparent 55%),
    radial-gradient(720px 500px at 50% 114%, rgba(109,89,222,.11), transparent 62%),
    radial-gradient(640px 460px at 68% 52%, rgba(30,95,214,.06), transparent 65%),
    radial-gradient(560px 420px at 30% 4%, rgba(255,255,255,.85), transparent 70%),
    linear-gradient(180deg, #f8fafd, #edf1f9);
}
/* Texture: fine film grain over everything… */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .09; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
/* …and the mark itself, small and repeating across the whole site like
   monogrammed paper — thinned over the centre so content sits in calm space. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("logo-tile.png");
  background-size: 520px 460px;
  opacity: .04;
  -webkit-mask-image: radial-gradient(1050px 680px at 50% 32%, rgba(0,0,0,.25) 18%, #000 78%);
  mask-image: radial-gradient(1050px 680px at 50% 32%, rgba(0,0,0,.25) 18%, #000 78%);
}
/* Living accents, injected on every page: a flowing brand hairline up top and
   dotted texture breathing in the bottom corner. */
.topline { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90;
  background: linear-gradient(90deg, var(--accent), #0E7490, #8db8f5, var(--accent));
  background-size: 220% 100%;
  animation: topline-flow 16s linear infinite; opacity: .9; }
@keyframes topline-flow { to { background-position: -220% 0; } }
.corner-dots { position: fixed; right: 0; bottom: 0; width: 400px; height: 360px;
  pointer-events: none; z-index: 0; opacity: .22;
  background-image: radial-gradient(rgba(27,39,64,.75) 1.3px, transparent 1.3px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(closest-side at 96% 96%, #000 22%, transparent 98%);
  mask-image: radial-gradient(closest-side at 96% 96%, #000 22%, transparent 98%);
  animation: dots-breathe 8s ease-in-out infinite; }
.corner-dots.tl { right: auto; bottom: auto; left: 0; top: 0; width: 240px; height: 200px; opacity: .1;
  -webkit-mask-image: radial-gradient(closest-side at 4% 4%, #000 14%, transparent 96%);
  mask-image: radial-gradient(closest-side at 4% 4%, #000 14%, transparent 96%);
  animation-delay: 4s; }
@keyframes dots-breathe { 0%, 100% { opacity: .16; } 50% { opacity: .26; } }
@media (max-width: 700px) { .corner-dots { width: 230px; height: 210px; } .corner-dots.tl { display: none; } }
/* Scroll-reveal: content settles in as it arrives. */
/* Fail-open: if the observer never fires (hydration timing, replaced
   nodes), content still settles in on its own after a beat. */
.reveal { opacity: 0; transform: translateY(16px);
  animation: reveal-failopen .5s ease 1.1s forwards;
  transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes reveal-failopen { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .topline, .corner-dots { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px 80px; position: relative; z-index: 1; }

/* The information bar runs the full width of the page — one long frosted
   band — while its contents stay aligned with the content column. */
header.site { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-bottom: 14px;
  padding: 26px max(24px, calc(50vw - 516px)) 22px;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 1px 0 var(--glass-edge), 0 14px 34px -28px rgba(27,39,64,.35); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.site { background: rgba(255,255,255,.55);
    backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); }
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-weight: 900; font-size: 17px; letter-spacing: .22em; color: var(--ink); }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; gap: 14px; align-items: center; }
/* Nav links: understated — opacity and colour ease in, a hairline underline
   draws itself beneath the resting padding. No pills, no bubbles. */
.nav a.link { position: relative; font-size: 13.5px; font-weight: 600; color: var(--mute);
  text-decoration: none; padding: 9px 16px; border-radius: 9px;
  transition: color .22s var(--ease), opacity .22s var(--ease); }
.nav a.link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 1.5px; border-radius: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; opacity: .85;
  transition: transform .28s var(--ease); }
@media (max-width: 700px) { header.site { padding: 20px 18px 16px; } .nav { gap: 6px; } .nav a.link { padding: 8px 10px; } .nav a.link::after { left: 10px; right: 10px; } }
.nav a.link:hover { color: var(--ink); }
.nav a.link:hover::after { transform: scaleX(1); }
.nav a.link.on { color: var(--accent-ink); }
.nav a.link.on::after { transform: scaleX(1); }

/* Buttons: gradient depth, an inner light edge, lift on hover with a soft
   sheen sweeping across, and a definite press. */
.btn {
  position: relative; overflow: hidden;
  display: inline-block; padding: 10px 20px; border-radius: 12px; cursor: pointer;
  font: 600 13.5px -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: #fff; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, #3874e3, var(--accent) 52%, #1a53bd);
  border: 1px solid var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 2px rgba(22,64,143,.3),
    0 8px 20px -10px rgba(30,95,214,.55);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
    background-color .22s, border-color .22s, color .22s, filter .22s;
}
.btn::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.38) 50%, transparent 68%);
  transform: translateX(-130%); transition: transform .05s; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 2px 4px rgba(22,64,143,.3),
    0 14px 30px -12px rgba(30,95,214,.65); }
.btn:hover::after { transform: translateX(130%); transition: transform .7s var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); filter: none;
  box-shadow: inset 0 1px 2px rgba(22,64,143,.3), 0 1px 2px rgba(22,64,143,.25); }
.btn:focus-visible { outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.3),
  0 0 0 3.5px rgba(30,95,214,.28), 0 8px 20px -10px rgba(30,95,214,.55); }
.btn.quiet { background: rgba(255,255,255,.85); color: var(--ink); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(27,39,64,.06),
    0 8px 20px -14px rgba(27,39,64,.35); }
.btn.quiet::after { background: linear-gradient(105deg, transparent 32%, rgba(30,95,214,.09) 50%, transparent 68%); }
/* WhatsApp share: the platform's own green, its own glyph. */
.btn.wa { display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #33dd70, #25D366 55%, #1DA851); border-color: #1DA851; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 2px rgba(20,110,60,.3),
    0 8px 20px -10px rgba(37,211,102,.5); }
.btn.wa:hover { filter: brightness(1.04); }
.btn.wa svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.btn.quiet:hover { background: #fff; border-color: var(--accent); color: var(--accent-ink); filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 4px rgba(27,39,64,.06),
    0 12px 28px -14px rgba(30,95,214,.4); }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.small { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after { transition: none; }
  .btn:hover, .btn:active { transform: none; }
  .btn:hover::after { transform: translateX(-130%); }
}

.kicker { text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: var(--mute); }
h1.page { font-size: 30px; letter-spacing: -.02em; margin-top: 8px; }
h2.sect { font-size: 24px; letter-spacing: -.015em; margin-top: 8px; }
p.sub { color: var(--mute); font-size: 14px; line-height: 1.65; margin-top: 8px; max-width: 620px; }

/* Cards: frosted glass. A near-solid white fallback everywhere, real blur
   where the device can afford it, a hairline edge and an inner light line. */
.card {
  background: var(--glass-solid); border: 1px solid var(--glass-edge); border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), var(--shadow);
  padding: 24px;
  transition: box-shadow .3s var(--ease);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: linear-gradient(165deg, rgba(255,255,255,.78), var(--glass));
    backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); }
}
.card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.85), var(--shadow-lift); }
.card h3 { font-size: 15.5px; margin-bottom: 6px; }
.card p { font-size: 13.5px; color: var(--mute); line-height: 1.6; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

.badge { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 6px; }
.badge.free { color: var(--ok); background: var(--ok-soft); border: 1px solid #bfe6d4; }
.badge.paid { color: var(--warn); background: var(--warn-soft); border: 1px solid #f0d9b8; }

label.f { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 14px 0 5px; }
input.f, textarea.f, select.f {
  width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.8); color: var(--ink); font: 400 13.5px inherit; font-family: inherit; outline: none;
  box-shadow: inset 0 1px 2px rgba(27,39,64,.03);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
input.f:focus, textarea.f:focus, select.f:focus { border-color: var(--accent); background: #fff;
  box-shadow: inset 0 1px 2px rgba(27,39,64,.02), 0 0 0 3.5px rgba(30,95,214,.13); }
textarea.f { resize: vertical; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { input.f, textarea.f, select.f { transition: none; } }

.note { font-size: 12.5px; color: var(--mute); line-height: 1.6; }
.hint-ok { color: var(--ok); font-weight: 600; }
.hint-err { color: #b3402a; font-weight: 600; }

.drop {
  border: 1.5px dashed rgba(27,39,64,.18); border-radius: 16px; padding: 34px 20px; text-align: center;
  color: var(--mute); font-size: 13.5px; cursor: pointer; background: rgba(255,255,255,.6);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s, box-shadow .25s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(238,243,252,.85); color: var(--accent-ink);
  box-shadow: 0 0 0 3.5px rgba(30,95,214,.08); }

footer.site { margin-top: 90px; padding-top: 26px; border-top: 1px solid var(--line);
  text-align: center; font-size: 12.5px; color: var(--mute); line-height: 1.8; }
footer.site a { color: inherit; }
.social { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--mute); background: rgba(255,255,255,.65);
  transition: color .22s var(--ease), border-color .22s var(--ease),
    transform .22s var(--ease), box-shadow .22s var(--ease); }
.social a:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 18px -10px rgba(30,95,214,.45); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .social a { transition: none; } .social a:hover { transform: none; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }

/* Modal overlay: used by auth and by the Stage's share-caution notice.
   The backdrop frosts the page behind it; the sheet is heavier glass and
   settles in with a soft pop. */
.mk-overlay { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(242,246,252,.9); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mk-overlay { background: rgba(242,246,252,.55);
    backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); }
}
.mk-overlay.open { display: flex; }
.mk-modal { width: 100%; max-width: 400px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.8);
  border-radius: 20px; padding: 26px 24px; display: grid; gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(27,39,64,.08),
    0 24px 70px -24px rgba(27,39,64,.45), 0 40px 90px -40px rgba(30,95,214,.35); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mk-modal { background: linear-gradient(170deg, rgba(255,255,255,.9), rgba(255,255,255,.74));
    backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6); }
}
.mk-overlay.open .mk-modal { animation: mk-modal-in .32s var(--ease) both; }
@keyframes mk-modal-in { from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; } }
.mk-modal h3 { font-size: 17px; }
.mk-modal .f { margin: 0; }
@media (prefers-reduced-motion: reduce) { .mk-overlay.open .mk-modal { animation: none; } }

canvas.locked { pointer-events: none; opacity: .4; }

/* Loading, done elegantly and identically everywhere. */
.mk-spin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; vertical-align: -2px;
  border: 2px solid var(--accent-soft); border-top-color: var(--accent);
  animation: mk-spin .7s linear infinite; margin-right: 7px; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
.bar { height: 5px; border-radius: 3px; background: var(--accent-soft); overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; border-radius: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #0E7490, var(--accent));
  background-size: 200% 100%;
  animation: bar-sheen 1.4s linear infinite;
  transition: width .35s var(--ease); }
.bar.indet i { width: 34% !important; position: absolute;
  animation: bar-slide 1.1s cubic-bezier(.45,.05,.55,.95) infinite, bar-sheen 1.4s linear infinite; }
@keyframes bar-sheen { to { background-position: -200% 0; } }
@keyframes bar-slide { 0% { left: -34%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .mk-spin, .bar i { animation: none; } }

/* Money-tool results */
.res-big { font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: var(--accent-ink);
  font-variant-numeric: tabular-nums; }
.res-cap { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 4px; }
.res-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.res-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.res-row.win b { color: var(--ok); }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 12px; }
.tbl th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute);
  border-bottom: 1.5px solid var(--ink); padding: 6px 6px; text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.disc { font-size: 11.5px; color: var(--mute); margin-top: 16px; line-height: 1.6; }
.pill-note { display: inline-block; font-size: 12px; color: var(--accent-ink); background: rgba(238,243,252,.85);
  border: 1px solid rgba(30,95,214,.35); border-radius: 10px; padding: 6px 12px; }

/* Cookie / consent ribbon: one slim frosted band, one decision. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 14px max(24px, calc(50vw - 516px));
  background: rgba(255,255,255,.85);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(27,39,64,.3);
  transform: translateY(110%);
  transition: transform .5s var(--ease); }
.consent.show { transform: none; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .consent { background: rgba(255,255,255,.6);
    backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); }
}
.consent p { font-size: 12.5px; color: var(--ink); line-height: 1.55; margin: 0; max-width: 620px; }
.consent .c-acts { display: flex; gap: 8px; flex: none; }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* Glints: every now and then one background mark brightens, then lets go.
   Same mask as the tile, so the shimmer respects the calm centre. */
.glints { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(1050px 680px at 50% 32%, rgba(0,0,0,.25) 18%, #000 78%);
  mask-image: radial-gradient(1050px 680px at 50% 32%, rgba(0,0,0,.25) 18%, #000 78%); }
.glint { position: absolute; opacity: 0; transition: opacity 1.2s ease; will-change: opacity; }
.glint.on { opacity: .26; }
