/* instalogin landing page — standalone, does not touch the app's css/app.css */
:root {
    --ink: #0d0c11;
    --ink-2: #15131b;
    --ink-3: #1d1a25;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f4f0ec;
    --muted: #a7a1ad;
    --dim: #6f6977;
    --coral: #f2476a;
    --coral-2: #ff6b86;
    --coral-soft: rgba(242, 71, 106, .14);
    --mint: #4fe3a5;
    --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 400 17px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    border-radius: 999px; text-decoration: none; font-weight: 600;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 15px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 30px -10px rgba(242, 71, 106, .7); }
.btn-primary:hover { background: var(--coral-2); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); }
.btn img { width: 20px; height: 20px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--coral-2); outline-offset: 3px; }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(13, 12, 17, .72);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-tile {
    width: 38px; height: 38px; border-radius: 10px; background: #fff;
    display: grid; place-items: center; box-shadow: 0 4px 20px -6px rgba(242, 71, 106, .6);
}
.brand-name { font: 700 21px/1 var(--display); letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-link:hover { color: var(--text); }

/* Hero */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.glow {
    position: absolute; inset: -20% -10% auto auto; width: 900px; height: 700px; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(242, 71, 106, .22), transparent 70%),
        radial-gradient(closest-side at 30% 70%, rgba(120, 80, 255, .12), transparent 70%);
    filter: blur(20px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 6px 14px 6px 12px; border-radius: 999px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
    color: var(--muted); font-size: 14px; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(79, 227, 165, .15); }
h1 {
    margin-top: 26px;
    font: 800 clamp(46px, 6.4vw, 82px)/.98 var(--display);
    letter-spacing: -.035em;
}
h1 em {
    font-style: normal; color: var(--coral);
    background: linear-gradient(100deg, var(--coral) 10%, #ff9a7a 90%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { margin-top: 24px; max-width: 30em; font-size: 19px; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-row.center { justify-content: center; }
.fine { margin-top: 18px; color: var(--dim); font-size: 14px; }

/* Demo window */
.demo { position: relative; width: 100%; max-width: 540px; justify-self: end; }
.win {
    position: relative;
    border-radius: 16px; overflow: hidden;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 80px -40px rgba(242, 71, 106, .45);
}
.win-bar {
    display: flex; align-items: center; gap: 12px;
    height: 46px; padding: 0 12px 0 16px;
    background: var(--ink-3); border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3542; }
.url {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
    height: 28px; padding: 0 12px; border-radius: 8px; background: rgba(0, 0, 0, .3);
    color: var(--muted); font: 400 13px/1 var(--mono); white-space: nowrap; overflow: hidden;
}
.url > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lock {
    flex: none; width: 9px; height: 8px; border-radius: 2px; background: var(--dim); position: relative; margin-top: 3px;
}
.lock::before {
    content: ""; position: absolute; left: 1.5px; top: -5px; width: 6px; height: 6px;
    border: 1.5px solid var(--dim); border-bottom: 0; border-radius: 4px 4px 0 0;
}
.ext-icon {
    flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px;
    background: #fff; display: grid; place-items: center; cursor: default;
    transition: box-shadow .2s ease, transform .2s ease;
}
.ext-icon img { width: 22px; height: 22px; }
.ext-icon.pressed { transform: scale(.9); box-shadow: 0 0 0 4px rgba(242, 71, 106, .35); }

.win-body { position: relative; min-height: 392px; padding: 28px 30px 30px; }
.site { transition: opacity .35s ease, filter .35s ease; }
.site.faded { opacity: .15; filter: blur(2px); }
.site-name { font: 700 13px/1 var(--mono); color: var(--coral-2); letter-spacing: .02em; }
.site-title { margin-top: 10px; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; font-size: 13px; color: var(--dim); margin-bottom: 6px; font-weight: 500; }
.field > b {
    display: flex; align-items: center;
    height: 42px; padding: 0 14px; border-radius: 10px;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
    font-size: 14px; font-weight: 400; color: var(--text);
    white-space: nowrap; overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}
.field > b.active { border-color: rgba(242, 71, 106, .6); background: var(--coral-soft); }
.field > b.active::after {
    content: ""; width: 1.5px; height: 18px; margin-left: 1px; background: var(--coral-2);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.site-btn {
    display: inline-block; margin-top: 22px; padding: 11px 22px; border-radius: 10px;
    background: #f4f0ec; color: var(--ink); font-weight: 600; font-size: 15px;
    transition: transform .12s ease, background .2s ease;
}
.site-btn.pressed { transform: scale(.95); background: #fff; }

.popup {
    position: absolute; top: 10px; right: 12px; width: 190px;
    padding: 14px; border-radius: 12px; background: #fff; color: #222;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
    opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right;
    transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.popup.show { opacity: 1; transform: none; }
.popup-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.popup-head img { width: 20px; height: 20px; }
.popup-btn {
    display: block; margin-top: 12px; padding: 10px; border-radius: 8px; text-align: center;
    background: var(--coral); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em;
    transition: transform .12s ease, background .2s ease;
}
.popup-btn.pressed { transform: scale(.94); background: #d93558; }

.toast {
    position: absolute; top: 12px; right: 12px; width: min(300px, calc(100% - 24px));
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: #1d1a25; border: 1px solid var(--line-2);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
    opacity: 0; transform: translateY(-14px); transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast-icon {
    flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--coral-soft); position: relative;
}
.toast-icon::before { /* envelope */
    content: ""; position: absolute; left: 9px; top: 11px; width: 16px; height: 12px;
    border: 1.5px solid var(--coral-2); border-radius: 2px;
}
.toast-icon::after {
    content: ""; position: absolute; left: 12px; top: 9px; width: 9px; height: 9px;
    border-right: 1.5px solid var(--coral-2); border-bottom: 1.5px solid var(--coral-2);
    transform: rotate(45deg);
}
.toast.done .toast-icon { background: rgba(79, 227, 165, .14); }
.toast.done .toast-icon::before { display: none; }
.toast.done .toast-icon::after {
    left: 13px; top: 8px; width: 8px; height: 15px; border-color: var(--mint); border-width: 0 2px 2px 0;
}
.toast-text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.35; min-width: 0; }
.toast-text b { font-weight: 600; }
.toast-text span { color: var(--muted); font-size: 13px; }
.toast.done .toast-text span { color: var(--mint); }

.welcome {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 24px; opacity: 0; transform: scale(.96);
    transition: opacity .4s ease, transform .4s ease; pointer-events: none;
}
.welcome.show { opacity: 1; transform: none; }
.check {
    width: 64px; height: 64px; border-radius: 50%; position: relative;
    background: rgba(79, 227, 165, .12); box-shadow: 0 0 0 10px rgba(79, 227, 165, .05);
}
.check::after {
    content: ""; position: absolute; left: 24px; top: 15px; width: 14px; height: 26px;
    border: solid var(--mint); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.welcome-title { margin-top: 20px; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.welcome-sub { margin-top: 10px; color: var(--muted); font-size: 14px; }

.cursor {
    position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none;
    opacity: 0; transition: opacity .3s ease;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5 19.5 13l-7 1.2-3.6 6.3z' fill='%23fff' stroke='%230d0c11' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}
.cursor.on { opacity: 1; }
.cursor::after {
    content: ""; position: absolute; left: -9px; top: -9px; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--coral-2); opacity: 0; transform: scale(.4);
}
.cursor.click::after { animation: ripple .45s ease-out; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }

/* Sections */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.kicker {
    color: var(--coral-2); font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
h2 {
    margin-top: 16px;
    font: 800 clamp(34px, 4.4vw, 54px)/1.02 var(--display); letter-spacing: -.03em;
}
h3 { font: 700 20px/1.2 var(--display); letter-spacing: -.01em; }
.body { margin-top: 20px; color: var(--muted); max-width: 34em; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pairs li {
    position: relative;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 12px;
    background: var(--ink-2); border: 1px solid var(--line);
    font-size: 14px;
}
.site-tag { color: var(--muted); }
.line { height: 1px; min-width: 20px; background: repeating-linear-gradient(90deg, var(--line-2) 0 5px, transparent 5px 10px); }
.addr { color: var(--text); }
.pairs .del {
    display: none;
    padding: 3px 9px; border-radius: 999px; background: var(--coral); color: #fff;
    font: 600 12px/1.4 var(--sans);
}
.pairs .spam.go { grid-template-columns: auto 1fr auto auto; }
.pairs .spam.go .del { display: inline-block; }
.pairs .spam.go { border-color: rgba(242, 71, 106, .35); background: rgba(242, 71, 106, .06); }
.pairs .spam.go .addr { color: var(--dim); text-decoration: line-through; text-decoration-color: var(--coral); transition: color .3s ease .3s; }
.pairs .spam.go .del { animation: pop .35s ease .55s both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li {
    padding: 28px; border-radius: var(--r);
    background: linear-gradient(180deg, var(--ink-2), rgba(21, 19, 27, .4));
    border: 1px solid var(--line);
}
.num {
    display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px;
    border-radius: 10px; background: var(--coral-soft); color: var(--coral-2);
    font: 700 16px/1 var(--mono);
}
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.center-note { margin-top: 28px; font-size: 15px; color: var(--dim); }

.pricing { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.price-card, .invite-card { padding: 40px; border-radius: 20px; border: 1px solid var(--line); }
.price-card {
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(242, 71, 106, .16), transparent 70%),
        var(--ink-2);
}
.price { margin-top: 18px; font: 800 96px/1 var(--display); letter-spacing: -.04em; display: flex; align-items: flex-start; }
.price .cur { font-size: 44px; margin: 12px 4px 0 0; color: var(--muted); font-weight: 700; }
.price .per { font-size: 20px; color: var(--muted); align-self: flex-end; margin: 0 0 12px 12px; font-weight: 500; letter-spacing: 0; font-family: var(--sans); }
.price-card .btn { margin-top: 30px; }
.invite-card { background: var(--ink-2); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.invite-big { font: 800 44px/1 var(--display); letter-spacing: -.03em; color: var(--mint); }

.faq { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
.faq p { margin-top: 10px; color: var(--muted); }
.faq a { color: var(--text); text-decoration-color: var(--coral); text-underline-offset: 3px; }
.built {
    margin-top: 56px; padding: 24px 28px; border-radius: var(--r);
    border-left: 3px solid var(--coral); background: var(--ink-2); color: var(--muted); max-width: 48em;
}

.final { text-align: center; padding: 120px 0; }
.quote { margin: 0; }
.quote p {
    font: 800 clamp(30px, 4.6vw, 58px)/1.08 var(--display); letter-spacing: -.03em;
    min-height: 2.2em; display: flex; align-items: center; justify-content: center;
    transition: opacity .3s ease, transform .3s ease;
}
.quote p.swap { opacity: 0; transform: translateY(8px); }
.quote cite { display: block; margin-top: 12px; color: var(--dim); font-style: italic; font-size: 16px; }
.final .cta-row { margin-top: 48px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--dim); }
.foot-inner { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot a { color: var(--dim); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 960px) {
    .hero { padding: 56px 0 72px; }
    .hero-grid, .split, .pricing { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .hero-grid > *, .split > * { min-width: 0; }
    .demo { justify-self: center; }
    .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .hide-sm { display: none; }
    .nav-links { gap: 16px; }
    .lede { font-size: 17px; }
    .cta-row .btn { flex: 1 1 100%; justify-content: center; }
    .win-body { padding: 22px 18px 24px; min-height: 380px; }
    .url { font-size: 12px; }
    .section { padding: 72px 0; }
    .pairs li, .pairs .spam.go { grid-template-columns: 1fr auto; gap: 4px 10px; }
    .pairs .site-tag { grid-column: 1 / -1; }
    .pairs .line { display: none; }
    .faq { grid-template-columns: 1fr; gap: 28px; }
    .price-card, .invite-card { padding: 28px; }
    .price { font-size: 76px; }
    .final { padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
