/* ============================================================
   Lacy Digital Labs — reinvented visual system
   Type:  Space Grotesk (display) · Hanken Grotesk (body) · Space Mono (mono)
   Base:  warm ink-on-paper · single hue-driven accent
   ============================================================ */

/* ------------------------------------------------------------
   Tokens now come from the LDL Design System (ldl.css, loaded
   first). This block aliases the site's original var names to
   the --ldl-* source of truth so all existing rules keep
   working unchanged. Light/dark follows [data-mode] on <html>,
   handled by ldl.css (no per-mode overrides needed here).
   To change a value: edit tokens in the ldl-design repo, run
   its build, and re-vendor dist/ldl.css → ./ldl.css. Never
   hardcode colors in this file.
   ------------------------------------------------------------ */
:root {
  --display: var(--ldl-font-display);
  --body:    var(--ldl-font-body);
  --mono:    var(--ldl-font-mono);

  --paper:   var(--ldl-paper);
  --paper-2: var(--ldl-paper2);
  --card:    var(--ldl-card);
  --ink:     var(--ldl-ink);
  --ink-2:   var(--ldl-ink2);
  --ink-3:   var(--ldl-ink3);
  --line:    var(--ldl-line);
  --line-2:  var(--ldl-line2);

  --accent:      var(--ldl-accent);
  --accent-ink:  var(--ldl-accent-ink);
  --accent-soft: var(--ldl-accent-soft);
  --accent-line: var(--ldl-accent-line);
  --on-accent:   var(--ldl-on-accent);

  --maxw:      var(--ldl-maxw);
  --radius:    var(--ldl-radius-lg);
  --radius-sm: var(--ldl-radius-md);
  --fs-scale:  var(--ldl-fs-scale);

  --shadow-sm: var(--ldl-shadow-sm);
  --shadow-md: var(--ldl-shadow-md);
  --shadow-lg: var(--ldl-shadow-lg);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; } /* clears the sticky nav for #anchors and deep links */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: calc(17px * var(--fs-scale));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}

/* Plain headings. ldl.css styles headings only through classes (.ldl-h1,
   .ldl-section-title, .ldl-page-hero-title), so unclassed h1-h3 need a base.
   :where() keeps it at zero specificity so any component class wins. */
:where(h1, h2, h3), .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  text-wrap: balance;
}

::selection { background: var(--accent); color: var(--on-accent); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }


.btn-arrow svg { transition: transform .2s ease; }
@media (hover: hover) { .btn-arrow:hover svg { transform: translateX(3px); } }

