/* ============================================================
   Social Media Studio — marketing site
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f5fb;
  --ink: #17142b;
  --ink-soft: #5a5673;
  --line: #e7e4f2;
  --brand: #6d4aff;
  --brand-deep: #5535e0;
  --brand-soft: #f0ebff;
  --accent: #00c2a8;
  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(85, 53, 224, .22);
  --shadow-sm: 0 6px 18px -8px rgba(23, 20, 43, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--brand-deep); text-decoration: none; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.container--narrow { width: min(780px, 92%); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; border-radius: 10px; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  padding: .8rem 1.5rem; font-size: 1rem;
}
.btn--sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -18px rgba(85, 53, 224, .35); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn--invert { background: #fff; color: var(--brand-deep); }
.btn--invert:hover { transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .02em;
}
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--brand-deep); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 860px) {
  .nav__links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1.2rem 4%; border-bottom: 1px solid var(--line); }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; margin-left: auto; }
  .nav__cta { order: 3; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4rem; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
.hero__glow {
  position: absolute; top: -220px; right: -160px; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,74,255,.16), transparent 65%); pointer-events: none;
}
.badge {
  display: inline-block; background: var(--brand-soft); color: var(--brand-deep); font-weight: 600;
  font-size: .82rem; padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 34rem; margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero__points { list-style: none; color: var(--ink-soft); font-size: .92rem; display: flex; flex-direction: column; gap: .3rem; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 3.5rem 0 3rem; }
}

/* ---------- app window (mockup frame) ---------- */
.app-window { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.app-window__bar { display: flex; align-items: center; gap: .45rem; padding: .65rem .9rem; background: #f4f2fa; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--red { background: #ff5f57; } .dot--yellow { background: #febc2e; } .dot--green { background: #28c840; }
.app-window__title { margin-left: .6rem; font-size: .78rem; color: var(--ink-soft); }

/* hero window: sidebar + calendar */
.app-window__body { display: flex; min-height: 340px; }
.app-side { width: 168px; background: #faf9fd; border-right: 1px solid var(--line); padding: .9rem .8rem; display: flex; flex-direction: column; }
.app-side__logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.app-side__nav { display: flex; flex-direction: column; gap: .5rem; font-size: .82rem; color: var(--ink-soft); }
.app-side__nav .is-active { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; border-radius: 8px; padding: .3rem .5rem; }
.app-side__accounts { margin-top: auto; display: flex; gap: .4rem; flex-wrap: wrap; }
.acct { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; color: #fff; }
.acct--x { background: #111; } .acct--ig { background: #d6336c; } .acct--li { background: #0a66c2; }
.acct--tt { background: #111; color: #25f4ee; } .acct--fb { background: #1877f2; }

.app-main { flex: 1; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.app-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.app-toolbar__actions { display: flex; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .28rem .7rem; border-radius: 999px; background: #f1eff8; color: var(--ink-soft); }
.chip--sm { font-size: .68rem; padding: .18rem .55rem; }
.chip--active { background: var(--ink); color: #fff; }
.chip--accent { background: var(--brand); color: #fff; }

.cal__head { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin-bottom: .35rem; }
.cal__head span { text-align: center; font-size: .66rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; }
.cal__cell { background: #faf9fd; border: 1px solid var(--line); border-radius: 8px; min-height: 62px; padding: .3rem; display: flex; flex-direction: column; gap: .22rem; }
.cal__cell--today { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.cal__num { font-size: .68rem; color: var(--ink-soft); font-weight: 600; }
.evt { font-size: .6rem; line-height: 1.25; border-radius: 5px; padding: .16rem .3rem; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.evt--x { background: #2b2b31; } .evt--ig { background: #d6336c; } .evt--li { background: #0a66c2; }
.evt--tt { background: #16181d; } .evt--fb { background: #1877f2; }

.app-hint { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--ink-soft); background: #f2fbf9; border: 1px solid #cdeee7; border-radius: 9px; padding: .5rem .7rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,194,168,.45); } 70% { box-shadow: 0 0 0 9px rgba(0,194,168,0); } 100% { box-shadow: 0 0 0 0 rgba(0,194,168,0); } }

/* ---------- platforms ---------- */
.platforms { padding: 1.6rem 0 3.4rem; }
.platforms__label { text-align: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 600; margin-bottom: 1rem; }
.platforms__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.p-badge { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm); }

/* ---------- sections ---------- */
.section { padding: 4.6rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 2.6rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-deep); background: var(--brand-soft); border-radius: 999px; padding: .3rem .9rem; margin-bottom: 1rem; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.01em; margin-bottom: .6rem; }
.section__head p { color: var(--ink-soft); }

.grid { display: grid; gap: 1.2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { font-size: 1.7rem; margin-bottom: .8rem; }
.card h3 { font-size: 1.06rem; margin-bottom: .45rem; }
.card p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- screenshots section ---------- */
.shot { margin: 0 0 2.6rem; }
.shot__caption { display: flex; align-items: baseline; gap: .9rem; margin-bottom: .8rem; font-size: .95rem; }
.shot__caption strong { color: var(--ink); }
.shot__caption span { color: var(--ink-soft); font-size: .86rem; }

/* composer mockup */
.app-window__body--composer { padding: 0; }
.composer { display: grid; grid-template-columns: 1.4fr 1fr; width: 100%; }
.composer__editor { padding: 1.1rem; display: flex; flex-direction: column; gap: .9rem; border-right: 1px solid var(--line); }
.composer__tabs { display: flex; gap: .45rem; flex-wrap: wrap; }
.composer__canvas { background: #faf9fd; border: 1px solid var(--line); border-radius: 11px; padding: 1rem; min-height: 150px; display: flex; flex-direction: column; gap: .55rem; }
.composer__text { font-size: .95rem; }
.composer__text--dim { color: #b7b3c9; font-style: italic; }
.composer__meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.composer__foot { display: flex; justify-content: space-between; align-items: center; }
.counter { font-size: .78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.composer__preview { background: #f4f2fa; display: flex; align-items: center; justify-content: center; padding: 1.2rem; }
.phone { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; width: 100%; max-width: 300px; box-shadow: var(--shadow-sm); }
.phone__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.phone__name { font-size: .85rem; font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; }
.phone__name small { color: var(--ink-soft); font-weight: 400; font-size: .72rem; }
.phone__text { font-size: .88rem; margin-bottom: .7rem; }
.phone__img { height: 90px; border-radius: 9px; background: linear-gradient(135deg, #d9ccff, #a9e9df); margin-bottom: .6rem; }
.phone__stats { font-size: .76rem; color: var(--ink-soft); }
@media (max-width: 760px) { .composer { grid-template-columns: 1fr; } .composer__editor { border-right: 0; border-bottom: 1px solid var(--line); } }

/* analytics mockup */
.app-window__body--analytics { flex-direction: column; padding: 1.1rem; gap: 1rem; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #faf9fd; border: 1px solid var(--line); border-radius: 11px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .12rem; }
.stat__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 600; }
.stat__value { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.stat__delta { font-size: .74rem; font-weight: 700; }
.stat__delta--up { color: #0e9f6e; } .stat__delta--down { color: #e0245e; }
.chart__bars { display: flex; align-items: flex-end; gap: .55rem; height: 120px; padding: .4rem .2rem 0; }
.chart__bars span { flex: 1; height: var(--h, 40%); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), #9d86ff); min-height: 6px; }
.chart__labels { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-soft); padding: .3rem .2rem 0; }
.acct-rows { display: flex; flex-direction: column; gap: .55rem; }
.acct-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; font-size: .84rem; background: #faf9fd; border: 1px solid var(--line); border-radius: 9px; padding: .55rem .8rem; }
.acct-row em { color: var(--ink-soft); font-style: normal; font-size: .76rem; }
.acct-row .bar { height: 6px; width: var(--w, 50%); border-radius: 3px; background: linear-gradient(90deg, var(--brand), #9d86ff); }

/* ---------- delivery steps ---------- */
.steps .step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); }
.step__num {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-weight: 800; margin-bottom: .9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { color: var(--ink-soft); font-size: .93rem; }

.note { background: var(--brand-soft); border: 1px solid #ddd2ff; color: #4a3a86; border-radius: 12px; padding: 1rem 1.3rem; font-size: .92rem; max-width: 46rem; margin: 2rem auto 0; text-align: center; }
.note--info::before { content: "ℹ️ "; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: center; max-width: 60rem; margin: 0 auto; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.2rem 2rem; box-shadow: var(--shadow); text-align: center; }
.price-card__ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #0e9f6e); color: #fff; font-size: .74rem; font-weight: 700;
  padding: .3rem 1rem; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.price-card__price { margin: 1.1rem 0 1.4rem; }
.price__amount { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; display: block; }
.price__period { color: var(--ink-soft); font-size: .92rem; }
.price-card__list { list-style: none; text-align: left; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.6rem; font-size: .94rem; }
.price-card__list li { background: #faf9fd; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; }
.price-card__secure { font-size: .8rem; color: var(--ink-soft); margin-top: .9rem; }
.price-side { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.price-side li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.3rem; font-size: .93rem; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.price-side strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 1.3rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 1.25rem; color: var(--brand-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.3rem 1.1rem; color: var(--ink-soft); font-size: .94rem; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--brand-deep), var(--brand) 55%, #8f6dff); color: #fff; text-align: center; padding: 4.4rem 0; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .7rem; letter-spacing: -.01em; }
.cta p { opacity: .88; max-width: 34rem; margin: 0 auto 1.8rem; }

/* ---------- footer ---------- */
.footer { background: #141225; color: #b9b5cc; padding: 3rem 0 2.2rem; }
.footer__inner { display: flex; flex-direction: column; gap: 1.1rem; align-items: center; text-align: center; }
.footer__brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.05rem; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: #cfcbe0; font-size: .92rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: .84rem; color: #8b87a1; }
.footer__legal { font-size: .76rem; color: #6f6b85; max-width: 46rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- legal pages ---------- */
.legal { padding: 3.6rem 0 4.5rem; }
.legal h1 { font-size: 2rem; margin-bottom: 1.6rem; letter-spacing: -.01em; }
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: .95rem; margin-bottom: .55rem; }
.legal ul { padding-left: 1.3rem; }
.legal .updated { font-size: .82rem; color: var(--ink-soft); background: var(--bg-alt); border-radius: 8px; padding: .5rem .9rem; display: inline-block; margin-bottom: 1.5rem; }
.legal a { text-decoration: underline; }
