/* Driving Drill Planner — "Ploča za trening": a dark pine chalkboard for the hero and the screenshot
   strip, pale concrete for the reading parts, traffic-cone orange as the only accent, and the app's
   dashed lane line with a cone as the divider. Archivo ExtraBold + Manrope (self-hosted, OFL). */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/archivo-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/archivo-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/manrope-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --board: #1e5a45;
  --board-deep: #143d2f;
  --chalk: #f4f0e2;
  --chalk-soft: #cfd8cf;
  --concrete: #eff0ea;
  --concrete-deep: #e3e5dd;
  --card: #ffffff;
  --ink: #1c2320;
  --soft: #4b5551;
  --line: #d2d6cc;
  --pine: #1a6637;
  --cone: #ee6a24;
  --cone-light: #f7924f;
  --cone-dark: #a13f0b;
  --brick: #c23a2e;
  --ochre: #e0a228;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --text: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-underline-offset: 3px; }
a:hover { color: var(--cone-dark); }
:focus-visible { outline: 3px solid var(--cone); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--chalk); color: var(--ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* The cone triangle used as a bullet and in labels */
.cone { display: inline-block; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--cone); margin-right: 10px; vertical-align: -1px; }

/* ---------- Board (hero background) ---------- */
.board {
  background-color: var(--board);
  background-image: linear-gradient(90deg, rgba(20, 61, 47, 0.92) 0%, rgba(20, 61, 47, 0.72) 48%, rgba(20, 61, 47, 0.15) 100%), url("/assets/app/board-1600.webp");
  background-size: cover;
  background-position: center right;
  color: var(--chalk);
}
.board-slim { background-image: linear-gradient(90deg, rgba(20, 61, 47, 0.9), rgba(20, 61, 47, 0.6)), url("/assets/app/board-900.webp"); }

.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--chalk); text-decoration: none; font: 800 1.15rem/1.1 var(--display); }
.brand img { border-radius: 10px; }
.brand:hover { color: var(--chalk); }
.nav { display: flex; gap: 6px; list-style: none; flex-wrap: wrap; }
.nav a { display: inline-block; padding: 10px 12px; color: var(--chalk); text-decoration: none; font-weight: 700; font-size: 0.95rem; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(244, 240, 226, 0.14); color: var(--chalk); }

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: end; padding-top: 40px; }
.hero-text { padding-bottom: 72px; }
.kicker, .label { font: 700 0.82rem/1.3 var(--text); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.kicker { color: var(--chalk-soft); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); color: var(--chalk); margin-bottom: 24px; }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--cone-light); }
.lead { font-size: 1.15rem; max-width: 36em; }
.hero .lead { color: var(--chalk); opacity: 0.94; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; margin-top: 30px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 700; font-size: 0.95rem; color: var(--chalk); }
.facts li::before { content: ""; display: inline-block; width: 18px; height: 3px; background: var(--cone-light); margin-right: 8px; vertical-align: middle; border-radius: 2px; }

.hero-shot { align-self: end; }
.shot { margin: 0; }
.shot img { border-radius: 18px; border: 6px solid var(--chalk); background: var(--chalk); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.shot-hero { max-width: 340px; margin-left: auto; margin-bottom: -96px; position: relative; }
.shot-hero img { border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }

/* Google Play button (disabled until the store URL is set) */
.play { display: inline-flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 8px 22px; border-radius: 10px; background: var(--chalk); color: var(--ink); text-decoration: none; border: 2px solid var(--chalk); }
.play:hover { background: #fff; color: var(--ink); }
.play-small { font-size: 0.78rem; font-weight: 500; line-height: 1.2; }
.play-big { font: 800 1.15rem/1.2 var(--display); }
.play-soon { background: transparent; color: var(--chalk); border-style: dashed; cursor: default; }
.final .play-soon { color: var(--ink); border-color: var(--ink); }

/* ---------- Lane divider ---------- */
.lane { height: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 34px, transparent 34px 56px); position: relative; margin-left: 46px; }
.lane::before { content: ""; position: absolute; left: -38px; top: -12px; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 20px solid var(--cone); }

/* ---------- Loop: four numbered steps ---------- */
.loop { padding: 140px 0 72px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 36px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 6px dashed var(--line); }
.step { padding: 26px 22px 6px 0; position: relative; }
.step::before { content: ""; position: absolute; top: -17px; left: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid var(--cone); }
.step-n { display: block; font: 800 3.4rem/1 var(--display); color: transparent; -webkit-text-stroke: 2px var(--pine); margin-bottom: 14px; }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--soft); margin: 0; }

