/* ============================================================
   PostaiLit — Main Stylesheet
   /assets/css/main.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,700&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:        #7B2FBE;
  --purple-mid:    #9B4FDE;
  --purple-pale:   #F5F0FF;
  --purple-border: #DDD0F5;
  --purple-dark:   #3D1278;
  --gold:          #F5A623;
  --gold-mid:      #F7B84B;
  --gold-pale:     #FFFBF0;
  --gold-border:   #F5DFA0;
  --dark:          #0C0818;
  --text:          #1A1033;
  --muted:         #6B6585;
  --muted-lt:      #A09AB8;
  --border:        #EAE5F5;
  --border-mid:    #D5CCF0;
  --white:         #FFFFFF;
  --bg:            #FAFAFD;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

.display { font-family: 'Raleway', sans-serif; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.display em    { font-style: italic; color: var(--purple); font-weight: 300; }
.display .gold { color: var(--gold); font-style: normal; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 4%; }
.section   { padding: 70px 0; }

.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 18px; }
.chip-purple { background: var(--purple-pale); color: var(--purple); border: 1px solid var(--purple-border); }
.chip-gold   { background: var(--gold-pale); color: #7A4E00; border: 1px solid var(--gold-border); }
.chip-dot    { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 50px; font-family: 'Raleway', sans-serif; font-weight: 700; font-size: 0.9rem; line-height: 1; cursor: pointer; text-decoration: none; transition: all .22s cubic-bezier(.4,0,.2,1); border: none; white-space: nowrap; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-primary { background: var(--purple); color: white; }
.btn-primary:hover { background: var(--purple-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(123,47,190,.28); }
.btn-gold { background: var(--gold); color: #3A2000; box-shadow: 0 4px 18px rgba(245,166,35,.28); }
.btn-gold:hover { background: var(--gold-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,166,35,.38); }
.btn-outline { background: transparent; color: var(--purple); border: 2px solid var(--purple); }
.btn-outline:hover { background: var(--purple-pale); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-mid); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-pale); }
.btn-white { background: white; color: var(--purple); }
.btn-white:hover { background: var(--purple-pale); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,.35); }
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,.1); }

/* NAV */
.site-nav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.93); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); height: 68px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.875rem; font-weight: 600; transition: color .2s; font-family: 'Raleway', sans-serif; }
.nav-links a:hover { color: var(--purple); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* HERO */
.hero { padding: 64px 0 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(2.8rem, 4.5vw, 4rem); margin-bottom: 22px; }
.hero-sub { font-size: 1.1rem; color: var(--muted); line-height: 1.75; margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.proof-avatars { display: flex; }
.proof-avatars span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid white; margin-left: -9px; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 800; flex-shrink: 0; }
.proof-avatars span:first-child { margin-left: 0; }
.av1 { background: var(--purple); color: white; }
.av2 { background: var(--gold); color: #3A2000 !important; }
.av3 { background: var(--purple-mid); color: white; }
.av4 { background: #E84393; color: white; }
.proof-text { font-size: 0.83rem; color: var(--muted); line-height: 1.45; }
.proof-text strong { color: var(--text); font-weight: 700; }

/* HERO MOCKUP */
.hero-visual { position: relative; }
.dash-mockup { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 22px; box-shadow: 0 24px 64px rgba(123,47,190,.13), 0 4px 16px rgba(0,0,0,.05); position: relative; z-index: 1; }
.dash-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.dash-title { font-weight: 800; font-size: 0.88rem; color: var(--text); }
.dash-live { display: flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: #1A8A4A; }
.dash-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #1A8A4A; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.4; } }
.post-row { display: flex; gap: 10px; margin-bottom: 10px; }
.post-thumb { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.pt-purple { background: var(--purple-pale); }
.pt-gold   { background: var(--gold-pale); }
.pt-green  { background: #EDFAF3; }
.post-info { flex: 1; min-width: 0; }
.post-plat { font-size: 0.68rem; font-weight: 700; color: var(--muted-lt); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.post-cap  { font-size: 0.78rem; color: var(--text); line-height: 1.4; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-tags { display: flex; gap: 5px; }
.tag { font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.tag-sched  { background: #EDFAF3; color: #1A7A4A; }
.tag-review { background: var(--gold-pale); color: #7A4E00; }
.tag-ai     { background: var(--purple-pale); color: var(--purple); }
.dash-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 14px; }
.dash-stat { background: var(--bg); border-radius: 10px; padding: 10px; text-align: center; border: 1px solid var(--border); }
.ds-val { font-size: 1.05rem; font-weight: 800; color: var(--purple); display: block; }
.ds-lbl { font-size: 0.62rem; color: var(--muted); font-weight: 600; display: block; margin-top: 1px; }
.float-badge { position: absolute; background: white; border: 1.5px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08); display: flex; align-items: center; gap: 9px; font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap; z-index: 2; }
.float-badge .fbi { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.fbi-gold   { background: var(--gold-pale); }
.fbi-purple { background: var(--purple-pale); }
.fb-tr { top: -18px; right: -18px; }
.fb-bl { bottom: -18px; left: -18px; }

/* PLATFORMS */
.platforms-bar { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.platforms-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; max-width: 1160px; margin: 0 auto; padding: 0 5%; }
.plat-label { font-size: 0.75rem; font-weight: 700; color: var(--muted-lt); text-transform: uppercase; letter-spacing: .08em; }
.plat-divider { width: 1px; height: 20px; background: var(--border-mid); }
.plat-items { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.plat-item { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.plat-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.plat-soon { font-size: 0.62rem; font-weight: 700; background: var(--purple-pale); color: var(--purple); padding: 2px 7px; border-radius: 20px; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 60px; }
.step-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 34px 28px; transition: all .28s; position: relative; overflow: hidden; }
.step-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .28s; }
.step-card:hover::before { transform: scaleX(1); }
.step-card:hover { border-color: var(--purple-border); box-shadow: 0 12px 36px rgba(123,47,190,.1); transform: translateY(-4px); }
.step-num { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 20px; }
.sn-purple { background: var(--purple); color: white; }
.sn-gold   { background: var(--gold); color: #3A2000; }
.sn-outline { background: var(--purple-pale); color: var(--purple); border: 2px solid var(--purple-border); }
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.step-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* FEATURES */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-copy .section-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 32px; max-width: 480px; }
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.fi { display: flex; gap: 14px; }
.fi-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.fii-purple { background: var(--purple-pale); }
.fii-gold   { background: var(--gold-pale); }
.fi-text h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 4px; }
.fi-text p  { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.fv-panel { border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.fvp-purple { background: var(--purple-pale); border: 1.5px solid var(--purple-border); }
.fvp-gold   { background: var(--gold-pale); border: 1.5px solid var(--gold-border); }
.fv-card { background: white; border-radius: 14px; border: 1px solid var(--border); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.fvc-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.fvci-purple { background: var(--purple-pale); }
.fvci-gold   { background: var(--gold-pale); }
.fvc-body { flex: 1; min-width: 0; }
.fvc-label { font-size: 0.7rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.fvc-value { font-size: 0.88rem; font-weight: 700; }
.fvc-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.fvc-fill { height: 100%; border-radius: 2px; }
.fvcf-purple { background: var(--purple); }
.fvcf-gold   { background: var(--gold); }

/* PRICING */
.pricing-wrap { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 56px; }
.price-card { background: white; border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 36px 30px; transition: all .25s; position: relative; }
.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(123,47,190,.1); }
.price-card.featured { border: 2.5px solid var(--purple); box-shadow: 0 8px 32px rgba(123,47,190,.14); }
.price-popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--purple); color: white; font-size: 0.7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 18px; border-radius: 50px; white-space: nowrap; }
.price-name { font-size: 0.75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.price-amount { display: flex; align-items: baseline; gap: 2px; margin-bottom: 6px; }
.price-cur { font-size: 1.4rem; font-weight: 700; color: var(--purple); align-self: flex-start; margin-top: 10px; }
.price-num { font-family: 'Raleway', sans-serif; font-size: 3.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-per { font-size: 0.85rem; color: var(--muted); }
.price-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin-bottom: 22px; }
.price-hr { height: 1px; background: var(--border); margin: 22px 0; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; }
.pf-check { flex-shrink: 0; margin-top: 1px; }
.pf-purple { color: var(--purple); }
.pf-gold   { color: var(--gold); }
.btn-plan { display: block; width: 100%; text-align: center; padding: 13px; border-radius: 50px; font-size: 0.9rem; font-weight: 700; cursor: pointer; font-family: 'Raleway', sans-serif; transition: all .22s; text-decoration: none; }
.btn-plan-purple { background: var(--purple); color: white; border: none; }
.btn-plan-purple:hover { background: var(--purple-mid); }
.btn-plan-outline { background: white; color: var(--purple); border: 2px solid var(--purple); }
.btn-plan-outline:hover { background: var(--purple-pale); }
.btn-plan-gold { background: var(--gold); color: #3A2000; border: none; }
.btn-plan-gold:hover { filter: brightness(1.05); }

/* TESTIMONIALS */
.testi-wrap { background: var(--dark); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px; }
.testi-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg); padding: 28px; }
.testi-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text  { font-size: 0.875rem; color: rgba(255,255,255,.78); line-height: 1.75; margin-bottom: 20px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.78rem; flex-shrink: 0; }
.tav-purple { background: var(--purple); color: white; }
.tav-gold   { background: var(--gold); color: #3A2000; }
.tav-pink   { background: #E84393; color: white; }
.testi-name { font-size: 0.875rem; font-weight: 700; color: white; }
.testi-role { font-size: 0.75rem; color: rgba(255,255,255,.4); }

/* FAQ */
.faq-list { max-width: 760px; margin: 56px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; cursor: pointer; gap: 20px; font-size: 1rem; font-weight: 700; color: var(--text); list-style: none; user-select: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; color: var(--purple); font-size: 1.4rem; font-weight: 300; flex-shrink: 0; transition: transform .25s; line-height: 1; }
details[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 22px; font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* CTA BAND */
.cta-band { background: var(--purple-dark); padding: 90px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: rgba(245,166,35,.08); pointer-events: none; }
.cta-band::after { content: ''; position: absolute; bottom: -80px; left: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(155,79,222,.12); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 5%; }
.cta-band h2 { font-size: clamp(2rem,3.5vw,3rem); color: white; margin-bottom: 16px; }
.cta-band h2 em { color: var(--gold-mid); }
.cta-band p  { font-size: 1.05rem; color: rgba(255,255,255,.7); margin-bottom: 36px; line-height: 1.7; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* FOOTER */
.site-footer { background: var(--dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,.45); line-height: 1.7; margin-top: 16px; max-width: 260px; }
.footer-logo img { height: 34px; width: auto; }
.footer-col h4 { font-size: 0.75rem; font-weight: 800; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-col a  { display: block; font-size: 0.875rem; color: rgba(255,255,255,.55); text-decoration: none; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: rgba(255,255,255,.3); }
.footer-bottom a { color: rgba(255,255,255,.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-legal { display: flex; gap: 20px; }

.flash { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; font-weight: 600; }
.flash-success { background: #EDFAF3; color: #1A7A4A; border: 1px solid #B8EDD4; }
.flash-error   { background: #FFF0F0; color: #9B2020; border: 1px solid #F5C0C0; }
.flash-info    { background: var(--purple-pale); color: var(--purple); border: 1px solid var(--purple-border); }

@keyframes fadeUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.anim-1 { animation: fadeUp .6s ease both; }
.anim-2 { animation: fadeUp .6s .1s ease both; }
.anim-3 { animation: fadeUp .6s .2s ease both; }
.anim-4 { animation: fadeUp .6s .3s ease both; }
.anim-5 { animation: fadeUp .6s .4s ease both; }

@media (max-width: 960px) {
  .hero, .feature-split { grid-template-columns: 1fr; gap: 40px; }
  .hero { text-align: center; }
  .hero-sub, .feature-copy .section-sub { max-width: 100%; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .steps-grid, .pricing-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
}