/*
  style.css — Fotospots Fieldbook page shell and components.

  Consumes tokens from css/tokens.css via var(--...); no hex or font-family literals
  appear here except in inherited CSS keywords. Structural vocabulary is defined in
  docs/guide/terminology.md (eyebrow, spread, frame).

  The whole shipped site (landing, privacy policy, 404) shares this stylesheet.
*/

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fs-ground);
  color: var(--fs-ink);
  font-family: var(--fs-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: var(--fs-interactive);
  text-decoration: none;
  transition: color var(--fs-transition-fast);
}

a:hover {
  color: var(--fs-link-hover);
}

h1,
h2,
h3 {
  font-family: var(--fs-font-body);
  color: var(--fs-ink);
  margin: 0;
  text-wrap: pretty;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus-visible: keyboard-only outline; mouse and touch clicks do not raise it. */
:focus-visible {
  outline: 2px solid var(--fs-interactive);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Language toggle: content visibility ---------- */

html[data-lang="en"] .fs-l-de,
html[data-lang="de"] .fs-l-en {
  display: none !important;
}

/* ---------- Container ---------- */

.fs-container {
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 0 var(--fs-side-padding);
}

/* ---------- Header ---------- */

.fs-header {
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 26px var(--fs-side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fs-header-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-header-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--fs-radius-icon);
}

.fs-header-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fs-wordmark-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fs-wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.fs-subtitle {
  font-family: var(--fs-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fs-muted);
}

.fs-mugo-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fs-muted);
}

.fs-mugo-lockup:hover {
  color: var(--fs-interactive);
}

.fs-mugo-mark {
  width: 13px;
  height: 13px;
}

.fs-mugo-label {
  font-family: var(--fs-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.fs-header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ---------- Language toggle buttons ---------- */

.fs-lang-toggle {
  display: flex;
  gap: 10px;
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.fs-lang-btn {
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fs-muted);
  border-bottom: var(--fs-keyline-weight) solid transparent;
  transition: color var(--fs-transition-fast), border-color var(--fs-transition-fast),
    font-weight var(--fs-transition-fast);
}

.fs-lang-btn:hover {
  color: var(--fs-interactive);
}

html[data-lang="en"] .fs-lang-btn[data-lang="en"],
html[data-lang="de"] .fs-lang-btn[data-lang="de"] {
  color: var(--fs-interactive);
  font-weight: 700;
  border-bottom-color: var(--fs-interactive);
}

/* ---------- Buttons ---------- */

.fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fs-interactive);
  color: var(--fs-bright-on-brand);
  font-family: var(--fs-font-body);
  font-weight: 700;
  border-radius: var(--fs-radius-btn);
  transition: background-color var(--fs-transition-fast);
}

.fs-btn:hover {
  background: var(--fs-interactive-hover);
  color: var(--fs-bright-on-brand);
}

.fs-btn-sm {
  font-size: 14px;
  padding: 10px 20px;
  min-height: 44px;
}

.fs-btn-lg {
  font-size: 16px;
  padding: 15px 28px;
  min-height: 44px;
}

/* ---------- Header hairline ---------- */

.fs-header-hairline-wrap {
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 0 var(--fs-side-padding);
}

.fs-hairline {
  height: var(--fs-hairline-weight);
  background: var(--fs-hairline);
}

/* ---------- Topo contours ---------- */

.fs-topo-section {
  position: relative;
  overflow: hidden;
}

.fs-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.13;
  pointer-events: none;
}

.fs-topo-group {
  stroke: var(--fs-muted);
  fill: none;
  opacity: 0.55;
}

/* ---------- Hero ---------- */

.fs-hero-inner {
  position: relative;
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 88px var(--fs-side-padding) 104px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.fs-eyebrow {
  font-family: var(--fs-font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--fs-interactive);
}

.fs-eyebrow-muted {
  color: var(--fs-muted);
}

.fs-eyebrow-brand {
  color: var(--fs-muted-on-brand);
}

.fs-rule-hero {
  width: 220px;
  height: var(--fs-hairline-weight);
  background: var(--fs-hairline);
  margin: 30px 0 38px;
  border: 0;
}

.fs-rule-brand {
  width: 220px;
  height: var(--fs-hairline-weight);
  background: var(--fs-hairline-on-brand);
  margin: 28px 0 36px;
  border: 0;
}

.fs-h1 {
  font-weight: 700;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
}

/*
  DE headline sets one point smaller than EN per the design spec (72px vs 76px).
  :where() keeps this at the same specificity as .fs-h1 so the responsive
  overrides below still win on narrow viewports for both languages.
*/
:where(html[data-lang="de"]) .fs-h1 {
  font-size: 72px;
}

.fs-hero-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fs-body);
  max-width: 520px;
  margin: 34px 0 0;
}

