/* Learn Croatian Now site. Self-hosted fonts, no third parties. */
@font-face { font-family: "Noto Sans"; src: url("/fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/fonts/noto-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("/fonts/noto-sans-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --navy: #0b1a3a;
  --navy-2: #13285a;
  --teal: #4fd1bd;
  --teal-ink: #0d7a6b;
  --red: #d62839;
  --cream: #f7f3ec;
  --paper: #ffffff;
  --ink: #14213d;
  --muted: #5b6478;
  --line: #e4ded3;
  --radius: 18px;
  --wrap: 1120px;
  --prose: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.brand img { border-radius: 9px; }
.brand:hover { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: #d8e0f0; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,0.08); }
.site-nav .nav-cta { background: var(--teal); color: var(--navy); margin-left: 6px; }
.site-nav .nav-cta:hover { background: #7fe0d0; color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 899px) {
  .js .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 16px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
  .js .site-nav.is-open { display: flex; }
  .site-nav { flex-wrap: wrap; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
}

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn-teal { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.btn-teal:hover { background: #7fe0d0; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges a { display: block; }
.store-badges img { height: 48px; width: auto; }

/* Hero */
.hero { background: var(--navy); color: #e6ecf8; padding: 56px 0 72px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(79,209,189,0.35), rgba(79,209,189,0) 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { font-size: 1.15rem; color: #c9d3e8; max-width: 34em; }
.hero .store-badges { margin: 24px 0 12px; }
.hero .fineprint { font-size: 0.88rem; color: #9fb0cf; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.deadline-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: #fff; border-radius: 999px; padding: 7px 14px; font-size: 0.9rem; margin-bottom: 18px; }
.deadline-pill strong { color: var(--teal); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Language strip */
.langs { background: var(--paper); border-bottom: 1px solid var(--line); padding: 28px 0; }
.langs-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; justify-content: center; }
.langs-label { font-weight: 700; color: var(--muted); margin-right: 6px; }
.lang-chip { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.95rem; }
.lang-chip span { color: var(--muted); font-size: 0.85rem; margin-left: 4px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section-alt .card { background: var(--cream); }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--teal-ink); background: #e3f7f3; border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.card a.more { font-weight: 700; text-decoration: none; }
.card a.more::after { content: " →"; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature img { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 22px; box-shadow: 0 20px 40px rgba(11,26,58,0.15); }
.feature.flip .feature-media { order: 2; }
.feature ul { padding-left: 1.2em; }
.feature li { margin-bottom: 6px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-media { order: 0; }
  .feature img { max-width: 260px; }
}

.rule-box { background: var(--navy); color: #d8e0f0; border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.rule-box h2 { color: #fff; }
.rule-box ul { margin: 0; padding-left: 1.1em; }
.rule-box li { margin-bottom: 8px; }
.rule-box a { color: var(--teal); }
.rule-box a.btn-teal, .rule-box a.btn-teal:hover { color: var(--navy); }
.rule-box .src { font-size: 0.85rem; color: #9fb0cf; margin-top: 14px; }
@media (max-width: 860px) { .rule-box { grid-template-columns: 1fr; padding: 26px; } }

.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #d8e0f0; border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.section-alt .faq details { background: var(--cream); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--navy); list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details p:last-child { margin-bottom: 14px; }

/* Article / prose pages */
.page-head { background: var(--navy); color: #c9d3e8; padding: 48px 0 40px; }
.page-head h1 { color: #fff; max-width: 22em; }
.page-head .lead { font-size: 1.12rem; max-width: 40em; }
.crumbs { font-size: 0.88rem; margin-bottom: 14px; color: #9fb0cf; }
.crumbs a { color: #c9d3e8; }
.meta { font-size: 0.9rem; color: #9fb0cf; margin: 0; }
.meta a { color: #c9d3e8; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 48px 20px 24px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; background: var(--paper); border-left: 4px solid var(--teal); border-radius: 0 12px 12px 0; font-size: 1.08rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.96rem; background: var(--paper); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #eef1f7; color: var(--navy); }
.table-scroll { overflow-x: auto; }
.callout { background: #e3f7f3; border: 1px solid #b8e9df; border-radius: 14px; padding: 18px 20px; margin: 1.5em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { background: #fff4e5; border-color: #f5d7a8; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 2em; }
.toc strong { display: block; margin-bottom: 6px; color: var(--navy); }
.toc ol { margin: 0; }
.sources { font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5em; padding-top: 1.2em; }
.sources li { margin-bottom: 0.5em; }
.lang-switch { display: inline-block; margin-top: 14px; font-size: 0.92rem; color: #c9d3e8; }
.lang-switch a { color: var(--teal); font-weight: 700; }
.inline-cta { background: var(--navy); color: #d8e0f0; border-radius: var(--radius); padding: 26px; margin: 2em 0; }
.inline-cta h3 { color: #fff; margin-top: 0; }
.inline-cta .store-badges { margin-top: 14px; }

/* Alphabet */
.alphabet { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 1.2em 0 2em; }
.letter { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.letter b { display: block; font-size: 1.6rem; color: var(--navy); line-height: 1.1; }
.letter span { display: block; font-size: 0.85rem; color: var(--muted); }
.letter.special { border-color: var(--teal); background: #effbf8; }

/* Practice questions */
.q { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; }
.q h3 { font-size: 1.05rem; margin: 0 0 8px; }
.q ol { list-style: upper-alpha; margin: 8px 0; }
.q details summary { cursor: pointer; font-weight: 700; color: var(--teal-ink); }
.q details p { margin: 8px 0 0; }
.notice-card { font-family: "Noto Sans", system-ui, sans-serif; background: #fffdf7; border: 1px dashed #c9bfae; border-radius: 10px; padding: 12px 16px; margin: 8px 0; }

/* Blog list */
.post-list { display: grid; gap: 16px; max-width: 820px; }
.post-list .card h2 { font-size: 1.3rem; margin-bottom: 0.4em; }
.post-list .card h2 a { color: var(--navy); text-decoration: none; }
.post-list .card h2 a:hover { text-decoration: underline; }
.post-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb0cf; padding: 44px 0 36px; margin-top: 64px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #c9d3e8; }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 28px; padding-top: 18px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.notfound { text-align: center; padding: 96px 20px; }
.notfound .code { font-size: 5rem; font-weight: 800; color: var(--teal-ink); margin: 0; }

/* Hero video */
.hero-video { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
.hero-video video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 24px; background: #0b1a3a; box-shadow: 0 30px 60px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.12); }
.video-sound { position: absolute; right: 12px; bottom: 12px; background: rgba(11,26,58,0.8); color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 6px 12px; font: 600 0.82rem/1 "Noto Sans", system-ui, sans-serif; cursor: pointer; }
.video-sound:hover { background: var(--navy); }
@media (max-width: 860px) { .hero-video { max-width: 240px; } }

/* Screenshot carousel (App Store style) */
.shots-section { padding: 48px 0 8px; }
.shots-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.shots-head h2 { margin: 0; font-size: 1.5rem; }
.shots-nav { display: none; gap: 8px; }
.js .shots-nav { display: flex; }
.shots-nav button, .lightbox button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.shots-nav button:hover { background: var(--navy); color: #fff; }
.shots-nav button:disabled { opacity: 0.35; cursor: default; background: var(--paper); color: var(--navy); }
.shots { list-style: none; margin: 0; padding: 4px 2px 18px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shots li { flex: 0 0 auto; scroll-snap-align: start; }
.shot { display: block; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); cursor: zoom-in; width: 180px; }
.shot img { width: 100%; height: auto; }
.shot:hover, .shot:focus-visible { border-color: var(--teal); box-shadow: 0 8px 20px rgba(11,26,58,0.12); }
@media (max-width: 640px) {
  .shot { width: 150px; }
  .js .shots-nav { display: none; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; gap: 16px; }
.lightbox::backdrop { background: rgba(5, 12, 28, 0.88); }
.lb-img { max-height: 88vh; width: auto; max-width: min(88vw, 420px); border-radius: 22px; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 640px) {
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 20px; }
  .lightbox .lb-prev { left: calc(50% - 56px); }
  .lightbox .lb-next { right: calc(50% - 56px); }
  .lb-img { max-height: 80vh; }
}

/* Article cards and banners */
.article-grid { align-items: stretch; }
.article-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease; }
.section-alt .article-card { background: var(--paper); }
.article-card:hover, .article-card:focus-visible { color: var(--ink); box-shadow: 0 14px 30px rgba(11,26,58,0.12); transform: translateY(-2px); }
.article-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9e3d8; }
.article-card-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.article-card h2, .article-card h3 { font-size: 1.2rem; margin: 0; color: var(--navy); }
.article-card .post-meta { margin: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.03em; color: var(--teal-ink); }
.article-card .excerpt { color: var(--muted); font-size: 0.97rem; }
.article-card .more { margin-top: auto; padding-top: 4px; font-weight: 700; color: var(--teal-ink); }
.article-card .more::after { content: " →"; }
.see-all { margin: 22px 0 0; font-weight: 700; }
.see-all a { text-decoration: none; }
.article-banner { margin: 0 0 2em; }
.article-banner img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); background: #e9e3d8; }
@media (prefers-reduced-motion: reduce) { .article-card { transition: none; } .article-card:hover { transform: none; } }

/* Adapted course */
.adapt-steps { list-style: none; counter-reset: step; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adapt-steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.adapt-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--teal); font-weight: 800; font-size: 0.9rem; margin-bottom: 4px; }
.adapt-steps strong { color: var(--navy); }
.adapt-steps span { color: var(--muted); font-size: 0.95rem; }
.courses-title { font-size: 1.3rem; margin-bottom: 16px; }
.course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.course-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.course-card-body { padding: 20px 22px 22px; }
@media (max-width: 960px) { .adapt-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .adapt-steps { grid-template-columns: 1fr; } }
