/* Invoice Candy marketing chrome (_LayoutWebflow): header + Templates mega menu, "Join free" band, footer.
   everything is ic- prefixed: these pages also load the Webflow css, reset.css, screen.css, Site.css (and Bootstrap 5 on the
   generator), which all style .btn/.nav-link/.container/.logo/.section/.hero.
   px only: the generator's palettesfonts.js sets html { font-size: 14px } and restyles bare p/h* with the invoice's fonts,
   so the chrome sets its own font family/size/weight/line-height everywhere. never use a .header class (logos.js, inv-builder) */

:root {
    --ic-ink: #000B0F;
    --ic-body: #313435;
    --ic-muted: #5D6669;
    --ic-line: #EEE6E9;
    --ic-sugar: #FFF0F3;
    --ic-pink: #E5306C;
    --ic-peach: #FFA898;
    --ic-lav: #BDC4FF;
    --ic-mist: #F7F4F5;
    --ic-display: "League Spartan", "Futura", "Century Gothic", system-ui, sans-serif;
    --ic-text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --ic-header-bg: rgba(255, 255, 255, .86);
}

/* the marketing type: headings already get League Spartan from Site.css (h1-h6), body text gets Hanken Grotesk.
   loads after Site.css and the ~/Content/css bundle, so it wins Site.css's body rule */
body { font-family: var(--ic-text); }

