/* ==========================================================================
   Shared by every page (app pages and the blog/compare/tool pages), loaded
   after each family's own CSS:
     1. design tokens: content width, type scale, text floor
     2. the mobile menu (js/tf-nav.js) and the content-page menu button
   Responsive audit 2026-11-10.
   ========================================================================== */

:root {
    --tf-header-h: 64px;
    /* One content width: navbar row, footer and wide pages line up. */
    --tf-content-max: 1280px;
    --tf-page-max: 1120px;
    --tf-prose-max: 68ch;
    /* One type scale. h1 32 → 56px, lead text 16 → 19px. */
    --tf-h1: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
    --tf-h2: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
    --tf-lead: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
    --tf-small: 12px; /* the smallest text anywhere */
}

/* ---- 1. type scale ------------------------------------------------------- */
h1.intro_title__TZuNV,
.bl-hero h1,
article.bl-post h1,
.ft-hero h1,
.ad-body h1,
.help-head h1,
h1.tf-page-title {
    font-size: var(--tf-h1) !important;
    line-height: 1.1;
}

/* The hero paragraph under it: lead size on every screen (it was 20px on a
   desktop and 15px on a phone), and a readable line length on wide screens. */
.intro_subtitle__7jvxT p {
    max-width: var(--tf-prose-max);
    margin-inline: auto;
    font-size: var(--tf-lead);
    line-height: 1.6;
}

/* Footer columns on the same width as the page content above them. */
.footer6_component .container-large-13 {
    max-width: var(--tf-page-max);
    margin-inline: auto;
}

/* ---- 2. mobile menu (js/tf-nav.js) --------------------------------------
   A full-screen panel with its own top bar (logo + close), identical on app
   and content pages. One short list; Pricing in gold. */
html.tf-mm-open {
    overflow: hidden;
}

nav.menu.tf-mm-panel {
    display: none;
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    z-index: 2000; /* above headers, the cookie chip and toasts */
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    text-align: left;
    color: #ededed;
    background: #000 !important;
    /* Both page families load Geist, under different family names. */
    font-family: var(--font-sans, 'Geist', ui-sans-serif, system-ui, sans-serif);
    -webkit-font-smoothing: antialiased;
}

.tf-mm-top {
    position: sticky;
    top: 0;
    z-index: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--tf-header-h);
    padding: 0 16px 0 24px;
    background: #000;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.tf-mm-logo {
    display: flex;
}

.tf-mm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -4px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #ededed;
    cursor: pointer;
}

.tf-mm {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 24px calc(24px + env(safe-area-inset-bottom, 0px));
}

nav.menu.tf-mm-panel ul.tf-mm-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.menu.tf-mm-panel ul.tf-mm-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

nav.menu.tf-mm-panel ul.tf-mm-list a {
    display: flex;
    align-items: center;
    min-height: 52px;
    margin: 0;
    padding: 0;
    color: #ededed;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.3;
    text-decoration: none;
}

nav.menu.tf-mm-panel ul.tf-mm-list a:hover,
nav.menu.tf-mm-panel ul.tf-mm-list a:focus-visible {
    color: #fff;
    outline: none;
}

nav.menu.tf-mm-panel ul.tf-mm-list a[aria-current='page'] {
    color: #fff;
    font-weight: 500;
}

nav.menu.tf-mm-panel ul.tf-mm-list a.tf-mm-gold {
    color: #f5d984;
}

.tf-mm-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

.tf-mm-credits {
    margin-right: auto;
    min-height: 1em;
    color: #f5d984;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}

.tf-mm-btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: none;
    color: #ededed;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.tf-mm-credits + .tf-mm-btn {
    flex: 0 0 auto;
}

.tf-mm-btn.primary {
    border-color: #ededed;
    background: #ededed;
    color: #0a0a0a;
}

.tf-mm-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Landscape phones: two columns so the list fits without much scrolling. */
@media (max-height: 480px) and (min-width: 560px) {
    nav.menu.tf-mm-panel ul.tf-mm-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
    }
    nav.menu.tf-mm-panel ul.tf-mm-list a {
        min-height: 44px;
    }
    .tf-mm-foot {
        padding-top: 14px;
    }
}

.tf-mm-x {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.tf-mm-x::before,
.tf-mm-x::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
}

.tf-mm-x::after {
    transform: rotate(-45deg);
}

/* App navbar: a 44×44 menu button (was 36×36). */
.navbar_menuButton__BJwt4 {
    width: 44px !important;
    height: 44px !important;
    margin: 0 -8px 0 4px !important;
    color: #ededed;
}

/* ---- content-page header (.bl-head) -------------------------------------- */
.bl-menu-btn {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #ededed;
    cursor: pointer;
}

.bl-menu-btn .bl-burger,
.bl-menu-btn .bl-burger::before,
.bl-menu-btn .bl-burger::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.bl-menu-btn .bl-burger {
    position: relative;
}

.bl-menu-btn .bl-burger::before,
.bl-menu-btn .bl-burger::after {
    content: '';
    position: absolute;
    left: 0;
}

.bl-menu-btn .bl-burger::before {
    top: -6px;
}

.bl-menu-btn .bl-burger::after {
    top: 6px;
}

@media (max-width: 859px) {
    .bl-head .bl-nav {
        display: none;
    }
    .bl-menu-btn {
        display: inline-flex;
    }
    .bl-head .bl-start {
        margin-left: auto;
    }
}

@media (max-width: 359px) {
    .bl-head .wrap {
        gap: 8px;
    }
    .bl-head .bl-start {
        min-height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }
}


