/* Web-only additions: sign-in screen, session banner, confirm dialog and toasts. */
body.gated #sidebar, body.gated #main, body.gated #show-side { display: none !important; }
#gate { display: none; }
body.gated #gate {
  display: block; min-height: 100vh; min-height: 100dvh; width: 100%; padding: 0 24px; overflow-y: auto;
  background:
    radial-gradient(900px 520px at 15% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 480px at 100% 40%, color-mix(in srgb, #f6d77a 22%, transparent), transparent 70%),
    var(--bg);
}
body.gated { display: block; overflow-y: auto; }
.lp-nav, .lp-hero, .lp-how, .lp-pricing, .lp-foot { max-width: 1080px; margin: 0 auto; }
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.lp-nav nav { display: flex; gap: 22px; }
.lp-nav nav a, .lp-foot a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.lp-nav nav a:hover, .lp-foot a:hover { color: var(--accent-text); }
.lp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 48px 0 64px; }
.lp-kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; }
.lp-copy h1 { font: 600 52px/1.08 var(--font-display); letter-spacing: -.025em; margin: 0 0 18px; font-variation-settings: "SOFT" 80, "WONK" 0; }
.lp-lead { font-size: 17.5px; line-height: 1.65; color: var(--text-2); margin: 0 0 22px; max-width: 34em; }
.lp-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-points li { display: flex; gap: 10px; font-size: 15px; color: var(--text-2); }
.lp-points span { width: 24px; text-align: center; }
.gate-card {
  position: relative; max-width: 420px; width: 100%; justify-self: end; text-align: center; background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: 28px; padding: 40px 34px 30px; box-shadow: var(--shadow-lg); animation: sn-rise 480ms var(--ease);
}
.gate-logo { width: 88px; height: 88px; margin: 0 auto 6px; border-radius: 24px; box-shadow: 0 14px 30px rgba(226, 178, 64, .32); animation: sn-float 6s ease-in-out infinite; }
.gate-logo img, .gate-logo svg { width: 100%; height: 100%; display: block; border-radius: 24px; }
.gate-card h2 { margin: 14px 0 6px; font: 600 32px/1.1 var(--font-display); letter-spacing: -.02em; }
.gate-tag { color: var(--text-2); margin: 0 0 24px; font-size: 15px; }
.gate-btn { height: 46px; font-size: 15px; padding: 0 22px; width: 100%; border-radius: 14px; gap: 10px; }
.gate-btn .g { width: 20px; height: 20px; background: #fff; border-radius: 50%; padding: 2px; flex-shrink: 0; }
.gate-btn:disabled { opacity: .7; cursor: progress; transform: none; }
.gate-msg { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.gate-fine { display: flex; gap: 8px; text-align: left; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; padding: 12px 14px; background: var(--bg); border-radius: 14px; }
.gate-fine::before { content: "🔒"; font-size: 14px; }
.lp-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 8px 0 64px; }
.lp-how > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.lp-how b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fbefc4; color: #7a5a12; font-size: 13px; }
.lp-how h3 { margin: 12px 0 6px; font-size: 17px; }
.lp-how p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.lp-pricing { padding: 0 0 64px; text-align: center; }
.lp-pricing > h2 { font: 600 34px/1.2 var(--font-display); margin: 0 0 24px; }
.lp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto; text-align: left; }
.lp-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.lp-plan.best { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
.lp-plan h3 { margin: 0; font-size: 16px; }
.lp-plan .price { font: 600 36px/1.15 var(--font-display); margin: 6px 0 2px; }
.lp-plan .price span { font: 500 14px var(--font-ui); color: var(--muted); }
.lp-plan p { margin: 0 0 8px; }
.lp-plan ul { padding-left: 18px; margin: 12px 0 0; line-height: 1.8; font-size: 14.5px; color: var(--text-2); }
.lp-foot { display: flex; gap: 18px; justify-content: center; padding: 26px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .lp-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .gate-card { justify-self: center; }
  .lp-copy h1 { font-size: 38px; }
  .lp-how, .lp-plans { grid-template-columns: 1fr; }
}
#reconnect {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; gap: 12px;
  align-items: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-md); font-size: 14px; animation: sn-rise var(--normal) var(--ease);
}
.side-foot a { color: var(--muted); text-decoration: none; }
.side-foot a:hover { color: var(--text); }

/* delete confirmation and status messages */
.modal.confirm { width: min(440px, 100%); padding: 26px 26px 20px; }
.modal.confirm h2 { font-size: 20px; margin: 0 0 8px; }
.confirm-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.btn.danger-btn { background: var(--red); border-color: transparent; color: #fff; font-weight: 600; padding: 0 16px; }
.btn.danger-btn:hover { filter: brightness(1.06); background: var(--red); color: #fff; }
#toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 300; opacity: 0; pointer-events: none; transform: translateY(10px);
  display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: min(380px, calc(100vw - 40px));
  background: var(--surface-raised); color: var(--text); padding: 10px 16px; border-radius: 12px; font-size: 13.5px;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease);
}
#toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
#toast.show { opacity: 1; transform: none; }
#toast.error { color: var(--red); background: var(--surface-raised); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
#toast.error::before { background: var(--red); }
@media (max-width: 760px) { #toast { left: 20px; right: 20px; max-width: none; } }
