/* FlatFly landing page */
.lp { --wrap: 1180px; overflow-x: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.lp section { position: relative; }

/* nav */
.lp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transition: background .25s, box-shadow .25s, border-color .25s; border-bottom: 1px solid transparent; }
.lp-nav.solid { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.7) blur(16px); -webkit-backdrop-filter: saturate(1.7) blur(16px); border-bottom-color: var(--border); }
.lp-nav .wrap { display: flex; align-items: center; gap: 10px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.logo img { width: 38px; height: 38px; border-radius: 11px; }
.logo span b { color: var(--brand); }
.lp-links { display: none; gap: 4px; margin-left: 22px; }
.lp-links a { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.lp-links a:hover { background: var(--surface-3); }
.lp-nav .sp { flex: 1; }
.menu-btn { display: grid; }
.lp-menu { position: fixed; inset: 66px 0 auto 0; z-index: 59; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 18px 18px; display: none; flex-direction: column; gap: 2px; box-shadow: var(--shadow-lg); }
.lp-menu.open { display: flex; animation: fadeUp .25s forwards; }
.lp-menu a { padding: 13px 6px; font-weight: 700; border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .lp-links { display: flex; } .menu-btn { display: none; } }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline-flex; } }

/* hero */
.hero { padding: 96px 0 40px; overflow: hidden; }
.mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 16s ease-in-out infinite; }
.mesh span:nth-child(1) { width: 420px; height: 420px; background: #93c5fd; left: -120px; top: -80px; }
.mesh span:nth-child(2) { width: 380px; height: 380px; background: #86efac; right: -120px; top: 120px; animation-delay: -5s; }
.mesh span:nth-child(3) { width: 300px; height: 300px; background: #5eead4; left: 35%; bottom: -120px; animation-delay: -9s; }
:root[data-theme="dark"] .mesh span { opacity: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mesh span { opacity: .22; } }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(40px,-30px) scale(1.08); } 66% { transform: translate(-30px,30px) scale(.95); } }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 34px; }
@media (min-width: 980px) { .hero { padding: 120px 0 70px; } .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.eyebrow b { background: var(--grad); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: 11px; }
.hero h1 { font-size: clamp(34px, 8.6vw, 62px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin: 18px 0 16px; }
.hero h1 .grad-text { display: inline-block; }
.hero .lead { font-size: clamp(15.5px, 3.8vw, 18.5px); color: var(--text-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cta-row .btn { height: 54px; font-size: 15.5px; border-radius: 16px; padding: 0 22px; }
@media (max-width: 480px) { .cta-row .btn { flex: 1 1 100%; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: 13px; font-weight: 700; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust i { color: var(--brand); }

/* hero visual */
.visual { position: relative; max-width: 560px; margin: 0 auto; width: 100%; padding: 0 0 30px; }
.photo { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 630/733; width: 78%; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: zoom 18s ease-in-out infinite alternate; }
@keyframes zoom { to { transform: scale(1.12); } }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4,16,40,.35)); }
.phone {
  position: absolute; right: 0; top: 9%; width: 49%; aspect-ratio: 9/18.6; border-radius: 34px; background: #0b1220; padding: 8px;
  box-shadow: 0 40px 80px -24px rgba(2,8,23,.55), 0 0 0 1.5px rgba(255,255,255,.08) inset; animation: bob 6s ease-in-out infinite;
}
.phone .scr { width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: var(--bg); position: relative; font-size: 9px; }
.phone .notch { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 14px; background: #0b1220; border-radius: 10px; z-index: 3; }
.ph-top { display: flex; align-items: center; gap: 6px; padding: 26px 10px 8px; }
.ph-top img { width: 18px; height: 18px; border-radius: 6px; }
.ph-top b { font-size: 10px; }
.ph-hero { margin: 0 8px; border-radius: 14px; background: var(--grad); color: #fff; padding: 10px; }
.ph-hero .l { font-size: 7.5px; opacity: .85; font-weight: 700; }
.ph-hero .b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.ph-hero .s { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.ph-hero .s div { background: rgba(255,255,255,.16); border-radius: 7px; padding: 4px 6px; font-size: 7px; }
.ph-hero .s b { display: block; font-size: 10px; }
.ph-pay { margin-top: 7px; background: #fff; color: #0b3b2a; font-weight: 800; border-radius: 8px; text-align: center; padding: 5px; font-size: 9px; position: relative; overflow: hidden; }
.ph-pay::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(22,163,74,.25) 50%, transparent 70%); animation: shine 2.6s infinite; }
.ph-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 8px; }
.ph-tiles div { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; text-align: center; padding: 6px 2px; font-size: 6.8px; font-weight: 700; color: var(--text-2); }
.ph-tiles i { display: block; font-size: 12px; margin-bottom: 2px; }
.ph-list { margin: 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 3px 7px; }
.ph-list div { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: 7.5px; font-weight: 600; }
.ph-list div:last-child { border: 0; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 12.5px; font-weight: 700; z-index: 4; white-space: nowrap;
}
.float-card .i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; }
.float-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.fc-1 { left: -4px; bottom: 16%; animation: bob 5s ease-in-out infinite; }
.fc-2 { left: 34%; bottom: -2px; animation: bob 5.5s ease-in-out infinite -2s; }
.fc-3 { left: 6%; top: 6%; animation: bob 6.5s ease-in-out infinite -1s; }
.live-toast { animation: liveToast 7s ease-in-out infinite; }
@keyframes liveToast { 0%, 8% { opacity: 0; transform: translateY(12px) scale(.9); } 14%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 420px) { .float-card { font-size: 11px; padding: 7px 10px 7px 7px; } .float-card .i { width: 28px; height: 28px; font-size: 14px; } }

/* marquee */
.marquee { padding: 16px 0; border-block: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.marquee .track { display: flex; gap: 38px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text-2); white-space: nowrap; font-size: 14.5px; }
.marquee span i { color: var(--brand); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: 70px 0; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 36px; }
.sec-head .kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--green-bg); padding: 5px 12px; border-radius: 999px; }
.sec-head h2 { font-size: clamp(27px, 6vw, 42px); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 10px; }
.sec-head p { color: var(--text-2); font-size: 16px; }
.alt { background: var(--surface-2); }

/* two roles */
.roles { display: grid; gap: 16px; }
@media (min-width: 860px) { .roles { grid-template-columns: 1fr 1fr; } }
.role { border-radius: 26px; padding: 26px; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.role.dark { background: linear-gradient(160deg, #0b2a6b, #0e4a5c 60%, #0f5f3a); color: #fff; border: 0; }
.role .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--blue-bg); color: var(--blue-ink); }
.role.dark .tag { background: rgba(255,255,255,.15); color: #fff; }
.role h3 { font-size: 24px; font-weight: 800; margin: 14px 0 6px; }
.role p { opacity: .8; }
.role ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.role li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 14.5px; }
.role li i { color: var(--brand); font-size: 18px; margin-top: 1px; }
.role.dark li i { color: #86efac; }

/* formula */
.eq { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; }
@media (min-width: 860px) { .eq { grid-template-columns: 1fr auto 1fr auto 1fr auto 1.2fr; } }
.eq .box { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.eq .box .k { font-weight: 700; color: var(--muted); font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.eq .box .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.eq .op { font-size: 30px; font-weight: 800; color: var(--muted); text-align: center; }
.eq .box.close { background: var(--grad); color: #fff; border: 0; box-shadow: 0 20px 40px -18px rgba(22,120,90,.7); }
.eq .box.close .k { color: rgba(255,255,255,.85); }
@media (max-width: 859px) { .eq .op { line-height: .6; } }

/* features */
.feats { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 22px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
.feat .ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 23px; margin-bottom: 14px; }
.feat h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feat p { color: var(--text-2); font-size: 14.5px; }

/* carry-forward demo */
.cf { display: grid; gap: 18px; }
@media (min-width: 900px) { .cf { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.cf-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); }
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.months .m { border-radius: 16px; padding: 12px 8px; text-align: center; background: var(--surface-2); border: 1px solid var(--border); transition: all .3s; }
.months .m .n { font-size: 12px; font-weight: 800; color: var(--muted); }
.months .m .v { font-size: 16px; font-weight: 800; margin-top: 4px; }
.months .m .s { font-size: 10.5px; font-weight: 700; margin-top: 2px; }
.months .m.hl { background: var(--grad); color: #fff; border: 0; transform: translateY(-4px); box-shadow: 0 12px 24px -12px rgba(22,120,90,.7); }
.months .m.hl .n, .months .m.hl .s { color: rgba(255,255,255,.85); }
input[type=range].rng { width: 100%; accent-color: var(--brand); height: 28px; }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 20px; font-size: 54px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.step .ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 22px; background: var(--grad); color: #fff; margin-bottom: 14px; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14.5px; }

/* gallery */
.gallery { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); }
.gallery .slides { display: flex; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gallery .slides picture { flex: none; width: 100%; }
.gallery .slides img { width: 100%; aspect-ratio: 1983/793; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.dots button { width: 9px; height: 9px; border-radius: 5px; border: 0; background: var(--border); cursor: pointer; transition: all .3s; padding: 0; }
.dots button.on { width: 26px; background: var(--brand); }

/* pricing */
.price-wrap { display: grid; gap: 18px; }
@media (min-width: 900px) { .price-wrap { grid-template-columns: 1fr 1.15fr; align-items: stretch; } }
.price-card { border-radius: 28px; padding: 28px; background: linear-gradient(160deg, #0b2a6b, #0e4a5c 55%, #0f5f3a); color: #fff; position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -90px; bottom: -120px; background: rgba(134,239,172,.15); }
.price-card .amt { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 14px 0 4px; }
.price-card .amt small { font-size: 17px; font-weight: 700; opacity: .8; letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 9px; }
.price-card li { display: flex; gap: 10px; font-weight: 600; font-size: 14.5px; }
.price-card li i { color: #86efac; }
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 24px; }
.calc .flats-v { font-size: 44px; font-weight: 800; letter-spacing: -.04em; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.plan { border: 1.5px solid var(--border); border-radius: 18px; padding: 14px; position: relative; }
.plan .d { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.plan .p { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.plan .e { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.plan .save { position: absolute; top: -10px; right: 10px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.plan.best { border-color: var(--brand); background: color-mix(in srgb, var(--green-bg) 45%, var(--surface)); }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 18px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 0; font-weight: 800; font-size: 15.5px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--text-2); }

/* cta band */
.cta-band { border-radius: 32px; padding: 42px 24px; text-align: center; color: #fff; background: var(--grad); position: relative; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(22,120,90,.8); }
.cta-band h2 { font-size: clamp(26px, 6vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.cta-band p { opacity: .9; margin: 10px auto 22px; max-width: 560px; font-size: 16px; }
.cta-band .btn-white { color: #0b3b2a; }
.cta-band .ring-deco { position: absolute; border: 2px solid rgba(255,255,255,.15); border-radius: 50%; }

footer.lp-foot { padding: 40px 0 34px; border-top: 1px solid var(--border); margin-top: 60px; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.foot-grid a { display: block; padding: 4px 0; font-weight: 600; color: var(--text-2); }

/* scroll reveal */
.sr { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--d, 0) * 80ms); }
.sr.in { opacity: 1; transform: none; }

/* sticky mobile CTA */
.m-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 55; display: flex; gap: 8px; transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.9,.3,1); }
.m-cta.show { transform: none; }
.m-cta .btn { flex: 1; height: 52px; box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .m-cta { display: none; } }

/* auth pages */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 980px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth-art { display: none; position: relative; overflow: hidden; }
@media (min-width: 980px) { .auth-art { display: block; } }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,42,107,.15), rgba(11,42,107,.75)); }
.auth-art .quote { position: absolute; left: 44px; right: 44px; bottom: 44px; z-index: 1; color: #fff; }
.auth-art .quote h2 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.auth-main { display: flex; flex-direction: column; padding: 18px 20px 30px; position: relative; overflow: hidden; }
.auth-main .mesh span { opacity: .35; }
.auth-box { width: 100%; max-width: 430px; margin: auto; position: relative; z-index: 1; padding: 20px 0; }
.auth-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.auth-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 40px; height: 40px; color: var(--muted); font-size: 18px; cursor: pointer; }
.steps-bar { display: flex; gap: 6px; margin: 18px 0 20px; }
.steps-bar span { flex: 1; height: 5px; border-radius: 3px; background: var(--border); transition: background .3s; }
.steps-bar span.on { background: var(--grad); }
.wstep { display: none; }
.wstep.on { display: flex; animation: fadeUp .35s forwards; }

/* featured brand banner */
.feature-banner { padding: 0 0 34px; position: relative; z-index: 2; }
.fb-frame { display: block; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); background: var(--surface); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.fb-frame img { width: 100%; height: auto; aspect-ratio: 1983/793; object-fit: cover; }
.fb-frame:hover { transform: translateY(-4px); }
@media (max-width: 600px) { .fb-frame { border-radius: 18px; } .feature-banner { padding-bottom: 24px; } }
