/* ============================================================================
   Future Office landing - landing.css: the marketing layer
   ----------------------------------------------------------------------------
   Page layout around the product mocks. Every colour is a token (tokens.css);
   marketing-only colours, if one is ever needed, are declared here.

   INDEX
   Page        body (themed), .l-wrap (max 1200, 24px / 16px gutters), .l-skip, .sr-only
   Nav         .l-nav > .l-wrap.l-nav-in > .l-brand (.l-brand img + .l-wordmark),
               .l-nav-links (a), .l-theme [data-theme-toggle] (.ic-sun + .ic-moon),
               .l-btn.l-btn-primary.l-btn-sm [data-book-demo]
   Buttons     .l-btn + .l-btn-primary | .l-btn-secondary; sizes .l-btn-sm | .l-btn-lg
   Type        .l-label (small sentence-case label, lamp), .l-h1, .l-h2, .l-h3,
               .l-sub (hero subline), .copy-body (one line, <= 22 words - checked),
               .l-more ("Learn more" link with arrow)
   Home hero   .l-hero > .l-wrap > .l-hero-copy (.l-h1, .l-sub, .l-cta-row)
               + .l-hero-shot (glow behind; holds the .m-window)
   Chip strip  .l-chips (scrolls sideways on phones) > a.l-chip (icon + text)
   Sections    .l-section (vertical rhythm), .l-section-head (centred heading block)
   Feature     .l-feature (two columns; .is-flip swaps sides) > .l-feature-copy + .l-feature-media
   Charts      .l-charts (3 -> 1) > .l-chart-card (.l-chart-t title, .l-chart-n big number,
               svg.m-chart, .l-chart-note)
   Feature pg  .l-fhero (.l-fhero-copy + .l-fhero-shot), .l-moments > .l-moment
               (.l-moment-copy + .l-moment-media; .is-flip), .l-also > .l-also-card
               (.l-also-ic, .l-h3, .copy-body)
   Closing     .l-close > .l-close-card (.l-h2, .l-sub, CTA)
   Footer      .l-foot > .l-wrap.l-foot-in
   Motion      .reveal -> .is-in (landing.js). style="--d:1..6" staggers by 90ms.
   ========================================================================== */

/* ============================ PAGE ============================ */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--surface-base);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-base);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg,
video {
  max-width: 100%;
}
a {
  color: inherit;
}
::selection {
  background: rgb(var(--lamp-rgb) / 0.32);
}
.l-wrap {
  width: 100%;
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .l-wrap {
    padding: 0 16px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.l-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--lamp);
  color: var(--on-lamp);
  font-weight: 700;
  text-decoration: none;
}
.l-skip:focus {
  top: 12px;
}
:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================ NAV ============================ */
.l-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--surface-base-rgb) / 0.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}
.l-nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgb(var(--surface-base-rgb) / 0.86);
}
.l-nav-in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}
.l-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-width: 0;
}
.l-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
  flex: none;
}
.l-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.l-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.l-nav-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--ink-70);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.l-nav-links a:hover {
  color: var(--ink);
  background: var(--wash);
}
.l-theme {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-70);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.3s var(--ease-out);
}
.l-theme:hover {
  background: var(--wash);
  color: var(--ink);
}
.l-theme:active {
  transform: rotate(-20deg);
}
.l-theme .m-ic {
  width: 17px;
  height: 17px;
}
/* Night shows the sun (switch to day); Day shows the moon. */
.l-theme .ic-moon,
[data-theme="light"] .l-theme .ic-sun {
  display: none;
}
[data-theme="light"] .l-theme .ic-moon {
  display: block;
}
@media (max-width: 520px) {
  .l-wordmark {
    font-size: 17px;
  }
  .l-nav-links a {
    padding: 0 8px;
  }
  .l-nav .l-btn-sm {
    padding: 0 12px;
  }
}
@media (max-width: 460px) {
  .l-nav-links {
    display: none;
  }
}
/* 320-360px: brand + theme + Book a demo must fit one 288px row. */
@media (max-width: 360px) {
  .l-nav-in {
    gap: 8px;
  }
  .l-brand {
    gap: 8px;
  }
  .l-brand img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  .l-wordmark {
    font-size: 15px;
  }
  .l-theme {
    width: 32px;
    height: 32px;
  }
  .l-nav .l-btn-sm {
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}

/* ============================ BUTTONS ============================ */
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease-out),
    box-shadow 0.25s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    filter 0.18s ease;
}
.l-btn .m-ic {
  transition: transform 0.25s var(--ease-out);
}
.l-btn:hover .m-ic {
  transform: translateX(3px);
}
.l-btn:active {
  transform: translateY(1px) scale(0.99);
}
.l-btn-primary {
  background: var(--lamp);
  color: var(--on-lamp);
  box-shadow:
    0 0 0 0 rgb(var(--lamp-rgb) / 0),
    0 10px 30px -12px rgb(var(--lamp-rgb) / 0.6);
}
.l-btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgb(var(--lamp-rgb) / 0.18),
    0 16px 40px -14px rgb(var(--lamp-rgb) / 0.75);
}
.l-btn-secondary {
  background: var(--wash);
  color: var(--ink);
  border-color: var(--line-strong);
}
.l-btn-secondary:hover {
  background: var(--wash-2);
  transform: translateY(-1px);
}
.l-btn:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
  border-radius: var(--r-pill);
}
.l-btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.l-btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 16.5px;
}