/* Sign-in and sign-up share one card (responsive audit 2026-11-10): before,
   login was a bare form on the grid background and signup a different look. */
.tf-auth-card {
    width: min(460px, calc(100vw - 32px));
    margin: 8px auto 0;
    padding: 28px 28px 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(10, 10, 12, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    /* Sit above the decorative intro grid: its dashed lines run exactly along
       the card's edges and its corner circle landed inside the card. */
    position: relative;
    z-index: 2;
}
.tf-auth-card > .intro_gridContainerLine__GHkon,
.tf-auth-card > .intro_gridCircle__Hyh0y {
    display: none;
}
@media (max-width: 480px) {
    .tf-auth-card {
        padding: 20px 16px 18px !important;
    }
}

/* iOS Safari zooms the page in when a field with text under 16px is focused
   (e.g. "Filter results") and does not zoom back out. Touch devices get 16px
   fields; desktop keeps each page's own size. Blocking zoom in the viewport
   tag instead would also stop pinch-zoom on Android. */
@media (hover: none) and (pointer: coarse) {
    input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='file']),
    textarea,
    select,
    [contenteditable='true'] {
        font-size: 16px !important;
    }
}

/* Copy buttons confirm in place (js/tf-config.js TFCopy). */
.tf-is-copied {
    color: #4ade80 !important;
    border-color: rgba(74, 222, 128, 0.45) !important;
}

.tf-copy-failed {
    color: #f87171 !important;
}

.tf-copied-ico {
    flex: none;
    vertical-align: -2px;
    animation: tf-copied-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.tf-copied-ico path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: tf-copied-draw 0.3s 0.05s ease-out forwards;
}

@keyframes tf-copied-pop {
    from {
        transform: scale(0.6);
    }
    to {
        transform: scale(1);
    }
}

@keyframes tf-copied-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-copied-ico,
    .tf-copied-ico path {
        animation: none;
        stroke-dashoffset: 0;
    }
}

/* Buttons give a little when pressed (dashboard, blog/landing, free tools,
   the Geist buttons in the navbar). */
.tf-btn,
.bl-btn,
.ft-btn,
.hm-btn,
[data-geist-button] {
    transition-property: background, background-color, border-color, color, opacity, box-shadow, transform;
    transition-duration: 0.12s;
}

.tf-btn:active:not(:disabled),
.bl-btn:active,
.ft-btn:active:not(:disabled),
.hm-btn:active,
[data-geist-button]:active {
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .tf-btn,
    .bl-btn,
    .ft-btn,
    .hm-btn,
    [data-geist-button] {
        transition-property: background, background-color, border-color, color, opacity, box-shadow;
    }
    .tf-btn:active,
    .bl-btn:active,
    .ft-btn:active,
    .hm-btn:active,
    [data-geist-button]:active {
        transform: none;
    }
}

/* Phone search: "Search this number?" (js/tf-phone-check.js) */
.tf-pc-back {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: tf-pc-fade 0.15s ease-out;
}

.tf-pc {
    width: 100%;
    max-width: 420px;
    padding: 22px;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 16px;
    background: #0e0e0e;
    color: #ededed;
    text-align: left;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    animation: tf-pc-rise 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tf-pc-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.tf-pc-sub {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #a1a1a1;
}

.tf-pc-num {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    border-radius: 12px;
    background: hsla(0, 0%, 100%, 0.03);
}

.tf-pc-num strong {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.tf-pc-num span {
    font-size: 13px;
    color: #a1a1a1;
}

.tf-pc-typed {
    margin: 10px 0 0;
    font-size: 13px;
    color: #7d7d7d;
}

.tf-pc-typed code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    color: #a1a1a1;
}

.tf-pc-warn {
    margin: 12px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    background: rgba(251, 191, 36, 0.08);
    font-size: 13px;
    line-height: 1.45;
    color: #fbbf24;
}

.tf-pc-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.tf-pc .tf-pc-btn {
    height: 38px;
    padding: 0 14px;
    border: 1px solid hsla(0, 0%, 100%, 0.14);
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #ededed;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.08s;
}

.tf-pc .tf-pc-btn:hover {
    background: hsla(0, 0%, 100%, 0.06);
}

.tf-pc .tf-pc-btn:active {
    transform: scale(0.97);
}

.tf-pc .tf-pc-btn:focus-visible {
    outline: 2px solid #f0786f;
    outline-offset: 2px;
}

.tf-pc .tf-pc-primary {
    border-color: transparent;
    background: #cf362d;
    color: #fff;
}

.tf-pc .tf-pc-primary:hover {
    background: #e0473d;
}

@keyframes tf-pc-fade {
    from { opacity: 0; }
}

@keyframes tf-pc-rise {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@media (max-width: 420px) {
    .tf-pc .tf-pc-actions .tf-pc-btn {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-pc-back,
    .tf-pc {
        animation: none;
    }
}

/* Desktop "Sign in" beside "Start Now" (js/tf-nav.js adds it when signed
   out). Phones reach sign-in through the menu, so it is desktop-only. */
.tf-signin {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 6px;
    color: #a1a1a1;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.tf-signin:hover,
.tf-signin:focus-visible {
    color: #ededed;
}

@media (max-width: 859px) {
    .bl-head .tf-signin {
        display: none;
    }
}

/* Current page in the blog-style header links (js/tf-nav.js marks it). */
.bl-head .bl-nav > a[aria-current='page']:not(.bl-nav-gold) {
    color: #ededed;
}
