/* FurnFlow marketing site — shared styles for landing + sub-pages.
   Cutting-edge gradient mesh, glassmorphism nav, oversized type,
   floating cards. Fully responsive down to 360 px. */

/* ── Self-hosted Inter (variable, latin) ─────────────────────────────
   Served from our own origin so there's no render-blocking third-party
   request to Google Fonts. One woff2 per subset covers every weight
   (100–900). font-display: swap keeps text visible during load. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FFFFFF;
  --bg-2: #F8FAFC;
  --bg-3: #F1F5F9;
  --ink: #0B1124;
  --ink-2: #1E293B;
  --muted: #475569;
  --muted-2: #64748B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --brand: #2563EB;
  --brand-d: #1D4ED8;
  --brand-soft: #EEF2FF;
  --accent: #4F46E5;
  --accent-2: #7C3AED;
  --pink: #EC4899;
  --orange: #F97316;
  --good: #16A34A;
  --good-soft: #DCFCE7;
  --warn: #F59E0B;
  --bad: #DC2626;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.05);
  --shadow: 0 8px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,0.15);
  --shadow-xl: 0 40px 100px rgba(15,23,42,0.18);
  --shadow-brand: 0 16px 40px rgba(37,99,235,0.30);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  /* Sticky footer: fill the viewport and push <footer> to the bottom so short
     pages (Contact, etc.) don't leave blank space below the footer. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > footer { margin-top: auto; }
h1, h2, h3, h4 {
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 56px; }
@media (max-width: 980px) { .container { padding: 0 32px; } }
@media (max-width: 640px) { .container { padding: 0 20px; } }
@media (max-width: 380px) { .container { padding: 0 16px; } }

/* ─── Gradient mesh background ──────────────────────────────────── */
.mesh-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.mesh-bg::before, .mesh-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45;
}
.mesh-bg::before {
  width: 520px; height: 520px; top: -180px; right: -120px;
  background: radial-gradient(circle, var(--accent-2), transparent 60%);
}
.mesh-bg::after {
  width: 600px; height: 600px; bottom: -200px; left: -160px;
  background: radial-gradient(circle, var(--brand), transparent 60%);
}

/* ─── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
/* Vertical padding only — NEVER the `padding` shorthand, which would zero out
   the horizontal padding this element inherits from `.container` (logo would
   then sit flush against the screen edge). */
