/* ============================================================
   Lincoln Road Apps — shared app-page design system.
   Structure and components only; each page sets its palette by
   overriding the tokens below in its own <style> block.
   ============================================================ */

@view-transition { navigation: auto; }

@property --shine-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -25%;
}
@property --foil-pos {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  color-scheme: light dark;

  /* default palette = studio brass; app pages override these */
  --bg:        light-dark(#f8f1e4, #06161b);
  --surface:   light-dark(#fffdf8, #0c2229);
  --surface-2: light-dark(#f2e8d5, #102b33);
  --ink:       light-dark(#14343d, #edf4f2);
  --ink-soft:  light-dark(#4d6b74, #9db6bc);
  --rule:      light-dark(#dfd3bc, #1d3a43);
  --brass:     light-dark(oklch(0.62 0.11 84), oklch(0.78 0.11 84));
  --brass-hi:  light-dark(oklch(0.75 0.12 88), oklch(0.90 0.10 92));
  --brass-lo:  light-dark(oklch(0.48 0.10 80), oklch(0.58 0.11 80));
  --coral:     light-dark(#d55f47, #ef8a74);
  --teal:      light-dark(#0f5e6b, #7fd3dd);

  /* foil stops for the big wordmark, darkest → peak */
  --foil-a: light-dark(oklch(0.38 0.09 78), oklch(0.58 0.11 80));
  --foil-b: light-dark(oklch(0.50 0.11 82), oklch(0.78 0.11 84));
  --foil-c: light-dark(oklch(0.60 0.12 86), oklch(0.90 0.10 92));
  --foil-d: light-dark(oklch(0.70 0.13 90), #fdf6dd);

  --ease-spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%,
                 0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%,
                 1.015 55%, 1.017 63.9%, 1.001);

  --font-display: "Poiret One", "Futura", ui-sans-serif, sans-serif;
  --font-body: "Jost", "Futura", "Avenir Next", ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.65;
  font-weight: 300;
  text-rendering: optimizeLegibility;
}

::selection { background: color-mix(in oklab, var(--brass) 35%, transparent); }

a { color: var(--teal); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1060px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi), var(--coral));
  transform-origin: 0 50%;
  scale: 0 1;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes progress-grow { to { scale: 1 1; } }

/* ---------- header ---------- */

header.site {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  border-color: color-mix(in oklab, var(--rule) 55%, transparent);
}
@supports (animation-timeline: scroll()) {
  header.site {
    background: transparent;
    border-color: transparent;
    animation: head-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 240px;
  }
  @keyframes head-solid {
    to {
      background: color-mix(in oklab, var(--bg) 62%, transparent);
      border-color: color-mix(in oklab, var(--rule) 70%, transparent);
    }
  }
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { width: 30px; height: 30px; flex: none; color: var(--brass); }

nav.site {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
nav.site a:hover, nav.site a[aria-current] { color: var(--brass); border-color: var(--brass); }

@media (max-width: 700px) {
  header.site .wrap { flex-direction: column; gap: 6px; padding-block: 10px; }
  .brand { font-size: 15px; }
  nav.site { font-size: 12.5px; gap: 16px; }
}

/* ---------- hero with shader canvas ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.no-webgl .hero canvas { display: none; }
.no-webgl .hero {
  background:
    radial-gradient(circle at 50% 30%, color-mix(in oklab, var(--brass) 28%, transparent), transparent 42%),
    repeating-conic-gradient(from -8deg at 50% 30%,
      color-mix(in oklab, var(--brass) 12%, transparent) 0deg 2deg,
      transparent 2deg 16deg),
    linear-gradient(to top, var(--surface-2), var(--bg) 55%);
}

.hero-inner {
  text-align: center;
  padding: clamp(190px, 30svh, 300px) 24px 90px;
  max-width: 880px;
}

.hero-eyebrow, .hero-tag, .hero-lede {
  text-shadow:
    0 1px 18px color-mix(in oklab, var(--bg) 85%, transparent),
    0 0 3px color-mix(in oklab, var(--bg) 60%, transparent);
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-block: 18px;
  color: var(--brass);
}
.hero-rule::before, .hero-rule::after {
  content: "";
  height: 1px;
  width: min(150px, 22vw);
  background: linear-gradient(to var(--dir, right), transparent, var(--brass));
}
.hero-rule::after { --dir: left; }
.hero-rule .gem {
  width: 8px; height: 8px;
  rotate: 45deg;
  background: var(--brass);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--brass);
}

h1.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 7.2vw, 84px);
  line-height: 1.06;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;

  background: linear-gradient(100deg,
    var(--foil-a) 0%, var(--foil-b) 22%, var(--foil-c) 38%,
    var(--foil-d) 50%, var(--foil-c) 62%, var(--foil-b) 78%, var(--foil-a) 100%);
  background-size: 250% 100%;
  background-position: var(--foil-pos) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-sweep 11s ease-in-out infinite;
}
@keyframes foil-sweep {
  0%, 100% { --foil-pos: 0%; }
  50% { --foil-pos: 100%; }
}

.hero-tag {
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 400;
  letter-spacing: .05em;
  margin: 22px 0 0;
  color: var(--ink);
}

.hero-lede {
  font-size: clamp(16px, 1.9vw, 18.5px);
  color: color-mix(in oklab, var(--ink) 70%, var(--ink-soft));
  max-width: 56ch;
  margin: 18px auto 0;
  text-wrap: pretty;
}

.hero-eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 8px;
}

.hero-cta {
  margin-top: 38px;
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  translate: -50% 0;
  color: var(--brass);
  opacity: .8;
  animation: cue-bob 2.6s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% 9px; }
}
@supports (animation-timeline: scroll()) {
  .scroll-cue {
    animation: cue-bob 2.6s ease-in-out infinite, cue-fade linear both;
    animation-timeline: auto, scroll(root);
    animation-range: normal, 0 220px;
  }
  @keyframes cue-fade { to { opacity: 0; } }
}

/* ---------- compact page head (support / privacy) ---------- */

.page-head {
  padding: clamp(150px, 24svh, 220px) 0 clamp(36px, 6svh, 60px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% -30%,
      color-mix(in oklab, var(--brass) 22%, transparent), transparent),
    linear-gradient(to bottom, var(--surface-2), var(--bg));
  border-bottom: 1px solid var(--rule);
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.5vw, 58px);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}
.page-head .kicker {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 10px;
}
.page-head .lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 16px auto 0;
  text-wrap: pretty;
  padding-inline: 24px;
}
.page-head .lede a { color: var(--brass); }

/* ---------- buttons ---------- */

.btn {
  --oct: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px),
         calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  position: relative;
  z-index: 0;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border: none;
  color: light-dark(#fffdf8, #10101c);
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo));
  clip-path: var(--oct);
  transition: color .3s, filter .3s, translate .4s var(--ease-spring);
}
.btn:hover { translate: 0 -2px; filter: brightness(1.1); }

.btn.ghost { color: var(--brass); }
.btn.ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: var(--oct);
  background: color-mix(in oklab, var(--bg) 45%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color .3s;
}
.btn.ghost:hover { color: var(--brass-hi); filter: none; }
.btn.ghost:hover::before { background: color-mix(in oklab, var(--bg) 65%, transparent); }

/* ---------- deco divider ---------- */

.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--brass);
  margin-block: clamp(56px, 9vh, 96px) clamp(30px, 5vh, 48px);
}
.deco-divider::before, .deco-divider::after {
  content: "";
  height: 1px;
  flex: 0 1 220px;
  background: linear-gradient(to var(--dir, right), transparent, var(--brass));
}
.deco-divider::after { --dir: left; }
.deco-divider .gem {
  width: 7px; height: 7px;
  rotate: 45deg;
  border: 1px solid var(--brass);
}
.deco-divider .gem.mid { background: var(--brass); scale: 1.35; margin-inline: 4px; }

/* ---------- sections ---------- */

section { padding-block: 10px; }

.sec-head {
  text-align: center;
  margin-bottom: clamp(30px, 5vh, 52px);
}
.sec-head .kicker {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 10px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

/* ---------- ziggurat cards ---------- */

.zgrid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.zcard {
  container-type: inline-size;
  --step: 18px;
  --half: 9px;
  background: linear-gradient(160deg,
    color-mix(in oklab, var(--brass) 65%, transparent),
    color-mix(in oklab, var(--brass) 18%, transparent) 40%,
    color-mix(in oklab, var(--brass) 55%, transparent));
  padding: 1px;
  clip-path: polygon(
    0 var(--step), var(--half) var(--step), var(--half) var(--half), var(--step) var(--half), var(--step) 0,
    calc(100% - var(--step)) 0, calc(100% - var(--step)) var(--half),
    calc(100% - var(--half)) var(--half), calc(100% - var(--half)) var(--step), 100% var(--step),
    100% calc(100% - var(--step)), calc(100% - var(--half)) calc(100% - var(--step)),
    calc(100% - var(--half)) calc(100% - var(--half)), calc(100% - var(--step)) calc(100% - var(--half)),
    calc(100% - var(--step)) 100%,
    var(--step) 100%, var(--step) calc(100% - var(--half)), var(--half) calc(100% - var(--half)),
    var(--half) calc(100% - var(--step)), 0 calc(100% - var(--step)));
  transition: translate .5s var(--ease-spring), filter .4s;
}
.zcard:hover {
  translate: 0 -6px;
  filter: drop-shadow(0 18px 30px color-mix(in oklab, var(--brass) 18%, transparent));
}

.zcard-inner {
  position: relative;
  overflow: clip;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: clamp(24px, 6cqi, 34px);
  clip-path: inherit;
}

.zcard-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg,
    transparent calc(var(--shine-x) - 14%),
    color-mix(in oklab, var(--brass-hi) 14%, transparent) var(--shine-x),
    transparent calc(var(--shine-x) + 14%));
  transition: --shine-x 1s ease;
}
.zcard:hover .zcard-inner::after { --shine-x: 125%; }

.zcard h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 2px;
}
.zcard .tag {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 6px;
}
.zcard .tag-rule {
  width: 44px;
  height: 1px;
  background: var(--coral);
  margin-bottom: 16px;
}

/* diamond-bulleted feature list */
.featlist {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.featlist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.featlist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .58em;
  width: 6px; height: 6px;
  rotate: 45deg;
  background: var(--coral);
}
.featlist strong { color: var(--ink); font-weight: 500; }

/* ---------- screenshot strip ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(300px, 72vw);
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px 8px 22px;
  margin-inline: -8px;
}
.shots img {
  width: 100%;
  height: auto;
  scroll-snap-align: center;
  border-radius: 20px;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px color-mix(in oklab, var(--brass) 12%, transparent);
}

/* ---------- framed callout ---------- */

.frame {
  text-align: center;
  border: 1px solid var(--brass);
  outline: 1px solid color-mix(in oklab, var(--brass) 40%, transparent);
  outline-offset: 7px;
  padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 64px);
  margin-block: 20px 10px;
  background:
    radial-gradient(ellipse 60% 90% at 50% 115%,
      color-mix(in oklab, var(--brass) 12%, transparent), transparent),
    var(--surface);
}
.frame h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.frame p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto 8px; text-wrap: pretty; }
.frame .big-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 27px);
  letter-spacing: .06em;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 50%, transparent);
  margin-block: 14px 4px;
  transition: color .3s, border-color .3s;
}
.frame .big-link:hover { color: var(--coral); border-color: var(--coral); }

