/* Neutral temporary styling (task 2807: the design comes later and changes only this file and small markup).
   Layout follows the boards: block order, columns, phone and desktop. Colours, fonts and spacing are shared variables. */
:root {
  --bg: #fff; --ink: #14202e; --muted: #5d6673; --line: #d5d9df; --soft: #f3f2ef; --accent: #14263c; --on-accent: #fff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px; --gap: 16px; --max: 1120px; --header-h: 64px; --radius: 2px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; font-weight: 500; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; font-weight: 500; }
h3 { font-size: 16px; }
main { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 56px; display: flex; flex-direction: column; gap: 40px; }
/* a jump to the form or a section stops below the sticky header, not under it */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.btn { display: inline-block; padding: 10px 20px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); text-decoration: none; text-align: center; }
.btn.ghost { background: transparent; color: var(--ink); }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.meta { font-size: 13px; color: var(--muted); }
.lead { max-width: 62ch; }
.actions, .anchors { display: flex; flex-wrap: wrap; gap: 8px; }

/* image placeholder: the box keeps the proportions of the final image */
.ph { position: relative; width: 100%; border: 1px solid var(--line); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--soft) 50%, transparent calc(50% + .5px)), linear-gradient(to bottom right, transparent calc(50% - .5px), var(--soft) 50%, transparent calc(50% + .5px)); }
.ph span { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; min-height: var(--header-h); display: flex; align-items: center; gap: 14px; padding: 8px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { margin-right: auto; white-space: nowrap; font-size: clamp(14px, 4.2vw, 18px); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.quick { display: flex; gap: 8px; }
.quick a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 700; text-decoration: none; }
.menu nav a { text-decoration: none; }
.menu nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.lang [aria-current] { font-weight: 700; }
.lang a { color: var(--muted); }
@media (min-width: 900px) {
  /* one row: logo · pages · language · WA TG · consultation. The script in base.njk opens the <details>. */
  .menu[open] > summary { display: none; }
  /* ponytail: display:contents does not pass through <details>, so the menu is one flex row and WA/TG sit after
     the consultation button (the board has them before it); swap when the design is applied */
  .logo { margin-right: 24px; }
  .menu { flex: 1; }
  .menu nav { display: flex; align-items: center; gap: 20px; }
  .pages { margin-right: auto; display: flex; gap: 20px; }
  .quick { order: 1; }
}
@media (max-width: 899px) {
  .menu > summary { cursor: pointer; list-style: none; padding: 7px 12px; border: 1px solid var(--ink); border-radius: var(--radius); }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu[open] > nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; gap: 14px; padding: 16px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
  .pages { display: flex; flex-direction: column; gap: 14px; }
}

/* ---------- blocks ---------- */
.block { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.block > .grid, .block > .reviews, .block > .steps, .block > .ph { align-self: stretch; }
.block + .block:not(.form):not(.boxed) { padding-top: 32px; border-top: 1px solid var(--line); }
.boxed { padding: 24px; border: 1px solid var(--line); }
.grid { display: grid; gap: var(--gap); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
/* two columns on desktop, one under the other on a phone */
.two { display: grid; grid-template-columns: 1fr; gap: 24px; }
.two > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.two > * { min-width: 0; }
.two > .ph { align-self: start; }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

.card { display: flex; flex-direction: column; border: 1px solid var(--line); }
.card > div:not(.ph):not(.over) { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.card .ph { border: 0; border-bottom: 1px solid var(--line); }
.tile { padding: 14px 18px; border: 1px solid var(--line); }
.lines { align-self: stretch; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lines li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lines a { display: block; text-decoration: none; }

/* home */
.hero { position: relative; }
.hero-body { display: flex; flex-direction: column; gap: 20px; padding: 20px 0 0; }
.hero-box { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--ink); background: var(--bg); }
@media (min-width: 900px) {
  .hero-body { position: absolute; inset: 0; padding: 48px; justify-content: space-between; }
  .hero-body h1 { max-width: 9em; }
  .hero-box { max-width: 520px; }
}
.over { position: relative; }
.over h3 { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 500; }
.reasons { align-self: stretch; padding-left: 18px; }
.reasons li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.reasons span { display: block; font-size: 13px; color: var(--muted); }
/* reviews: one row that scrolls sideways (phone and desktop), each card snaps into place */
.reviews { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; }
.reviews > * { flex: 0 0 min(80%, 250px); scroll-snap-align: start; padding: 14px; gap: 8px; }
.reviews .quote { flex-basis: min(86%, 290px); }
.reviews .ph { border: 1px solid var(--line); }
.quote blockquote { font-style: italic; }
.review h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.review summary { cursor: pointer; text-decoration: underline; }
.steps { padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; grid-template-columns: repeat(7, 1fr); font-size: 13px; }
.steps li { counter-increment: step; padding: 12px 14px; border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; font-size: 22px; }
@media (max-width: 899px) { .steps { grid-template-columns: 1fr; gap: 0; } .steps li { display: flex; gap: 16px; align-items: baseline; border-width: 0 0 1px; padding: 8px 0; } }

/* investors */
.stats { display: flex; flex-direction: column; gap: 10px; }
.chart { width: 100%; height: auto; font-size: 10px; fill: var(--muted); }
.chart .bar { fill: var(--accent); }
.chart .band { fill: var(--soft); }
.chart .grid-line { stroke: var(--line); }
.chart .val { fill: var(--ink); font-weight: 700; }
.figures { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--muted); }
.figures strong { display: block; font-size: 22px; font-weight: 500; color: var(--ink); }

/* privacy */
.crumbs { font-size: 13px; color: var(--muted); }
.policy { display: grid; gap: 32px; }
.toc ol { padding: 0; list-style: none; counter-reset: s; font-size: 13px; }
.toc li { counter-increment: s; padding: 6px 0; border-bottom: 1px solid var(--line); }
.toc li::before { content: counter(s) ". "; }
.toc a { text-decoration: none; }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 24px; }
.prose section { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose ul { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .policy { grid-template-columns: 240px 1fr; } .toc { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; } }

/* form */
.form { padding: 24px; border: 1px solid var(--line); }
.form .b24-form { align-self: stretch; width: 100%; }
.consent { font-size: 12px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding: 32px var(--gutter) 80px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer strong { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.site-footer h2 { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.site-footer a, .site-footer button { display: block; margin: 4px 0; color: var(--muted); }
.site-footer button { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; cursor: pointer; }
.site-footer .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.site-footer .legal span { order: -1; margin-right: auto; }

/* ---------- cookie banner and settings window ---------- */
button.btn { font: inherit; cursor: pointer; }
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; max-width: 820px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; background: var(--bg); border: 1px solid var(--ink); font-size: 13px; }
.cc-banner[hidden] { display: none; }
.cc-banner > div:first-child { flex: 1 1 280px; }
.cc-banner h2, .cc-modal h2 { font-size: 17px; font-weight: 700; }
.cc-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--ink); color: var(--ink); background: var(--bg); font-size: 13px; }
.cc-modal::backdrop { background: rgba(20, 32, 46, .5); }
.cc-modal > div { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.cc-modal h2 { padding-right: 32px; }
.cc-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: inherit; }
.cc-cat { padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.cc-cat header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-cat label { display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }

/* above the page, below the open phone menu and the cookie banner; it moves up while the banner is shown */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + var(--cc-h, 0px)); z-index: 5; padding: 12px 16px; border-radius: 999px; background: #1f8f4e; color: #fff; text-decoration: none; font-weight: 600; }