.nav-inner { display: flex; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.nav-brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background:
    url("/logo-glyph.svg") center / 70% no-repeat,
    linear-gradient(135deg, var(--brand), var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0; color: transparent;
  box-shadow: var(--shadow-brand);
}
.nav-links { display: flex; gap: 4px; margin-left: 28px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 99px; transition: all 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--brand); background: var(--brand-soft); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

/* Three-bar hamburger that morphs into an X. The bars are <span>s so we can
   animate them; the X state is driven purely by [aria-expanded="true"] (set in
   JS), so the button text never has to be swapped. */
.nav-mobile-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--bg-2); border: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nav-mobile-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-mobile-toggle:hover { background: var(--bg-3); }
.nav-mobile-toggle:active { background: var(--bg-3); }
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-menu { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-actions .btn-trial-desktop { display: none; }
  /* Full-screen panel that drops below the nav.
     IMPORTANT: .nav has `backdrop-filter`, which makes it the containing block
     for this position:fixed child. That means `inset`/`bottom` resolve against
     the short (~69px) nav — not the viewport — and collapse the menu to a
     sliver, letting hero content show through. We instead pin the top to the
     real nav height (--nav-h, measured in JS; 69px fallback) and size the
     height in viewport units (dvh) so it always fills the screen. Background
     is fully opaque so nothing behind it can bleed through. */
  .nav-mobile-menu.open {
    display: block; position: fixed;
    top: var(--nav-h, 69px); left: 0; right: 0;
    height: calc(100vh - var(--nav-h, 69px));
    height: calc(100dvh - var(--nav-h, 69px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 99;
    background: #fff;
    padding: 16px 24px calc(env(safe-area-inset-bottom, 0px) + 28px);
    box-shadow: 0 24px 48px rgba(15,23,42,0.16);
    animation: slideDown 0.2s ease-out;
  }
  /* Style the plain nav links, but never the CTA button (.btn). */
  .nav-mobile-menu a:not(.btn) { display: block; padding: 15px 2px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav-mobile-menu .nav-cta { margin-top: 22px; }
  .nav-mobile-menu .nav-cta .btn { width: 100%; }
}
/* Lock background scroll while the mobile menu is open (toggled in JS). */
body.nav-open { overflow: hidden; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 11px; font-size: 14px; font-weight: 600;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  transition: all 0.15s; line-height: 1.2; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border: 0; padding: 9px 14px; }
.btn.ghost:hover { background: var(--bg-2); transform: none; box-shadow: none; }
.btn.outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.outline:hover { background: var(--bg-2); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.lg { padding: 13px 26px; font-size: 15px; border-radius: 13px; }
.btn.xl { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn.grad {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border: 0; padding: 14px 28px; font-size: 15px; box-shadow: var(--shadow-brand);
}
.btn.grad:hover { background: linear-gradient(135deg, var(--brand-d), var(--accent)); }
.btn-arrow::after { content: "→"; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── Eyebrow ───────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 99px; margin-bottom: 14px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.grad-text {
  background: linear-gradient(135deg, var(--brand), var(--accent), var(--accent-2), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradShift 6s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ─── Section base ──────────────────────────────────────────────── */
.section { padding: 90px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }
@media (max-width: 760px) { .section { padding: 60px 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }
@media (max-width: 640px) { .section-head { margin-bottom: 36px; } .section-head p { font-size: 15px; } }

/* ─── Cards ─────────────────────────────────────────────────────── */
.card-soft {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: all 0.2s;
}
.card-soft.hover:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }

/* ─── Pills ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.pill-info { background: var(--brand-soft); color: var(--brand); }
.pill-good { background: var(--good-soft); color: #166534; }
.pill-warn { background: #FEF3C7; color: #92400E; }

/* ─── Footer ────────────────────────────────────────────────────── */
footer { background: var(--ink); color: #fff; padding: 60px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
/* Larger footer link tap targets on touch screens. */
@media (max-width: 640px) {
  footer li { margin: 2px 0; }
  footer ul a { display: inline-block; padding: 7px 0; }
}
.foot-brand .logo {
  width: 40px; height: 40px; border-radius: 11px;
  background:
    url("/logo-glyph.svg") center / 68% no-repeat,
    linear-gradient(135deg, var(--brand), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0; color: transparent;
}
.foot-brand p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; margin-top: 14px; max-width: 320px; }
.foot-brand h4 { margin: 16px 0 8px; font-size: 16px; color: #fff; }
footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin: 0 0 14px; font-weight: 700; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 8px 0; }
footer a { color: rgba(255,255,255,0.75); font-size: 14px; transition: color 0.15s; }
footer a:hover { color: #fff; }
.foot-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.5); }
.foot-socials { display: flex; gap: 10px; margin-top: 18px; }
.foot-socials a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: all 0.15s;
}
.foot-socials a:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ─── Big CTA section ────────────────────────────────────────────
   Shared across landing, features, pricing, contact, about so every
   page closes with the same brand-gradient call-to-action. Previously
   only the landing page had this styling inline; other pages rendered
   it as plain white with no breathing room before the footer. */
.big-cta {
  position: relative; padding: 100px 0; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 35%, #7C3AED 100%);
  color: #fff;
  /* No bottom margin — the blue CTA flows straight into the dark footer
     (the previous 60px gap read as a stray white band). */
}
.big-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 50%);
}
.big-cta .container { position: relative; z-index: 1; }
.big-cta h1, .big-cta h2 { font-size: clamp(32px, 5vw, 56px); color: #fff; margin-bottom: 16px; }
.big-cta p { font-size: 19px; color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 36px; }
.big-cta .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.big-cta .btn { background: #fff; color: var(--brand); border-color: #fff; }
.big-cta .btn:hover { background: var(--bg-2); border-color: var(--bg-2); }
.big-cta .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.big-cta .btn.outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
@media (max-width: 760px) {
  .big-cta { padding: 70px 0; margin-bottom: 40px; }
}

/* Every page needs visual room between the last content section and
   the dark footer. Without this, "section + footer" reads as one
   continuous block of dark, which is jarring. */
/* margin-top:auto (not 0) so the flex-column body pushes the footer to the
   viewport bottom on short pages; on long pages there's no free space so auto
   resolves to 0 — staying flush below the content exactly as before. */
footer { margin-top: auto; }
.section + footer,
.big-cta + footer { margin-top: auto; /* big-cta supplies its own margin-bottom */ }

/* ─── Animations ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .float { animation: float 6s ease-in-out infinite; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
}

/* Brand mark is now a real <img src="/logo.svg"> (complete gradient sofa icon),
   so strip the div-era gradient/letter background — the SVG carries its own. */
.nav-brand img.logo, .foot-brand img.logo { background: none !important; object-fit: contain; display: block; }
