/* Self-hosted Figtree variable font (latin + latin-ext), weights 300-900 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TOKENS — see DESIGN.md. Use these instead of new hex values.
   ============================================================ */
:root {
  --font: 'Figtree', system-ui, sans-serif;

  --bg: #FBF7EF;            /* warm off-white page background */
  --bg-deep: #F5EEE1;       /* footer, inset areas */
  --surface: #FFFFFF;       /* cards sit on --bg */
  --surface-hover: #F8F4EC;

  --title: #16233F;         /* navy: headings, primary text */
  --text: #4A5263;          /* body text */
  --text-muted: #7A8191;    /* captions, dates */
  --border: #EAE3D6;        /* warm hairline */
  --border-strong: #D9D0BF;

  --green: #4B7A5E;         /* brand accent, links */
  --green-dark: #2D5C42;
  --green-tint: #E9F3EC;    /* CTA card background */
  --green-line: #C5DFCF;
  --wa: #25D366;
  --wa-dark: #1EB458;
  --star: #F5A623;          /* review stars (the homepage's legacy color) */

  --r-card: 24px;
  --r-inner: 16px;
  --r-control: 14px;
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--title);
}
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--title); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

/* Display headings. Heavy and slightly tight, like the educato landing pages. */
.font-heading { font-family: var(--font); font-weight: 800; letter-spacing: -0.015em; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,239,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px,4vw,40px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--title);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--title); background: var(--surface); }
.nav-links a.active { background: var(--title); color: #FFFFFF; }
.nav-links a.active:hover { color: #FFFFFF; }
.nav-cta { background: var(--surface); border: 1px solid var(--border-strong); margin-left: 6px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--title); border-radius: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  padding: clamp(40px,6vw,64px) clamp(20px,4vw,40px) 0;
  margin-top: clamp(24px,4vw,48px);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px,5vw,64px);
  padding-bottom: clamp(32px,5vw,48px);
}
.footer-brand p { font-size: 14.5px; color: var(--text); line-height: 1.6; margin: 12px 0 0; max-width: 260px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; }
.footer-links strong { font-size: 12px; font-weight: 700; color: var(--title); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-links a { font-size: 14.5px; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--title); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; border-top: 1px solid var(--border-strong); }
.footer-bottom p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
/* A two-line pill (owner choice, 2026-10-10): the label says why to write, like the CTA card does.
   No overflow:hidden or animated pseudo-element, so WebKit has nothing to clip. */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 22px 8px 14px;
  background: var(--wa);
  border-radius: 999px;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35);
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.wa-float svg { flex: none; }
.wa-float:hover, .wa-float:focus-visible { color: #FFFFFF; background: var(--wa-dark); }
.wa-float:active { transform: scale(0.97); }
.wa-float-txt { display: flex; flex-direction: column; gap: 2px; }
.wa-float-txt b { font-size: 16px; font-weight: 700; }
.wa-float-txt small { font-size: 12.5px; font-weight: 600; opacity: 0.92; }
@media (max-width: 768px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-control);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  border: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--title); color: #FFFFFF; }
.btn-dark:hover { background: #22325A; color: #FFFFFF; }
.btn-wa { background: var(--wa); color: #FFFFFF; }
.btn-wa:hover { background: var(--wa-dark); color: #FFFFFF; }
.btn-outline { background: var(--surface); color: var(--title); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { background: var(--surface-hover); color: var(--title); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: clamp(48px,7vw,88px) clamp(20px,4vw,40px) clamp(24px,4vw,40px);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(32px,4.6vw,52px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--title); max-width: 760px; line-height: 1.08; }
.page-hero p { font-size: clamp(16px,1.7vw,19px); line-height: 1.6; color: var(--text); margin: 0; max-width: 620px; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.page-hero .result-cta { max-width: 620px; }

/* ============================================================
   INNER PAGE CONTENT
   ============================================================ */
.page-content { max-width: 1280px; margin: 0 auto; padding: clamp(24px,4vw,48px) clamp(20px,4vw,40px) clamp(48px,7vw,80px); }
.page-content h2 { font-size: clamp(22px,2.6vw,30px); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--title); }
.page-content p { font-size: 16.5px; line-height: 1.7; color: var(--text); margin: 0 0 16px; }
.page-content p:last-child { margin-bottom: 0; }
.service-section { padding: clamp(36px,5vw,56px) 0; border-bottom: 1px solid var(--border); }
.service-section:last-of-type { border-bottom: none; }

/* Generic white card on the warm background */
.card { background: var(--surface); border-radius: var(--r-card); padding: clamp(22px,3vw,32px); }

/* CTA card (WhatsApp) — one per page, at the top of the content */
.cta-card { background: var(--green-tint); border-radius: var(--r-card); padding: clamp(24px,3vw,32px); margin-bottom: 32px; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--title); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; flex-shrink: 0;
  font-family: var(--font);
}
.step-body h3 { font-size: 18px; font-weight: 700; margin: 10px 0 6px; color: var(--title); }
.step-body p { font-size: 15.5px; line-height: 1.65; color: var(--text); margin: 0; }
/* steps compact grid (homepage) */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; margin: 32px 0; }
.step-card { background: var(--surface); border-radius: var(--r-card); padding: 26px 22px; }
.step-card .step-num { width: 40px; height: 40px; font-size: 16px; margin-bottom: 14px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--title); }
.step-card p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; }

/* ============================================================
   STATS (proof bar)
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px; margin: 8px 0 40px; }
.stat-card { background: var(--surface); border-radius: var(--r-card); padding: 22px 20px; }
.stat-card strong { display: block; font-size: clamp(26px,3vw,34px); font-weight: 800; letter-spacing: -0.02em; color: var(--title); line-height: 1.1; }
.stat-card span { display: block; font-size: 14.5px; color: var(--text); margin-top: 6px; }

/* Feature/value cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin: 24px 0 8px; }
.feature-card { background: var(--surface); border-radius: var(--r-card); padding: 26px 24px; }
.feature-card .feature-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature-card h3 { font-size: 17.5px; font-weight: 700; margin: 0 0 6px; color: var(--title); }
.feature-card p { font-size: 15px !important; line-height: 1.6; color: var(--text); margin: 0 !important; }

/* ============================================================
   FAQ (accordion built on <details>)
   ============================================================ */
