/* =============================================================
   FaxSafe – shared marketing styles (2026 redesign)
   Tokens, base, buttons, header and footer. Used by the home page,
   Help Center, Privacy and Terms. Page sections live in their own file.
   ============================================================= */

:root {
    --fs-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fs-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --fs-ink:        #10131c;
    --fs-text:       #2b3140;
    --fs-muted:      #5d6474;
    --fs-line:       #e3e6ec;
    --fs-bg:         #ffffff;
    --fs-bg-soft:    #eef0f4;
    --fs-primary:    #3a5a9b;
    --fs-primary-dk: #2e4a85;
    --fs-accent:     #3e64b3;
    --fs-navy:       #121a30;
    --fs-green:      #16a34a;
    --fs-green-bg:   #dcfce7;
    --fs-star:       #f5a524;

    --fs-radius:    16px;
    --fs-radius-lg: 24px;
    --fs-shadow:    0 1px 2px rgba(16, 19, 28, .04), 0 8px 24px rgba(16, 19, 28, .06);
    --fs-shadow-lg: 0 24px 60px rgba(16, 24, 48, .14);
}

/* ── Base ── */
.fs-body, .fs-body *, .fs-body *::before, .fs-body *::after { box-sizing: border-box; }
.fs-body {
    margin: 0;
    font-family: var(--fs-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--fs-text);
    background: var(--fs-bg);
    -webkit-font-smoothing: antialiased;
}
/* Zero-specificity resets, so any component class wins over them. */
:where(.fs-body) img { max-width: 100%; height: auto; display: block; }
:where(.fs-body) a { color: inherit; text-decoration: none; }
:where(.fs-body) :where(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(.fs-body) :where(ul, ol) { list-style: none; }
.fs-body :focus-visible { outline: 3px solid rgba(62, 100, 179, .45); outline-offset: 2px; border-radius: 8px; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }

.fs-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.fs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Curved top edge of a section (partials/curve.html) */
.fs-curve { position: absolute; top: 0; left: 0; z-index: 1; display: block; width: 100%; height: clamp(20px, 2.5vw, 48px); pointer-events: none; }
.fs-section { padding: 96px 0; }

.fs-h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -.025em;
    color: var(--fs-ink);
}
.fs-h2 em, .fs-body h1 em { font-style: italic; color: var(--fs-accent); }
.fs-lead { font-size: 17px; color: var(--fs-muted); }
.fs-head-center { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.fs-head-center .fs-lead { margin-top: 12px; }
.fs-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }

/* ── Buttons ── */
.fs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 22px;
    border-radius: 999px; border: 1.5px solid transparent;
    font: 600 15px/1.2 var(--fs-font); text-align: center;
    cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.fs-btn:active { transform: translateY(1px); }
