/* MarketRamp Styled Emails — site.css v1
   Only things Tailwind classes can't do: self-hosted fonts + 2 font helpers.
   Pinegrow does NOT overwrite this file (tailwind_theme/tailwind.css is Pinegrow's). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: optional;  /* no text jump: if the font is not there in time, the fallback stays for this page view */
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: optional;  /* no text jump: if the font is not there in time, the fallback stays for this page view */
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }  /* keeps the layout from jumping between long and short pages */
body { font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.font-display { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; }
h1.font-display, h2.font-display { letter-spacing: -0.02em; }
h1, h2, h3 { text-wrap: balance; }

/* Footer always at the bottom of the window, also on short pages (legal pages) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }

/* FAQ marker */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .faq-plus { transform: rotate(45deg); }


/* Smooth page switch (Chrome, Edge, Safari): the page cross-fades instead of flashing white,
   and the header stays in place because it is the same on every page. Firefox: normal page load. */
@view-transition { navigation: auto; }
header { view-transition-name: site-header; }
::view-transition-group(root) { animation-duration: 0.18s; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }

/* Launch form: the text field has no own box/frame, it sits inside the black bar */
#nf-input { background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none !important; -webkit-appearance: none; appearance: none; color: #fff; }
#nf-input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #09090b inset !important; transition: background-color 9999s; }

/* Screen-reader-only labels (not in the compiled Tailwind file) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Launch form bar + button. Set here (not only via Tailwind classes) so it looks right even before Pinegrow rebuilds tailwind.css. */
#notify-form { max-width: 32rem; margin-left: auto; margin-right: auto; }
#nf-line { position: relative; border: 0 !important; border-radius: 9999px; background: #09090b; padding: 6px 6px 6px 20px; }
/* The white of the button is a separate layer on the bar (::before). It sits exactly behind the button and on hover
   grows smoothly until it covers the whole right end of the bar (1px past the edge so no dark rim shows). */
#nf-line::before { content: ""; position: absolute; z-index: 0; top: 6px; right: 6px; bottom: 6px; width: var(--nf-bw, 116px);
                   background: #fff; border-radius: 9999px; pointer-events: none;
                   transition: top 1s cubic-bezier(.22,1,.36,1), right 1s cubic-bezier(.22,1,.36,1), bottom 1s cubic-bezier(.22,1,.36,1), width 1s cubic-bezier(.22,1,.36,1); }
#nf-line:has(#nf-btn:hover)::before, #nf-line:has(#nf-btn:focus-visible)::before { top: -1px; right: -1px; bottom: -1px; width: calc(var(--nf-bw, 116px) + 20px); }
#nf-line > * { position: relative; z-index: 1; }
#nf-btn { padding: 10px 20px; background: transparent !important; color: #171717; border-radius: 9999px; }
#nf-btn:hover, #nf-btn:focus-visible { background: transparent !important; outline: none; }
#nf-line.nf-sending::before { opacity: 0; transition: none; }

/* Send: button becomes an arrow, then flies out to the right */
/* Desktop: hero + carousel 10% smaller (Leon) */
@media (min-width: 1024px) { #hero > div { zoom: .9; } }
/* "Tired of..." section: mid-gray stripe slides down from the top behind the before/after example, a bit wider than it (Leon) */
.tired-black { position: absolute; top: 0; bottom: 0; background: #555; z-index: 0; transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1); pointer-events: none; }
.tired-black.in { transform: none; }
.tired-dark p[data-hv], .tired-dark > p { transition: color 0.8s ease 0.6s; }
.tired-dark p[data-hv] { color: #f5f5f5 !important; }
.tired-dark p[data-hv] span { color: #171717; }
.tired-dark > p { color: #d4d4d4 !important; }
/* "Sent via compose box" / "With our app" labels: left, starting just inside the example's edge (Leon) */
p[data-hv] { padding-left: 22px; }
/* Before/after side by side once the stripe opens (Leon) */
.hv-paired .mb-3.grid, .hv-paired .grid.px-4 { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.hv-paired [data-hv="after"] { grid-column: 2 !important; }
/* white quarter behind "With our app", slides in from the gray edge, soft edge so it reads on the light section (Leon) */
.tired-white { position: absolute; top: 0; bottom: 0; background: #fff; z-index: 0; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 8px 0 32px rgba(0, 0, 0, 0.06); }
.tired-white.in { transform: none; }
/* desktop cards: labels centred above each example (Leon) */
.hv-paired p[data-hv] { justify-content: center; padding-left: 0; }
/* never allow sideways scrolling of the page (clip keeps the sticky header working) */
html, body { overflow-x: clip; }

/* Footer links centred on every page (Leon 12.10.2026). The empty left block is hidden so it does not push the links aside. */
footer > div.mx-auto { justify-content: center; }
footer > div.mx-auto > div:first-child:not(:has(*)) { display: none; }
footer nav { justify-content: center; text-align: center; }
