/* fambeta.xyz landing page, owner design (FrontPage = phone, FrontPageDesktop = desktop).
   Phone first; the desktop frame applies from 761px. Self-hosted fonts (fonts.css), no inline styles (CSP). */
:root {
  --bg: #09090a; --panel: #0c0c0c; --card: #141516; --line: #212223; --line2: #2a2b2d; --line3: #404244;
  --ink: #eaeaeb; --ink2: #bdbec0; --mute: #a1a3a6; --acc: #cccccc; --good: #6fb89a;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.fp { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.35; display: flex; flex-direction: column; overflow-x: hidden; }
.fp a { color: var(--acc); }
.fp a:hover { color: var(--ink); }
.fp button, .fp a { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .18s ease; }
.fp button:active, .fp a:active { transform: scale(.97); }
.fp button:focus-visible, .fp a:focus-visible, .fp input:focus-visible, .fp textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.fp input:focus, .fp textarea:focus { border-color: var(--mute); }

@keyframes lgDraw { 0% { stroke-dashoffset: 100; opacity: 1 } 40% { stroke-dashoffset: 0; opacity: 1 } 88% { stroke-dashoffset: 0; opacity: 1 } 100% { stroke-dashoffset: 0; opacity: 0 } }
@keyframes lgPop { 0%, 36% { transform: scale(0); opacity: 1 } 46% { transform: scale(1.3); opacity: 1 } 54%, 88% { transform: scale(1); opacity: 1 } 100% { transform: scale(1); opacity: 0 } }
@keyframes lgPing { 0%, 46% { transform: scale(.6); opacity: 0 } 50% { transform: scale(.8); opacity: .55 } 80%, 100% { transform: scale(2.8); opacity: 0 } }
@keyframes fpSpin { to { transform: rotate(360deg) } }
@keyframes fpRise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.lg-anim .draw { stroke-dasharray: 100; animation: lgDraw 5s cubic-bezier(.5, 0, .2, 1) infinite; }
.lg-anim .pop { transform-box: fill-box; transform-origin: center; animation: lgPop 5s ease-out infinite; }
.lg-anim .halo { transform-box: fill-box; transform-origin: center; animation: lgPing 5s ease-out infinite; }
.lg-anim .orbit { transform-box: fill-box; transform-origin: center; animation: fpSpin 40s linear infinite; }
main > section { animation: fpRise .5s cubic-bezier(.2, .8, .2, 1) both; scroll-margin-top: 84px; }
main > section:nth-child(2) { animation-delay: .06s; }
main > section:nth-child(3) { animation-delay: .12s; }
main > section:nth-child(n+4) { animation-delay: .18s; }
@media (prefers-reduced-motion: reduce) { .fp *, .fp { animation: none !important; transition: none !important; scroll-behavior: auto; } }

/* ---------- header ---------- */
.fp-head { position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line); }
.fp-head .in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink) !important; min-width: 0; }
.brand .logo { width: 30px; height: 30px; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bn { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.brand .bs { display: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; margin-top: 3px; }
.fp-nav { display: none; gap: 28px; }
.fp-nav a { color: var(--mute); text-decoration: none; font-size: 14px; }
.fp-nav a:hover { color: var(--ink); }
.hr { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; background: var(--card); }
.lang button { min-width: 40px; min-height: 40px; border: 0; background: transparent; color: var(--mute); font: 600 12px var(--sans); letter-spacing: .06em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--line); color: var(--ink); }
.signin { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink) !important; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---------- layout ---------- */
main { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding: 18px 16px 32px; flex: 1 0 auto; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); padding: 28px 20px 26px; display: flex; flex-direction: column; gap: 18px; }
.fmark { display: flex; justify-content: center; padding: 4px 0 0; }
.fmark svg { width: 210px; height: 210px; }
.fmark circle { fill: none; }
.fmark .r1 { stroke: var(--line); stroke-width: 1; }
.fmark .r2 { stroke: var(--line3); stroke-width: 1; stroke-dasharray: 3 6; }
.fmark .r3 { display: none; stroke: #1c1d1d; stroke-width: .6; }
.ftext { display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); font-weight: 600; text-align: center; }
.eyebrow .dsk { display: none; }
.hero h1 { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -.025em; text-align: center; text-wrap: balance; }
.lead { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink2); text-align: center; text-wrap: pretty; }
.cta { display: flex; flex-direction: column; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: var(--card); color: var(--ink) !important; text-decoration: none; font-size: 15px; font-weight: 500; }
.btn.pri { min-height: 50px; background: var(--acc); border-color: var(--acc); color: var(--bg) !important; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; color: var(--ink2); }
.chips i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); flex: none; }
.chips i.g { background: var(--good); }

/* sections */
.sec { display: flex; flex-direction: column; gap: 12px; }
.pk { margin: 0 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.grid3 { display: flex; flex-direction: column; gap: 12px; }
.hw { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2); }
.hw .nb { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--line); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; color: var(--acc); }
.hw .tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hw b { font-size: 16px; font-weight: 600; }
.hw .tx > span { font-size: 14px; line-height: 1.5; color: var(--mute); }
.grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid4 .ft:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ft { padding: 16px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 10px; }
.ft.dash { border-style: dashed; border-color: var(--line3); }
.ft svg { width: 26px; height: 26px; }
.ft b { font-size: 15px; font-weight: 600; }
.ft > span { font-size: 13px; line-height: 1.45; color: var(--mute); }

