/* Copyright (c) 2026 ARTISMED MB. All rights reserved. Proprietary software: no copying, redistribution or reverse engineering without written permission. */
/* Family Motivation - public pages (title page, sign-up, privacy). Builds on the tokens in app.css. */
.fm-public, .fm-public * { box-sizing: border-box; }
.fm-public {
	margin: 0;
	background: var(--fm-bg);
	color: var(--fm-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.55;
}
:where(.fm-public) :is(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.fm-public a { color: var(--fm-brand); }
.fm-public :focus-visible { outline: 3px solid var(--fm-brand); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.fm-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 14px 20px; }
.fm-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; white-space: nowrap; color: var(--fm-ink) !important; text-decoration: none; letter-spacing: -.01em; }
.fm-brand-logo { display: block; width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.fm-topnav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.fm-topnav a:not(.fm-btn) { text-decoration: none; }
@media (max-width: 560px) {
	.fm-topnav a:not(.fm-btn) { display: none; }
	.fm-topbar { padding: 12px 16px; }
	.fm-brand { font-size: 14px; gap: 8px; }
	.fm-brand-logo { width: 32px; height: 32px; border-radius: 9px; }
	.fm-topnav { gap: 8px; }
}

/* Language switch (EN | LT) */
.fm-langsw { display: inline-flex; border: 1.5px solid var(--fm-brand); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 800; line-height: 1; letter-spacing: .02em; }
.fm-topnav .fm-langsw a { display: block !important; padding: 7px 11px; color: var(--fm-brand); background: #fff; text-decoration: none; }
.fm-topnav .fm-langsw a.on { background: var(--fm-brand); color: #fff; }
.fm-topnav .fm-langsw a:not(.on):hover { background: var(--fm-soft); }
.fm-legal-note { margin: 10px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--fm-soft); color: var(--fm-ink); font-size: 15px; }
@media (max-width: 560px) {
	/* On a phone only the switch stays in the top bar: the trial button is right under the title. */
	.fm-topnav .fm-btn { display: none; }
}

/* Buttons */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; font-size: 17px; font-weight: 700; text-decoration: none !important; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease; text-align: center; }
.fm-btn:hover { transform: translateY(-1px); }
.fm-btn-primary { background: var(--fm-brand); color: #fff !important; box-shadow: 0 6px 18px rgba(79, 70, 229, .32); }
.fm-btn-ghost { background: var(--fm-card); color: var(--fm-brand) !important; border-color: var(--fm-line); }
.fm-btn-sm { white-space: nowrap; min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; box-shadow: none; }
@media (prefers-color-scheme: dark) { .fm-btn-primary { color: #0b1220 !important; } }

/* Layout */
.fm-main { max-width: 1120px; margin: 0 auto; padding: 0 20px 40px; }
.fm-landing > section { padding: 56px 0; }
.fm-landing h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; letter-spacing: -.02em; text-align: center; margin-bottom: 32px; }
.fm-fine { font-size: 14px; color: var(--fm-muted); }

/* Hero */
.fm-landing > .fm-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 28px; }
.fm-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--fm-soft); color: var(--fm-brand); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.fm-hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; letter-spacing: -.03em; margin-bottom: 18px; }
.fm-lead { font-size: 19px; color: var(--fm-muted); margin-bottom: 26px; max-width: 34em; }
.fm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.fm-hero-shot { display: flex; justify-content: center; }
.fm-hero-shot img, .fm-shots img { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 30px; border: 8px solid #0f172a; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); background: #fff; }
.fm-hero-shot img { max-width: 320px; transform: rotate(2deg); }
@media (max-width: 820px) {
	.fm-landing > .fm-hero { grid-template-columns: 1fr; gap: 28px; text-align: center; padding-top: 12px; }
	.fm-lead { margin-left: auto; margin-right: auto; }
	.fm-cta-row { justify-content: center; }
	.fm-btn { width: 100%; }
	.fm-hero-shot img { transform: none; max-width: 260px; }
}

/* How it works */
.fm-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fm-steps li { background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 20px; padding: 24px; box-shadow: var(--fm-shadow); }
.fm-step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fm-brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .fm-step-n { color: #0b1220; } }
.fm-steps h3, .fm-feats h3 { font-size: 19px; margin-bottom: 6px; }
.fm-steps p, .fm-feats p { color: var(--fm-muted); font-size: 16px; }
@media (max-width: 820px) { .fm-steps { grid-template-columns: 1fr; } }

/* Screenshots */
.fm-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.fm-shots figure { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.fm-shots figcaption { max-width: 300px; color: var(--fm-muted); font-size: 16px; }
.fm-shots figcaption strong { display: block; color: var(--fm-ink); font-size: 18px; margin-bottom: 4px; }
@media (max-width: 820px) { .fm-shots { grid-template-columns: 1fr; gap: 40px; } }

/* Features */
.fm-feats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 36px; }
.fm-feats li { padding: 4px 0 4px 18px; border-left: 4px solid var(--fm-brand); }
@media (max-width: 820px) { .fm-feats { grid-template-columns: 1fr; } }

/* Pricing */
.fm-price-card { max-width: 440px; margin: 0 auto; background: var(--fm-card); border: 2px solid var(--fm-brand); border-radius: 24px; padding: 32px 28px; text-align: center; box-shadow: var(--fm-shadow); }
.fm-price { margin-bottom: 16px; }
.fm-price-n { font-size: 52px; font-weight: 800; letter-spacing: -.03em; }
.fm-price-per { display: block; color: var(--fm-muted); font-size: 15px; }
.fm-price-list { list-style: none; padding: 0; margin-bottom: 18px; }
.fm-price-list li { padding: 4px 0; }
.fm-price-list li::before { content: "\2713\00a0\00a0"; color: var(--fm-pos); font-weight: 800; }
.fm-promo { margin-bottom: 18px; padding: 12px 14px; border-radius: 12px; background: var(--fm-good-bg); color: var(--fm-pos); font-weight: 700; font-size: 15px; }
.fm-price-card .fm-btn { width: 100%; margin-bottom: 10px; }

/* Final call to action */
.fm-landing > .fm-final { text-align: center; padding: 56px 20px; margin: 20px 0 0; border-radius: 28px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.fm-final h2 { color: #fff; margin-bottom: 22px; }
.fm-final .fm-cta-row { justify-content: center; }
.fm-final .fm-btn-primary { background: #fff; color: #4f46e5 !important; box-shadow: none; }
.fm-final .fm-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
@media (max-width: 820px) { .fm-final .fm-btn { width: 100%; } }

/* Footer */
.fm-footer { max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; text-align: center; color: var(--fm-muted); font-size: 14px; }
.fm-footer p { margin: 0 0 4px; }
.fm-footer a { color: var(--fm-muted); }

/* Sign-up and policy inside the public layout */
.fm-public .fm-login { margin-top: 24px; }
.fm-public .fm-consent { margin: 16px 0 0; font-size: 14px; color: var(--fm-muted); }
.fm-public .fm-login .fm-consent label { display: flex; gap: 10px; align-items: flex-start; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 14px; color: var(--fm-muted); }
.fm-public .fm-login .fm-consent input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.fm-doc { max-width: 760px; margin: 24px auto 0; background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 24px; padding: 36px 32px; box-shadow: var(--fm-shadow); }
.fm-doc h1 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 6px; }
.fm-doc h2 { font-size: 20px; margin: 28px 0 8px; }
.fm-doc p { margin-bottom: 12px; }
.fm-doc .fm-address { padding: 12px 16px; border-radius: 12px; background: var(--fm-soft); }
@media (max-width: 560px) { .fm-doc { padding: 24px 18px; border-radius: 18px; } }

/* What it is, and FAQ */
.fm-landing > .fm-what { padding: 8px 0 24px; }
.fm-what-text { max-width: 46em; margin: 0 auto; text-align: center; font-size: 19px; color: var(--fm-muted); }
.fm-faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.fm-faq details { background: var(--fm-card); border: 1px solid var(--fm-line); border-radius: 16px; padding: 0 20px; }
.fm-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 0; font-weight: 700; font-size: 17px; }
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after { content: "+"; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--fm-soft); color: var(--fm-brand); display: grid; place-items: center; font-size: 20px; line-height: 1; }
.fm-faq details[open] summary::after { content: "\2212"; }
.fm-faq details p { padding: 0 0 18px; color: var(--fm-muted); }

/* Phone: the sign-up button must fit next to the logo (declared after the base button rules). */
@media (max-width: 560px) {
	.fm-topnav .fm-btn-sm { padding: 0 10px; font-size: 12.5px; }
}

/* Focus models */
.fm-section-lead { max-width: 720px; margin: 0 auto 22px; text-align: center; color: var(--fm-muted); font-size: 17px; }
.fm-focus-cards { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fm-fc { background: var(--fm-card); border: 1px solid var(--fm-line); border-top: 6px solid var(--fc, var(--fm-brand)); border-radius: 18px; padding: 20px 18px; box-shadow: var(--fm-shadow); }
.fm-fc h3 { font-size: 19px; margin: 0 0 6px; }
.fm-fc p { color: var(--fm-muted); font-size: 16px; margin: 0; }
.fm-fc-classic { --fc: #3b82f6; }
.fm-fc-creative { --fc: #a855f7; }
.fm-fc-active { --fc: #f97316; }
.fm-fc-brave { --fc: #14b8a6; }
.fm-center { text-align: center; }
@media (max-width: 960px) { .fm-focus-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fm-focus-cards { grid-template-columns: 1fr; } }