/* ============================ TYPE ============================ */
.l-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lamp);
  letter-spacing: 0;
}
.l-label .m-ic {
  width: 16px;
  height: 16px;
}
.l-h1,
.l-h2,
.l-h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.l-h1 {
  font-weight: 900;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.l-h2 {
  font-weight: 900;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.l-h3 {
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.l-sub {
  margin: 18px 0 0;
  max-width: 36ch;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.45;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.copy-body {
  margin: 14px 0 0;
  max-width: 40ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.l-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid rgb(var(--lamp-rgb) / 0.5);
  padding-bottom: 2px;
  transition:
    gap 0.25s var(--ease-out),
    border-color 0.2s ease,
    color 0.2s ease;
}
.l-more:hover {
  gap: 10px;
  color: var(--lamp);
  border-bottom-color: var(--lamp);
}
.l-more .m-ic {
  width: 16px;
  height: 16px;
}

/* ============================ HOME HERO ============================ */
.l-hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 96px);
  text-align: center;
}
.l-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.l-hero .l-sub {
  margin-left: auto;
  margin-right: auto;
}
.l-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.l-hero .l-cta-row {
  justify-content: center;
}
.l-hero-shot,
.l-fhero-shot {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  isolation: isolate;
}
.l-hero-shot::before,
.l-fhero-shot::before {
  content: "";
  position: absolute;
  inset: -12% -8% -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, rgb(var(--lamp-rgb) / 0.22), transparent 70%),
    radial-gradient(36% 46% at 72% 60%, rgb(var(--cyan-rgb) / 0.14), transparent 70%);
  filter: blur(40px);
  animation: l-glow 12s ease-in-out infinite alternate;
}
[data-theme="light"] .l-hero-shot::before,
[data-theme="light"] .l-fhero-shot::before {
  opacity: 0.6;
}
@keyframes l-glow {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -2%, 0) scale(1.05);
  }
}

/* ============================ CHIP STRIP ============================ */
.l-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-70);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease-out),
    background 0.2s ease;
}
.l-chip .m-ic {
  color: var(--lamp);
}
.l-chip:hover {
  color: var(--ink);
  border-color: rgb(var(--lamp-rgb) / 0.45);
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .l-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 4px 16px 8px;
  }
  .l-chips::-webkit-scrollbar {
    display: none;
  }
  .l-chip {
    scroll-snap-align: start;
  }
}

/* ============================ SECTIONS ============================ */
.l-section {
  padding: clamp(64px, 10vw, 140px) 0;
}
.l-section.is-tight {
  padding: clamp(32px, 5vw, 64px) 0;
}
.l-section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.l-section-head .copy-body,
.l-section-head .l-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ============================ FEATURE ROW ============================ */
.l-feature,
.l-moment {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.l-feature + .l-feature {
  margin-top: clamp(96px, 13vw, 180px);
}
.l-feature.is-flip,
.l-moment.is-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.l-feature.is-flip > .l-feature-copy,
.l-moment.is-flip > .l-moment-copy {
  order: 2;
}
.l-feature-media,
.l-moment-media {
  min-width: 0;
  position: relative;
}
@media (max-width: 860px) {
  .l-feature,
  .l-feature.is-flip,
  .l-moment,
  .l-moment.is-flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .l-feature.is-flip > .l-feature-copy,
  .l-moment.is-flip > .l-moment-copy {
    order: 0;
  }
}

/* ============================ CHARTS ============================ */
.l-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .l-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.l-chart-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  min-width: 0;
  transition:
    translate 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.l-chart-t {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-70);
}
.l-chart-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.l-chart-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============================ FEATURE PAGE ============================ */
.l-fhero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(24px, 4vw, 48px);
}
.l-fhero-copy {
  max-width: 820px;
}
.l-fhero .l-h1 {
  font-size: clamp(40px, 6.4vw, 80px);
}
.l-moments {
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 11vw, 150px);
}
.l-also {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 860px) {
  .l-also {
    grid-template-columns: minmax(0, 1fr);
  }
}
.l-also-card {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition:
    translate 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
/* Lift uses the individual `translate` property, not `transform`, so it never
   fights the .reveal entrance (which owns `transform`). */
.l-also-card:hover {
  translate: 0 -3px;
  border-color: rgb(var(--lamp-rgb) / 0.35);
  box-shadow: var(--sh-md);
}
.l-also-card .l-h3 {
  font-size: 19px;
  margin-top: 14px;
}
.l-also-card .copy-body {
  margin-top: 6px;
  font-size: 15px;
}
.l-also-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: rgb(var(--lamp-rgb) / 0.12);
  color: var(--lamp);
}
.l-also-ic .m-ic {
  width: 20px;
  height: 20px;
}