/* request: on the phone the section is the card (frame FrontPage); from 761px it is a two-column grid */
.reqsec { border-radius: 22px; background: var(--card); border: 1px solid var(--line2); padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.reqcard, .reqside { display: contents; }
.reqsec h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.req { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.req label { font-size: 13px; color: var(--ink2); margin-top: 10px; }
.req label:first-of-type { margin-top: 4px; }
.req input[type="text"], .req input[type="email"] { height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font: 400 15px var(--sans); width: 100%; }
.req textarea { min-height: 96px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); font: 400 15px var(--sans); resize: vertical; width: 100%; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.hp label { margin: 0; }
.err { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(230, 103, 103, .1); color: #f0a3a3; border: 1px solid rgba(230, 103, 103, .3); font-size: 13.5px; line-height: 1.45; }
.send { margin-top: 14px; min-height: 52px; border: 0; border-radius: 14px; background: var(--acc); color: var(--bg); font: 600 15px var(--sans); cursor: pointer; }
.send:disabled { opacity: .6; cursor: default; }
.note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.next { display: none; }
.ok-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid rgba(111, 184, 154, .3); background: rgba(111, 184, 154, .1); animation: fpRise .4s cubic-bezier(.2, .8, .2, 1) both; }
.ok-box svg { flex: none; width: 22px; height: 22px; }
.okt { display: flex; flex-direction: column; gap: 4px; }
.okt b { font-size: 14px; font-weight: 600; color: #b3daca; }
.okt > span { font-size: 13px; line-height: 1.5; color: var(--ink2); }

/* footer */
.fp-foot { border-top: 1px solid var(--line); margin-top: auto; }
.fp-foot .in { max-width: 1200px; margin: 0 auto; padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 10px; color: var(--mute); font-size: 13px; }
.fp-foot .fl { display: flex; align-items: center; gap: 8px; }
.fp-foot svg { width: 20px; height: 20px; flex: none; }
.fp-foot b { color: var(--ink2); font-weight: 600; }

/* ---------- desktop frame ---------- */
@media (min-width: 761px) {
  .fp-head .in { padding: 14px 24px; gap: 16px; flex-wrap: wrap; }
  .brand { gap: 10px; }
  .brand .logo { width: 34px; height: 34px; }
  .brand .bn { font-size: 20px; }
  .brand .bs { display: block; }
  .fp-nav { display: flex; }
  .hr { gap: 10px; }
  .lang button { min-width: 44px; }
  .signin { padding: 0 16px; }

  main { gap: 40px; padding: 32px 24px 56px; }
  .hero { border-radius: 28px; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }
  .fmark { order: 2; padding: 0; }
  .ftext { order: 1; gap: 22px; }
  .fmark svg { width: 100%; max-width: 420px; height: auto; }
  .fmark .r1, .fmark .r2 { stroke-width: .6; }
  .fmark .r2 { stroke-dasharray: 2 5; animation-duration: 48s; }
  .fmark .r3 { display: block; }
  .eyebrow { font-size: 12px; letter-spacing: .22em; text-align: left; }
  .eyebrow .dsk { display: inline; }
  .hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.03em; text-align: left; }
  .lead { font-size: 18px; max-width: 54ch; text-align: left; }
  .cta { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .btn { display: inline-flex; min-height: 52px; padding: 0 22px; }
  .btn.pri { min-height: 52px; padding: 0 26px; }
  .chips { justify-content: flex-start; }

  .sec { gap: 16px; }
  .pk { margin: 0; letter-spacing: .18em; }
  .grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
  .hw { flex-direction: column; gap: 12px; padding: 24px; border-radius: 20px; }
  .hw .nb { width: auto; height: auto; border: 0; background: none; border-radius: 0; display: block; justify-content: flex-start; }
  .hw .tx { gap: 12px; }
  .hw b { font-size: 19px; }
  .hw .tx > span { font-size: 15px; line-height: 1.55; }
  .grid4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
  .grid4 .ft:last-child:nth-child(odd) { grid-column: auto; } /* three cards share one row (the frame's 4th card, votes, is not built) */
  .ft { padding: 22px; border-radius: 20px; gap: 12px; }
  .ft svg { width: 28px; height: 28px; }
  .ft b { font-size: 17px; }
  .ft > span { font-size: 14px; line-height: 1.5; }
  .hw, .ft { transition: border-color .25s ease, transform .3s cubic-bezier(.34, 1.4, .4, 1); }
  .hw:hover, .ft:hover { border-color: var(--line3); transform: translateY(-3px); }

  .reqsec { background: none; border: 0; border-radius: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
  .reqcard { display: flex; flex-direction: column; gap: 14px; border-radius: 24px; background: var(--card); border: 1px solid var(--line2); padding: 28px; }
  .reqside { display: flex; flex-direction: column; gap: 16px; }
  .reqsec h2 { font-size: 26px; letter-spacing: -.015em; }
  .req textarea { min-height: 104px; }
  .send { align-self: flex-start; padding: 0 28px; }
  .note { font-size: 13px; }
  .next { display: flex; flex-direction: column; gap: 14px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); padding: 26px; }
  .next h3 { margin: 0; font-size: 17px; font-weight: 600; }
  .next ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
  .ok-box { padding: 18px; border-radius: 18px; }
  .ok-box svg { width: 24px; height: 24px; }
  .okt b { font-size: 15px; }
  .okt > span { font-size: 14px; }

  .fp-foot .in { padding: 22px 24px 30px; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
}