.fs-hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.fs-hero-meta {
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fs-muted);
}

.fs-hero-visual {
  display: flex;
  justify-content: center;
}

/* ---------- Frames (baked bezel + rounded corners; CSS supplies the keyline outline) ---------- */

/*
  The screenshot slots (fs-shot-*) render a self-contained "device with app
  on screen" image: the raw full-screen capture is composited into a bezel
  with rounded outer and inner corners, saved as WebP. All that CSS still
  supplies is the 1.5px keyline outline that today's shipped design draws
  around each device — CSS `outline` sits outside the layout box, so leaving
  it in CSS (rather than baking it into a larger image) keeps every Frame's
  layout footprint identical to the shipped page. `border-radius` on the img
  is what shapes the outline to hug the bezel; the img itself has no visible
  rectangular edge because the bezel corners are baked into the alpha.
*/

.fs-shot-iphone-lg,
.fs-shot-iphone-sm,
.fs-shot-ipad {
  display: block;
  height: auto;
}

.fs-shot-iphone-lg {
  width: 330px;
  border-radius: var(--fs-radius-iphone-wrap);
  outline: var(--fs-keyline-weight) solid var(--fs-muted);
  outline-offset: 5px;
}

.fs-shot-iphone-sm {
  width: 100%;
  border-radius: var(--fs-radius-iphone-sm-wrap);
  outline: var(--fs-keyline-weight) solid var(--fs-muted);
  outline-offset: 4px;
}

.fs-shot-ipad {
  width: 860px;
  max-width: 100%;
  border-radius: var(--fs-radius-ipad-wrap);
  outline: var(--fs-keyline-weight) solid var(--fs-muted-on-brand);
  outline-offset: 6px;
}

/* ---------- "What you do with it" spread ---------- */

.fs-spread-section {
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 0 var(--fs-side-padding) 110px;
}

.fs-spread-eyebrow {
  font-family: var(--fs-font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--fs-muted);
  padding: 54px 0 10px;
}

.fs-spread-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
}

.fs-spread-item {
  display: flex;
  gap: 26px;
  padding: 34px 0;
  border-bottom: var(--fs-hairline-weight) solid var(--fs-hairline);
}

.fs-spread-item:last-child {
  border-bottom: 0;
}

.fs-spread-item-num {
  font-family: var(--fs-font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--fs-interactive);
  line-height: 1.2;
  flex: none;
}

.fs-spread-item-h {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.fs-spread-item-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fs-body);
}

.fs-phones-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 528px;
  margin: 0 auto;
  width: 100%;
}

.fs-phones-pair-offset {
  margin-top: 56px;
}

/* ---------- iPad section (brand ground) ---------- */

.fs-ipad-section {
  background: var(--fs-ground-brand);
  color: var(--fs-bright-on-brand);
}

.fs-ipad-inner {
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 96px var(--fs-side-padding) 104px;
}

.fs-h2-brand {
  margin: 0;
  font-weight: 700;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 680px;
  color: var(--fs-bright-on-brand);
}

.fs-ipad-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fs-muted-on-brand);
  max-width: 560px;
  margin: 26px 0 0;
}

.fs-ipad-visual {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

/* ---------- Closing section ---------- */

.fs-closing-inner {
  position: relative;
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 110px var(--fs-side-padding) 130px;
  text-align: center;
}

.fs-h2 {
  margin: 0;
  font-weight: 700;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.fs-closing-body {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fs-body);
  max-width: 620px;
  margin: 22px auto 0;
}

.fs-closing-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ---------- Footer ---------- */

.fs-footer {
  max-width: var(--fs-content-max);
  margin: 0 auto;
  padding: 0 var(--fs-side-padding) 44px;
}

.fs-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  flex-wrap: wrap;
}

.fs-footer-mugo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fs-muted);
}

.fs-footer-mugo:hover {
  color: var(--fs-interactive);
}

.fs-footer-mugo-mark {
  width: 20px;
  height: 20px;
}

.fs-footer-mugo-label {
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.fs-footer-links {
  display: flex;
  gap: 32px;
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.fs-footer-links a {
  color: var(--fs-muted);
}

.fs-footer-links a:hover {
  color: var(--fs-interactive);
}

.fs-footer-tag {
  font-family: var(--fs-font-mono);
  font-size: 12px;
  color: var(--fs-muted);
}

/* ---------- Page header (simple inner-page chrome: privacy policy, 404) ---------- */

.fs-page-header {
  max-width: var(--fs-content-max-narrow);
  margin: 0 auto;
  padding: 26px var(--fs-side-padding-narrow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.fs-page-header-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fs-ink);
}

.fs-page-header-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--fs-radius-icon);
}

.fs-page-wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.fs-back-link {
  font-family: var(--fs-font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fs-muted);
}

