/* Landing, auth and public pages */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.pub-nav { position: sticky; top: 0; z-index: 50; padding: .7rem 0; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(14px); transition: box-shadow .2s, background-color .2s; }
.pub-nav.scrolled { box-shadow: 0 6px 24px rgba(16, 38, 70, .08); background: color-mix(in srgb, var(--surface) 88%, transparent); }
.pub-nav .brand img { height: 40px; width: auto; }
.pub-links { display: flex; gap: 1.6rem; }
.pub-links a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.pub-links a:hover { color: var(--brand); }
.pub-links .m-only, .menu-btn { display: none; }
@media (max-width: 991px) {
  .pub-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: .5rem; }
  .pub-links.open { display: flex; }
  .pub-links a { padding: .8rem 1rem; border-radius: 10px; }
  .pub-links .m-only { display: block; }
  .menu-btn { display: grid; }
  .hide-sm { display: none !important; }
  .pub-nav .brand img { height: 34px; }
}

section { padding: 72px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: .35rem .8rem; border-radius: 999px; margin-bottom: .9rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { position: relative; padding: 36px 0 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 620px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 18%, transparent), transparent), radial-gradient(closest-side at 80% 30%, color-mix(in srgb, var(--blue) 16%, transparent), transparent); z-index: -1; }
.hero-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.25rem; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.hero-points i { color: var(--brand); }
.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 1.1rem; animation: rise .6s .1s both; }
.hero-card .mini-search { display: flex; gap: .6rem; align-items: center; padding: .75rem .9rem; border-radius: 14px; border: 1.5px solid var(--border); color: var(--text-3); font-weight: 600; }
.mini-row { display: flex; align-items: center; gap: .7rem; padding: .7rem .2rem; border-bottom: 1px dashed var(--border); }
.mini-row:last-child { border-bottom: 0; }
.typing::after { content: "|"; animation: blink 1s infinite; color: var(--brand); }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } .hero-card { display: none; } }

/* Slider */
.slider { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); aspect-ratio: 1983 / 793; }
.slides { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.slide { flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: #12407e; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.slider:hover .sl-nav, .sl-nav:focus-visible { opacity: 1; }
.sl-prev { left: 14px; } .sl-next { right: 14px; }
.sl-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: .45rem; }
.sl-dots button { width: 10px; height: 10px; border-radius: 6px; border: 0; background: rgba(18, 64, 126, .3); cursor: pointer; transition: width .3s, background-color .3s; padding: 0; }
.sl-dots button.on { width: 30px; background: #0e9f7e; }
.sl-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--grad); width: 0; }
@media (max-width: 640px) { .slider { border-radius: 16px; } .sl-dots { bottom: 6px; } .sl-dots button { width: 7px; height: 7px; } .sl-dots button.on { width: 20px; } }

/* Strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.75rem; }
.strip .s { display: flex; gap: .75rem; align-items: center; padding: 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.strip .s i { font-size: 1.5rem; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.strip b { display: block; font-family: var(--head); }
.strip span { font-size: .85rem; color: var(--text-2); }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .strip { grid-template-columns: 1fr; } }

/* Problem/solution */
.ps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ps .card h3 { display: flex; gap: .5rem; align-items: center; }
.ps ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.ps li { display: flex; gap: .6rem; align-items: flex-start; }
.ps .bad li i { color: var(--bad); }
.ps .good li i { color: var(--ok); }
.ps .good { background: var(--grad-soft); border-color: color-mix(in srgb, var(--brand) 35%, var(--border)); }
@media (max-width: 760px) { .ps { grid-template-columns: 1fr; } }

/* Features */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feat { padding: 1.4rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feat .fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; color: #fff; }
.feat h3 { font-size: 1.08rem; }
.feat p { color: var(--text-2); font-size: .93rem; margin: 0; }
.fi.c1 { background: linear-gradient(135deg, #0e9f7e, #22c39c); } .fi.c2 { background: linear-gradient(135deg, #1a73d9, #5aa2ff); }
.fi.c3 { background: linear-gradient(135deg, #f08c00, #ffb44a); } .fi.c4 { background: linear-gradient(135deg, #7c4ddb, #b69bff); }
.fi.c5 { background: linear-gradient(135deg, #12407e, #1a73d9); } .fi.c6 { background: linear-gradient(135deg, #d93a3a, #ff8a8a); }
.fi.c7 { background: linear-gradient(135deg, #0b8a6d, #12407e); } .fi.c8 { background: linear-gradient(135deg, #e0458b, #ff8fc0); }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feat-grid { grid-template-columns: 1fr; } }

/* How it works */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: st; position: relative; }
.how .st { position: relative; padding: 1.4rem; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.how .st .n { width: 54px; height: 54px; margin: -2.6rem auto .9rem; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font: 800 1.3rem var(--head); box-shadow: 0 8px 20px -6px rgba(26, 115, 217, .6); border: 4px solid var(--bg); }
.how .st i.big { font-size: 2rem; color: var(--brand); }
.how .st p { color: var(--text-2); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr 1fr; row-gap: 2.6rem; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }

/* Spotlight */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 3.5rem; }
.spot.rev > :first-child { order: 2; }
.spot h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.spot ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.spot li { display: flex; gap: .55rem; } .spot li i { color: var(--brand); }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.1rem; }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; } .spot.rev > :first-child { order: 0; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan { position: relative; padding: 1.6rem 1.3rem; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--border); display: flex; flex-direction: column; gap: .4rem; }
.plan.pop { border-color: var(--brand); box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--brand) 60%, transparent); transform: translateY(-6px); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; padding: .25rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.plan .dur { font-weight: 700; color: var(--text-2); }
.plan .price { font: 800 2.3rem/1.1 var(--head); color: var(--text); }
.plan .price small { font: 600 .9rem var(--font); color: var(--text-3); }
.plan .pm { font-size: .85rem; color: var(--text-2); min-height: 1.3em; }
.plan ul { list-style: none; padding: 0; margin: .8rem 0 1.2rem; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; color: var(--text-2); }
.plan ul i { color: var(--ok); margin-right: .35rem; }
.plan .btn { margin-top: auto; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; row-gap: 1.6rem; } .plan.pop { transform: none; } }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* Install section */
.install-band { background: var(--grad-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.2rem; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7rem 0 0; color: var(--text-2); }

/* CTA band */
.cta-band { border-radius: 28px; padding: clamp(1.6rem, 4vw, 3rem); background: var(--grad); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.cta-band p { opacity: .92; }
.cta-band .card { color: var(--text); position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.pub-foot { padding: 3rem 0 1.5rem; border-top: 1px solid var(--border); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-size: .95rem; margin-bottom: .8rem; }
.foot-grid a:not(.su-badge) { display: block; color: var(--text-2); padding: .2rem 0; font-size: .93rem; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: var(--text-3); }
.su-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-size: .88rem; text-decoration: none !important; background: var(--surface-2); }
.su-badge b { color: var(--text); }
.su-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Auth pages */
.auth { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: var(--grad); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.auth-side .pts { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.5rem; }
.auth-side .pts div { display: flex; gap: .7rem; align-items: center; font-weight: 600; }
.auth-side .pts i { width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.auth-side .bannerimg { margin-top: 2rem; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.auth-side::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; bottom: -160px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 16px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box.wide { max-width: 620px; }
.auth-box h1 { font-size: 1.8rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--text-3); cursor: pointer; width: 40px; height: 40px; font-size: 1.1rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--text-3); font-size: .85rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

.legal { max-width: 860px; margin: 0 auto; padding: 48px 16px; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--text-2); }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