/* ---------- node motif divider ---------- */
.node-rule {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--line-2);
}
.node-rule .seg { height: 1px; background: currentColor; flex: 1; }
.node-rule .nd {
  width: 7px; height: 7px;
  border: 1px solid currentColor;
  background: var(--paper);
  transform: rotate(45deg);
  flex: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 75% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 75% at 50% 0%, #000 35%, transparent 78%);
  opacity: .7;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-head { max-width: 880px; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 78px);
  margin: 20px 0 0;
}
.hero h1 .soft { color: var(--ink-3); }
.hero .lead {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--ink-2); max-width: 600px; margin: 24px 0 0; line-height: 1.5;
}
.hero-cta { display: flex; gap: 13px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 30px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em;
}
.hero-trust .plats { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust b { color: var(--ink-2); font-weight: 400; }

/* hero product window */
.hero-stage { position: relative; margin-top: 56px; perspective: 2000px; }
.win {
  border-radius: 13px; overflow: hidden; background: var(--card);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.win-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.win-bar .dots { display: flex; gap: 7px; }
.win-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-bar .title { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin: 0 auto; padding-right: 40px; }
.win img { width: 100%; display: block; }
.hero-stage .float-badge {
  position: absolute; right: -14px; top: -22px; z-index: 3;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 13px 16px; max-width: 220px;
}
.float-badge .fb-top { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.float-badge .fb-top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.float-badge p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }

/* ============================================================
   MARQUEE / DIFFERENTIATOR BAND
   ============================================================ */
.band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; margin-top: 64px;
}
.marquee { display: flex; gap: 0; white-space: nowrap; }
.marquee-track {
  display: flex; align-items: center; gap: 0; padding: 18px 0;
  animation: scroll-x 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.marquee-track .item {
  font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 18px; padding: 0 26px;
}
.marquee-track .item .z { color: var(--accent); font-family: var(--mono); }
.marquee-track .dotmark { width: 7px; height: 7px; transform: rotate(45deg); background: var(--accent); flex: none; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 92px 0; }

/* ============================================================
   PRODUCT SWITCHER
   ============================================================ */
.switch { display: grid; grid-template-columns: 360px 1fr; gap: 40px; margin-top: 52px; align-items: start; }
.switch-list { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 96px; }
.switch-tab {
  text-align: left; cursor: pointer; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px; transition: border-color .2s, background .2s, transform .2s;
  display: flex; gap: 15px; align-items: flex-start; font-family: var(--body);
}
@media (hover: hover) { .switch-tab:hover { border-color: var(--line-2); transform: translateX(3px); } }
.switch-tab.active { border-color: var(--accent); background: var(--accent-soft); }
.switch-tab .glyph {
  width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2); color: var(--accent-ink);
}
.switch-tab.active .glyph { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.switch-tab .tt { font-family: var(--display); font-weight: 600; font-size: 18px; }
.switch-tab .tt .tag { font-family: var(--mono); font-size: var(--ldl-type-fineprint); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 3px; font-weight: 400; }
.switch-tab .td { font-size: 14px; color: var(--ink-2); margin-top: 7px; line-height: 1.45; }

.switch-panel { position: relative; min-height: 540px; }
.panel { display: none; }
.panel.active { display: block; animation: fade-up .45s ease both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.panel-top h3 { font-size: 30px; }
.panel-top .sub { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; }
.panel-price { font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: right; }
.panel-price b { display: block; font-size: 26px; color: var(--ink); font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }

.panel-preview { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-md); background: var(--card); }
.panel-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 28px; margin-top: 26px; }
.feat { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.feat .ck { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.feat .ft { font-size: 14.5px; }
.feat .ft b { font-weight: 600; }
.feat .ft span { color: var(--ink-2); }
.panel-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* built UI mocks inside preview */
.mock { font-family: var(--body); }

/* ============================================================
   PRINCIPLES
   ============================================================ */
.principles { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.prin {
  padding: 30px 26px; border-right: 1px solid var(--line);
  transition: background .2s;
}
.prin:last-child { border-right: none; }
@media (hover: hover) { .prin:hover { background: var(--accent-soft); } }
.prin .pn { font-family: var(--mono); font-size: 12px; color: var(--accent-ink); letter-spacing: .1em; }
.prin h3 { font-size: 21px; margin: 16px 0 10px; }
.prin p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ============================================================
   SWITCH-FROM / VALUE
   ============================================================ */
.switchfrom { }
.sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 48px; }
.sf-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px; background: var(--card);
}
.sf-card h3 { font-size: 22px; margin-bottom: 6px; color: inherit; }
.sf-card .sf-sub { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; margin-bottom: 20px; }
.sf-row { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; align-items: flex-start; }
.sf-card.ldl-inverse .sf-row { border-color: var(--ldl-inverse-line); }
.sf-row .mk { font-family: var(--mono); flex: none; }
.sf-card .sf-row .mk { color: var(--ink-3); }
.sf-card.ldl-inverse .sf-row .mk { color: var(--ldl-inverse-accent); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { background: var(--paper-2); border-top: 1px solid var(--line); }
.plan-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; align-self: stretch; }
.plan-points li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; text-align: start; }
.plan-points li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.ldl-plan .ldl-btn { margin-top: 16px; }
.ldl-plan-row-price small { display: block; font-family: var(--mono); font-size: var(--ldl-type-fineprint); font-weight: 400; letter-spacing: 0; color: var(--ink-3); text-align: right; }
.price-note { text-align: center; margin-top: 34px; }

/* ============================================================
   CONSULTING BAND
   ============================================================ */
.consult-right { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); padding: 72px 0 36px; background: var(--paper); }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .ldl-brand { margin-bottom: 2px; }
.foot-brand p { color: var(--ink-2); font-size: 14.5px; margin-top: 16px; max-width: 280px; }
.foot-social { display: flex; gap: 10px; margin-top: 20px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center; width: var(--ldl-touch-target); height: var(--ldl-touch-target); border: 1px solid var(--line); border-radius: 50%; color: var(--ink-3); transition: color .15s, border-color .15s; }
@media (hover: hover) { .foot-social a:hover { color: var(--accent-ink); border-color: var(--accent); } }
.foot-col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; transition: color .15s; }
@media (pointer: coarse) { .foot-col a { padding: 11px 0; } }  /* 44px rows on touch */
@media (hover: hover) { .foot-col a:hover { color: var(--accent-ink); } }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-bottom .colo { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.foot-bottom .links { display: flex; gap: 20px; }
.foot-bottom .links a { font-size: 13px; color: var(--ink-3); }
@media (pointer: coarse) { .foot-bottom .links a { display: inline-block; padding: 12px 0; } }
@media (hover: hover) { .foot-bottom .links a:hover { color: var(--ink); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .switch { grid-template-columns: 1fr; }
  .switch-list { position: static; }
  .prin-grid { grid-template-columns: repeat(2, 1fr); }
  .prin:nth-child(2) { border-right: none; }
  .prin:nth-child(1), .prin:nth-child(2) { border-bottom: 1px solid var(--line); }
  .sf-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .prin-grid { grid-template-columns: 1fr; }
  .prin { border-right: none; border-bottom: 1px solid var(--line); }
  .panel-feats { grid-template-columns: 1fr; }
  .hero-stage .float-badge { display: none; }
  .foot-top { grid-template-columns: 1fr; }
}

