/* SocialAI design system. Visual language follows the "Brainwave.io Landing Page UI Kit" Figma community
   file by Seju (SaaS marketing pages): white canvas, deep navy hero / pricing / footer bands, one strong
   indigo-blue for every action, 8px controls, soft blue-tinted shadows, alternating image/text rows. */

@font-face { font-family: "FiraGO"; src: url("/fonts/firago-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-sunk: #eceefa;
  --ink: #161c2d;
  --ink-2: #393b5e;
  --muted: #6a6c8a;
  --faint: #9c9eb6;
  --line: #e7e8f3;
  --line-2: #d9dbec;
  --brand: #473bf0;
  --brand-ink: #3a2ee0;
  --brand-soft: #ecebff;
  --navy: #161c2d;
  --navy-2: #1f2640;
  --on-navy: #c9cbea;
  --ok: #12a150;
  --ok-soft: #e8f8ee;
  --warn: #b45309;
  --warn-soft: #fff8e6;
  --bad: #e5484d;
  --bad-soft: #fdeeee;
  --on-ink: #ffffff;
  --font: "FiraGO", "Inter", "Segoe UI", Sylfaen, Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgb(28 30 74 / .06);
  --shadow-md: 0 2px 4px rgb(28 30 74 / .04), 0 12px 32px -8px rgb(28 30 74 / .14);
  --shadow-lg: 0 4px 8px rgb(28 30 74 / .05), 0 30px 70px -16px rgb(28 30 74 / .28);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3 { letter-spacing: -0.005em; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-soft); color: var(--brand-ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-dark, .btn-brand { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgb(62 59 245 / .65); }
.btn-dark:hover, .btn-brand:hover { background: var(--brand-ink); box-shadow: 0 12px 26px -8px rgb(62 59 245 / .75); }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .06); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-soft); }
.btn-lg { --h: 54px; padding: 0 30px; font-size: 1rem; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform .2s var(--ease); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgb(28 30 74 / .25); }
.nav .container { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.logo img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-login { font-weight: 600; color: var(--ink); padding: 0 8px; }
.nav-login:hover { color: var(--brand); }
.lang-btn { height: 36px; min-width: 46px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg); font-size: .82rem; font-weight: 600; cursor: pointer; }
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 980px) { .nav-links { display: none; } .nav-end { margin-left: auto; } }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ---------- hero (navy, split) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgb(62 59 245 / .55), transparent 65%); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero .container { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding-block: clamp(64px, 9vw, 112px); }
.hero-copy { display: grid; gap: 24px; align-content: center; }
.eyebrow { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-size: .85rem; font-weight: 500; color: var(--on-navy); }
.eyebrow b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; color: #fff; }
.hero h1 em { font-style: normal; color: #8f8cff; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--on-navy); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; color: var(--on-navy); font-size: .9rem; }
.hero-meta .platforms { display: flex; gap: 8px; }
.platform { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.platform svg { width: 21px; height: 21px; }
.platform.soon { opacity: .45; filter: grayscale(1); }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } }

