/* Cold email calculator. Scoped to .calc so nothing leaks into the shared
   live-site styles that this page loads from the homepage. Tokens match
   fnnl-agency.com: Inter Tight, #f7fafd / #f2f4f7 grounds, #1B1C1E ink,
   #002DC6 blue, 1.5rem cards. */

.calc {
    --ink: #1B1C1E;
    --muted: #6b7280;
    --soft: #9AA7C4;
    --blue: #002DC6;
    --line: rgba(27, 28, 30, 0.08);
}

/* ── Intro ───────────────────────────────────────────── */
.calc-intro {
    position: relative;
    overflow: hidden;
    background: #f7fafd;
    text-align: center;
    padding: 112px 16px 40px;
}
@media (min-width: 640px) {
    .calc-intro { padding: 128px 24px 48px; }
}
.calc-intro-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 45, 198, 0.07) 1px, transparent 1px),
        linear-gradient(to right, rgba(0, 45, 198, 0.07) 1px, transparent 1px);
    background-size: 5rem 5rem;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 70% 80% at 50% 30%, #000 20%, transparent 75%);
}
.calc-intro-inner { position: relative; max-width: 760px; margin: 0 auto; }
.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: rgba(0, 45, 198, 0.06);
    color: var(--blue);
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
}
.calc-intro h1 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.6px;
    color: var(--ink);
}
@media (min-width: 640px) { .calc-intro h1 { font-size: 40px; } }
@media (min-width: 1024px) { .calc-intro h1 { font-size: 56px; } }
.calc-grad {
    background: linear-gradient(180deg, #002DC6 0%, #4060e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.calc-intro p {
    max-width: 560px;
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--soft);
}
@media (min-width: 640px) { .calc-intro p { font-size: 18px; } }

/* ── Workspace ───────────────────────────────────────── */
.calc-work {
    background: #f7fafd;
    padding: 0 16px 64px;
}
@media (min-width: 640px) { .calc-work { padding: 0 24px 80px; } }
.calc-card {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #ffffff;
    border: 1px solid rgba(27, 28, 30, 0.06);
    border-radius: 1.5rem;
    box-shadow: 0 2px 20px -6px rgba(0, 45, 198, 0.08);
    overflow: hidden;
}
@media (min-width: 900px) {
    .calc-card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* Inputs */
.calc-inputs { padding: 28px 22px; }
@media (min-width: 640px) { .calc-inputs { padding: 40px; } }
.calc-inputs h2 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.4px;
    color: var(--ink);
}
.calc-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.calc-field { margin-top: 28px; }
.calc-field label { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.calc-hint { margin-top: 2px; font-size: 13px; color: var(--muted); }
.calc-num {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 0 16px;
    height: 56px;
    background: #f7fafd;
    border: 1px solid var(--line);
    border-radius: 0.875rem;
    font-family: 'Inter Tight', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}
.calc-num:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 45, 198, 0.08);
}
.calc-num span { color: var(--soft); }
.calc-num input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.calc input::-webkit-outer-spin-button,
.calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.calc-presets button {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.calc-presets button:hover { color: var(--ink); border-color: rgba(27, 28, 30, 0.2); }
.calc-presets button[aria-pressed="true"] {
    color: var(--blue);
    border-color: var(--blue);
    background: rgba(0, 45, 198, 0.05);
}
.calc button:focus-visible,
.calc a:focus-visible,
.calc input[type="range"]:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}
.calc-error { margin-top: 16px; font-size: 13px; color: #b42318; }
.calc-error:empty { display: none; }
.calc-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.calc-foot p { font-size: 12px; color: #9ca3af; }
.calc-reset {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    cursor: pointer;
}
.calc-reset:hover { text-decoration: underline; }

/* Output: the page's blue feature-card treatment */
.calc-output {
    position: relative;
    padding: 28px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #002DC6 0%, #2949E5 100%);
}
@media (min-width: 640px) { .calc-output { padding: 40px; } }
.calc-out-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}
.calc-tag {
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 11px;
}
.calc-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}
.calc-route iconify-icon { flex: none; color: rgba(255, 255, 255, 0.5); }
.calc-meet { margin-top: 24px; text-align: center; }
.calc-meet label { display: block; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.calc-meet-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding-left: 44px;
}
.calc-meet-row input {
    width: 104px;
    padding: 0 4px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: none;
    text-align: center;
    font-family: 'Inter Tight', sans-serif;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -1px;
    color: #ffffff;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.calc-meet-row input:focus { border-bottom-color: #ffffff; }
.calc-meet-row span { padding-bottom: 12px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.calc-per-month { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Range slider */
.calc input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 24px;
    margin: 20px 0 0;
    background: none;
    cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff var(--fill, 15%), rgba(255, 255, 255, 0.22) var(--fill, 15%));
}
.calc input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}
.calc input[type="range"]::-moz-range-progress {
    height: 4px;
    border-radius: 999px;
    background: #ffffff;
}
.calc input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 20, 110, 0.35);
}
.calc input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 20, 110, 0.35);
}
.calc-range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.calc-metrics {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.calc-metrics strong {
    display: block;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
@media (min-width: 640px) { .calc-metrics strong { font-size: 48px; } }
@media (max-width: 380px) {
    .calc-metrics strong { font-size: 30px; }
    .calc-meet-row input { font-size: 40px; }
    .calc-route { font-size: 12px; }
}
.calc-metrics span { display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.calc-eq { margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.calc-note { margin-top: 8px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }

/* ── Booking ─────────────────────────────────────────── */
.calc-book { background: #f2f4f7; padding: 56px 16px 64px; scroll-margin-top: 64px; }
@media (min-width: 640px) { .calc-book { padding: 80px 24px; } }
.calc-book-head { max-width: 720px; margin: 0 auto; text-align: center; }
.calc-book-head h2 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.6px;
    color: var(--ink);
}
@media (min-width: 640px) { .calc-book-head h2 { font-size: 40px; } }
@media (min-width: 768px) { .calc-book-head h2 { font-size: 48px; } }
.calc-book-head p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--soft); }
@media (min-width: 640px) { .calc-book-head p { font-size: 18px; } }
.calc-host {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(27, 28, 30, 0.06);
    text-align: left;
}
.calc-host img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; }
.calc-host strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.calc-host small { display: block; font-size: 12px; color: var(--muted); }
.calc-cal { max-width: 1152px; margin: 8px auto 0; }
.calc-cal .calendly-inline-widget { min-width: 320px; width: 100%; height: 950px; }
@media (min-width: 1024px) { .calc-cal .calendly-inline-widget { height: 700px; } }
.calc-fallback { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.calc-fallback a { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Nav: current-page marker for the calculator link */
.nav-current { color: #1B1C1E !important; }
