/* Footersly Portal — marketing/landing styles
   Footersly reference identity:
   deep navy + electric blue, generous whitespace, rounded cards. */

:root {
    --navy: #081638;
    --navy-2: #10377c;
    --blue: #005bea;
    --blue-2: #48c5ed;
    --blue-ink: #0046bf;
    --ink: #081638;
    --text: #26324a;
    --text-dim: #5b6884;
    --line: #e4e9f2;
    --bg: #ffffff;
    --bg-soft: #f5f8fd;
    --radius: 16px;
    --shadow: 0 20px 45px -25px rgba(15, 30, 61, 0.45);
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: var(--font);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }

/* ---------- Nav ---------- */
.tl-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.tl-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.tl-logo { display: flex; align-items: center; gap: 10px; }
.tl-logo-text { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 18px; letter-spacing: -.01em; }
.tl-logo-dim { color: var(--blue); margin-left: 4px; font-weight: 700; }
.tl-nav-links { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.tl-nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.tl-nav-links a:hover { color: var(--blue); }
.tl-nav-cta { display: flex; align-items: center; gap: 16px; }
.tl-link { color: var(--text); font-weight: 600; font-size: 15px; }
.tl-link:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.tl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 11px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    white-space: nowrap;
}
.tl-btn:active { transform: translateY(1px); }
.tl-btn-lg { padding: 14px 26px; font-size: 16px; }
.tl-btn-sm { padding: 8px 14px; font-size: 14px; }
.tl-btn-block { display: flex; justify-content: center; width: 100%; }
.tl-btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(43, 127, 255, .8); }
.tl-btn-primary:hover { background: var(--blue-ink); color: #fff; }
.tl-btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.tl-btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.tl-btn-light { background: #fff; color: var(--navy); }
.tl-btn-light:hover { background: #eef4ff; color: var(--navy); }
.tl-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.tl-btn-ghost-light:hover { border-color: #fff; color: #fff; }

/* ---------- Shared bits ---------- */
.tl-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 14px;
}
.tl-lead { font-size: 19px; color: var(--text-dim); max-width: 60ch; }

.tl-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.tl-section-head h2 { font-size: 36px; }
.tl-section-head p { color: var(--text-dim); font-size: 18px; }

/* ---------- Hero ---------- */
.tl-hero {
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(43,127,255,.14), transparent 60%),
        linear-gradient(180deg, #fbfdff, #f5f8fd);
    border-bottom: 1px solid var(--line);
}
.tl-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 84px 24px 72px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}
.tl-hero-copy h1 { font-size: 54px; letter-spacing: -.02em; }
.tl-hero-copy .tl-lead { margin-top: 18px; }
.tl-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.tl-hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 28px 0 0; }
.tl-hero-badges li { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.tl-hero-badges i { color: var(--blue); margin-right: 6px; }

/* Hero art — a stylized signature card */
.tl-hero-art { display: flex; justify-content: center; }
.tl-signature-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    width: 100%;
    max-width: 380px;
    transform: rotate(-1.5deg);
}
.tl-sig-avatar {
    width: 58px; height: 58px; flex: 0 0 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: #fff; font-weight: 700; font-family: var(--font-display);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.tl-sig-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.tl-sig-title { color: var(--blue); font-weight: 600; font-size: 13px; margin-top: 2px; }
.tl-sig-divider { height: 1px; background: var(--line); margin: 12px 0; }
.tl-sig-row { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.tl-sig-row i { color: var(--blue); width: 16px; margin-right: 6px; }
.tl-sig-brandbar { height: 8px; border-radius: 6px; margin-top: 14px; background: linear-gradient(90deg, var(--navy), var(--blue)); }

/* ---------- Logo strip ---------- */
.tl-logos { max-width: 1180px; margin: 0 auto; padding: 44px 24px; text-align: center; }
.tl-logos p { color: var(--text-dim); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.tl-logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px; }
.tl-logos-row span { color: var(--navy); font-weight: 600; font-size: 16px; opacity: .8; }
.tl-logos-row i { color: var(--blue); margin-right: 8px; }

/* ---------- Features ---------- */
.tl-features { max-width: 1180px; margin: 0 auto; padding: 72px 24px; }
.tl-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tl-feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tl-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0ff; }
.tl-feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(43,127,255,.14), rgba(79,172,254,.14));
    color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 16px;
}
.tl-feature h3 { font-size: 19px; }
.tl-feature p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* ---------- Steps ---------- */
.tl-steps { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tl-steps > .tl-section-head { padding-top: 72px; }
.tl-step-grid { max-width: 1180px; margin: 0 auto; padding: 0 24px 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tl-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.tl-step-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 18px;
    margin-bottom: 16px;
}
.tl-step h3 { font-size: 19px; }
.tl-step p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* ---------- CTA band ---------- */
.tl-cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.tl-cta-inner { max-width: 900px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.tl-cta-inner h2 { color: #fff; font-size: 34px; }
.tl-cta-inner p { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 6px; }
.tl-cta-inner .tl-hero-actions { justify-content: center; }

/* ---------- Generic page hero (Help / Support / Signup / Privacy / Error) ---------- */
.tl-page-hero {
    background:
        radial-gradient(900px 400px at 80% -20%, rgba(43,127,255,.12), transparent 60%),
        linear-gradient(180deg, #fbfdff, #f5f8fd);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.tl-page-hero-inner { max-width: 760px; margin: 0 auto; padding: 72px 24px; }
.tl-page-hero h1 { font-size: 44px; }
.tl-page-hero .tl-lead { margin: 16px auto 0; }

.tl-search { position: relative; max-width: 520px; margin: 28px auto 0; }
.tl-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.tl-search input {
    width: 100%; padding: 15px 18px 15px 46px;
    border: 1px solid var(--line); border-radius: 12px;
    font-size: 16px; font-family: var(--font); background: #fff;
    box-shadow: var(--shadow);
}
.tl-search input:focus { outline: none; border-color: var(--blue); }

/* ---------- Help ---------- */
.tl-help { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.tl-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tl-help-card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tl-help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0ff; color: inherit; }
.tl-help-card h3 { font-size: 18px; }
.tl-help-card p { color: var(--text-dim); font-size: 15px; margin: 0; }

.tl-faq { max-width: 820px; margin: 64px auto 0; }
.tl-faq h2 { text-align: center; font-size: 30px; margin-bottom: 28px; }
.tl-faq-item { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.tl-faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 16px 0; list-style: none; }
.tl-faq-item summary::-webkit-details-marker { display: none; }
.tl-faq-item summary::after { content: '\002B'; float: right; color: var(--blue); font-weight: 700; }
.tl-faq-item[open] summary::after { content: '\2212'; }
.tl-faq-item p { color: var(--text-dim); margin: 0 0 16px; }

/* ---------- Support ---------- */
.tl-support { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.tl-support-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.tl-support-channels { display: flex; flex-direction: column; gap: 18px; }
.tl-support-channel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.tl-support-channel h3 { font-size: 18px; }
.tl-support-channel p { color: var(--text-dim); font-size: 15px; margin: 0 0 8px; }
.tl-support-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.tl-support-form-wrap h2 { font-size: 24px; }

.tl-form-row { margin-bottom: 16px; }
.tl-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.tl-form input, .tl-form textarea, .tl-form select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 10px; font-size: 15px; font-family: var(--font); background: #fff;
    color: var(--text);
}
.tl-form input:focus, .tl-form textarea:focus, .tl-form select:focus { outline: none; border-color: var(--blue); }
.tl-form-note { color: var(--text-dim); font-size: 13px; margin-top: 12px; }

/* ---------- Pricing / Signup ---------- */
.tl-pricing { max-width: 1180px; margin: 0 auto; padding: 64px 24px; }
.tl-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.tl-plan {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column;
}
.tl-plan-featured { border-color: var(--blue); box-shadow: var(--shadow); }
.tl-plan-tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px; letter-spacing: .04em;
}
.tl-plan h3 { font-size: 22px; }
.tl-plan-price { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--ink); margin-bottom: 18px; }
.tl-plan-price span { font-size: 14px; font-weight: 500; color: var(--text-dim); margin-left: 6px; }
.tl-plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.tl-plan li { padding: 8px 0; color: var(--text); font-size: 15px; border-bottom: 1px solid var(--line); }
.tl-plan li i { color: var(--blue); margin-right: 10px; }

.tl-signup-cta { margin-top: 40px; }
.tl-signup-cta-inner {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    border-radius: var(--radius); padding: 36px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.tl-signup-cta-inner h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.tl-signup-cta-inner p { color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Signup request form ---------- */
.tl-signup { max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; }
.tl-signup-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
.tl-signup-form-wrap {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow);
}
.tl-signup-form-wrap h2 { font-size: 24px; }
/* Two fields on one line on desktop, stacked on narrow screens. */
.tl-signup .tl-form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tl-form-hint { display: block; color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.tl-field-error { display: block; color: #b42318; font-size: 13px; font-weight: 600; margin-top: 6px; }
.tl-field-error:empty { display: none; }
.tl-form .input-validation-error { border-color: #d92d20; background: #fffbfa; }
.tl-form button[disabled] { opacity: .55; cursor: not-allowed; }

/* Off-screen rather than display:none - some bots skip hidden inputs. */
.tl-honeypot {
    position: absolute; left: -9999px; width: 1px; height: 1px;
    overflow: hidden; opacity: 0;
}

.tl-alert {
    display: flex; gap: 12px; align-items: flex-start;
    border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; font-size: 14px;
}
.tl-alert p { margin: 0 0 4px; }
.tl-alert p:last-child { margin-bottom: 0; }
.tl-alert-error { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.tl-alert-error i { color: #d92d20; }
.tl-alert-warn { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }
.tl-alert-warn i { color: #dc6803; }
.tl-alert a { color: inherit; text-decoration: underline; }

.tl-signup-aside { display: flex; flex-direction: column; gap: 18px; }
.tl-signup-steps { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.tl-signup-steps h3 { font-size: 18px; margin-bottom: 16px; }
.tl-signup-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.tl-signup-steps li {
    counter-increment: step; position: relative; padding-left: 38px; padding-bottom: 18px;
}
.tl-signup-steps li:last-child { padding-bottom: 0; }
.tl-signup-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--blue); color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
/* The connecting line between step markers. */
.tl-signup-steps li:not(:last-child)::after {
    content: ''; position: absolute; left: 13px; top: 30px; bottom: 6px;
    width: 1px; background: #cfe0ff;
}
.tl-signup-steps li strong { display: block; color: var(--ink); font-size: 15px; }
.tl-signup-steps li span { display: block; color: var(--text-dim); font-size: 14px; }

.tl-signup-note { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.tl-signup-note h4 { font-size: 15px; margin-bottom: 6px; }
.tl-signup-note h4 i { color: var(--blue); margin-right: 8px; }
.tl-signup-note p { color: var(--text-dim); font-size: 14px; margin: 0; }

.tl-thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.tl-thanks .tl-signup-steps { text-align: left; }
.tl-thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Prose ---------- */
.tl-prose { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.tl-prose h2 { font-size: 24px; margin-top: 32px; }
.tl-prose p { color: var(--text); }

/* ---------- Footer ---------- */
.tl-footer { background: var(--navy); color: #cdd7ea; }
.tl-footer-inner {
    max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
}
.tl-footer-brand .tl-logo-text { color: #fff; font-size: 20px; margin-bottom: 12px; }
.tl-footer-brand p { color: #9fb0cf; font-size: 14px; max-width: 34ch; }
.tl-footer-copy { margin-top: 18px; font-size: 13px; color: #7f92b5; }
.tl-footer-col h4 { color: #fff; font-family: var(--font); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.tl-footer-col a { display: block; color: #9fb0cf; font-size: 14px; margin-bottom: 10px; }
.tl-footer-col a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .tl-hero-inner { grid-template-columns: 1fr; }
    .tl-hero-art { order: -1; }
    .tl-feature-grid, .tl-step-grid, .tl-help-grid, .tl-plan-grid { grid-template-columns: 1fr; }
    .tl-support-grid { grid-template-columns: 1fr; }
    .tl-signup-grid { grid-template-columns: 1fr; }
    .tl-footer-inner { grid-template-columns: 1fr 1fr; }
    .tl-nav-links { display: none; }
    .tl-hero-copy h1 { font-size: 40px; }
}

/* Footersly identity, shared with the signature application. */
.tl-logo { flex-shrink: 0; }
.tl-brand-mark { flex-shrink: 0; object-fit: contain; }
.tl-brand-lockup { display: flex; flex-direction: column; gap: 5px; }
.tl-logo-text { font-size: 29px; line-height: 1; letter-spacing: -1.1px; }
.tl-brand-tagline { font-size: 7px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.tl-brand-promise { color: var(--blue-ink); font-size: 21px; font-weight: 600; line-height: 1.5; }
.tl-hero-copy h1 { font-size: clamp(36px, 4.4vw, 54px); letter-spacing: -.04em; }
.tl-footer-brand .tl-logo-text { font-size: 29px; margin-bottom: 0; }
.tl-footer-brand .tl-brand-tagline { color: #b7d3f5; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 4px; }
@media (max-width: 900px) {
    .tl-nav-cta { margin-left: auto; }
}
@media (max-width: 600px) {
    .tl-nav-inner { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
    .tl-nav-cta { width: 100%; justify-content: space-between; }
    .tl-nav-links { display: flex; order: 3; width: 100%; flex: auto; margin: 0; justify-content: space-between; gap: 10px; }
    .tl-nav-links a { font-size: 13px; }
    .tl-hero-inner { padding: 40px 20px; gap: 32px; }
    .tl-signature-card { padding: 20px 16px; gap: 12px; transform: none; }
    .tl-sig-body { min-width: 0; overflow-wrap: anywhere; }
    .tl-footer-inner { grid-template-columns: 1fr; }
    .tl-page-hero h1 { font-size: 34px; }
    .tl-signup { padding: 36px 16px 48px; }
    .tl-signup-form-wrap { padding: 22px 18px; }
    .tl-signup .tl-form-split { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

.tl-email-preview { width: 100%; background: white; border: 1px solid #cde1fa; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px #10377c18; }
.tl-email-toolbar { padding: 14px 22px; background: #005bea; color: white; font-size: 13px; font-weight: 600; }
.tl-email-toolbar i { margin-right: 10px; }
.tl-email-subject { margin: 0 22px; padding: 14px 0; border-bottom: 1px solid #e4e9f2; color: #5b6884; font-size: 13px; }
.tl-email-message { padding: 0 22px; font-size: 14px; color: #26324a; }
.tl-email-preview .tl-signature-card { border: 0; box-shadow: none; transform: none; padding-top: 8px; }
@media (min-width: 601px) and (max-width: 900px) { .tl-nav-inner { flex-wrap: wrap; } .tl-nav-links { display: flex; order: 3; flex-basis: 100%; } }