/* ---------- FAQ accordion ---------- */

.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); padding: 4px 0; }
.qa summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 500;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  rotate: 45deg;
  border: 1px solid var(--brass);
  translate: 0 -2px;
  transition: background-color .3s, rotate .4s var(--ease-spring);
}
.qa details[open] summary::after { background: var(--brass); rotate: 225deg; }
.qa details p {
  margin-top: 0;
  color: var(--ink-soft);
  max-width: 68ch;
  text-wrap: pretty;
}
.qa details p:last-child { padding-bottom: 14px; }
.qa a { color: var(--brass); }

/* ---------- prose (privacy policy & long-form) ---------- */

.prose { max-width: 74ch; margin-inline: auto; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 44px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.prose h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 26px 0 8px;
}
.prose p, .prose li { color: var(--ink-soft); text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--brass); }
.prose .muted { font-size: 15px; }

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--coral);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p { margin: 0; }
.callout p + p { margin-top: 8px; }

/* ---------- footer ---------- */

footer.site {
  margin-top: clamp(60px, 10vh, 110px);
  border-top: 1px solid var(--rule);
  padding-block: 36px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}
footer.site .fbrand { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .12em; }
footer.site svg { width: 22px; height: 22px; opacity: .85; color: var(--brass); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--brass); }

/* ---------- scroll-driven reveals ---------- */

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal-rise .8s var(--ease-spring) both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }
  .zgrid .zcard:nth-child(2) { animation-delay: .08s; }
  .zgrid .zcard:nth-child(3) { animation-delay: .16s; }
  @keyframes reveal-rise {
    from { opacity: 0; translate: 0 34px; }
    to   { opacity: 1; translate: 0 0; }
  }
}

@starting-style {
  .hero-inner, .page-head { opacity: 0; translate: 0 18px; }
}
.hero-inner, .page-head { transition: opacity 1.1s ease, translate 1.1s var(--ease-spring); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-cue { display: none; }
}