details { background: var(--surface); border-radius: var(--r-inner); margin-bottom: 8px; }
details summary {
  padding: 18px 20px;
  font-size: 16.5px; font-weight: 600; color: var(--title);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-radius: var(--r-inner);
}
details summary:hover { background: var(--surface-hover); }
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: ''; flex-shrink: 0; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateY(-3px) rotate(45deg);
}
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details > p, .details-body { font-size: 15.5px; line-height: 1.7; color: var(--text); padding: 0 20px 18px; margin: 0; }

/* /modele/: hero choice cards, the 11 parts as folded rows, "Mai departe" cards */
.section-gap { margin: 0 0 clamp(48px,7vw,72px); }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 26px; max-width: 980px; }
.pick-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; color: var(--title); text-decoration: none; }
.pick-card:hover { background: var(--surface-hover); color: var(--title); }
.pick-card strong { display: block; font-size: 16px; font-weight: 800; }
.pick-card small { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.pick-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--green-tint); color: var(--green-dark); display: grid; place-items: center; }
.pick [data-download-cta] { grid-column: 1 / -1; }
.anat { margin: 0 0 clamp(48px,7vw,72px); }
.anat-list { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 8px; }
.anat-row { margin: 0; }
.anat-row summary { justify-content: flex-start; gap: 14px; padding: 14px 18px; }
.anat-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--title); color: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.anat-txt { flex: 1; min-width: 0; }
.anat-txt strong { display: block; font-size: 16px; font-weight: 700; color: var(--title); }
.anat-txt small { display: block; font-size: 14px; font-weight: 400; color: var(--text); line-height: 1.45; margin-top: 2px; }
.anat-more { flex: none; font-size: 13.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.anat-row[open] .anat-more { visibility: hidden; }
.anat-body { padding: 0 18px 18px 62px; }
.legal-content .anat-full { color: var(--title); font-weight: 600; }
.anat-body .example, .anat-body .sample-toc { background: var(--bg); }
.legal-content .why { background: var(--green-tint); border-radius: var(--r-inner); padding: 14px 18px; font-size: 15px; }
.legal-content .note-small { font-size: 14.5px; color: var(--text-muted); margin-top: 16px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.more-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-card); padding: 20px 22px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.5; }
a.more-card:hover { background: var(--surface-hover); color: var(--text); }
.more-card strong { font-size: 17px; color: var(--title); }
.more-card .params { font-size: 13.5px; color: var(--text-muted); }
.more-card .params b { color: var(--title); font-weight: 700; }
.more-card .link-chips { margin-top: 4px; gap: 6px; }
.more-card .link-chips a { background: var(--bg); padding: 6px 12px; font-size: 13.5px; }
@media (max-width: 760px) {
  .pick { grid-template-columns: 1fr; gap: 8px; }
  .pick-card { padding: 12px 14px; }
  .more-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .anat-more { display: none; }
  .anat-row summary { align-items: flex-start; padding: 12px 14px; }
  .anat-row summary::after { margin-top: 10px; }
  .anat-body { padding: 0 14px 14px; }
}

/* Domain pages /domenii/<slug>/: hero cards, compact CTA, folded chapters, example strip, topic teaser
   (example section and hero cards: scripts/examples/pages.py; teaser: scripts/resources/topic_ideas.py) */
