/* Roadwise – prezentačná stránka. Systémové písmo, bez externých zdrojov. */
:root {
  color-scheme: light dark;
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #eceffa;
  --text: #1a1d26;
  --text-2: #4a5161;
  --border: #dfe2e9;
  --primary: #3f5bd9;
  --primary-hover: #3249b8;
  --primary-text: #ffffff;
  --link: #3249b8;
  --header-bg: rgb(255 255 255 / 0.88);
  --shadow: 0 1px 2px rgb(16 24 64 / 0.06), 0 12px 32px rgb(16 24 64 / 0.12);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220;
    --surface: #171b2d;
    --surface-2: #1c2140;
    --text: #e8eaf2;
    --text-2: #a6b0c8;
    --border: #2a3050;
    --primary: #4a63e0;
    --primary-hover: #6179ee;
    --link: #9aa8ff;
    --header-bg: rgb(15 18 32 / 0.88);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--font); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p, li, figcaption { text-wrap: pretty; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: #b4c0ff; } }

.wrap { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--primary); color: var(--primary-text); padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 750; font-size: 1.15rem; text-decoration: none; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 550; padding: 0.4rem 0; }
.site-nav a:hover { color: var(--text); text-decoration: underline; }

/* Tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.25rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 650; text-decoration: none; text-align: center; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.btn--primary { background: var(--primary); color: var(--primary-text); }
.btn--primary:hover { background: var(--primary-hover); color: var(--primary-text); text-decoration: none; }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); text-decoration: none; }
.btn--lg { min-height: 3.25rem; padding-inline: 1.75rem; font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.eyebrow { margin: 0 0 0.75rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--text-2); max-width: 60ch; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.hero .wrap { display: grid; gap: clamp(2rem, 4vw, 3rem); justify-items: center; }
.hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 52rem; }
.hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.75rem); margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.hero .actions { justify-content: center; margin-top: 0.5rem; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.shot picture { display: block; }
.shot img { width: 100%; }
.shot--hero { width: min(100%, 1080px); }
.shot__link { display: block; cursor: zoom-in; }
.shot__link:focus-visible { outline-offset: -3px; }

/* Sekcie */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.75rem); margin-bottom: 1rem; }
.subhead { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin: clamp(3rem, 6vw, 5rem) 0 1.5rem; }

/* Funkcie */
.features { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.feature { display: grid; gap: 1.5rem; align-items: center; }
.feature__copy { min-width: 0; }
.feature h3 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem); margin-bottom: 0.75rem; }
.feature p { color: var(--text-2); }
.tag { display: inline-block; margin: 0 0 0.75rem; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--surface-2); color: var(--link); font-size: 0.82rem; font-weight: 700; }
.feature .tag { color: var(--link); }
.ticks { list-style: none; display: grid; gap: 0.5rem; margin-top: 1rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.4em; width: 0.55rem; height: 0.3rem; border-left: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(-45deg); }
@media (prefers-color-scheme: dark) { .ticks li::before { border-color: var(--link); } }
@media (min-width: 62rem) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); }
  .feature:nth-child(even) .feature__copy { order: 2; }
}

/* Karty */
.cards { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.section--alt .card { background: var(--bg); }
.card .icon { color: var(--link); margin-bottom: 0.75rem; }
.card h3, .card h4 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--text-2); }
.cards--tech { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cards--tech { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .cards--tech { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards--more { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cards--more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .cards--more { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Mobil */
.phones { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 0.25rem 1.5rem; justify-content: flex-start; }
.phone { margin: 0; flex: 0 0 min(70%, 15rem); scroll-snap-align: center; text-align: center; }
.phone picture { display: block; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.phone figcaption { margin-top: 0.9rem; font-weight: 650; color: var(--text-2); }
@media (min-width: 48rem) {
  .phones { overflow: visible; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); scroll-snap-type: none; }
  .phone { flex: 0 1 17rem; }
}

/* API / kód */
.api { display: grid; gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); align-items: center; }
.api h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.api p { color: var(--text-2); margin: 0; }
.code { margin: 0; padding: 1rem 1.25rem; background: #141830; color: #e8ecff; border-radius: 10px; font: 0.9rem/1.6 var(--mono); overflow-x: auto; max-width: 100%; }
.code code { font: inherit; white-space: pre; }
@media (min-width: 62rem) { .api { grid-template-columns: 1fr 1fr; } }

/* Demo */
.section--cta { padding-top: 0; }
.cta { text-align: center; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem); border-radius: 20px; background: linear-gradient(135deg, #3f5bd9, #6a45b8); color: #fff; }
.cta h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 1rem; }
.cta p { max-width: 42rem; margin-inline: auto; color: #eef0ff; }
.cta .btn--primary { background: #fff; color: #2f46c0; }
.cta .btn--primary:hover { background: #eef0ff; color: #2a3fae; }
.cta :focus-visible { outline-color: #fff; }

/* Pätička */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--text-2); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { padding: clamp(3rem, 10vw, 7rem) 0; min-height: 60vh; }
.notfound h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); margin-bottom: 1rem; }

/* Zväčšená snímka */
.lightbox { border: 0; padding: 0; margin: auto; max-width: min(96vw, 1360px); max-height: 94vh; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(8 10 20 / 0.82); }
.lightbox__img { max-width: min(96vw, 1360px); max-height: 86vh; width: auto; height: auto; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.lightbox__close { display: block; margin: 0 0 0.6rem auto; min-height: 2.5rem; padding: 0.4rem 1rem; border: 0; border-radius: 8px; background: #fff; color: #1a1d26; font: inherit; font-weight: 650; cursor: pointer; }

@media (max-width: 40rem) {
  .site-header { position: static; }
  .site-header__inner { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 0.5rem; }
  .site-nav { gap: 0.1rem 1rem; font-size: 0.92rem; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
