/* GlidePath design system — shared by glidepath-air (product site) and glidepath.ro.
   System fonts only, no third-party requests. Light and dark via prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0f1b2d;
  --ink-2: #3b4a5e;
  --muted: #56657a;
  --line: #d7dde5;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #e6edfc;
  --accent-text: #1a44bd;
  --warn-bg: #fff6e5;
  --warn-line: #e3b45c;
  --warn-ink: #6b4a06;
  --ok: #17663a;
  --focus: #1d4ed8;
  --frame: #111827;
  --frame-2: #1f2937;
  --chrome: #e7eaef;
  --chrome-ink: #4b5563;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 10px 30px rgba(15, 27, 45, .08);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-4: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius: 10px;
  --radius-lg: 16px;
  --max: 1160px;
  --measure: 68ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111b;
    --surface: #121a27;
    --surface-2: #182233;
    --ink: #e9eef6;
    --ink-2: #c4cedb;
    --muted: #9eabbd;
    --line: #2a3648;
    --accent: #7ea3ff;
    --accent-ink: #0b111b;
    --accent-soft: #1a2a4a;
    --accent-text: #9db8ff;
    --warn-bg: #2b2210;
    --warn-line: #8a6a24;
    --warn-ink: #f3d79a;
    --ok: #6fd39a;
    --focus: #9db8ff;
    --frame: #000000;
    --frame-2: #2b3446;
    --chrome: #1d2636;
    --chrome-ink: #b7c2d2;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--space-3); color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 750; max-width: 22ch; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p, ul, ol, dl { margin: 0 0 var(--space-4); }
p, li { max-width: var(--measure); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35rem; }
strong { font-weight: 650; }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
small, .small { font-size: var(--step--1); color: var(--muted); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: var(--space-2) var(--space-4);
  border: 2px solid var(--focus); border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-3); }

.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img, .brand svg { width: 32px; height: 32px; border-radius: 8px; }
.brand span small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav li + li { margin-top: 0; }
.nav a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.nav .nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.nav-toggle {
  display: none; margin-left: auto; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .8rem; cursor: pointer;
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: var(--space-3) 1rem var(--space-4); gap: 2px; }
  .nav a { padding: .7rem .8rem; }
  .no-js .nav { display: block; position: static; box-shadow: none; border: 0; }
}

/* Sections */
main { display: block; }
.section { padding: var(--space-8) 0; }
.section.tight { padding: var(--space-7) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: var(--space-6); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--space-2); }
.lead { font-size: var(--step-1); color: var(--ink-2); }
.muted { color: var(--muted); }

.hero { padding: var(--space-8) 0 var(--space-7); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-7); align-items: center; }
.hero h1 { margin-bottom: var(--space-4); }
.hero .lead { margin-bottom: var(--space-5); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

.status-pill {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line);
  margin-bottom: var(--space-4);
}
.status-pill::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .6rem 1.1rem; border-radius: 10px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; font-size: .98rem;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink-2); }

/* Grids and cards */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { margin-bottom: var(--space-3); }
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--accent); }
a.card .more { color: var(--accent-text); font-weight: 600; }

.tag { display: inline-block; font-size: .75rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag-flag { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.tag-ok { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

.note {
  border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin: var(--space-5) 0;
}
.note p, .note li { color: var(--warn-ink); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note strong { color: var(--warn-ink); }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: var(--space-4); }
.steps > li { counter-increment: s; position: relative; padding-left: 3rem; max-width: none; margin: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--accent-soft); color: var(--accent-text);
}
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.crosslist { list-style: none; padding: 0; }
.crosslist li { padding-left: 1.6rem; position: relative; }
.crosslist li::before { content: "–"; position: absolute; left: .2rem; color: var(--muted); font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
th { font-weight: 650; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }

/* Feature rows: text + media */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; padding: var(--space-6) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse > :first-child { order: 2; }
.feature.desk { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
@media (max-width: 860px) {
  .feature, .feature.desk { grid-template-columns: 1fr; gap: var(--space-5); }
  .feature.reverse > :first-child { order: 0; }
}

/* Screenshots */
figure { margin: 0; }
.shot figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); text-align: center; max-width: none; }
.phone {
  width: min(300px, 78vw); margin-inline: auto; padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, var(--frame-2), var(--frame)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; border-radius: 12px; background: #000; z-index: 1;
}
.phone img { border-radius: 36px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: #0e1726; }
.phone.sm { width: min(240px, 70vw); border-radius: 38px; padding: 8px; }
.phone.sm::before { top: 14px; width: 60px; height: 16px; }
.phone.sm img { border-radius: 30px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.phones.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.phones.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phones .phone { width: 100%; max-width: 260px; }
@media (max-width: 960px) { .phones, .phones.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .phones, .phones.four, .phones.two { grid-template-columns: 1fr; } .phones .phone { max-width: 240px; } }

.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.browser-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--chrome); border-bottom: 1px solid var(--line); }
.browser-bar .dots { display: inline-flex; gap: 6px; flex: none; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.browser-bar .url { flex: 1; min-width: 0; font: 500 .78rem/1.2 var(--font); color: var(--chrome-ink); background: var(--surface); border-radius: 6px; padding: .3rem .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top left; }

.doc { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 4%; }
.doc img { width: 100%; }

/* Gallery of desktop shots */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* Stage / facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-6); }
.facts div { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem var(--space-4); }
.facts strong { display: block; color: var(--ink); }
.facts span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } }

.breadcrumb { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--muted); }
.page-head { padding: var(--space-7) 0 var(--space-5); }
.page-head .lead { max-width: 64ch; }

.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { margin-bottom: 0; }

.source { font-size: var(--step--1); color: var(--muted); }
.stat { font-size: var(--step-3); font-weight: 750; color: var(--ink); line-height: 1.1; display: block; margin-bottom: var(--space-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-7) 0 var(--space-6); margin-top: var(--space-7); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.footer-grid h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--space-3); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li + li { margin-top: .35rem; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Language switch (glidepath.ro) */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: var(--space-3); }
.lang-switch button { font: 600 .85rem/1 var(--font); padding: .5rem .7rem; min-height: 36px; border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Founder block (About, glidepath.ro) */
.founder { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.founder img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.founder .role { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--space-3); }
.quote { border-left: 3px solid var(--accent); padding: .2rem 0 .2rem var(--space-4); margin: var(--space-4) 0; color: var(--ink); font-size: var(--step-1); }
.quote p { margin: 0; }
@media (max-width: 520px) { .founder { grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); } .founder img { width: 64px; height: 64px; } }

@media (prefers-reduced-motion: no-preference) {
  .btn, a.card, .nav a { transition: filter .15s ease, border-color .15s ease, background-color .15s ease; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
}