.fs-btn-primary { background: var(--fs-primary); color: #fff !important; box-shadow: 0 6px 16px rgba(58, 90, 155, .28); }
.fs-btn-primary:hover { background: var(--fs-primary-dk); }
.fs-btn-outline { background: #fff; color: var(--fs-primary) !important; border-color: var(--fs-primary); }
.fs-btn-outline:hover { background: #f1f5fd; }
.fs-btn-white { background: #fff; color: var(--fs-primary) !important; }
.fs-btn-white:hover { background: #eef3fd; }
.fs-btn-block { display: flex; width: 100%; }

/* ── Small pieces ── */
.fs-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--fs-line);
    font-size: 13px; font-weight: 500; color: var(--fs-text);
}
.fs-pill svg { color: var(--fs-accent); }
.fs-checks li { position: relative; padding-left: 30px; }
.fs-checks li::before {
    content: ""; position: absolute; left: 0; top: .2em;
    width: 18px; height: 18px; border-radius: 50%;
    background: #e4ecfb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a5a9b' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.fs-checks strong { color: var(--fs-ink); font-weight: 700; }
.fs-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fs-tags span {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--fs-line);
    font-size: 12px; font-weight: 600; color: var(--fs-primary);
}
.fs-tags span::before { content: "✓"; font-size: 11px; }
.fs-stars { color: var(--fs-star); letter-spacing: 2px; }
.fs-rating { font-size: 13px; color: var(--fs-muted); display: flex; align-items: center; gap: 8px; }

/* Store badges */
.fs-store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.fs-store {
    display: inline-flex; align-items: center; gap: 9px;
    height: 48px; padding: 0 16px 0 12px; border-radius: 10px;
    background: #0b0d12; color: #fff !important;
    transition: background .15s;
}
.fs-store:hover { background: #262a33; }
.fs-store span { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; line-height: 1.05; }
.fs-store small { font-size: 9.5px; font-weight: 500; opacity: .85; }
.fs-store-ic { flex: none; }
.fs-store-sm { height: 42px; padding: 0 14px 0 10px; }
.fs-store-sm span { font-size: 14px; }

/* ── Logo ── */
.fs-logo { display: inline-flex; align-items: center; gap: 9px; }
/* The app icon (img/logo-72.png, Figma "Logo mark" 1429:41985), black in the
   header and the footer alike. */
.fs-logo-mark { display: block; flex: none; width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.fs-logo-name { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--fs-ink); letter-spacing: -.01em; }
.fs-logo-light .fs-logo-name { color: #fff; }

/* ── Header ── */
.fs-header { position: relative; z-index: 20; padding-top: 16px; }
/* Figma "Nav bar" (1429:41983), scaled to the 1160px content column, and the
   same box as the signed-in app bar (.ff-appbar-bar in faxflow-app.css):
   16px from the top, 60px tall, 1200px wide. The pill reaches up to 20px past
   the content edges (less on narrower screens, none below 1200px), so the
   logo lines up with the page content below it instead of sitting indented. */
.fs-header-bar {
    display: flex; align-items: center; gap: 25px;
    height: 60px; padding: 0 11px 0 22px;
    margin: 0 clamp(-20px, (1200px - 100vw) / 2, 0px);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 0 48px rgba(0, 0, 0, .08);
}
.fs-nav { display: flex; gap: 25px; margin-left: auto; }
.fs-nav a { font-size: 15px; font-weight: 500; line-height: 1.4; color: #3c3c37; transition: color .15s; }
.fs-nav a:hover, .fs-nav a[aria-current] { color: var(--fs-primary); }
.fs-header-cta { min-height: 36px; padding: 0 19px; font-size: 15px; font-weight: 500; box-shadow: none; }
.fs-header-cta-mobile, .fs-menu-toggle { display: none; }
.fs-menu-toggle {
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--fs-bg-soft); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.fs-menu-toggle span { width: 16px; height: 2px; border-radius: 2px; background: var(--fs-ink); transition: transform .2s, opacity .2s; }
.fs-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fs-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fs-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.fs-mobile-menu {
    display: none; flex-direction: column;
    margin-top: 8px; padding: 10px; border-radius: 20px;
    background: #fff; box-shadow: var(--fs-shadow-lg);
}
.fs-mobile-menu a:not(.fs-btn) { padding: 12px 14px; border-radius: 12px; font-weight: 500; color: var(--fs-ink); }
.fs-mobile-menu a:not(.fs-btn):hover { background: var(--fs-bg-soft); }
.fs-mobile-menu .fs-btn { margin-top: 8px; }
.fs-mobile-menu.is-open { display: flex; }

@media (max-width: 1080px) {
    .fs-nav { gap: 18px; }
}
@media (max-width: 960px) {
    .fs-nav, .fs-header-cta { display: none; }
    .fs-header-cta-mobile { display: inline-flex; margin-left: auto; min-height: 38px; padding: 7px 16px; font-size: 14px; }
    .fs-menu-toggle { display: inline-flex; }
    .fs-header-bar { gap: 8px; height: 58px; padding: 0 8px 0 14px; }
}

/* ── Footer ── */
.fs-footer {
    position: relative; overflow: hidden;
    padding: 64px 0 28px;
    color: rgba(255, 255, 255, .78);
    background:
        linear-gradient(115deg, transparent 55%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .06) 75%, transparent 75%),
        linear-gradient(135deg, #2c4a8a 0%, #3a5fa6 100%);
}
.fs-footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.fs-footer-brand p { margin: 16px 0 20px; max-width: 300px; font-size: 14px; }
.fs-footer-brand .fs-store-row { flex-wrap: nowrap; }
.fs-footer-col h2, .fs-footer-title { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.fs-footer-col a { display: block; padding: 4px 0; font-size: 14px; transition: color .15s; }
.fs-footer-col a:hover { color: #fff; }
.fs-footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 13px;
}
@media (max-width: 900px) {
    .fs-footer-top { grid-template-columns: 1fr 1fr; }
    .fs-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .fs-section { padding: 64px 0; }
    .fs-footer-bottom { flex-direction: column; }
}

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

/* =============================================================
   Sections shared by several marketing pages (home, Security,
   Get a fax number, Email to fax, How to send): the dark security
   panel, the FAQ accordion and the closing CTA panel.
   ============================================================= */

/* ── Security ── */
.security-wrap { background: #eef0f4; padding-top: 0; }
.security {
    display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center;
    padding: 56px; border-radius: 28px; color: #fff;
    background:
        radial-gradient(600px 400px at 85% 20%, rgba(70, 100, 190, .45), transparent 70%),
        linear-gradient(135deg, #121a30 0%, #18234a 100%);
}
.security .fs-h2 { color: #fff; max-width: 540px; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 36px; }
.security-grid div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.security-grid dt { font-weight: 500; }
.security-grid dd { margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.security-grid .is-loop { display: none; }
@keyframes security-loop { to { transform: translateX(-50%); } }
.receipt-frame { padding: 16px; border-radius: 22px; background: linear-gradient(160deg, #3557a3, #233f86); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.receipt { padding: 18px 20px; border-radius: 14px; background: #fff; color: var(--fs-text); font-size: 13.5px; }
.receipt-head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.receipt-head b { font-size: 15px; color: var(--fs-ink); }
.receipt-head span { color: var(--fs-muted); font-size: 12px; }
.receipt-row { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--fs-line); }
.receipt-row span { color: var(--fs-muted); }
.receipt-row b { color: var(--fs-ink); font-weight: 600; }
.receipt-row em { padding: 2px 10px; border-radius: 999px; background: var(--fs-green-bg); color: #15803d; font-style: normal; font-size: 12px; font-weight: 600; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: start; }
.faq-help { margin: 10px 0 28px; color: var(--fs-muted); font-size: 15px; }
.faq-help a { color: var(--fs-primary); font-weight: 600; }
.faq-side img { border-radius: 22px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 16px; background: #fff; box-shadow: var(--fs-shadow); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 500; color: var(--fs-ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; color: var(--fs-primary); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--fs-primary); color: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 20px 18px; font-size: 14.5px; color: var(--fs-muted); }
.faq-answer p + p, .faq-answer ul, .faq-answer ol { margin-top: 8px; }
.faq-answer ul, .faq-answer ol { padding-left: 20px; list-style: disc; }
.faq-answer ol { list-style: decimal; }
.faq-answer a { color: var(--fs-primary); text-decoration: underline; }
.faq-more { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--fs-primary) !important; }

/* ── CTA ── */
.cta-wrap { background: #eef0f4; padding-top: 0; }
.cta {
    display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
    position: relative; padding: 48px 56px; border-radius: 28px; color: #fff; overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
        radial-gradient(500px 260px at 70% 110%, rgba(140, 90, 220, .45), transparent 70%),
        linear-gradient(135deg, #121a30, #1a2140);
}
.cta::after { content: ""; position: absolute; right: 0; bottom: 0; width: 130px; height: 70px; background: linear-gradient(135deg, #2f56c9, #1e3fa8); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.cta > * { position: relative; z-index: 1; }
.cta-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 12px; }
.cta h2 { margin: 16px 0 8px; font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -.025em; }
.cta p { color: rgba(255, 255, 255, .75); }
.cta-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.cta-checks li::before { content: "✓"; margin-right: 6px; color: #8ea8de; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cta-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cta .fs-rating { color: rgba(255, 255, 255, .7); }

@media (max-width: 1080px) {
    .security { grid-template-columns: 1fr; }
    .receipt-frame { max-width: 440px; }
}
@media (max-width: 900px) {
    .faq-grid { grid-template-columns: 1fr; gap: 32px; }
    .faq-side picture { max-width: 480px; }
    .cta { grid-template-columns: 1fr; padding: 36px 28px; }
    .cta-actions { align-items: flex-start; }
}
@media (max-width: 640px) {
    .security { padding: 32px 22px; }
    /* The four points scroll sideways, one after another, without end. */
    .security > * { min-width: 0; }
    .security-marquee { margin: 26px -22px 0; overflow: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent);
                mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
    .security-grid { display: flex; width: max-content; gap: 0; margin-top: 0; padding-left: 22px; animation: security-loop 22s linear infinite; }
    .security-grid div, .security-grid .is-loop { display: block; flex: none; width: 218px; padding: 0 24px 0 0; border-top: 0; }
    .security-marquee:hover .security-grid, .security-marquee:focus-within .security-grid { animation-play-state: paused; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
    .security-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .security-grid { animation: none; padding-right: 22px; }
    .security-grid .is-loop { display: none; }
}