.pick-2 { grid-template-columns: repeat(2, minmax(0, 340px)); margin-top: 20px; }
.pick-thumb { flex: none; width: 42px; height: auto; border-radius: 4px; outline: 1px solid var(--border-strong); }
.cta-card.cta-compact { padding: 20px 22px; }
.cta-compact .cta-title { font-size: 17px; margin: 0 0 6px; }
.cta-compact .cta-text { font-size: 14.5px; margin: 0 0 14px; }
.legal-content .anat-lead { margin-bottom: 0; }
.legal-content .anat-txt h3 { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.35; }
/* /disertatie/: committee note inside a folded part, domain preview strip (the "all" card first) */
.legal-content .part-exp { font-size: 14.5px; }
.part-exp strong { color: var(--green-dark); }
.dom-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 10px -20px 8px; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none; }
.dom-strip::-webkit-scrollbar { display: none; }
.dom-card { flex: 0 0 38%; max-width: 170px; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 8px 8px 10px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.dom-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; margin-bottom: 6px; }
.dom-card b { font-size: 14.5px; color: var(--title); line-height: 1.3; }
.dom-card span { font-size: 12.5px; color: var(--text-muted); }
.dom-card.dom-all { justify-content: center; align-items: center; text-align: center; background: var(--green-tint); padding: 12px; }
.dom-card.dom-all b, .dom-card.dom-all span { color: var(--green-dark); }
.dom-card.dom-word img { aspect-ratio: 4 / 3; }
/* /domenii/: domains in groups, each group a strip of example pages (owner pick, 2026-10-13) */
.dh-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 6px; padding: 0 20px 6px; scrollbar-width: none; }
.dh-chips::-webkit-scrollbar { display: none; }
.dh-chips a { flex: none; display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--title); font-size: 14px; font-weight: 600; text-decoration: none; }
.dh-chips a:hover { background: var(--green-tint); }
@media (prefers-reduced-motion: no-preference) { .dh-chips a { transition: background-color .15s ease-out; } }
.dh-lead { font-size: 14.5px; color: var(--text-muted); margin: 0 0 4px; }
.dh-group { scroll-margin-top: 80px; }
.dh-group h2 { display: flex; align-items: baseline; gap: 8px; font-size: 21px; margin: 28px 0 10px; }
.dh-group h2 span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.dh-group .dom-strip { margin-top: 0; }
@media (min-width: 900px) { .dh-group .dom-card { flex-basis: 160px; } }
.dh-all { margin: 24px 0 0; font-weight: 700; }
.dh-all a { color: var(--green); }
.dh-faq { margin-top: 48px; }
/* /modele/: the domain strip inside the hero */
.page-hero .hero-strip-lead { font-size: 14.5px; font-weight: 700; color: var(--title); margin: 18px 0 0; }
.page-hero .dom-strip { margin-top: 10px; }
/* /blog/: guides grouped by topic (the thesis parts are the hero strip) */
.blog-group { max-width: 860px; margin: 0 auto 8px; }
.blog-group h2 { font-size: 22px; margin: 34px 0 12px; }
.blog-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 700px) { .blog-list { grid-template-columns: 1fr; } }
.blog-list .example-card .meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-group .anat-list { margin-top: 8px; }
.sv-list a { position: relative; padding-right: 34px; }
.sv-list a::after { position: absolute; right: 16px; top: 14px; }
.sv-list small { display: block; font-weight: 500; font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
/* Homepage (2026-10-10): examples strip in the hero, real theses on the right, sections with swipe strips */
.hero-grid.has-works { align-items: center; }
.hero-strip-wrap { padding: 8px clamp(20px,4vw,40px) 0; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.hero-strip-wrap .hero-strip-lead { font-size: 15px; font-weight: 700; color: var(--title); margin: 18px 0 0; }
.hero-strip-wrap .dom-strip, .home-sec .dom-strip { margin: 10px calc(-1 * clamp(20px,4vw,40px)) 0; padding-left: clamp(20px,4vw,40px); padding-right: clamp(20px,4vw,40px); scroll-padding: 0 clamp(20px,4vw,40px); }
.hero-facts { font-size: 14px; color: var(--text-muted); margin: 14px 0 0; line-height: 1.7; }
.hero-facts b { color: var(--title); }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; font-size: 14.5px; font-weight: 700; }
.hero-works { margin-top: 8px; }
.hw-lead { font-size: 14px; font-weight: 700; color: var(--title); margin: 0 0 10px; }
.hw-lead span { font-weight: 500; color: var(--text-muted); }
.hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hw-card { background: var(--surface); border-radius: var(--r-inner); padding: 8px 8px 10px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.hw-card:hover { background: var(--surface-hover); }
.hw-card img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 793; object-fit: cover; object-position: top; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; margin-bottom: 6px; }
.hw-card b { font-size: 14px; color: var(--title); line-height: 1.3; }
.hw-card span { font-size: 12.5px; color: var(--text-muted); }
.home-sec { padding: clamp(36px,6vw,64px) clamp(20px,4vw,40px) 0; }
.home-wrap { max-width: 1120px; margin: 0 auto; }
.home-wrap.hero-strip-wrap { max-width: 1200px; }
.home-sec h2 { font-size: clamp(26px,3.4vw,34px); margin: 0 0 14px; color: var(--title); }
.home-lead { color: var(--text-muted); max-width: 640px; margin: 0 0 6px; }
.home-more { margin: 14px 0 0; font-weight: 700; }
.home-sec .link-chips { margin-top: 14px; }
.step-rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.step-row { background: var(--surface); border-radius: var(--r-inner); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.step-row b { display: block; font-size: 16px; color: var(--title); margin-bottom: 4px; }
.step-row small { display: block; font-size: 14px; line-height: 1.5; color: var(--text); }
.home-what { margin-top: 4px; }
/* Long-form text on the homepage (owner, 2026-10-13): the guide and one block per domain */
.home-guide > * { max-width: 760px; }
.home-guide p { line-height: 1.65; margin: 0 0 12px; }
.home-guide h3 { font-size: 20px; color: var(--title); margin: 26px 0 8px; }
.home-guide .home-step { display: flex; align-items: center; gap: 12px; font-size: 19px; margin: 24px 0 8px; scroll-margin-top: 80px; }
.home-step .anat-num { flex: none; }
.home-links { font-size: 14px; font-weight: 700; }
.home-links a { color: var(--green-dark); }
.home-dom-group { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 28px 0 10px; scroll-margin-top: 80px; }
.home-dom-grid { display: grid; gap: 10px; }
.home-dom { background: var(--surface); border-radius: var(--r-inner); padding: 20px 22px; scroll-margin-top: 80px; }
.home-dom h3 { font-size: 18px; color: var(--title); margin: 0 0 8px; line-height: 1.3; }
.home-dom p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.home-dom .home-links { margin: 0; }
@media (min-width: 900px) { .home-dom-grid { grid-template-columns: 1fr 1fr; } }
.rev-strip, .txt-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 6px calc(-1 * clamp(20px,4vw,40px)) 0; padding: 0 clamp(20px,4vw,40px) 8px; scroll-padding: 0 clamp(20px,4vw,40px); scrollbar-width: none; }
.rev-strip::-webkit-scrollbar, .txt-strip::-webkit-scrollbar { display: none; }
.rev-card { flex: 0 0 78%; max-width: 330px; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.rev-card p { font-size: 14.5px; line-height: 1.55; margin: 0; flex: 1; }
.rev-card b { font-size: 14px; color: var(--title); }
.rev-card span { font-size: 13px; color: var(--text-muted); }
.rev-card .rev-stars { color: var(--star); letter-spacing: 2px; }
.txt-card { flex: 0 0 74%; max-width: 290px; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; }
a.txt-card:hover { background: var(--surface-hover); color: inherit; }
.txt-card b { font-size: 16px; color: var(--title); line-height: 1.3; }
.txt-card small { font-size: 13px; font-weight: 700; color: var(--green-dark); }
.txt-card p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--text); flex: 1; }
.txt-card .txt-more { font-size: 13.5px; font-weight: 700; color: var(--green-dark); }
.txt-card .anat-num { margin-bottom: 2px; }
.txt-card.txt-all { flex-basis: 40%; max-width: 170px; justify-content: center; align-items: center; text-align: center; background: var(--green-tint); }
.txt-card.txt-all b, .txt-card.txt-all span { color: var(--green-dark); }
@media (min-width: 801px) { .home-what { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 800px) {
  .hero-grid.has-works { grid-template-columns: 1fr; }
  .hero-works { margin-top: 18px; }
  .hw-card img { aspect-ratio: 3 / 4; }
  .hw-card b { font-size: 12.5px; }
  .hw-card span { font-size: 11.5px; }
  .step-rows { grid-template-columns: 1fr; }
  .step-row { flex-direction: row; align-items: flex-start; padding: 14px; }
}
@media (min-width: 900px) {
  .hero-strip-wrap .dom-card, .home-sec .dom-card { flex: 0 0 210px; max-width: 210px; padding: 10px 10px 12px; }
  .hero-strip-wrap .dom-card b, .home-sec .dom-card b { font-size: 16px; }
  .hero-strip-wrap .dom-card span, .home-sec .dom-card span { font-size: 13.5px; }
  .hero-strip-wrap .hero-strip-lead { font-size: 16.5px; }
  .hero-links { font-size: 15.5px; }
  .rev-card { flex: 0 0 360px; max-width: 360px; padding: 20px 22px; }
  .rev-card p { font-size: 15.5px; }
  .txt-card { flex: 0 0 340px; max-width: 340px; padding: 20px 22px; }
  .txt-card b { font-size: 17.5px; }
  .txt-card p { font-size: 15px; }
  .txt-card.txt-all { flex: 0 0 210px; max-width: 210px; }
  .step-row { padding: 20px; }
  .step-row b { font-size: 17px; }
  .step-row small { font-size: 15px; }
  .home-what .anat-txt strong { font-size: 17px; }
}
.ex-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 6px -20px 6px; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none; }
.ex-strip::-webkit-scrollbar { display: none; }
.ex-strip figure { flex: 0 0 42%; max-width: 200px; margin: 0; scroll-snap-align: start; background: var(--surface); border-radius: var(--r-inner); padding: 8px; }
.ex-strip a { display: block; }
.ex-strip img { display: block; width: 100%; height: auto; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.ex-strip.wide figure { flex-basis: 72%; max-width: 300px; }
.ex-strip figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 6px; line-height: 1.35; }
.legal-content .ex-lead { margin: 18px 0 8px; font-size: 15.5px; }
.legal-content .ex-hint { font-size: 13.5px; color: var(--text-muted); margin: 0 0 14px; }
.ex-dl { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border-radius: var(--r-inner); padding: 14px 16px; margin-bottom: 14px; }
.ex-dl span { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.ex-dl span a { font-weight: 700; }
.tt-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin: 6px 0 4px; }
.tt-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-inner); padding: 14px 16px; color: var(--title); text-decoration: none; }
.tt-card:hover { background: var(--surface-hover); color: var(--title); }
.tt-card strong { font-size: 15.5px; line-height: 1.35; }
.tt-card small { font-size: 13px; color: var(--text-muted); }
.tt-level { align-self: flex-start; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green-dark); }
.tt-level.tt-mediu { background: var(--bg-deep); color: var(--title); }
.tt-level.tt-ambitios { background: var(--title); color: var(--surface); }
.tt-more { font-weight: 700; }
.legal-content .related-label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 10px 0 0; }
@media (max-width: 760px) { .tt-grid { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 600px) { .pick-2 { grid-template-columns: 1fr; gap: 8px; } }

/* Blog guides with folded parts (/blog/structura-lucrare-licenta/ first, TODO.md declutter item 8) */
.legal-content .anat-txt h2 { font-size: 16.5px; font-weight: 700; margin: 0; line-height: 1.35; color: var(--title); scroll-margin-top: 90px; }
.anat-txt small { display: block; font-size: 14px; color: var(--text-muted); margin-top: 2px; font-weight: 400; }
.legal-content .phase-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin: 22px 0 8px; }
.list-tools { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.open-all, .part-next { all: unset; cursor: pointer; font-weight: 700; color: var(--green-dark); }
.open-all { font-size: 14px; background: var(--green-tint); padding: 8px 14px; border-radius: 999px; }
.part-next { display: inline-block; margin-top: 6px; font-size: 14.5px; padding: 6px 0; }
.toc-fold { padding: 0; }
.toc-fold > summary { padding: 16px 20px; font-size: 15px; font-weight: 700; }
.toc-fold nav { padding: 0 24px 14px; }
.toc-fold a { color: var(--title); font-weight: 500; }
.hero-date { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.page-hero p.hero-date { font-size: 13px; line-height: 1.4; color: var(--text-muted); font-weight: 500; margin: 10px 0 0; }
.fix-list { list-style: none; padding: 0; margin: 10px 0 0; }
.legal-content .fix-list li { background: var(--surface); border-radius: var(--r-inner); padding: 12px 16px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.45; }
.fx-bad { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.fx-bad::before { content: "✗ "; display: inline-block; margin-right: 4px; }
.fx-good { color: var(--title); font-weight: 600; }
.fx-good::before { content: "✓ "; color: var(--green); }
.rel-list { list-style: none; padding: 0; margin: 8px 0 0; }
.legal-content .rel-list li { margin: 0 0 8px; }
.rel-list a { display: block; background: var(--surface); border-radius: var(--r-inner); padding: 14px 16px; font-weight: 700; color: var(--title); text-decoration: none; }
.rel-list a::after { content: " →"; color: var(--green); }
.anat-body table { font-size: 13.5px; }
.wcard { display: flex; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--r-card); padding: 18px; margin: 0 0 24px; }
.wcard-pages { flex: none; display: flex; gap: 6px; }
.wcard-pages a { display: block; }
.wcard-pages img { display: block; width: 62px; height: auto; border-radius: 4px; outline: 1px solid var(--border-strong); }
.wcard-text { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wcard-text strong { font-size: 17px; color: var(--title); }
.wcard-text span { font-size: 14px; color: var(--text-muted); }
.part-shot { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--green-dark); }
.part-shot img { width: 84px; height: auto; border-radius: 4px; outline: 1px solid var(--border-strong); }
.part-shot.wide img { width: 150px; }

/* ============================================================
   DOCUMENT PREVIEW (/viewer.js, DESIGN.md "Document preview")
   A reader inside the page, under the tapped link (owner pick, 2026-10-11: no popup).
   ============================================================ */
.pv { position: relative; margin: 12px 0 18px; background: var(--surface); border-radius: var(--r-card); overflow: hidden; text-align: left; }
.pv-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.pv-close, .pv-arrow { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 999px; color: var(--title); cursor: pointer; background: var(--surface); }
.pv-close:hover, .pv-arrow:hover { background: var(--surface-hover); }
.pv-close:focus-visible, .pv-arrow:focus-visible, .pv-pages:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.pv-arrow:disabled { opacity: 0.3; cursor: default; }
.pv-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.pv-head strong { font-size: 15px; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-count { font-size: 13px; color: var(--text-muted); }
.pv-dl.btn { flex: none; gap: 5px; padding: 10px 14px; font-size: 14px; min-height: 44px; }
.pv-pages { position: relative; display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px; background: var(--bg-deep); scrollbar-width: none; }
.pv-pages::-webkit-scrollbar { display: none; }
.pv-page { flex: 0 0 86%; max-width: 520px; margin: 0; scroll-snap-align: center; }
.pv-page img { display: block; max-height: 72vh; width: auto; max-width: 100%; height: auto; margin: 0 auto; background: var(--surface); border-radius: 4px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; cursor: zoom-in; }
.pv-arrow { position: absolute; top: 55%; }
.pv-prev { left: 8px; }
.pv-next { right: 8px; }
/* A tap on a page: twice as large, scrolled inside the page frame; a second tap fits it again */
.pv-zoomed .pv-page { flex-basis: 100%; max-width: none; overflow: auto; max-height: 80vh; }
.pv-zoomed .pv-page img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
@media (max-width: 899px) { .pv-arrow { display: none; } }
@media (max-width: 560px) { .pv-dl.btn { padding: 10px 14px; font-size: 14px; } .pv-dl-kind { display: none; } .pv-head strong { font-size: 14px; } }
@media (min-width: 900px) { .pv-zoomed .pv-page img { width: 140%; } }
/* Slide viewer on /resurse/model-prezentare-powerpoint-licenta/: the template's slides with what to write and say,
   or a domain's example deck picked from the strip below it (prototype pick, 2026-10-11) */
.slide-viewer { background: var(--surface); border-radius: var(--r-card); padding: 12px; margin: 0 0 20px; scroll-margin-top: 80px; }
.legal-content .sv-lead { margin-top: -4px; }
.sv-stage { position: relative; }
.sv-img { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 619; border-radius: 8px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; background: var(--bg); }
.sv-nav { all: unset; box-sizing: border-box; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--title) 82%, transparent); color: var(--surface); display: grid; place-items: center; font-size: 26px; line-height: 1; }
.sv-nav:focus-visible, .sv-th:focus-visible, .sv-back button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sv-prev { left: 8px; }
.sv-next { right: 8px; }
.sv-count { position: absolute; right: 10px; bottom: 10px; background: color-mix(in srgb, var(--title) 82%, transparent); color: var(--surface); font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.legal-content ol.sv-notes { list-style: none; padding: 0; margin: 10px 2px 8px; min-height: 120px; }
.sv-notes li { display: none; margin: 0; }
.sv-notes li.on { display: block; }
.slide-viewer.is-ex .sv-notes { display: none; }
.legal-content .sv-notes h3 { font-size: 17px; margin: 0 0 6px; }
.legal-content .sv-notes p { font-size: 15px; margin: 0 0 4px; }
.legal-content .sv-notes p.sv-say { background: var(--green-tint); color: var(--green-dark); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.sv-ex { margin: 10px 2px 8px; min-height: 120px; }
.sv-ex[hidden], .sv-back[hidden] { display: none; }
.sv-ex-t { display: block; font-size: 17px; color: var(--title); margin: 0 0 6px; }
.legal-content .sv-ex p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.sv-back { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 14px; }
.sv-back button { all: unset; cursor: pointer; font-weight: 700; color: var(--green-dark); background: var(--green-tint); padding: 10px 14px; border-radius: 999px; }
.sv-rail { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.sv-rail::-webkit-scrollbar { display: none; }
.sv-th { all: unset; cursor: pointer; flex: 0 0 92px; position: relative; border-radius: 5px; outline: 2px solid transparent; outline-offset: 1px; }
.sv-th img { display: block; width: 100%; height: auto; border-radius: 5px; }
.sv-th span { position: absolute; left: 4px; top: 4px; font-size: 11px; font-weight: 700; background: var(--surface); color: var(--title); border-radius: 4px; padding: 1px 5px; }
.sv-th[aria-current="true"] { outline-color: var(--green); }
.dom-card.sv-card img { aspect-ratio: 16 / 9; }
.dom-card.sv-card[aria-current="true"] { outline: 2px solid var(--green); }
.sv-unis .txt-card:not(.txt-all) { flex-basis: 62%; max-width: 250px; }
.sv-unis .txt-card small { margin-top: auto; }
.legal-content .sv-note { font-size: 14px; color: var(--text-muted); }
.legal-content .anat-body ul { margin-bottom: 0; }
@media (max-width: 600px) {
  .sv-nav { width: 34px; height: 34px; font-size: 22px; background: color-mix(in srgb, var(--title) 60%, transparent); }
  .sv-prev { left: 4px; }
  .sv-next { right: 4px; }
}

@media (max-width: 600px) {
  .wcard { flex-direction: column; align-items: stretch; }
  .wcard-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .wcard-pages img { width: 100%; }
}

/* Topic idea pages /resurse/teme-licenta/<domeniu>/ and their hub card (generated by scripts/resources/topic_ideas.py) */
.page-hero p.hero-crumbs { font-size: 13px; font-weight: 600; color: var(--green); margin: 0 0 10px; }
.hero-crumbs a { color: var(--green); }
.level-why { font-size: 15.5px; }
.legal-content .topic-area-title { font-size: 17px; font-weight: 800; color: var(--title); margin: 28px 0 12px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.topic-hub-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; color: var(--text); text-decoration: none; }
.topic-hub-card:hover { background: var(--surface-hover); }
.topic-hub-title { font-size: 16px; font-weight: 800; color: var(--title); line-height: 1.3; }
.topic-hub-example { font-size: 14px; line-height: 1.5; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-hub-card .read-more { font-size: 14px; font-weight: 700; color: var(--green); margin-top: auto; }
@media (max-width: 600px) {
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .topic-hub-card { padding: 14px; min-height: 44px; }
  .topic-hub-title { font-size: 15px; }
  .topic-hub-example { display: none; }
}
.topic-ideas { margin: 16px 0 12px; }
.topic-idea summary { align-items: flex-start; }
.topic-idea summary::after { margin-top: 10px; }
.topic-idea-head { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.topic-idea-title { line-height: 1.45; }
.topic-idea-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 14px; font-weight: 600; line-height: 1; padding: 6px 11px; border-radius: 999px; background: var(--bg-deep); color: var(--text); }
.topic-idea-body { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; padding: 4px 20px 20px; font-size: 15.5px; line-height: 1.65; }
.topic-idea-body dt { font-weight: 700; color: var(--title); }
.topic-idea-body dd { margin: 0; color: var(--text); }
@media (max-width: 600px) {
  .topic-idea-body { grid-template-columns: 1fr; gap: 2px; }
  .topic-idea-body dd { margin-bottom: 12px; }
}

/* ============================================================
   PRICE TABLE
   ============================================================ */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; font-size: 15px; background: var(--surface); border-radius: var(--r-inner); overflow: hidden; }
.price-table th { text-align: left; padding: 14px 16px; background: var(--title); color: #FFFFFF; font-size: 14px; font-weight: 700; }
.price-table td { padding: 14px 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.price-table tr:last-child td { border-bottom: none; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(40px,6vw,80px); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14.5px; font-weight: 600; color: var(--title); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--title);
  background: var(--surface);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--title); }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; background: var(--surface); border-radius: var(--r-card); }
.contact-sidebar h2 { font-size: 18px; font-weight: 700; letter-spacing: 0; margin: 0 0 4px; color: var(--title); }
.contact-sidebar p { font-size: 15px; color: var(--text); margin: 0; line-height: 1.5; }

/* ============================================================
   BEFORE / AFTER
   ============================================================ */
.ba-wrap {
  background: var(--surface); border-radius: var(--r-card);
  padding: clamp(24px,4vw,40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.ba-col strong { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.ba-col.before strong { color: #C0392B; }
.ba-col.after strong { color: var(--green); }
.ba-col p { font-size: 15px; line-height: 1.75; color: var(--text); margin: 0; }
del { color: #C0392B; text-decoration: line-through; background: #FDECEA; padding: 0 2px; border-radius: 2px; }
ins { color: var(--green); text-decoration: none; font-style: normal; background: #E8F5EC; padding: 0 2px; border-radius: 2px; }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; margin-top: 36px; }
.blog-card {
  background: var(--surface); border-radius: var(--r-card);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit; border: 1.5px solid transparent;
}
.blog-card:hover { border-color: var(--border-strong); color: inherit; }
.blog-card time, .blog-card .meta { font-size: 13px; color: var(--text-muted); }
.blog-card h2, .blog-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: var(--title); margin: 0; line-height: 1.3; }
.blog-card p { font-size: 15px; line-height: 1.6; color: var(--text); margin: 0; }
.blog-card .read-more { font-size: 14px; font-weight: 700; color: var(--green); margin-top: auto; padding-top: 4px; }

/* Article layout */
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-muted); margin-top: 18px; }
.article-meta span + span::before { content: '·'; margin-right: 14px; }
.toc { background: var(--surface); border-radius: var(--r-card); padding: 22px 26px; margin: 0 0 36px; }
.toc strong { display: block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; }
.toc li { font-size: 15px !important; line-height: 1.5 !important; margin-bottom: 6px !important; break-inside: avoid; }
.toc a { color: var(--title); font-weight: 500; }
.toc a:hover { color: var(--green); }
.legal-content h2[id], .legal-content h3[id], .topic-hub-card[id] { scroll-margin-top: 80px; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border-radius: var(--r-card); padding: 24px 26px; margin-top: 44px; }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--title); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.author-box p { margin: 0 !important; }
.author-box .author-label { font-size: 13px !important; color: var(--text-muted) !important; }
.author-box .author-name { font-size: 17px !important; font-weight: 800; color: var(--title) !important; margin: 2px 0 6px !important; }
.related { margin-top: 44px; }
.related h2 { margin-top: 0 !important; }
.related .blog-grid { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.related .blog-card { padding: 22px; }
.related .blog-card h3 { font-size: 16.5px; margin: 0; }
.related .blog-card p { font-size: 14.5px; line-height: 1.55; margin: 0; }
/* Small "Servicii › Page" line above a service page title, and the CTA card text (classes for new pages) */
.breadcrumb-line { font-size: 13px; color: var(--green); font-weight: 600; margin: 0 0 10px; }
.breadcrumb-line a { color: var(--green); }
.cta-card .cta-title { font-size: 18px; color: var(--title); margin: 0 0 10px; }
.cta-card .cta-text { font-size: 15px; color: var(--text); margin: 0 0 20px; }
/* Trust facts under a page title (e.g. /preturi/) */
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.trust-chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14.5px; font-weight: 600; color: var(--title); }
.trust-chips svg { color: var(--green); flex: none; }
/* Contact block at the end of a page: WhatsApp button, never the phone number as text */
.contact-card { max-width: 860px; margin-top: 40px; }
.contact-card h2 { font-size: 22px; margin-top: 0; }
.contact-card .btn { margin-top: 6px; }
/* Card that sends visitors to proof (example theses, demo) */
.proof-card { margin: 40px 0; }
.proof-card h2 { margin-top: 0; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.link-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.link-chips a { background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 600; color: var(--title); }
.link-chips a:hover { background: var(--green-tint); color: var(--green-dark); }

/* Worked examples and sample documents inside articles */
.example { background: var(--surface); border-radius: var(--r-inner); padding: 18px 22px; margin: 0 0 18px; }
.price-summary { max-width: 760px; margin: 0 auto 32px; }
.example-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.legal-content .example p:last-child { margin-bottom: 0; }
.sample-toc { background: var(--surface); border-radius: var(--r-card); padding: 22px 26px; margin: 0 0 12px; }
.sample-toc .row { display: flex; gap: 8px; align-items: baseline; font-size: 15.5px; line-height: 1.9; color: var(--title); }
.sample-toc .row.lvl1 { font-weight: 700; }
.sample-toc .row.lvl2 { padding-left: 22px; color: var(--text); }
.sample-toc .row.lvl3 { padding-left: 44px; color: var(--text); font-size: 15px; }
.sample-toc .dots { flex: 1; border-bottom: 1.5px dotted var(--border-strong); transform: translateY(-5px); min-width: 24px; }
.sample-note { font-size: 13.5px !important; color: var(--text-muted) !important; margin-top: 0 !important; }

/* Free resources: download box and in-browser tools */
.download-box { background: var(--surface); border-radius: var(--r-card); padding: clamp(22px,3vw,30px); margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.download-box strong { display: block; font-size: 18px; color: var(--title); }
.download-box span { font-size: 14.5px; color: var(--text-muted); }
.legal-content .example-disclaimer { font-size: 14.5px; color: var(--text-muted); }
.tool { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px,3vw,30px); margin: 0 0 28px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; }
.tool .form-group { margin-bottom: 0; }
.tool .form-group select { padding: 12px 14px; border: 1.5px solid var(--border-strong); border-radius: 12px; font-size: 16px; font-family: inherit; color: var(--title); background: var(--surface); }
.tool .hint { font-size: 13px; color: var(--text-muted); }
.tool-result { background: var(--green-tint); border-radius: var(--r-inner); padding: 18px 20px; margin-top: 18px; }
.tool-result .label { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-dark); }
.tool-result .value { font-size: 16.5px; color: var(--title); line-height: 1.6; margin: 6px 0 12px; word-break: break-word; }
.tool-result .big { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -0.02em; color: var(--title); line-height: 1.1; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--green); flex-shrink: 0; }
.resource-type { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green-dark); background: var(--green-tint); border-radius: 999px; padding: 4px 10px; align-self: flex-start; }

/* Wide tables in articles scroll inside their box on narrow screens instead of widening the page. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll > table { min-width: 0; }

/* Cookie banner (funnel.js). Non-blocking; "Accept" and "Refuz" have equal weight. */
.cookie-banner { position: fixed; z-index: 300; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: var(--title);
  border-radius: var(--r-card); padding: 18px 20px; box-shadow: 0 12px 36px rgba(22,35,63,0.18); }
.cookie-banner p { font-size: 14px; line-height: 1.55; color: var(--text); margin: 0 0 12px; }
.cookie-banner p strong { display: block; color: var(--title); font-size: 15px; margin-bottom: 4px; }
.cookie-banner a { color: var(--green); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { flex: 1; }
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; width: auto; }
  body.cookie-open .wa-float { bottom: 260px; padding: 15px; } /* icon only above the banner, so it covers no page buttons */
  body.cookie-open .wa-float-txt { display: none; }
}
.footer-links button.footer-link-btn { all: unset; cursor: pointer; font-size: 14.5px; color: var(--text); }
.footer-links button.footer-link-btn:hover { color: var(--title); }
.footer-links button.footer-link-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
/* Funnel: CTA inside a tool result, and the "next step" box at the end of an article */
.result-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; background: var(--surface); border-radius: var(--r-inner); padding: 16px 18px; margin-top: 16px; }
.result-cta strong { display: block; font-size: 16.5px; color: var(--title); }
.legal-content .result-cta p, .result-cta p { font-size: 14.5px; color: var(--text); margin: 4px 0 0; line-height: 1.5; }
.result-cta > div { flex: 1 1 240px; }
.next-step { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; background: var(--green-tint); border-radius: var(--r-card); padding: 22px 24px; margin: 40px 0 8px; }
.next-step > div { flex: 1 1 260px; }
.next-step strong { display: block; font-size: 18px; font-weight: 800; color: var(--title); }
.legal-content .next-step p { font-size: 15px; margin: 6px 0 0; }
.next-step .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-next { background: var(--surface); border-radius: var(--r-inner); padding: 16px 20px; margin: 8px 0 32px; }
.legal-content .inline-next p { font-size: 15px; margin: 0; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 30px; }
.preview-grid.wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* The preview grid breaks out of the 780px text column to the full width of .page-content (container query units). */
.page-content { container-type: inline-size; }
.hero-crumb { font-size: 14px; color: var(--green); font-weight: 600; margin: 0 0 10px; }
.hero-crumb a { color: var(--green); }
.example-search { position: relative; margin: 20px 0 0; max-width: 560px; }
.example-search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.example-search input { width: 100%; height: 52px; border: 0; border-radius: 999px; background: var(--surface); padding: 0 20px 0 48px; font: inherit; font-size: 16px; color: var(--title); outline: 2px solid transparent; }
.example-search input:focus { outline-color: var(--green); }
.example-search input::placeholder { color: var(--text-muted); }
.example-search-count { margin: 10px 0 0 4px; font-size: 15px; color: var(--text-muted); }
#rezultate { scroll-margin-top: 80px; }
.example-areas [hidden] { display: none; }
.example-search-empty { background: var(--surface); border-radius: var(--r-card); padding: 18px 20px; margin: 16px 0 0; }
.example-chips { margin: 0 0 8px; }
@media (max-width: 600px) {
  .example-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 8px; padding: 0 20px 4px; scrollbar-width: none; }
  .example-chips::-webkit-scrollbar { display: none; }
  .example-chips a { flex: none; }
}
.example-areas .example-area-title { font-size: 20px; font-weight: 800; color: var(--title); margin: 32px 0 12px; scroll-margin-top: 80px; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.example-areas { margin-bottom: clamp(40px,6vw,60px); }
.example-card { background: var(--surface); border-radius: var(--r-card); padding: 10px 12px 10px 10px; display: flex; gap: 14px; align-items: flex-start; color: inherit; text-decoration: none; }
.example-card:hover { background: var(--surface-hover); color: inherit; }
.example-card img { flex: none; display: block; width: 66px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 8px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.example-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.example-card-domain { font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); }
.example-card h3 { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--title); margin: 0; }
.example-card .meta { font-size: 13.5px; color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) { .example-card { transition: background-color 0.15s ease-out; } }
.preview-grid figure { margin: 0; background: var(--surface); border-radius: var(--r-inner); padding: 10px; }
.preview-grid img { display: block; width: 100%; height: auto; border-radius: 6px; outline: 1px solid rgba(0,0,0,0.08); outline-offset: -1px; }
.preview-grid figcaption { font-size: 14px; line-height: 1.4; color: var(--text-muted); text-align: center; margin-top: 8px; }
/* Phones: the previews become a swipe strip (about 2 pages visible) instead of full-width images stacked before the text. */
@media (max-width: 600px) {
  .preview-grid, .preview-grid.wide { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px 24px; padding: 0 20px 8px; scroll-padding: 0 20px; scrollbar-width: none; }
  .preview-grid::-webkit-scrollbar { display: none; }
  .preview-grid figure { flex: 0 0 44%; padding: 8px; scroll-snap-align: start; }
  .preview-grid.wide figure { flex-basis: 72%; }
  .preview-grid:has(figure:only-child) figure { flex-basis: 60%; }
}