.ic-header, .ic-header *, .ic-join, .ic-join *, .ic-footer, .ic-footer * { box-sizing: border-box; }
.ic-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic-header :focus-visible, .ic-join :focus-visible, .ic-footer :focus-visible { outline: 3px solid var(--ic-pink); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.ic-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 17px 26px 15px; border: 2px solid var(--ic-ink); border-radius: 999px; font-family: var(--ic-display); font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.ic-btn:hover { transform: translateY(-2px); text-decoration: none; }
.ic-btn-ink, .ic-btn-ink:focus { background: var(--ic-ink); color: #fff; }
.ic-btn-ink:hover { background: var(--ic-pink); border-color: var(--ic-pink); color: #fff; }
.ic-btn-ghost, .ic-btn-ghost:focus { background: transparent; color: var(--ic-ink); }
.ic-btn-ghost:hover { background: var(--ic-ink); color: #fff; }
.ic-btn-light, .ic-btn-light:focus { background: #fff; border-color: #fff; color: var(--ic-ink); }
.ic-btn-light:hover { background: var(--ic-lav); border-color: var(--ic-lav); color: var(--ic-ink); }
.ic-btn-outline-light, .ic-btn-outline-light:focus { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.ic-btn-outline-light:hover { border-color: #fff; color: #fff; }

/* header: sticky by default. --static (pages with their own sticky UI: generator, invoice-side, template detail) stays in
   the flow; --overlay (ViewBag.AbsoluteHeader: pricing, all-templates) floats over a colored hero until scrolled */
.ic-header { position: sticky; top: 0; z-index: 1000; /* under Bootstrap's fixed bars (1030), the generator's sheet backdrop (1039) and modals (1050) */ background: var(--ic-header-bg); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; font-family: var(--ic-display); transition: border-color .2s, background-color .2s; }
.ic-header.scrolled { border-bottom-color: var(--ic-line); }
.ic-header--static { position: relative; }
.ic-header--overlay { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ic-header--overlay.scrolled { background: var(--ic-header-bg); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.ic-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.ic-logo { display: block; flex: none; line-height: 0; }
.ic-logo img { display: block; width: 184px; max-width: none; height: auto; } /* the 323x90 canvas letterboxes the wordmark: size by width */

.ic-nav-main { display: flex; gap: 32px; margin: 0; padding: 0; list-style: none; }
.ic-nav-main > li { position: relative; margin: 0; padding: 0; }
.ic-nav-main > li > a, .ic-nav-main > li > button { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 0; border: 0; background: none; color: var(--ic-ink); font-family: var(--ic-display); font-size: 17px; font-weight: 500; line-height: 24px; text-decoration: none; cursor: pointer; }
.ic-nav-main > li > a:hover, .ic-nav-main > li > button:hover { color: var(--ic-pink); }
.ic-caret { width: 10px; height: 10px; transition: transform .2s; }
.ic-has-mega:hover .ic-caret, .ic-has-mega:focus-within .ic-caret { transform: rotate(180deg); }

.ic-mega { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); translate: 0 8px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; width: min(880px, 90vw); padding: 28px; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(0, 11, 15, .25), 0 0 0 1px var(--ic-line); opacity: 0; visibility: hidden; transition: opacity .18s, translate .18s, visibility .18s; }
.ic-has-mega:hover .ic-mega, .ic-has-mega:focus-within .ic-mega { opacity: 1; visibility: visible; translate: 0 0; }
.ic-mega-head, .ic-mega-tools { display: block; margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--ic-line); color: var(--ic-ink); font-family: var(--ic-display); font-size: 16px; font-weight: 700; line-height: 22px; text-decoration: none; }
a.ic-mega-head:hover { color: var(--ic-pink); }
.ic-mega-tools { margin-top: 22px; }
.ic-mega ul { margin: 0; padding: 0; list-style: none; }
.ic-mega ul.ic-two-col { columns: 2; column-gap: 20px; }
.ic-mega li { margin: 0; padding: 0; break-inside: avoid; }
.ic-mega li a { display: block; padding: 4px 0; color: var(--ic-body); font-family: var(--ic-text); font-size: 15px; font-weight: 500; line-height: 22px; text-decoration: none; }
.ic-mega li a:hover { color: var(--ic-pink); }

.ic-nav-auth { display: flex; align-items: center; gap: 20px; }
.ic-nav-auth .ic-login { color: var(--ic-ink); font-family: var(--ic-display); font-size: 17px; font-weight: 500; line-height: 24px; text-decoration: none; }
.ic-nav-auth .ic-login:hover { color: var(--ic-pink); }
.ic-nav-auth .ic-btn { padding: 13px 20px 11px; font-size: 16px; }

.ic-mobile-menu { display: none; }
@media screen and (max-width: 960px) {
    .ic-nav-main, .ic-nav-auth { display: none; }
    .ic-mobile-menu { display: block; }
    .ic-mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ic-ink); list-style: none; cursor: pointer; }
    .ic-mobile-menu summary::-webkit-details-marker { display: none; }
    .ic-mobile-menu summary span, .ic-mobile-menu summary span::before, .ic-mobile-menu summary span::after { content: ""; display: block; position: relative; width: 18px; height: 2px; background: #fff; }
    .ic-mobile-menu summary span::before { position: absolute; top: -6px; }
    .ic-mobile-menu summary span::after { position: absolute; top: 6px; }
    .ic-mobile-menu ul { position: absolute; left: 12px; right: 12px; top: 76px; margin: 0; padding: 12px; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(0, 11, 15, .3), 0 0 0 1px var(--ic-line); list-style: none; }
    .ic-mobile-menu li { margin: 0; padding: 0; }
    .ic-mobile-menu li a { display: block; padding: 14px 16px; border-radius: 12px; color: var(--ic-ink); font-family: var(--ic-display); font-size: 18px; font-weight: 500; line-height: 22px; text-decoration: none; }
    .ic-mobile-menu li a:hover { background: var(--ic-sugar); }
    .ic-mobile-menu li:last-child a { margin-top: 6px; background: var(--ic-ink); color: #fff; text-align: center; }
}
@media screen and (max-width: 479px) {
    .ic-logo img { width: 156px; }
    /* the Webflow hero padding drops to 48px here: clear the floating header */
    .ic-page--overlay .section.hero { padding-top: 104px; }
}

/* "Join free" band */
.ic-join { position: relative; overflow: hidden; margin: 0; padding: 110px 0; background: var(--ic-ink); color: #fff; font-family: var(--ic-text); }
.ic-join .ic-dots { position: absolute; width: 230px; height: auto; max-width: none; opacity: .5; pointer-events: none; }
.ic-join .ic-dots-a { top: 24px; left: -40px; }
.ic-join .ic-dots-b { bottom: 24px; right: -30px; }
.ic-join-inner { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.ic-join h2 { max-width: 11ch; margin: 0; color: #fff; font-family: var(--ic-display); font-size: clamp(44px, 6.4vw, 90px); font-weight: 800; line-height: .92; letter-spacing: -.035em; }
.ic-join h2 span { color: var(--ic-lav); }
.ic-join-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
/* generator pages: centered like the tool above it, dots kept inside the band */
.ic-join--center .ic-join-inner { flex-direction: column; align-items: center; text-align: center; }
.ic-join--center h2 { max-width: 14ch; font-size: clamp(40px, 5vw, 72px); }
.ic-join--center .ic-join-ctas { justify-content: center; }
.ic-join--center .ic-dots-a { left: 24px; }
.ic-join--center .ic-dots-b { right: 24px; }
@media screen and (max-width: 600px) {
    .ic-join { padding: 72px 0; }
}

/* footer */
.ic-footer { margin: 0; padding: 64px 0 40px; background: var(--ic-ink); border-top: 1px solid rgba(255, 255, 255, .1); color: #aab4b7; font-family: var(--ic-text); font-size: 16px; line-height: 24px; }
.ic-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.ic-footer .ic-logo img { width: 170px; }
.ic-foot-title { display: block; margin: 0 0 14px; color: #fff; font-family: var(--ic-display); font-size: 17px; font-weight: 600; line-height: 24px; text-decoration: none; }
a.ic-foot-title:hover { color: var(--ic-lav); }
.ic-footer ul { margin: 0; padding: 0; list-style: none; }
.ic-footer li { margin: 0; padding: 0; }
.ic-footer li a { display: block; padding: 5px 0; color: #aab4b7; text-decoration: none; overflow-wrap: anywhere; /* the email address on narrow phones */ }
.ic-footer li a:hover { color: #fff; }
.ic-copyright { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
@media screen and (max-width: 760px) {
    .ic-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ic-foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .ic-header *, .ic-join *, .ic-footer * { transition: none !important; }
}
