/* Copied from site/mockup by tools/from-mockup.js. Do not edit here: edit the mockup, or put WordPress-only rules in wp.css. */
/* Running Feet Studios mockup: shared styles for every page (index.html adds its own). */
/* Fonts are served from this site (OFL, see fonts/OFL-*.txt): no request to any other server. */

/* ---------- Tokens: light (default) ---------- */
:root {
  --cream: #FFF8EF; --ink: #1F2347; --night: #171A35;
  --coral: #FF6A3D; --teal: #0E968A; --sun: #FFC53D; --pebble: #93A3B8;

  --bg: #FFF8EF;          /* page ground */
  --bg-alt: #FCEDDA;      /* warm band */
  --surface: #FFFFFF;     /* cards */
  --text: #1F2347;
  --muted: #4A4F6E;
  --link: #0B7468;
  --ember: #B23A12;
  --rule: rgba(31, 35, 71, .14);
  --shadow: 0 1px 0 rgba(31,35,71,.06), 0 10px 30px -12px rgba(31,35,71,.25);
  --btn-bg: #1F2347; --btn-text: #FFF8EF; --btn-line: #1F2347;
  --focus: #1F2347;
  --panel-sun: #FFE9BA; --panel-teal: #D5F0EA; --panel-coral: #FFE0D2;
  --sun-disc: #FFC53D;

  /* illustration colours */
  --il-board: #FFFFFF; --il-edge: #1F2347; --il-wall: #1F2347; --il-line: #1F2347;
  --il-piece-line: #1F2347; --il-mirror: #0B7468; --il-grid: rgba(31,35,71,.16);
  --il-ghost: rgba(31,35,71,.10);

  --show-light: block; --show-night: none;
  color-scheme: light;
}
/* ---------- Night: system dark (unless forced light) or forced dark ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171A35; --bg-alt: #1C2043; --surface: #232852;
    --text: #FFF8EF; --muted: #C5C8DE; --link: #3FD0BE; --ember: #3FD0BE;
    --rule: rgba(197, 200, 222, .18);
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 14px 34px -14px rgba(0,0,0,.6);
    --btn-bg: #FFC53D; --btn-text: #1F2347; --btn-line: #FFF8EF;
    --focus: #FFC53D;
    --panel-sun: #2A2D57; --panel-teal: #1B2F4E; --panel-coral: #2E2650;
    --sun-disc: #FFC53D;
    --il-board: #2D3263; --il-edge: #C5C8DE; --il-wall: #93A3B8; --il-line: #C5C8DE;
    --il-mirror: #3FD0BE; --il-grid: rgba(197,200,222,.2); --il-ghost: rgba(197,200,222,.14);
    --show-light: none; --show-night: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171A35; --bg-alt: #1C2043; --surface: #232852;
  --text: #FFF8EF; --muted: #C5C8DE; --link: #3FD0BE; --ember: #3FD0BE;
  --rule: rgba(197, 200, 222, .18);
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 14px 34px -14px rgba(0,0,0,.6);
  --btn-bg: #FFC53D; --btn-text: #1F2347; --btn-line: #FFF8EF;
  --focus: #FFC53D;
  --panel-sun: #2A2D57; --panel-teal: #1B2F4E; --panel-coral: #2E2650;
  --sun-disc: #FFC53D;
  --il-board: #2D3263; --il-edge: #C5C8DE; --il-wall: #93A3B8; --il-line: #C5C8DE;
  --il-mirror: #3FD0BE; --il-grid: rgba(197,200,222,.2); --il-ghost: rgba(197,200,222,.14);
  --show-light: none; --show-night: block;
  color-scheme: dark;
}

/* Logo variants: one per theme, only the matching one is shown */
.v-light { display: var(--show-light); }
.v-night { display: var(--show-night); }
.v-hcl, .v-hcd { display: none; }
.v-always-night { display: block; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}
h1, h2, h3 { font-family: "Baloo 2", "Nunito", system-ui, sans-serif; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.4rem); }
h2 { font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h3 { font-weight: 800; font-size: 1.5rem; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.eyebrow {
  font-family: "Baloo 2", sans-serif; font-weight: 600; font-size: 1.0625rem; letter-spacing: .02em;
  color: var(--ember); margin-bottom: .5rem;
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--btn-bg); color: var(--btn-text); font-weight: 700;
  padding: .7rem 1.1rem; border-radius: 12px; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.bar {
  display: grid; align-items: center; gap: .75rem 1.5rem;
  grid-template-columns: 1fr auto; grid-template-areas: "brand lang" "nav nav";
  padding-block: .85rem .6rem;
}
.brand { grid-area: brand; display: inline-flex; border-radius: 10px; }
/* The centred lockup (feet on top) is sized by height. */
.brand svg { height: clamp(64px, 16vw, 84px); width: auto; overflow: visible; }
.main-nav { grid-area: nav; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: .45rem .8rem; border-radius: 999px; color: var(--text);
  font-weight: 700; text-decoration: none; font-size: 1.0625rem;
}
.main-nav li:first-child a { margin-left: -.8rem; }
.main-nav a:hover { background: var(--bg-alt); text-decoration: underline; }
.lang { grid-area: lang; display: inline-flex; border: 2px solid var(--btn-line); border-radius: 999px; padding: 2px; }
.lang button, .seg button {
  font: 700 .9375rem/1 "Nunito", sans-serif; color: var(--text); background: transparent;
  border: 0; border-radius: 999px; padding: .55rem .8rem; min-width: 44px; min-height: 40px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); }
.lang button:hover:not([aria-pressed="true"]) { text-decoration: underline; }
@media (min-width: 760px) {
  .bar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav lang"; padding-block: 1rem; }
  .main-nav ul { justify-content: flex-end; gap: .5rem; }
  .main-nav li:first-child a { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 2.5px solid var(--btn-line); color: var(--text);
  font: 800 1.125rem/1 "Baloo 2", sans-serif; text-decoration: none; letter-spacing: .01em;
}
.btn.primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn:hover { text-decoration: underline; }
.btn svg { width: 20px; height: 20px; }

/* ---------- Footer: always on ink ---------- */
.site-footer {
  --text: #FFF8EF; --muted: #C5C8DE; --link: #3FD0BE; --rule: rgba(197,200,222,.22);
  --btn-bg: #FFC53D; --btn-text: #1F2347; --btn-line: #C5C8DE; --focus: #FFC53D;
  background: #1F2347; color: var(--text); padding-block: 3rem 2.5rem;
}
:root[data-theme="dark"] .site-footer { background: #10122A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #10122A; } }
.foot { display: grid; gap: 1.75rem; }
@media (min-width: 820px) {
  .foot { grid-template-columns: 1fr auto; grid-template-areas: "brand links" "copy theme" "legal legal"; align-items: center; }
  .foot-legal { grid-area: legal; }
  .foot-brand { grid-area: brand; } .foot-links { grid-area: links; } .foot-copy { grid-area: copy; } .seg-wrap { grid-area: theme; }
}
.foot-brand { display: flex; align-items: center; gap: 1rem; }
.foot-brand svg { width: 84px; height: auto; flex: none; }
.foot-line { font: 800 clamp(1.3rem, 1.1rem + .8vw, 1.6rem)/1.15 "Baloo 2", sans-serif; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot-links a { font-weight: 700; display: inline-block; padding: .35rem 0; }
.foot-copy { color: var(--muted); font-size: 1rem; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; }
.foot-legal p { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; max-width: 68ch; }
/* ANPC asks for a 250 x 50 box; the official image is 201 x 50, shown unchanged and centred. */
.anpc { display: inline-flex; align-items: center; justify-content: center; width: 250px; height: 50px; background: #FFFFFF; border-radius: 8px; flex: none; }
.anpc img { display: block; }
.seg-wrap { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.seg-label { color: var(--muted); font-size: 1rem; font-weight: 700; }
.seg { display: inline-flex; border: 2px solid var(--btn-line); border-radius: 999px; padding: 2px; }
.seg button { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); }

/* ---------- Motion off: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .v-light, .v-night, .v-always-night { display: none !important; }
  .v-hcl { display: var(--show-light) !important; }
  .v-hcd { display: var(--show-night) !important; }
  .lang button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}

/* ---------- Inner pages: company, privacy, terms, accessibility, contact ---------- */
.page-head { background: var(--bg-alt); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 2.75rem); }
.page-head .wrap, .doc { max-width: calc(46rem + 2 * clamp(1.25rem, 4vw, 2.5rem)); }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); }
.page-head .lead { margin-top: .8rem; max-width: 40rem; }
.prints { display: flex; gap: .35rem; margin-bottom: .6rem; }
.prints svg { width: 15px; height: 26px; }
.prints svg:nth-child(odd) { transform: rotate(-9deg); }
.prints svg:nth-child(even) { transform: rotate(9deg) scaleX(-1) translateY(4px); }
.draft {
  display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.25rem; padding: .7rem 1rem;
  background: var(--panel-sun); border: 2px dashed var(--btn-line); border-radius: 14px;
  font-weight: 700; font-size: 1rem; max-width: 40rem;
}
.draft svg { flex: none; width: 22px; height: 22px; margin-top: .1rem; }
.updated { color: var(--muted); font-size: 1rem; margin-top: .9rem; }

.doc { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(3rem, 7vw, 5rem); }
.doc h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem); margin-top: 2.4rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.doc p, .doc ul, .doc dl, .doc .tbl { margin-top: .75rem; }
.doc ul { padding-left: 1.3rem; }
.doc li + li { margin-top: .35rem; }
.doc li::marker { color: var(--muted); }
.muted { color: var(--muted); }
.ph { /* a placeholder Ovidiu still has to fill in */
  font-weight: 700; background: var(--panel-sun); border-radius: 6px; padding: 0 .3em;
  border-bottom: 2px dashed var(--btn-line); white-space: nowrap;
}

/* Key/value list: stacked on phones, two columns from 640 px */
.kv { display: grid; gap: 0; border-top: 1.5px solid var(--rule); }
.kv > div { display: grid; gap: .1rem .75rem; padding: .7rem 0; border-bottom: 1.5px solid var(--rule); }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }
@media (min-width: 640px) { .kv > div { grid-template-columns: 14rem 1fr; } }

