/* ==========================================================================
   Lanview :: Studio — Base / reset / typography
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
/* Note: deliberately NOT setting global `scroll-behavior: smooth` here.
   It also governs the browser's automatic "scroll focused element into
   view" behaviour — on mobile, tapping an accordion trigger while its
   panel is still animating open caused the browser to animate-scroll
   to a stale target position, throwing the opened item off the top of
   the viewport. Only the in-page anchors that want it opt in via
   .scroll-smooth-target below. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: calc(16px * var(--font-scale));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--speed-med) var(--ease), color var(--speed-med) var(--ease);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
svg { display: block; }

a {
  color: var(--accent-500);
  text-decoration: none;
  transition: color var(--speed-fast) var(--ease);
}
a:hover { color: var(--accent-600); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1.1vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; color: var(--text-secondary); }
.hero-subhead {
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  max-width: 640px;
}
ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-secondary); }
li { margin-bottom: .4em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 860px; }

section { position: relative; }
#main { scroll-margin-top: var(--header-h); }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
@media (max-width: 780px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 40px 0; }
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: .9em;
}

.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.lede { font-size: 1.15rem; max-width: 700px; }
.lede-center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease), background var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 32px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent-400); background: var(--surface-alt); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hint {
  font-size: .85rem;
  color: var(--text-muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-500);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

::selection { background: var(--accent-300); color: var(--grey-950); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--grey-300); border-radius: 10px; border: 3px solid var(--bg-alt); }
