/* Public pages (home, timers, sign-up): shared nav, cards, forms and footer.
   The logged-in app keeps using style.css; this file is loaded on top of it. */
.lp { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.lp a { color: var(--primary); }
.lp-wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.lp-nav { border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.lp-nav .lp-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.lp-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.15rem; color: var(--text) !important; text-decoration: none; }
.lp-brand img { width: 30px; height: 30px; }
.lp-nav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.lp-nav-links a { text-decoration: none; color: var(--muted); }
.lp-nav-links a:hover { color: var(--text); }
.lp-nav-links .lp-login-btn { color: #fff; background: var(--primary); padding: 0.45rem 1rem; border-radius: 999px; font-weight: 600; }
.lp-nav-links .lp-login-btn:hover { background: var(--primary-hover); color: #fff; }

.lp-hero { background: linear-gradient(180deg, #eff6ff 0%, #fff 100%); padding: 4.5rem 0 4rem; }
.lp-hero .lp-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.lp-eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); background: #dbeafe; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.lp-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.lp-hero h1 span { color: var(--primary); }
.lp-lead { font-size: 1.15rem; color: #4b5563; max-width: 34rem; margin-bottom: 1.75rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lp-cta a { text-decoration: none; font-weight: 600; padding: 0.7rem 1.3rem; border-radius: 999px; font-size: 0.95rem; }
.lp-cta .primary { background: var(--primary); color: #fff; }
.lp-cta .primary:hover { background: var(--primary-hover); }
.lp-cta .ghost { border: 1px solid var(--border); color: var(--text); background: #fff; }
.lp-cta .ghost:hover { border-color: #cbd5e1; }

.lp-card-login { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 30px rgba(37, 99, 235, 0.10), 0 2px 6px rgba(0,0,0,0.04); padding: 2rem; scroll-margin-top: 90px; }
.lp-card-login h2 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.lp-card-login .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.lp-card-login .form-group input { font-size: 1rem; }
.lp-card-login input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px #dbeafe; }
.lp-card-login .btn { width: 100%; padding: 0.75rem; font-size: 1rem; font-weight: 600; border-radius: 10px; margin-top: 0.25rem; }
.lp-card-login .fine { color: var(--muted); font-size: 0.8rem; margin-top: 0.9rem; text-align: center; }

.lp-section { padding: 4rem 0; }
.lp-section h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.lp-section .intro { color: var(--muted); margin-bottom: 2rem; max-width: 40rem; }
.lp-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.lp-tool { border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; background: #fff; display: flex; flex-direction: column; gap: 0.6rem; transition: border-color 0.15s, box-shadow 0.15s; }
.lp-tool:hover { border-color: #bfdbfe; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08); }
.lp-tool .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; }
.lp-tool h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.lp-tool p { color: #4b5563; font-size: 0.95rem; flex: 1; }
.lp-tool .tag { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.15rem 0.55rem; border-radius: 999px; }
.lp-tool .tag.soon { background: #fef3c7; color: #92400e; }
.lp-tool .tag.free { background: #dcfce7; color: #166534; }
.lp-tool .go { font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.lp-tool .go.disabled { color: var(--muted); }

.lp-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); font-size: 0.85rem; }
.lp-footer .lp-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lp-footer a { color: var(--muted); }

@media (max-width: 820px) {
    .lp-wrap { padding: 0 1rem; }
    .lp-hero { padding: 2.25rem 0 2.5rem; }
    .lp-hero .lp-wrap { grid-template-columns: 1fr; gap: 1.75rem; }
    .lp-lead { font-size: 1.05rem; margin-bottom: 0; }
    .lp-cta { display: none; }           /* the login card sits right below on phones */
    .lp-card-login { padding: 1.5rem; }
    .lp-nav-links .hide-sm { display: none; }
    .lp-section { padding: 2.75rem 0; }
}
/* ---- shared additions for the sign-up and timers pages ---- */
.lp-nav-links .lp-ghost-btn { color: var(--text); border: 1px solid var(--border); padding: 0.4rem 0.95rem; border-radius: 999px; font-weight: 600; background: #fff; }
.lp-nav-links .lp-ghost-btn:hover { border-color: #cbd5e1; color: var(--text); }
.lp-card-login .switch { text-align: center; font-size: 0.9rem; margin-top: 0.9rem; color: var(--muted); }
.lp-dialog { border: 0; padding: 0; border-radius: 16px; max-width: min(400px, calc(100vw - 2rem)); width: 100%; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25); }
.lp-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.lp-dialog .lp-card-login { border: 0; box-shadow: none; position: relative; }
.lp-dialog .close { position: absolute; top: 0.75rem; right: 0.9rem; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }

/* narrow phones: keep the header on one line (Sign up is still offered next to every login form) */
@media (max-width: 400px) {
    .lp-brand { font-size: 1.02rem; gap: 0.4rem; }
    .lp-brand img { width: 26px; height: 26px; }
    .lp-nav-links .lp-ghost-btn { display: none; }
}

/* ---- phone-size free-tools row under the header (includes/public_strip.php) ---- */
.lp-strip { display: none; }
@media (max-width: 820px) {
    .lp-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; padding: 0.55rem 0.75rem; background: #fff; border-bottom: 1px solid var(--border); }
    .lp-strip a { display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.55rem 0.4rem; border: 1px solid #d9d4c6;
        border-radius: 10px; color: var(--text); font-weight: 700; font-size: 0.88rem; text-decoration: none; background: #fbfaf6; white-space: nowrap; }
    .lp-strip a:active { background: #f1f5fb; }
    .lp-strip svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #c8372d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
}
