/* Lucra homepage draft: Apple-style restraint.
   One family (SF Pro via system-ui), size-specific tracking, one accent that only marks what you can click,
   three radii, three depth levels, springs for anything you touch. */

:root {
  /* Color */
  --canvas: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --hair: #d2d2d7;
  --accent: #d91b7b;          /* Lucra magenta: links, buttons, focus. Nothing decorative. */
  --accent-press: #b8156a;
  --night: #07001f;           /* Lucra deep, used once: the results section */
  --night-2: rgba(255, 255, 255, .06);
  --grad: linear-gradient(180deg, #f87b28 0%, #ef4551 35%, #d91b7b 65%, #8b32c4 100%);

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;

  /* Radii: chip, card, panel, pill */
  --r-1: 12px;
  --r-2: 22px;
  --r-3: 32px;
  --r-pill: 980px;

  /* Spacing (8-based) */
  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-5: 3rem; --s-6: 4rem; --s-7: 6rem; --s-8: 8rem;

  /* Depth: base (flat) -> elevated (tile) -> floating (glass, popovers, the live card) */
  --lift-1: 0 1px 2px rgba(40, 12, 60, .04);
  --lift-2: 0 1px 2px rgba(40, 12, 60, .05), 0 8px 24px -6px rgba(40, 12, 60, .08);
  --lift-3: 0 1px 2px rgba(40, 12, 60, .06), 0 12px 32px -8px rgba(40, 12, 60, .14), 0 40px 80px -24px rgba(40, 12, 60, .16);

  /* Critically damped feel for CSS-driven (non-gesture) transitions */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --wrap: 1080px;
  --gutter: max(1.5rem, calc((100vw - var(--wrap)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 1.0625rem/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; font-optical-sizing: auto;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 3rem); margin: 0 auto; padding: 0 1.5rem; }
.sec { padding: var(--s-8) 0; }
.sec.mist { background: var(--mist); }
.center { text-align: center; }

/* ---------- Type scale: tracking tightens as size grows ---------- */
.t-display { font-size: clamp(2.75rem, 1.4rem + 5.4vw, 5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
.t-h2 { font-size: clamp(2.125rem, 1.4rem + 2.9vw, 3.5rem); line-height: 1.07; letter-spacing: -.03em; font-weight: 700; }
.t-h3 { font-size: 1.5rem; line-height: 1.17; letter-spacing: -.02em; font-weight: 600; }
.t-h4 { font-size: 1.1875rem; line-height: 1.21; letter-spacing: -.018em; font-weight: 600; }
.t-lede { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.3125rem); line-height: 1.38; letter-spacing: -.02em; color: var(--ink-2); font-weight: 400; }
.t-small { font-size: .875rem; line-height: 1.43; letter-spacing: -.01em; color: var(--ink-2); }
.t-cap { font-size: .75rem; line-height: 1.33; letter-spacing: 0; color: var(--ink-3); }
.head { max-width: 760px; margin: 0 auto var(--s-6); }
.head .t-lede { margin-top: var(--s-3); }

/* ---------- Buttons & links: feedback on press, not release ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: .6875rem 1.375rem; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -.015em; white-space: nowrap;
  transition: transform 120ms ease-out, background-color 160ms ease, opacity 160ms ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none;
}
.btn:active, .btn.is-down { transform: scale(.97); transition-duration: 60ms; }
.btn-fill { background: var(--accent); color: #fff; }
.btn-fill:hover { background: var(--accent-press); }
.btn-fill:active { background: var(--accent-press); }
.btn-quiet { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.btn-quiet:hover { background: rgba(217, 27, 123, .06); }
.btn-sm { min-height: 32px; padding: .375rem .875rem; font-size: .875rem; }
.on-night .btn-quiet { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
.on-night .btn-quiet:hover { background: rgba(255, 255, 255, .08); }

.more { display: inline-flex; align-items: center; gap: .2em; color: var(--accent); font-weight: 400; border-radius: 4px; }
.more::after { content: ""; width: .5em; height: .5em; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: translateX(0) rotate(45deg) scale(.85); transition: transform 200ms var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: .18em; }
.more:hover::after { transform: translateX(2px) rotate(45deg) scale(.85); }
.more:active { opacity: .7; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: var(--s-4); }

/* ---------- Nav: a translucent material, content scrolls underneath ---------- */
.gnav { position: sticky; top: 0; z-index: 50; height: 52px; }
/* The material lives on a layer behind the bar, so the bar itself isn't a backdrop root
   and the Services popover can blur and cover the page below it. */
.gnav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
}
/* Scroll edge effect instead of a hard divider: only when content is actually under the bar */
.gnav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; pointer-events: none; background: linear-gradient(rgba(29, 29, 31, .06), transparent); opacity: 0; transition: opacity 240ms ease; }
.gnav.is-scrolled::after { opacity: 1; }
.gnav-in { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.gnav-logo { display: flex; align-items: center; padding: 6px; margin-left: -6px; border-radius: 8px; }
.gnav-logo img { height: 22px; width: auto; }
.gnav-links { display: flex; align-items: center; gap: .25rem; margin: 0 auto; }
.gnav-links > li > a, .dd-btn {
  display: flex; align-items: center; gap: .3rem; height: 36px; padding: 0 .75rem; border-radius: 8px;
  font-size: .875rem; color: rgba(29, 29, 31, .8); background: none; border: 0; cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}
.gnav-links > li > a:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { color: var(--ink); background: rgba(29, 29, 31, .05); }
.gnav-links > li > a:active, .dd-btn:active { background: rgba(29, 29, 31, .09); }
.dd-btn svg { width: 10px; height: 10px; transition: transform 240ms var(--ease); }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd { position: relative; }
/* Popover grows out of its trigger (transform-origin = the button), and leaves the same way */
.dd-menu {
  position: absolute; top: calc(100% + 8px); left: -8px; width: 300px; padding: .5rem;
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--r-2); box-shadow: var(--lift-3), inset 0 0 0 1px rgba(255, 255, 255, .6);
  transform-origin: 48px top; transform: scale(.96) translateY(-4px); opacity: 0; visibility: hidden;
  transition: transform 260ms var(--ease), opacity 180ms ease, visibility 0s linear 260ms;
}
.dd.open .dd-menu { transform: none; opacity: 1; visibility: visible; transition: transform 320ms var(--ease), opacity 160ms ease, visibility 0s; }
.dd-menu a { display: block; padding: .75rem .875rem; border-radius: var(--r-1); transition: background-color 140ms ease; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: rgba(29, 29, 31, .05); }
.dd-menu a:active { background: rgba(29, 29, 31, .09); }
.dd-menu b { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; }
.dd-menu span { display: block; font-size: .8125rem; color: var(--ink-2); letter-spacing: -.005em; margin-top: 2px; }
.gnav-cta { margin-left: 0; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 320ms var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.burger:active { background: rgba(29, 29, 31, .06); }
/* Mobile sheet drops from the bar and goes back up the same way */
.msheet {
  position: fixed; inset: 52px 0 auto; z-index: 49; max-height: calc(100dvh - 52px); overflow: auto;
  padding: var(--s-2) 1.5rem var(--s-5); background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform 300ms var(--ease), opacity 200ms ease, visibility 0s linear 300ms;
}
.msheet.open { transform: none; opacity: 1; visibility: visible; transition: transform 360ms var(--ease), opacity 200ms ease, visibility 0s; }
.msheet a:not(.btn) { display: block; padding: .875rem 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; border-bottom: 1px solid rgba(29, 29, 31, .08); }
.msheet a:not(.btn):active { opacity: .6; }
.msheet .msub { font-size: 1.0625rem; font-weight: 500; color: var(--ink-2); padding-left: 1rem; }
.msheet .btn { margin-top: var(--s-4); width: 100%; }
@media (max-width: 880px) {
  .gnav-links, .gnav-cta { display: none; }
  .burger { display: block; margin-left: auto; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--s-7); align-items: start; }
.faq-head .t-lede { margin-top: var(--s-3); }
.faq-list { border-top: 1px solid var(--hair); }
.qa { border-bottom: 1px solid var(--hair); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; cursor: pointer; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.018em; line-height: 1.3; }
.qa summary:hover h3 { color: var(--accent); }
.qa summary:active h3 { opacity: .7; }
.qa .pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(118, 118, 128, .12); transition: transform 360ms var(--ease); }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13.25px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.qa .pm::after { transform: rotate(90deg); }
.qa[open] .pm { transform: rotate(45deg); }
.qa p { padding: 0 3rem var(--s-3) 0; color: var(--ink-2); }
.qa[open] p { animation: qa-in 420ms var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Closing CTA ---------- */
.close .t-display { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem); max-width: 16ch; margin: 0 auto; }
.close .t-lede { margin-top: var(--s-3); }
.close .hero-ctas { margin-top: var(--s-4); }
.close .t-cap { margin-top: var(--s-3); }

/* ---------- Footer ---------- */
.foot { background: var(--mist); padding: var(--s-6) 0 var(--s-4); font-size: .8125rem; color: var(--ink-2); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); padding-bottom: var(--s-5); border-bottom: 1px solid var(--hair); }
.foot-line { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--hair); }
.foot-cols h4 { font-size: .8125rem; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
.foot-cols li + li { margin-top: .5rem; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.foot a:active { opacity: .6; }
.foot-bot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding-top: var(--s-3); }
.foot-bot img { height: 18px; width: auto; }
.foot-legal { display: flex; gap: var(--s-3); }

/* ---------- Responsive (shared) ---------- */
@media (max-width: 980px) { .faq { grid-template-columns: 1fr; gap: var(--s-6); } }
@media (max-width: 760px) {
  .sec { padding: var(--s-7) 0; }
  .head { margin-bottom: var(--s-5); }
  .foot-top, .foot-bot { flex-direction: column; align-items: flex-start; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .qa p { padding-right: 0; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .gnav::before, .dd-menu, .msheet { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #3a3a3c; --ink-3: #48484a; --hair: #8e8e93; }
  .gnav::before { background: #fff; box-shadow: 0 1px 0 var(--hair); }
}

/* Second clause of a headline, set quieter (replaces the old gradient text) */
.grad-text { color: var(--ink-3); }

/* ---------- Metrics: every KPI number carries the brand accent ----------
   Light surfaces use the accent (#d91b7b, 4.8:1 on white). Dark panels use a lighter
   pink from the same hue so the numbers stay legible (7:1 on the Lucra night). */
:root { --metric: #d91b7b; --metric-night: #ff5fa8; }
html body :is(
  .x-stats b, .x-proof .res b, .top-reels b, .hooks small,
  .pane-stat b, .live-n, .stages div:not(.done) b, .rates b, .story-res,
  .stat-num, .cs-stat-num, .guide-stats b
) { color: var(--metric); }
html body :is(
  .board .big, .board .fol .x-odo, .reels b,
  .night .big, .night .minis b, .night .chart-total b,
  .cs-social-stats b, .cs-reel b, .cs-map-legend b,
  .stages .done b, .guide-cta b
) { color: var(--metric-night); }
