/* [APP NAME] website — shared tokens and components.
   Palette: warm cream, golden dough, cranberry red, deep navy. */
:root {
  --cream: #fff9f0;
  --card: #fffdf9;
  --dough: #f2c572;
  --dough-deep: #df9a3c;
  --cranberry: #c8102e;
  --cranberry-dark: #9e0c24;
  --navy: #1e2a3a;
  --forest: #2e7d32;
  --ink: #232a35;
  --muted: #5b6b82;
  --border: #efe4d3;
  --radius: 22px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  --maxw: 1080px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; }

/* Skip link + focus */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--cranberry);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 20px; }
.brand img, .brand svg { width: 38px; height: 38px; }
.main-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px;
  padding: 9px 13px; border-radius: 999px;
}
.main-nav a:hover { background: #fbe7eb; color: var(--cranberry); }
.nav-cta {
  background: var(--cranberry) !important; color: #fff !important;
}
.nav-cta:hover { background: var(--cranberry-dark) !important; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center;
}
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 900; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--cranberry);
  background: #fbe7eb; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.5px; margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--muted); font-weight: 600; margin: 0 0 26px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 17px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  min-height: 56px;
}
.btn-primary { background: var(--cranberry); color: #fff; }
.btn-primary:hover { background: var(--cranberry-dark); }
.btn-secondary { background: transparent; color: var(--cranberry); border-color: var(--cranberry); }
.btn-secondary:hover { background: #fbe7eb; }
.btn-quiet { background: var(--navy); color: #fff; }
.micro-note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Sections + cards */
section.block { padding: 44px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.3px; margin: 0 0 10px; }
.section-sub { color: var(--muted); font-weight: 600; margin: 0 0 26px; max-width: 44em; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .icon { font-size: 34px; }
.steps { counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px 18px 66px; position: relative; box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cranberry); color: #fff; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

/* Phrase of the day / speech bubble */
.speech {
  background: var(--navy); color: #fff; border-radius: 26px;
  padding: 30px; position: relative;
}
.speech .pl { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin: 0; }
.speech .en { color: var(--dough); font-weight: 700; margin: 6px 0 0; }
.speech .pron { color: #b9c4d4; font-size: 15px; margin: 8px 0 0; }

/* Phone mockup */
.phone-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.phone {
  width: 250px; border-radius: 44px; background: #111; padding: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22); flex: 0 0 auto;
}
.phone .screen {
  border-radius: 34px; overflow: hidden; background: var(--cream);
  min-height: 440px; display: flex; flex-direction: column;
}
.phone img.app-art { width: 100%; display: block; }

/* Dictionary */
.dict-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.dict-controls input[type="search"] {
  flex: 1 1 240px; font-size: 17px; padding: 14px 18px;
  border-radius: 999px; border: 2px solid var(--border); background: #fff; font-family: inherit;
}
.dict-controls select {
  font-size: 15.5px; padding: 12px 14px; border-radius: 999px;
  border: 2px solid var(--border); background: #fff; font-family: inherit; font-weight: 700;
}
.dict-result {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 16px 18px; margin-bottom: 10px;
}
.dict-result .pl { font-size: 21px; font-weight: 900; }
.dict-result .en { color: var(--cranberry); font-weight: 800; }
.dict-result .meta { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.dict-result .meaning { margin: 4px 0 0; color: var(--muted); }
.dict-result table { border-collapse: collapse; margin-top: 8px; font-size: 14.5px; }
.dict-result th, .dict-result td { border: 1px solid var(--border); padding: 5px 10px; text-align: left; }
.dict-result th { background: #fdf3e3; }
.status-line { color: var(--muted); font-weight: 600; padding: 18px 4px; }

/* FAQ */
.faq-group { margin-bottom: 30px; }
.faq-group details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 18px; margin-bottom: 10px;
}
.faq-group summary { font-weight: 800; cursor: pointer; font-size: 17px; }
.faq-group details p { color: var(--muted); margin: 8px 0 2px; }

/* Blog */
.post-list { display: grid; gap: 16px; }
.post-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit;
}
@media (max-width: 560px) { .post-card { grid-template-columns: 1fr; } }
.post-card:hover { border-color: var(--cranberry); }
.post-card h3 { margin: 0 0 6px; }
.post-card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.post-thumb { border-radius: 14px; background: #fdf3e3; min-height: 100px; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.post-meta { font-size: 13.5px; color: var(--muted); font-weight: 700; }
article.post p { margin: 0 0 1.1em; }
article.post h2 { margin-top: 1.6em; }
.breadcrumbs { font-size: 14.5px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--cranberry); }
.phrase-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.phrase-table th, .phrase-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.phrase-table th { background: #fdf3e3; }
.phrase-table td.pl { font-weight: 800; }

/* Legal */
.toc { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin-bottom: 26px; }
.toc ol { margin: 6px 0; padding-left: 22px; }
.placeholder-flag {
  background: #fef3c7; border: 2px dashed #d97706; border-radius: 12px;
  padding: 10px 14px; font-weight: 700; font-size: 15px; margin: 12px 0;
}

/* Illustrated banner backdrops (Warsaw skyline, Kraków market square) */
.banner {
  border-radius: 28px;
  background-size: cover;
  background-position: center;
  padding: clamp(28px, 5vw, 56px);
  margin: 28px 0 8px;
  box-shadow: var(--shadow);
}
.banner-warsaw { background-image: url('../img/banner-warsaw.jpg'); }
.banner-krakow { background-image: url('../img/banner-krakow.jpg'); }
.banner-panel {
  background: rgba(255, 253, 249, 0.93);
  border-radius: 20px;
  padding: clamp(20px, 3.5vw, 36px);
}
@media (max-width: 820px) {
  .banner { padding: 20px; }
}

/* Wide layout: content breathes edge-to-edge like the reference */
:root { --maxw: 1280px; }
.hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.lang-switch select {
  font-family: inherit; font-weight: 800; font-size: 14.5px;
  padding: 10px 12px; border-radius: 999px;
  border: 2px solid var(--border); background: #fff; color: var(--ink);
  margin-right: 8px; min-height: 48px;
}

/* Store badges */
.store-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #111; color: #fff; text-decoration: none;
  border-radius: 12px; padding: 10px 18px 10px 14px; min-height: 60px;
  border: 1px solid #333;
}
.store-badge small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: #ccc; }
.store-badge strong { display: block; font-size: 19px; font-weight: 800; }
.store-badge.apple { position: relative; }
.store-badge .soon {
  position: absolute; top: -11px; right: -6px;
  background: var(--dough-deep); color: #fff;
  font-size: 11.5px; font-weight: 900; padding: 2px 10px; border-radius: 999px;
}

/* Floating language pill (WordPress theme header has no select) */
#lang-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
}
#lang-float select {
  font-family: inherit; font-weight: 800; font-size: 14.5px;
  padding: 12px 14px; border-radius: 999px; min-height: 52px;
  border: 2px solid var(--border); background: #fff; color: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); cursor: pointer;
}
/* CTA inside the WordPress block navigation */
.wp-block-navigation .nav-cta a,
a.nav-cta.wp-block-navigation-item__content {
  background: var(--cranberry) !important; color: #fff !important;
  border-radius: 999px !important; padding: 9px 18px !important;
}

/* Footer */
.site-footer { background: var(--navy); color: #dde5ef; margin-top: 60px; padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dde5ef; text-decoration: none; }
.site-footer a:hover { color: var(--dough); text-decoration: underline; }
.footer-brand { font-weight: 900; color: #fff; font-size: 19px; }
.copyright { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 14px; color: #aab6c8; }
