/* (c) 2026 FAI Group. All rights reserved. This design and its code may not be copied, reused or redistributed. */

:root {
  --paper: #f5f1e8; --sheet: #fffdf8; --tint: #ece5d6;
  --ink: #0a0a0a; --body: #1e1c19; --soft: #4a463f; --mute: #69645a;
  --rule: #dad3c5; --rule-strong: #bcb3a2;
  --coral: #c4491f; --coral-deep: #a93c17; --coral-tint: #f6e3da;
  --gold: #b8935a; --gold-deep: #74572a; --gold-tint: #f2e8d6;
  --navy: #33425e; --navy-deep: #26324a; --navy-tint: #e4e8ef;
  --ok: #3d6a4c; --ok-tint: #e2ede4;
  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --head: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --lift-1: 0 1px 2px rgba(38, 32, 22, .06), 0 6px 18px rgba(38, 32, 22, .07);
  --lift-2: 0 2px 6px rgba(38, 32, 22, .06), 0 22px 48px rgba(38, 32, 22, .12);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font: 400 17px/1.6 var(--text); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: var(--rule-strong) var(--paper); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 12px; border: 3px solid var(--paper); }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
h3 { font-family: var(--head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }


.btn {
  --bg: var(--sheet); --fg: var(--ink); --bd: var(--rule);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 16px/1 var(--head); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--lift-1); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.btn-main { --bg: var(--coral); --fg: #fff; --bd: var(--coral); }
.btn-main:hover { --bg: var(--coral-deep); --bd: var(--coral-deep); }
.btn-quiet { --bg: transparent; }
.btn-quiet:hover { --bg: var(--sheet); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; box-shadow: none; }


.maya { position: relative; aspect-ratio: 720 / 1130; }
.maya > img, .maya > canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.maya > img { object-fit: contain; object-position: bottom; transition: opacity .3s; }
.maya.is-live > img { opacity: 0; }
.maya > canvas { pointer-events: none; }

.maya > canvas { transform-origin: 50% 100%; animation: maya-breathe 4.8s ease-in-out infinite, maya-sway 9.6s ease-in-out infinite; }
@keyframes maya-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.006; } }
@keyframes maya-sway { 0%, 100% { rotate: 0deg; } 25% { rotate: .35deg; } 75% { rotate: -.35deg; } }
@media (prefers-reduced-motion: reduce) { .maya > canvas { animation: none; } }


.marks { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.marks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); font: 500 15px/1 var(--head); color: var(--ink); }
.marks svg { width: 18px; height: 18px; fill: currentColor; }


.post {
  width: 100%; max-width: 420px; background: var(--sheet); border-radius: var(--r-xl); box-shadow: var(--lift-2);
  border: 1px solid var(--rule); overflow: hidden; color: var(--body);
}
.post-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; }
.post-head img { width: 38px; height: 38px; border-radius: 50%; }
.post-head b { display: block; font: 600 15px/1.2 var(--head); color: var(--ink); }
.post-head small { font-size: 13px; color: var(--mute); }
.post-tag { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: var(--gold-tint); color: var(--gold-deep); font: 600 12px/1 var(--head); }
.post-pic { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; object-position: 50% 18%; }
.post-cap { padding: 14px 18px 4px; font-size: 15px; line-height: 1.5; outline: none; border-radius: 10px; }
.post-cap[contenteditable='true'] { margin: 8px 10px 0; padding: 10px 8px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--gold); }
.post-cap .tags { color: var(--navy); }
.post-to { list-style: none; margin: 10px 0 0; padding: 0 18px; display: grid; gap: 8px; }
.post-to li { display: flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--head); color: var(--ink); }
.post-to svg { width: 17px; height: 17px; fill: currentColor; }
.post-to .st { margin-left: auto; font-weight: 500; color: var(--mute); display: inline-flex; align-items: center; gap: 6px; }
.post-to .st::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); }
.post-to [data-s='posting'] .st { color: var(--gold-deep); }
.post-to [data-s='posting'] .st::before { background: var(--gold); animation: pulse 1s infinite; }
.post-to [data-s='live'] .st { color: var(--ok); }
.post-to [data-s='live'] .st::before { background: var(--ok); }
@keyframes pulse { 50% { opacity: .3; } }
.post-acts { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 16px 18px 18px; }
.post-acts .btn { min-height: 46px; padding: 0 12px; font-size: 15px; }
.post-note { padding: 0 18px 18px; font-size: 14px; color: var(--soft); min-height: 1.5em; }
.post-note:empty { display: none; }


.proof-chart { width: 100%; height: auto; overflow: visible; }
.proof-chart .area { fill: var(--coral-tint); }
.proof-chart .line { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.proof-chart .dot { fill: var(--sheet); stroke: var(--coral); stroke-width: 2.5; }
.proof-chart .end { fill: var(--coral); }
.proof-chart .grid { stroke: var(--rule); stroke-width: 1; }
.proof-chart text { font: 500 16px var(--head); fill: var(--mute); }
.proof-chart text.big { font: 600 19px var(--head); fill: var(--ink); }


.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rules li { display: flex; gap: 14px; align-items: flex-start; font: 500 17px/1.4 var(--head); color: var(--ink); }
.rules li svg { flex: none; width: 26px; height: 26px; margin-top: -1px; }


.faq { display: grid; gap: 10px; }
.faq details { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 17px/1.35 var(--head); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-top: 4px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 9px; }
.faq details p { padding: 0 0 20px; color: var(--soft); max-width: 62ch; }

.foot { padding: 40px 0 56px; color: var(--mute); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }


.demo-switch { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(10, 10, 10, .06); }
.demo-switch a { min-width: 34px; height: 30px; display: grid; place-items: center; padding: 0 9px; border-radius: 999px; color: var(--soft); text-decoration: none; font: 600 13px/1 var(--head); }
.demo-switch a:hover { color: var(--ink); }
.demo-switch a[aria-current] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(38, 32, 22, .12); }
.demo-switch.on-dark { background: rgba(255, 255, 255, .1); }
.demo-switch.on-dark a { color: #cdd4df; }
.demo-switch.on-dark a:hover { color: #fff; }
.demo-switch.on-dark a[aria-current] { background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 640px) { .demo-switch a { min-width: 28px; height: 28px; padding: 0 7px; font-size: 12px; } }
