/* Brodiq site. Chart vernacular: chart paper, Adriatic ink, chart magenta for the plotted course. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #EEF3F6; --chart: #F7FAFC; --ink: #0E2A3C; --muted: #4F6676; --line: #CDD9E2;
  --magenta: #A8236F; --magenta-dark: #8A1B5A; --sea: #1C6B8A; --land: #F1DFB4;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px); --scale: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

/* language switch: show only the active language */
html[data-lang="hr"] [lang="en"], html[data-lang="en"] [lang="hr"] { display: none; }
html[data-lang="hr"] .t-en, html[data-lang="en"] .t-hr { display: none; }

/* the chart's latitude scale along the left edge of the page */
.scale { position: fixed; inset: 0 auto 0 0; width: var(--scale); z-index: 3;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 38px, var(--chart) 38px 76px); border-right: 1px solid var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: calc(var(--gutter) + var(--scale)); padding-right: var(--gutter); }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 750; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.langs { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.langs button { font: 700 14px/1 var(--body); padding: 8px 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.tabs { display: flex; gap: 4px; box-shadow: inset 0 -2px 0 var(--line); overflow-x: auto; overflow-y: hidden; }
.tabs a { padding: 10px 14px; font: 700 16px/1.2 var(--body); color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--magenta); }
.badge { align-self: flex-start; font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--magenta); border: 1.5px solid var(--magenta); border-radius: 999px; padding: 6px 10px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 750; max-width: 13ch; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; max-width: 22ch; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; max-width: 62ch; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding-top: clamp(24px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.lead { font-size: 20px; color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 17px/1.1 var(--body); text-decoration: none; border: 2px solid var(--ink); color: var(--ink); }
.btn.primary { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.btn.primary:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.note { font-size: 15px; color: var(--muted); }
.hero-chart { position: relative; margin: 0; aspect-ratio: 520 / 560; }
.hero-chart .chart { width: 100%; height: 100%; border: 1.5px solid var(--ink); border-radius: 4px; display: block; }
.hero-chart .phone { position: absolute; width: 46%; right: 7%; bottom: -8%; border-radius: 22px; border: 6px solid var(--ink); box-shadow: 0 18px 40px rgba(14, 42, 60, .25); background: var(--paper); }
#course { stroke-dashoffset: 0; animation: plot 1.6s ease-out .2s both; }
@keyframes plot { from { stroke-dashoffset: 420; stroke-dasharray: 420 420; } to { stroke-dashoffset: 0; stroke-dasharray: 420 420; } }
@media (prefers-reduced-motion: reduce) { #course { animation: none; } }

section { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(16px, 3vw, 32px); }
.why h2, .school h2, .pilot h2, .about h2, .students h2 { margin-bottom: 28px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cols p { border-top: 2px solid var(--ink); padding-top: 14px; }

/* screenshots: one horizontal strip, like frames along a passage */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 24px; overflow-x: auto; padding: 4px calc(var(--gutter) + var(--scale)) 18px max(calc(var(--gutter) + var(--scale)), calc((100% - 1120px) / 2 + var(--gutter) + var(--scale))); scroll-snap-type: x mandatory; scroll-padding-left: max(calc(var(--gutter) + var(--scale)), calc((100% - 1120px) / 2 + var(--gutter) + var(--scale))); scrollbar-color: var(--sea) transparent; }
.gallery figure { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.gallery img { border-radius: 18px; border: 5px solid var(--ink); background: var(--paper); }
.gallery figcaption { font-size: 16px; color: var(--ink); }
.aside { margin-top: 14px; font-size: 16px; color: var(--muted); }
.students .sub { margin: -16px 0 24px; font-size: 16px; color: var(--muted); }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin: 0; }
.points div { border-left: 3px solid var(--sea); padding-left: 16px; }
.points dt { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 6px; }
.points dd { margin: 0; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.steps li { counter-increment: s; position: relative; padding: 52px 28px 0 0; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--magenta); color: var(--magenta); font: 700 17px/32px var(--display); text-align: center; background: var(--paper); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 40px; right: 4px; border-top: 2px dashed var(--magenta); }
.steps li:last-child::after { display: none; }

.about p { font-size: 19px; }

.contact { background: var(--ink); color: var(--paper); margin-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 80px); }
.contact .wrap { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.contact h2 { color: var(--paper); }
.contact .addr { font-size: 15px; color: #B7C9D6; }

.foot { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; font-size: 14.5px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink); }

/* legal pages */
.legal { max-width: 760px; padding-top: 24px; padding-bottom: 48px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); max-width: none; margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; max-width: none; }
.legal p, .legal li { font-size: 17px; }
.legal p + p { margin-top: 10px; }
.legal .binding { margin-top: 32px; font-weight: 700; font-size: 15px; color: var(--muted); }
.legal .legal-de { margin-top: 10px; padding-top: 18px; border-top: 2px solid var(--line); }
.legal .legal-de .de-title { font-size: 26px; margin-top: 0; }
.legal .legal-de h2 { font-size: 18px; margin-top: 20px; }
.legal .legal-de p { font-size: 15.5px; color: var(--muted); }
.legal ul { margin: 8px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal ul + p { margin-top: 10px; }
.legal .fine { margin-top: 28px; font-size: 15px; color: var(--muted); }
.va-optout { margin-top: 14px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 12px; background: var(--chart); }
.va-optout p { margin: 0; }
.va-optout .va-state { margin: 6px 0 12px; }
.va-optout .btn { min-height: 44px; padding: 10px 18px; font-size: 16px; background: transparent; cursor: pointer; }
.legal .legal-de .va-optout p { color: var(--ink); }
.legal .fill { background: #FFF2B8; padding: 0 4px; border-radius: 3px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-chart { max-width: 460px; margin-bottom: 40px; }
  .cols, .points, .steps { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .steps li { padding: 0 0 0 52px; }
  .steps li::after { display: none; }
}
@media (max-width: 480px) {
  :root { --scale: 6px; }
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .brand { font-size: 22px; } .brand img { width: 30px; height: 30px; }
}