/* Title page generator: A4 preview (margins 2.5 / 2 / 2.5 / 3 cm as % of the 21 cm width) */
.tp-preview-wrap { display: flex; justify-content: center; margin: 22px 0 6px; }
.tp-preview { container-type: inline-size; width: min(420px, 100%); aspect-ratio: 210 / 297; background: #FFFFFF; box-shadow: 0 2px 14px rgba(22,35,63,0.12); border-radius: 4px;
  padding: 11.9% 9.5% 11.9% 14.3%; display: flex; flex-direction: column; font-family: 'Times New Roman', Times, serif; color: #000000; }
.legal-content .tp-preview p { margin: 0; color: #000000; line-height: 1.35; font-size: 2.95cqw; text-align: center; text-wrap: balance; }
.legal-content .tp-preview .tp-top { font-weight: 700; }
.legal-content .tp-preview .tp-type { margin-top: 26%; font-size: 4.4cqw; font-weight: 700; }
.legal-content .tp-preview .tp-title { margin-top: 3%; font-size: 3.5cqw; }
.tp-people { margin-top: auto; display: flex; justify-content: space-between; gap: 6%; font-size: 2.95cqw; line-height: 1.4; }
.tp-people strong, .tp-people span { display: block; }
.tp-right { text-align: right; }
.legal-content .tp-preview .tp-city { margin-top: 18%; font-weight: 700; }
@media print {
  body:has(#tp-preview) * { visibility: hidden; }
  body:has(#tp-preview) .tp-preview, body:has(#tp-preview) .tp-preview * { visibility: visible; }
  body:has(#tp-preview) .tp-preview { position: fixed; inset: 0; width: 210mm; height: 297mm; box-shadow: none; border-radius: 0; padding: 25mm 20mm 25mm 30mm; container-type: normal; }
  body:has(#tp-preview) .legal-content .tp-preview p, body:has(#tp-preview) .tp-people { font-size: 12pt; }
  body:has(#tp-preview) .legal-content .tp-preview .tp-type { font-size: 18pt; margin-top: 70mm; }
  body:has(#tp-preview) .legal-content .tp-preview .tp-title { font-size: 14pt; margin-top: 6mm; }
  body:has(#tp-preview) .legal-content .tp-preview .tp-city { margin-top: 45mm; }
  @page { size: A4; margin: 0; }
}

/* Demo result popup (shown only when a score is above the threshold) */
.result-modal { border: none; border-radius: var(--r-card); padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--title); box-shadow: 0 24px 60px rgba(22,35,63,0.25); }
.result-modal::backdrop { background: rgba(22,35,63,0.45); }
.result-modal-body { padding: 28px 26px 24px; }
.result-modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--title); }
.result-modal p { font-size: 15.5px; line-height: 1.6; color: var(--text); margin: 0 0 14px; }
.result-modal .scores { display: flex; gap: 10px; margin: 0 0 16px; }
.result-modal .score { flex: 1; background: var(--bg); border-radius: var(--r-inner); padding: 10px 12px; }
.result-modal .score strong { display: block; font-size: 24px; font-weight: 800; color: var(--title); }
.result-modal .score span { font-size: 13px; color: var(--text-muted); }
.result-modal .actions { display: flex; flex-direction: column; gap: 8px; }
.result-modal .actions .btn { width: 100%; }
.result-modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%; background: var(--bg); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }

/* ============================================================
   HOMEPAGE SPECIFIC
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-photos { position: relative; height: clamp(320px, 38vw, 500px); display: flex; align-items: center; justify-content: center; align-self: start; margin-top: clamp(24px, 4vw, 48px); }
.stats-bar { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--border); }
.stats-item { flex: 1 1 120px; }
.pdf-card { display: flex; background: var(--surface); border: 1.5px dashed var(--border-strong); border-radius: var(--r-card); overflow: hidden; text-decoration: none; cursor: pointer; }
.pdf-card:hover { border-color: var(--green); }

/* ============================================================
   LEGAL / ARTICLE CONTENT
   ============================================================ */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: clamp(21px,2.3vw,25px); font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 10px; color: var(--title); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 18.5px; font-weight: 700; margin: 28px 0 8px; color: var(--title); }
.legal-content p { font-size: 16.5px; line-height: 1.75; color: var(--text); margin: 0 0 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 14px; }
.legal-content li { font-size: 16.5px; line-height: 1.75; color: var(--text); margin-bottom: 6px; }
.notice-box { background: #FFF6DC; border-radius: var(--r-inner); padding: 16px 20px; font-size: 15px; color: #7A5C00; margin: 24px 0; line-height: 1.6; }

/* ============================================================
   MOTION — only when the user hasn't asked for reduced motion
   ============================================================ */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }
@media (prefers-reduced-motion: no-preference) {
  .nav-links a, .btn, .blog-card, .topic-hub-card, .pdf-card, .link-chips a, details summary, .form-group input, .form-group textarea {
    transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, transform 120ms ease-out;
  }
  .wa-float { transition: background-color 150ms ease-out, transform 120ms ease-out; }
  /* Owner request (2026-10-10): the pill shakes sideways every 12 s; the move is the last ~1 s of the
     cycle, so nothing moves in the first 11 s. funnel.js adds .is-calm while the CTA card is on screen.
     It animates `translate` (not `transform`) so the :active press keeps working. */
  .wa-float { animation: wa-shake 12s ease-in-out infinite; }
  .wa-float.is-calm, .wa-float:hover { animation-play-state: paused; }
}
@keyframes wa-shake {
  0%, 91%, 100% { translate: 0 0; }
  92.5% { translate: -6px 0; }
  94% { translate: 6px 0; }
  95.5% { translate: -4px 0; }
  97% { translate: 4px 0; }
  98.5% { translate: -2px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  details summary::after { transition: transform 200ms ease-out; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(22,35,63,0.08);
    gap: 2px;
  }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin-left: 0; }
  .site-header.open .nav-links { display: flex; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ba-wrap { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}

@media (max-width: 680px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photos { height: 260px; margin-top: 0; align-self: auto; width: 100%; }
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-item { padding: 16px 12px !important; border-right: none !important; border-bottom: 1px solid var(--border); }
  .stats-item:nth-child(odd) { border-right: 1px solid var(--border) !important; }
  .step { grid-template-columns: 42px 1fr; gap: 14px; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 10px 10px; }
}
