/* CEI Reader RO – ceireader.ro. Plain CSS, no JavaScript, no external resources. */
:root {
  --navy: #0B2545;
  --navy-2: #16407A;
  --blue: #1F6FEB;
  --blue-soft: #E8F0FE;
  --bg: #F6F8FB;
  --card: #FFFFFF;
  --text: #0F1B2D;
  --muted: #5B6470;
  --border: #E1E6EF;
  --gold: #E8B54B;
  --green: #1B8A5A;
  --red: #CE1126;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; color: var(--navy); }
h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.5px; }
h2 { font-size: clamp(24px, 3.5vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
.wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 18px; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--blue); }
.lang { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 13px !important; line-height: 1.2; }
@media (max-width: 720px) { .nav-links a:not(.lang) { display: none; } }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-2), var(--navy)); color: #fff; padding: 56px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 18px; color: rgba(255,255,255,0.86); max-width: 560px; }
.hero .mark { width: min(100%, 440px); height: auto; aspect-ratio: 900 / 658; margin: 0 auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.35)); }
.badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 24px 0 10px; }
.badges a { display: inline-block; line-height: 0; }
.badge-apple, .badge-google { height: 54px; width: auto; }
.hero .note { color: rgba(255,255,255,0.7); font-size: 14px; }
.hero .note strong { color: #fff; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero .lead { margin: 0 auto 8px; }
  .badges { justify-content: center; }
  .hero .mark { width: min(68%, 300px); order: -1; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
section.alt .feature { background: var(--bg); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* Tutorial steps */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step:nth-child(even) .figure { order: -1; }
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--muted); }
.step .warn { display: flex; gap: 10px; align-items: flex-start; background: #FFF6E5; border: 1px solid #F2C97D; color: #7A4B00; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-top: 10px; }
.step .warn svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.figure { min-width: 0; background: var(--bg); border-radius: 12px; padding: 18px; display: grid; place-items: center; min-height: 220px; }
.figure svg { width: min(100%, 340px); height: auto; }
@media (max-width: 760px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .figure { order: 0; }
}

/* FAQ */
.faq { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: start; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
section.alt details { background: var(--bg); }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-weight: 800; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 16px; margin: 0; }
details p + p { margin-top: -8px; }

/* Privacy strip */
.privacy-strip { background: var(--navy); color: #fff; }
.privacy-strip .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.privacy-strip h2 { color: #fff; }
.privacy-strip p { color: rgba(255,255,255,0.8); margin: 0; }
.btn { display: inline-block; background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; padding: 12px 20px; border-radius: 12px; }
.btn:hover { background: var(--blue-soft); }
@media (max-width: 720px) { .privacy-strip .wrap { grid-template-columns: 1fr; } }

/* Footer */
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
footer a { color: var(--muted); }
footer .legal { margin-top: 24px; font-size: 12px; color: #8A93A3; border-top: 1px solid var(--border); padding-top: 16px; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }

/* Text pages (privacy) */
.doc { max-width: 800px; padding: 48px 0 64px; }
.doc h1 { border-bottom: 3px solid var(--blue); padding-bottom: 10px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; background: var(--card); }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px; vertical-align: top; text-align: left; }
.doc th { background: var(--blue-soft); }
.doc .todo { background: #FFF6E5; border: 1px solid #F2C97D; padding: 8px 12px; border-radius: 8px; }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.doc .toc a { margin-right: 14px; }

/* Blog */
.post { max-width: 760px; padding: 40px 0 64px; }
.post h1 { font-size: clamp(28px, 4vw, 40px); }
.post .meta, .post .crumbs { color: var(--muted); font-size: 14px; }
.post .crumbs { margin-bottom: 18px; }
.post .crumbs a { color: var(--muted); }
.post .meta { margin-bottom: 22px; }
.post .lead { font-size: 19px; color: var(--muted); margin-bottom: 24px; }
.post h2 { font-size: 24px; margin-top: 36px; }
.post h3 { font-size: 18px; margin-top: 24px; }
.post p, .post li { font-size: 17px; line-height: 1.7; }
.post ul, .post ol { padding-left: 22px; margin: 0 0 14px; }
.post li { margin-bottom: 6px; }
.post .callout { background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 12px; padding: 14px 18px; margin: 24px 0; font-size: 16px; }
.post .callout.warn { border-left-color: #E0A100; background: #FFF9EC; }
.cta { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 26px; margin: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.cta h3 { color: #fff; margin: 0 0 6px; }
.cta p { color: rgba(255,255,255,0.8); margin: 0; font-size: 15px; }
.cta .badges { margin: 0; }
.related { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 22px; }
.related h2 { font-size: 20px; margin-top: 0; }
.related ul { padding-left: 20px; }
.posts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-card h3 { margin: 0; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.post-card .meta { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .cta { grid-template-columns: minmax(0, 1fr); } }