/* ============================ CLOSING CARD ============================ */
.l-close {
  padding: clamp(48px, 8vw, 120px) 0;
}
.l-close-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(48px, 8vw, 104px) 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.l-close-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, var(--floor-line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--floor-line) 0 1px, transparent 1px 48px),
    radial-gradient(60% 80% at 50% 0%, rgb(var(--lamp-rgb) / 0.22), transparent 70%);
}
.l-close-card .l-sub {
  margin-left: auto;
  margin-right: auto;
}
.l-close-card .l-cta-row {
  justify-content: center;
}
/* The booking calendar (cal.com inline embed, added by landing.js). The card's own
   Book a demo button is hidden once the calendar is there: it IS the booking. */
.l-close {
  scroll-margin-top: 72px;
}
.l-close-card.has-cal .l-cta-row {
  display: none;
}
.l-cal {
  width: min(1000px, 100%);
  min-height: 480px;
  margin-top: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
  text-align: left;
}
.l-cal iframe {
  display: block;
  width: 100%;
  border: 0;
}
.l-cal.is-empty {
  min-height: 0;
  margin-top: 28px;
  padding: 36px 24px;
  border-style: dashed;
  background: transparent;
  text-align: center;
}
.l-cal-empty {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}
@media (max-width: 640px) {
  .l-close-card.has-cal {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ============================ FOOTER ============================ */
.l-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--ink-muted);
  font-size: 14px;
}
.l-foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.l-foot a {
  color: var(--ink-70);
  text-decoration: none;
}
.l-foot a:hover {
  color: var(--ink);
}

/* ============================ REVEAL ============================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease,
    transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
/* Cards keep the staggered entrance on opacity/transform only; the hover
   properties (translate, border, shadow) get their own 0s-delay timing so the
   --d stagger never delays a hover. */
.js .reveal.l-also-card,
.js .reveal.l-chart-card {
  transition:
    opacity 0.8s ease,
    transform 0.9s var(--ease-out),
    translate 0.25s var(--ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  transition-delay:
    calc(var(--d, 0) * 90ms),
    calc(var(--d, 0) * 90ms),
    0s,
    0s,
    0s;
}

/* ============================ CARD SPOTLIGHT ============================ */
/* landing.js writes --mx / --my (px) and toggles .is-spot on the hovered card. */
@media (hover: hover) and (pointer: fine) {
  .l-also-card,
  .l-chart-card {
    position: relative;
    isolation: isolate;
  }
  .l-also-card::before,
  .l-chart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background: radial-gradient(
      260px circle at var(--mx, 50%) var(--my, 50%),
      rgb(var(--lamp-rgb) / 0.14),
      transparent 70%
    );
  }
  .l-also-card.is-spot::before,
  .l-chart-card.is-spot::before {
    opacity: 1;
  }
  .l-chart-card:hover {
    translate: 0 -3px;
  }
  .l-also-card:hover,
  .l-chart-card:hover {
    border-color: rgb(var(--lamp-rgb) / 0.35);
    box-shadow:
      var(--sh-md),
      0 0 0 1px rgb(var(--lamp-rgb) / 0.28);
  }
}

/* ============================ REDUCED MOTION ============================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .l-hero-shot::before,
  .l-fhero-shot::before {
    animation: none;
  }
  .l-btn,
  .l-btn .m-ic,
  .l-chip,
  .l-more,
  .l-also-card,
  .l-chart-card,
  .js .reveal.l-also-card,
  .js .reveal.l-chart-card,
  .l-also-card::before,
  .l-chart-card::before,
  .l-theme {
    transition: none;
  }
  .l-also-card::before,
  .l-chart-card::before {
    display: none;
  }
  .l-also-card:hover,
  .l-chart-card:hover {
    translate: none;
  }
}