/* Tables become one card per row on phones */
.tbl { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: .65rem .75rem .65rem 0; border-bottom: 1.5px solid var(--rule); }
.tbl tbody th { font-weight: 400; }
.tbl tbody th code { font-weight: 700; }
.tbl thead th { font-family: "Baloo 2", "Nunito", sans-serif; font-weight: 800; border-bottom-width: 2.5px; border-bottom-color: var(--btn-line); }
.tbl code, .doc code { font: 700 .95em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--bg-alt); padding: .05em .3em; border-radius: 5px; }
@media (max-width: 639px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tr { padding: .6rem 0; border-bottom: 1.5px solid var(--rule); }
  .tbl th, .tbl td { border: 0; padding: .15rem 0; }
  .tbl td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; }
}

.callout { margin-top: 1.25rem; padding: 1rem 1.2rem; background: var(--surface); border: 1.5px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow); }
.callout p:first-child { margin-top: 0; }
.mail { font: 800 clamp(1.3rem, 1.1rem + .8vw, 1.6rem)/1.3 "Baloo 2", "Nunito", sans-serif; overflow-wrap: anywhere; }
.doc .btn { margin-top: 1rem; }
.doc .anpc { margin-top: 1rem; box-shadow: 0 0 0 1.5px var(--rule); }
.lang-block[hidden] { display: none; }

@media (forced-colors: active) {
  .draft, .callout, .ph { border: 2px solid CanvasText; }
  .prints svg { display: none; }
}
.foot-links a[aria-current="page"] { color: var(--text); text-decoration-thickness: .2em; text-decoration-color: var(--btn-bg); }

/* Pause control for the looping hero animation (WCAG 2.2.2). Hidden when the device already asks for reduced motion. */
.motion-toggle { position: absolute; top: 0; right: 0; z-index: 2; min-height: 44px; font-size: .9375rem; padding-inline: 1rem; background: var(--bg, #FFF8EF); }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }
