/* Formora main website — shares the app's palette (css/styles.css :root) and Outfit type. */
:root {
  --bg: #0b0d12; --bg2: #12151d; --card: #171b24; --card2: #1e2330; --line: #262c3a; --line2: #343c4e;
  --text: #eef1f7; --muted: #8b93a7; --faint: #5f6880;
  --a1: #ff9d4d; --a2: #ff5a4d; --a3: #ff3d7f; --accent: #ff6b3d; --accent2: #ff3d7f;
  --gold1: #d99f2b; --gold2: #f7cf6b; --pro1: #9b6bff; --pro2: #ff5aa0; --green: #22c55e; --blue: #3d8bff;
  --grad: linear-gradient(135deg, var(--a1), var(--a2) 55%, var(--a3));
  --radius: 16px; --radius-lg: 24px; --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --max: 1120px; --nav-h: 68px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:focus-visible { outline: 3px solid #ffb37a; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--card2); color: var(--text); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--a1); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.lede { color: var(--muted); font-size: clamp(17px, 1.9vw, 20px); max-width: 60ch; }
section { padding: clamp(60px, 9vw, 104px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px rgba(255, 90, 77, .32); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255, 61, 127, .42); }
.btn.ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); border-color: #4a546a; transform: translateY(-2px); }
.btn.gold { background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #2a1c05; box-shadow: 0 10px 30px rgba(217, 159, 43, .3); }
.btn.gold:hover { transform: translateY(-2px); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn .sub { font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .78); }
.btn:active { transform: translateY(0) scale(.99); }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); display: flex; align-items: center; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 13, 18, .72); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; letter-spacing: 2px; font-size: 19px; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 3px 9px rgba(255, 61, 127, .42)); }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; transition: color .15s, background-color .15s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }

/* ---- hero ---- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px); overflow: hidden; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); line-height: 1; letter-spacing: -.03em; font-weight: 800; margin: 18px 0 20px; }
.hero .lede { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hero-note a { color: var(--text); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; pointer-events: none; z-index: -1; }
.glow.a { width: 560px; height: 560px; background: var(--a2); top: -220px; left: -160px; animation: drift 18s ease-in-out infinite alternate; }
.glow.b { width: 480px; height: 480px; background: var(--a3); right: -200px; top: 120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.glow.c { width: 420px; height: 420px; background: #3d8bff; left: 40%; bottom: -260px; opacity: .18; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(70px, 50px) scale(1.1); } }
.bg-grid::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 72%); }

/* ---- phone mockup ---- */
.stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.phone { position: relative; width: min(100%, 318px); aspect-ratio: 390 / 844; border-radius: 48px; background: #07080c; padding: 11px;
  border: 1px solid #2a3040; box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 120px rgba(255, 90, 77, .18); }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(160deg, rgba(255, 255, 255, .08), transparent 40%); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 38px; background: var(--bg); }
.phone.tilt { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(23, 27, 36, .92); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 700; font-size: 14px; backdrop-filter: blur(8px); }
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.chip.one { left: -8px; top: 22%; animation: float 8s ease-in-out infinite 1s; }
.chip.two { right: -10px; top: 56%; animation: float 9s ease-in-out infinite .4s; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

/* ---- facts strip ---- */
.facts { border-block: 1px solid var(--line); background: var(--bg2); padding: 22px 0; }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.facts li strong { color: var(--text); display: block; font-size: 16px; }
.facts svg { width: 26px; height: 26px; color: var(--a1); flex: none; }

/* ---- feature grid ---- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0)), var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: #3b4458; box-shadow: var(--shadow); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(255, 157, 77, .22), rgba(255, 61, 127, .22)); color: var(--a1); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.tier-tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.tier-tag.pro { color: #c9b3ff; border-color: rgba(155, 107, 255, .5); }
.tier-tag.elite { color: var(--gold2); border-color: rgba(247, 207, 107, .5); }

/* ---- showcase (alternating screenshot rows) ---- */
.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; }
.show:nth-child(even) .show-copy { order: 2; }
.show h3 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; margin: 12px 0 14px; }
.show p { color: var(--muted); font-size: 17px; max-width: 48ch; }
.show ul { margin-top: 18px; display: grid; gap: 10px; }
.show li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.show li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.show .phone { width: min(100%, 290px); margin-inline: auto; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; font-size: 44px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { font-size: 20px; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---- plans ---- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.plan.pro::before { background: linear-gradient(90deg, var(--pro1), var(--pro2)); }
.plan.elite::before { background: linear-gradient(90deg, var(--gold1), var(--gold2)); }
.plan h3 { font-size: 24px; font-weight: 800; }
.plan .who { color: var(--muted); font-size: 15px; }
.plan ul { display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--a1); }
.plan.pro li svg { color: #c9b3ff; }
.plan.elite li svg { color: var(--gold2); }
.plan .btn { align-self: flex-start; }
.plans-note { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 70ch; }

/* ---- download ---- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.dl-card.recommended { border-color: rgba(255, 157, 77, .6); box-shadow: 0 0 0 1px rgba(255, 157, 77, .25), 0 20px 60px rgba(255, 90, 77, .12); }
.dl-card .rec { display: none; position: absolute; top: -13px; left: 24px; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.dl-card.recommended .rec { display: inline-block; }
.dl-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line2); color: var(--text); }
.dl-card .ico svg { width: 28px; height: 28px; }
.dl-card h3, .dl-card h2 { font-size: 22px; font-weight: 800; }
.dl-card p { color: var(--muted); font-size: 15px; }
.dl-card ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.dl-card ol strong { color: var(--text); font-weight: 600; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.meta dt { font-weight: 600; color: var(--muted); }
.meta dd { margin: 0; color: var(--text); }
.hash { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hash code { font-size: 12px; word-break: break-all; color: var(--muted); background: var(--bg); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); flex: 1; min-width: 0; }
.copy { min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .08); }
.dl-card .btn { align-self: flex-start; margin-top: auto; }

/* ---- guides ---- */
.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.guide { display: block; text-decoration: none; padding: 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.guide:hover { border-color: rgba(255, 61, 127, .6); transform: translateY(-3px); }
.guide h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.guide p { color: var(--muted); font-size: 14px; }
.guide .arrow { display: inline-block; margin-top: 12px; color: var(--a1); font-weight: 700; font-size: 14px; }

/* ---- faq ---- */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--a1); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; font-size: 15px; }
.faq details a { color: var(--text); }

/* ---- final cta ---- */
.final { text-align: center; }
.final .panel { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 24px; border-radius: 32px; background: linear-gradient(135deg, rgba(255, 157, 77, .16), rgba(255, 61, 127, .16)), var(--card); border: 1px solid rgba(255, 90, 77, .4); }
.final h2 { font-size: clamp(30px, 4.8vw, 48px); letter-spacing: -.02em; font-weight: 800; margin-bottom: 12px; }
.final .lede { margin: 0 auto 28px; }
.final .cta-row { justify-content: center; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 22px; grid-template-columns: 1.2fr 2fr; align-items: start; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .legal { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }

/* ---- motion ---- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* ---- platform targeting (set by site.js on <html data-platform>) ---- */
[data-platform="android"] .only-ios, [data-platform="desktop"] .only-ios, [data-platform="ios"] .only-android, [data-platform="desktop"] .only-android { display: none; }

/* ---- download page ---- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 10px; }
.page-head h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; margin: 16px 0 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.panel-note { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.panel-note strong { color: var(--text); }
.kbd { font-family: inherit; font-size: 13px; padding: 2px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line2); color: var(--text); }

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .grid, .steps, .plans, .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .stage { padding: 8px 0 0; }
  .phone { width: min(72%, 280px); }
  .chip { display: none; }
  .glow { opacity: .28; }
  .show, .show:nth-child(even) { grid-template-columns: 1fr; }
  .show:nth-child(even) .show-copy { order: 0; }
  .show .phone { width: min(70%, 260px); }
  .two { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 10px 20px 16px; background: rgba(11, 13, 18, .97); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 17px; }
  .nav-toggle { display: grid; }
  .nav-cta .btn { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .grid, .steps, .plans, .dl-grid, .guides, .facts ul { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .btn .sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