/* hero visual: panel card + floating cards */
.hero-visual { position: relative; padding: 24px 28px 44px 0; }
.dash { position: relative; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 14px; align-content: start; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dash-head strong { font-size: .95rem; }
.dash-head span { font-size: .72rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-kpis div { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 2px; }
.dash-kpis small { font-size: .68rem; color: var(--muted); }
.dash-kpis b { font-size: 1.15rem; }
.dash-kpis i { font-style: normal; font-size: .66rem; font-weight: 700; color: var(--ok); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 10px 12px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.bars span { flex: 1; border-radius: 5px 5px 0 0; background: var(--bg-sunk); }
.bars span.on { background: var(--brand); }
.dash-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-posts div { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.dash-posts .ph { aspect-ratio: 4/3; }
.dash-posts small { display: block; padding: 6px 8px; font-size: .64rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .84rem; font-weight: 600; }
.float small { display: block; color: var(--muted); font-weight: 500; font-size: .74rem; }
.float i { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.float-1 { right: -18px; top: 44%; }
.float-1 i { background: var(--ok-soft); color: var(--ok); }
.float-2 { left: -24px; bottom: 0; }
.float-2 i { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 960px) { .hero-visual { padding: 24px 0 52px; } .float-1 { right: -8px; } .float-2 { left: 0; } }
@media (max-width: 520px) { .dash-posts div:nth-child(3), .dash-kpis div:nth-child(3) { display: none; } .dash-posts, .dash-kpis { grid-template-columns: 1fr 1fr; } }
.ph-1 { background: linear-gradient(150deg, #f6d7b0, #b8743c 70%, #6b3f1d); }
.ph-2 { background: linear-gradient(150deg, #ffe1e6, #f48fb1 60%, #ad1457); }
.ph-3 { background: linear-gradient(150deg, #d9f99d, #65a30d 65%, #365314); }
.ph-4 { background: linear-gradient(150deg, #e0e7ff, #818cf8 60%, #3730a3); }
.ph-5 { background: linear-gradient(150deg, #fde68a, #f59e0b 60%, #92400e); }
.ph-6 { background: linear-gradient(150deg, #cffafe, #22d3ee 60%, #155e75); }

/* ---------- logo strip ---------- */
.strip { padding: 34px 0; border-bottom: 1px solid var(--line); }
.strip .container { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; justify-content: center; }
.strip p { color: var(--faint); font-size: .9rem; font-weight: 500; }
.strip ul { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.strip li { display: inline-flex; align-items: center; gap: 8px; color: #8a8ca8; font-weight: 600; font-size: .98rem; }
.strip li svg { width: 20px; height: 20px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 112px) 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #fff; }
.head { display: grid; gap: 14px; max-width: 680px; margin: 0 auto 56px; text-align: center; justify-items: center; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.navy .kicker { color: #8f8cff; }
.head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.15; }
.head p { font-size: 1.06rem; color: var(--muted); }
.navy .head p { color: var(--on-navy); }

/* three feature columns */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.col3 { display: grid; gap: 12px; align-content: start; }
.col3 .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.col3 .ic svg { width: 26px; height: 26px; }
.col3 h3 { font-size: 1.18rem; margin-top: 6px; }
.col3 p { color: var(--muted); }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; gap: 32px; } }

/* alternating rows */
.rows { display: grid; gap: clamp(72px, 9vw, 112px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.row.flip .row-visual { order: 2; }
.row-copy { display: grid; gap: 18px; justify-items: start; }
.row-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.18; }
.row-copy p { color: var(--muted); font-size: 1.05rem; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.row-visual { position: relative; border-radius: var(--r-xl); background: var(--bg-soft); padding: clamp(24px, 4vw, 44px); min-height: 380px; display: grid; place-items: center; overflow: hidden; }
.row-visual::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--brand-soft); right: -60px; top: -60px; }
.row-visual::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 24px; background: var(--brand); opacity: .12; left: -30px; bottom: -30px; transform: rotate(18deg); }
.soft .row-visual { background: #fff; box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; } .row.flip .row-visual { order: 0; } }

.v-card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 20px; display: grid; gap: 14px; }
.v-row { display: flex; align-items: center; gap: 12px; }
.v-row .ph { width: 64px; height: 80px; border-radius: 10px; flex: none; }
.v-lines { display: grid; gap: 7px; flex: 1; }
.v-lines i { display: block; height: 8px; border-radius: 4px; background: var(--bg-sunk); }
.v-lines i:nth-child(2) { width: 80%; }
.v-lines i:nth-child(3) { width: 55%; }
.v-label { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.v-tag { justify-self: start; font-size: .76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.v-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.v-cal span { aspect-ratio: 1; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; font-size: .74rem; color: var(--faint); }
.v-cal span.on { background: var(--brand); color: #fff; font-weight: 700; }
.v-cal span.today { outline: 2px solid var(--brand); color: var(--brand); font-weight: 700; background: #fff; }
.v-feed { display: grid; gap: 10px; }
.v-feed .v-row { padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.v-feed .v-row .ph { width: 44px; height: 54px; }
.v-ok { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats div { display: grid; gap: 6px; padding: 8px 12px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; color: var(--brand); }
.stats span { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stats div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-md); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* blue band (free photo) */
.band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--brand); color: #fff; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.band::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; right: -160px; top: -220px; background: rgb(255 255 255 / .1); }
.band::after { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; border-radius: 50%; left: -120px; bottom: -180px; background: rgb(255 255 255 / .08); }
.band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.18; }
.band p { color: rgb(255 255 255 / .82); font-size: 1.05rem; margin-top: 14px; }
.band .btn { margin-top: 26px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba div { aspect-ratio: 4/5; border-radius: 14px; position: relative; overflow: hidden; }
.ba div span { position: absolute; left: 10px; top: 10px; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--ink); }
.ba .before { background: linear-gradient(160deg, #8a8a8a, #4a4a4a); }
.ba .before::after, .ba .after::after { content: ""; position: absolute; left: 30%; top: 32%; width: 40%; height: 46%; border-radius: 12px 12px 18px 18px; background: linear-gradient(160deg, #f3c58a, #b97734); }
.ba .before::after { box-shadow: 0 8px 20px rgb(0 0 0 / .35); }
.ba .after { background: linear-gradient(180deg, #fbf7f2, #ead9c4); }
.ba .after::after { box-shadow: 0 30px 30px -12px rgb(120 70 20 / .45); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* pricing (navy section, white cards) */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 20px; padding: 32px 28px; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.plan.featured { outline: 3px solid var(--brand); outline-offset: -3px; transform: translateY(-12px); }
.plan .badge { position: absolute; top: 18px; right: 18px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .74rem; font-weight: 700; }
.plan h3 { font-size: 1.15rem; }
.plan .sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 3.1rem; letter-spacing: -0.04em; line-height: 1; }
.price span { color: var(--muted); font-size: .95rem; }
.plan .checks { gap: 11px; font-size: .95rem; }
.plan .checks li::before { width: 20px; height: 20px; background-size: 12px; }
.billing-note { display: flex; justify-content: center; margin-top: 36px; }
.billing-note span { font-size: .88rem; color: var(--on-navy); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .plan.featured { transform: none; } }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); padding: 0 24px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 1.2rem; transition: transform .2s var(--ease), background .2s, color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* final cta */
.final { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; padding: clamp(40px, 6vw, 64px); border-radius: var(--r-xl); background: var(--navy-2); color: #fff; isolation: isolate; }
.final::before { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; right: -120px; top: -200px; background: radial-gradient(circle, rgb(62 59 245 / .7), transparent 65%); }
.final h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.15; }
.final p { color: var(--on-navy); font-size: 1.05rem; margin-top: 12px; }
@media (max-width: 760px) { .final { grid-template-columns: 1fr; } }

/* footer (navy) */
.footer { background: var(--navy); color: var(--on-navy); padding: 72px 0 36px; margin-top: 112px; }
.footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .84rem; color: #8b8db5; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field > span, .label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--faint); font-size: .8rem; }
.input, .select, .textarea { width: 100%; min-height: 46px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg); padding: 11px 14px; font-size: .97rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: #cfcfd8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(62 59 245 / .12); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
.form-error { color: var(--bad); font-size: .9rem; font-weight: 500; }
.form-error:empty { display: none; }
.form-ok { color: var(--ok); font-size: .9rem; font-weight: 600; }
.form-ok:empty { display: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.pill span:hover { border-color: #cfcfd8; }
.pill input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pill input:disabled + span { opacity: .4; cursor: not-allowed; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; flex: none; }
.spinner.lg { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { display: grid; align-content: center; justify-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; display: grid; gap: 22px; }
.auth-card h1 { font-size: 2rem; line-height: 1.15; }
.auth-card form { display: grid; gap: 16px; }
.auth-switch { font-size: .93rem; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-side { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 56px; display: grid; align-content: end; gap: 22px; isolation: isolate; }
.auth-side::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -260px; top: -260px; background: radial-gradient(circle, rgb(62 59 245 / .6), transparent 62%); }
.auth-side::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: -240px; bottom: -300px; background: radial-gradient(circle, rgb(143 140 255 / .3), transparent 62%); }
.auth-side h2 { font-size: 2rem; line-height: 1.2; max-width: 460px; }
.auth-side .checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.auth-side .checks { color: rgb(255 255 255 / .85); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- free photo page ---------- */
.tool-wrap { max-width: 980px; margin: 0 auto; padding: 48px 0 0; display: grid; gap: 32px; }
.tool { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }
.drop { position: relative; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; min-height: 340px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); background: var(--bg-soft); cursor: pointer; padding: 24px; overflow: hidden; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--bg-sunk); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .plus { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.5rem; }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--bg-soft); }
.drop .change { position: absolute; right: 12px; bottom: 12px; z-index: 1; pointer-events: none; }
.tool-side { display: grid; gap: 18px; align-content: start; }
.wait { display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; min-height: 340px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare figure { display: grid; gap: 8px; }
.compare img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); }
.compare figcaption { font-size: .86rem; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }

/* ---------- app shell (client panel + admin) ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: var(--bg-soft); }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; background: var(--bg); border-right: 1px solid var(--line); }
.side .logo { padding: 4px 10px 18px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.side nav a svg { width: 18px; height: 18px; color: var(--faint); }
.side nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side nav a[aria-current="page"] svg { color: var(--brand); }
.side .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-soft); font-size: .84rem; }
.side-foot b { font-weight: 600; }
.main { min-width: 0; padding: 32px clamp(16px, 3vw, 40px) 64px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 1.7rem; line-height: 1.2; }
.page-head p { color: var(--muted); margin-top: 4px; }
.topbar { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 8px; padding: 10px 16px; background: rgb(255 255 255 / .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); overflow-x: auto; }
  .topbar a { flex: none; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink-2); }
  .topbar a[aria-current="page"] { background: var(--brand); color: #fff; }
  .topbar .logo { margin-right: 6px; }
  .main { padding-top: 20px; }
}
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 24px; }
.card h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.stack { display: grid; gap: 20px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { display: grid; gap: 4px; }
.kpi span { font-size: .84rem; color: var(--muted); font-weight: 500; }
.kpi strong { font-size: 1.6rem; letter-spacing: -0.02em; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--bg-sunk); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.dark { background: var(--ink); color: #fff; }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-size: .93rem; }
.notice.warn { background: var(--warn-soft); border-color: #fde68a; }
.notice.bad { background: var(--bad-soft); border-color: #fecaca; }
.notice.ok { background: var(--ok-soft); border-color: #bbf7d0; }
.notice .btn { margin-left: auto; }

/* setup checklist */
.setup { display: grid; gap: 10px; }
.setup a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.setup a:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.setup .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 700; background: var(--bg-sunk); color: var(--muted); }
.setup .done .n { background: var(--ok); color: #fff; }
.setup .done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.setup strong { display: block; font-size: .96rem; }
.setup small { color: var(--muted); font-size: .85rem; }
.setup .go { margin-left: auto; color: var(--faint); }
.progress { height: 8px; border-radius: 999px; background: var(--bg-sunk); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .5s var(--ease); }

/* posts */
.post-list { display: grid; gap: 14px; }
.post { display: grid; grid-template-columns: 148px 1fr; gap: 18px; padding: 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.post .img { aspect-ratio: 4/5; border-radius: 12px; background: var(--bg-sunk); overflow: hidden; display: grid; place-items: center; color: var(--faint); font-size: .8rem; text-align: center; padding: 8px; }
.post .img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: grid; gap: 10px; align-content: start; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.post-meta strong { color: var(--ink); font-weight: 600; }
.post-caption { white-space: pre-wrap; font-size: .94rem; color: var(--ink-2); max-height: 9.6em; overflow: hidden; position: relative; }
.post-caption.open { max-height: none; }
.post-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 600px) { .post { grid-template-columns: 1fr; } .post .img { max-width: 260px; } }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

/* brand photos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photos figure { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg-sunk); border: 1px solid var(--line); }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos button.x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgb(12 12 18 / .7); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.photos label.add { aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--line-2); display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; font-size: .82rem; color: var(--muted); cursor: pointer; background: var(--bg); padding: 8px; }
.photos label.add:hover { border-color: var(--brand); color: var(--brand); }
.photos label.add input { display: none; }
.photos label.add b { font-size: 1.5rem; font-weight: 400; color: var(--ink); }

/* social accounts */
.account { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.account .platform { box-shadow: none; }
.account div { display: grid; }
.account small { color: var(--muted); }
.account .badge { margin-left: auto; }

/* plan picker in panel */
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-pick label { position: relative; display: grid; gap: 6px; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { border: 2px solid var(--brand); padding: 17px; box-shadow: var(--shadow-md); }
.plan-pick label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.plan-pick strong { font-size: 1.6rem; letter-spacing: -0.03em; }
.plan-pick small { color: var(--muted); }
@media (max-width: 760px) { .plan-pick { grid-template-columns: 1fr; } }

/* tables (admin) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--bg-soft); }
td small { display: block; color: var(--muted); }

.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgb(12 12 18 / .35); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(640px, 100vw); background: var(--bg-soft); box-shadow: var(--shadow-lg); overflow-y: auto; padding: 24px; display: grid; gap: 16px; align-content: start; }

.toast-msg { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg); }

/* ---------- prose ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; display: grid; gap: 16px; }
.prose h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.prose h2 { font-size: 1.3rem; margin-top: 18px; }
.prose ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