.fs-back-link:hover {
  color: var(--fs-interactive);
}

.fs-page-header-hairline-wrap {
  max-width: var(--fs-content-max-narrow);
  margin: 0 auto;
  padding: 0 var(--fs-side-padding-narrow);
}

/* ---------- Privacy policy main column ---------- */

.fs-privacy-main {
  max-width: var(--fs-content-max-narrow);
  margin: 0 auto;
  padding: 64px var(--fs-side-padding-narrow) 100px;
  box-sizing: border-box;
}

/* ---------- Page intro (eyebrow + headline + lead, inner pages) ---------- */

.fs-h1-page {
  font-weight: 700;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 26px 0 0;
}

.fs-lead-page {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fs-body);
  max-width: 640px;
  margin: 24px 0 0;
}

/* ---------- Numbered list (hairline-separated disclosure items, privacy policy) ---------- */

.fs-numbered-list {
  margin-top: 30px;
}

.fs-numbered-item {
  display: flex;
  gap: 26px;
  padding: 34px 0;
  border-bottom: var(--fs-hairline-weight) solid var(--fs-hairline);
}

.fs-numbered-item:last-child {
  border-bottom: 0;
}

.fs-numbered-item-first {
  padding-top: 44px;
  border-top: var(--fs-hairline-weight) solid var(--fs-hairline);
}

.fs-numbered-item-marker {
  font-family: var(--fs-font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--fs-interactive);
  line-height: 1.2;
  flex: none;
}

.fs-numbered-item-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.fs-numbered-item-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fs-body);
  max-width: 620px;
}

/* ---------- Page footer (simple inner-page chrome: privacy policy, 404) ---------- */

.fs-page-footer {
  max-width: var(--fs-content-max-narrow);
  margin: 0 auto;
  padding: 0 var(--fs-side-padding-narrow) 40px;
}

.fs-page-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  flex-wrap: wrap;
}

/* ---------- 404 (not-found) page ---------- */

.fs-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.fs-404-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.fs-404-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin: 0 auto;
}

.fs-404-eyebrow {
  margin-top: 34px;
}

.fs-404-rule {
  width: 180px;
  height: var(--fs-hairline-weight);
  background: var(--fs-hairline);
  margin: 28px auto 34px;
  border: 0;
}

.fs-404-h1 {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}

.fs-404-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fs-body);
  margin: 24px 0 0;
}

.fs-404-cta {
  margin-top: 34px;
}

.fs-404-cta a {
  font-weight: 700;
  font-size: 16px;
}

/* ---------- Responsive: stack the desktop grids on narrow viewports ---------- */

@media (max-width: 960px) {
  :root {
    --fs-side-padding: 32px;
    --fs-side-padding-narrow: 32px;
  }

  .fs-header {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .fs-header-actions {
    gap: 20px;
  }

  .fs-hero-inner {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 72px;
    gap: 48px;
  }

  .fs-h1 {
    font-size: 56px;
  }

  .fs-spread-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .fs-ipad-inner {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .fs-h2-brand {
    font-size: 42px;
  }

  .fs-closing-inner {
    padding-top: 80px;
    padding-bottom: 96px;
  }

  .fs-h2 {
    font-size: 38px;
  }

  .fs-h1-page {
    font-size: 40px;
  }

  .fs-404-h1 {
    font-size: 42px;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-side-padding: 20px;
    --fs-side-padding-narrow: 20px;
  }

  .fs-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .fs-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
  }

  .fs-mugo-lockup {
    min-height: 44px;
  }

  .fs-h1 {
    font-size: 44px;
  }

  .fs-page-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .fs-page-header-lockup,
  .fs-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .fs-h1-page {
    font-size: 32px;
  }

  .fs-lead-page {
    font-size: 17px;
  }

  .fs-numbered-item {
    gap: 16px;
  }

  .fs-hero-lead {
    font-size: 17px;
  }

  .fs-spread-section {
    padding-bottom: 72px;
  }

  .fs-h2-brand {
    font-size: 32px;
  }

  .fs-h2 {
    font-size: 32px;
  }

  .fs-shot-iphone-lg {
    width: 100%;
    max-width: 300px;
  }

  .fs-phones-pair {
    gap: 16px;
  }

  .fs-phones-pair-offset {
    margin-top: 32px;
  }

  .fs-footer-row {
    justify-content: flex-start;
  }

  .fs-footer-links {
    gap: 20px;
  }

  .fs-footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
  }

  .fs-footer-mugo {
    min-height: 44px;
  }

  .fs-404 {
    padding: 20px;
  }

  .fs-404-h1 {
    font-size: 34px;
  }

  .fs-404-body {
    font-size: 16px;
  }

  .fs-404-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 4px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