/* ---------- Feature stories ---------- */
.story { padding: 64px 0; border-top: 1px solid var(--line); }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-flip .story-text { order: 2; }
.story .label { color: var(--cone-dark); }
.story h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.story-text > p { color: var(--soft); max-width: 34em; }
.points { list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.points li { padding-left: 30px; position: relative; font-weight: 500; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 18px; height: 4px; background: var(--pine); border-radius: 2px; }
.results { list-style: none; display: grid; gap: 10px; margin: 8px 0 0; }
.result { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 12px 16px; border-radius: 10px; border-left: 8px solid; background: var(--card); }
.result strong { font-family: var(--display); font-size: 1.05rem; }
.result span { color: var(--soft); font-size: 0.95rem; }
.result-fail { border-color: var(--brick); }
.result-hint { border-color: var(--ochre); }
.result-solo { border-color: var(--pine); }
.story-text, .story-shots, .hero-text, .hero-shot { min-width: 0; }
.story-shots { display: flex; justify-content: center; gap: 24px; }
.story-shots .shot { flex: 0 1 300px; min-width: 0; }
.shots-1 .shot { flex-basis: 320px; }
.shots-2 .shot:nth-child(2) { margin-top: 64px; }
.story-shots .shot img { border-color: var(--card); box-shadow: 0 14px 34px rgba(28, 35, 32, 0.16); }

/* ---------- Screenshot strip on the board ---------- */
.gallery { background: var(--board-deep) url("/assets/app/board-900.webp") center / cover; padding: 72px 0 80px; color: var(--chalk); }
.chalk { color: var(--chalk); margin-bottom: 10px; }
.gallery-intro { color: var(--chalk-soft); }
.strip { display: flex; gap: 22px; overflow-x: auto; padding: 20px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 18px; scroll-snap-type: x mandatory; scrollbar-color: var(--cone-light) transparent; }
.strip .shot { flex: 0 0 auto; width: 236px; scroll-snap-align: start; }

/* ---------- Honest box ---------- */
.honest { padding: 72px 0; }
.honest-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.honest h2 { font-size: 1.9rem; }
.honest ul { list-style: none; display: grid; gap: 14px; }
.honest li { padding-left: 30px; position: relative; }
.honest li::before { content: ""; position: absolute; left: 0; top: 0.35em; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--cone); }
.privacy-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 22px; }
.privacy-card h2 { font-size: 1.5rem; }
.privacy-card ul { margin-bottom: 16px; }
.privacy-card a { font-weight: 700; }

/* ---------- Final CTA ---------- */
.final { background: var(--concrete-deep); padding: 48px 0; }
.final-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.final-inner img { border-radius: 22px; }
.final-text { flex: 1 1 320px; }
.final h2 { font-size: 1.8rem; margin-bottom: 6px; }
.final p { margin: 0; color: var(--soft); }

/* ---------- Footer ---------- */
.foot { padding: 34px 0 40px; background: var(--concrete); }
.foot .lane { max-width: calc(var(--wrap) - 86px); margin: 0 auto 30px; margin-left: max(66px, calc((100vw - var(--wrap)) / 2 + 66px)); }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-small { color: var(--soft); font-size: 0.9rem; margin: 8px 0 0; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-links a { display: inline-block; padding: 8px 0; font-weight: 700; }

/* ---------- Text pages ---------- */
.page { padding: 56px 0 72px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose .label { color: var(--cone-dark); }
.prose .lead { color: var(--soft); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1em; }
.numbered li { margin-bottom: 0.6em; }
.muted { color: var(--soft); font-size: 0.92rem; margin-top: 2em; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style-position: outside; }
details p { color: var(--soft); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-text { padding-bottom: 28px; }
  .shot-hero { margin: 0 auto -120px; max-width: 280px; }
  .loop { padding-top: 160px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .story-inner, .honest-inner { grid-template-columns: 1fr; gap: 32px; }
  .story-flip .story-text { order: 0; }
  .board { background-image: linear-gradient(180deg, rgba(20, 61, 47, 0.9), rgba(20, 61, 47, 0.8)), url("/assets/app/board-900.webp"); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand span { font-size: 1.02rem; }
  .nav a { padding: 10px 8px; font-size: 0.9rem; }
  .steps { grid-template-columns: 1fr; }
  .story { padding: 48px 0; }
  .story-shots { gap: 14px; }
  .shots-2 .shot:nth-child(2) { margin-top: 40px; }
  .strip .shot { width: 200px; }
  .lane { margin-left: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
