/* AlwaysGood — the site pages (/, /despre, /termeni, /confidentialitate, 404). Brand: brand/README.md (navy #0B3C49,
 * teal #128C96, Manrope). Tokens first; use the variables, not raw colours. The --tr tokens are the program's own
 * colour, used only on its card and chips. */
:root {
  /* surfaces: white and cool neutrals */
  --bg: #FFFFFF;
  --bg-soft: #F4F8F9;
  --tint: #EAF5F6;        /* very light teal */
  --tint-2: #D5ECEE;
  --surface: #FFFFFF;
  --line: #DDE7EA;
  --line-strong: #C5D5DA;

  /* ink */
  --ink: #0B3C49;         /* brand navy: headings, body, buttons */
  --ink-soft: #46636C;    /* secondary text, AA on --bg and --bg-soft */
  --ink-faint: #5F7A82;   /* captions, >= 14px */

  /* brand */
  --brand: #0B3C49;
  --brand-hover: #134F5E;
  --teal: #128C96;        /* accent: focus, icons, large text; not for small text on white */
  --teal-ink: #0D727B;    /* teal for small text and links (AA on white) */
  --teal-light: #6CC4CC;  /* accent on navy */
  --on-dark: #FFFFFF;
  --on-dark-soft: #BCD5DA;

  /* the program (its own colour) */
  --tr: #147E78; --tr-ink: #0F625D; --tr-soft: #E3F1EF; --tr-btn: #147E78; --tr-btn-dark: #0F625D;

  /* type: Manrope for everything (the wordmark is Manrope 700) */
  --font: 'Manrope', 'Manrope fb', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 60, 73, .06), 0 2px 10px rgba(11, 60, 73, .04);
  --shadow-md: 0 10px 32px rgba(11, 60, 73, .09);

  /* layout */
  --maxw: 1120px;
  --gutter: 16px;
  --band: 56px;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 28px; --band: 88px; } }

/* Arial sized like Manrope, so the font swap does not move the page. */
@font-face { font-family: 'Manrope fb'; src: local('Arial'), local('ArialMT'); size-adjust: 104%; ascent-override: 102.5%; descent-override: 28.8%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font); font-weight: 750; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(36px, 9.6vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 6.8vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
h3 { font-size: 20px; letter-spacing: -.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 700; }
a { color: var(--teal-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.nowrap { white-space: nowrap; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  font: 700 16.5px/1.1 var(--font); letter-spacing: -.005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(11, 60, 73, .16);
}
.btn:hover { background: var(--brand-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* brand lockup: mark + live-text wordmark (Manrope 700, letters slightly tightened) */
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font: 700 21px/1 var(--font); letter-spacing: -.025em; }
.brand__tag { margin-top: 4px; font: 500 13.5px/1 var(--font); letter-spacing: -.005em; color: var(--ink-soft); }

/* header */
.site-header { position: relative; z-index: 2; }
.site-header__in { display: flex; align-items: center; gap: 12px; min-height: 70px; }
.site-nav { display: none; margin-left: auto; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-soft); font-weight: 600; font-size: 15.5px; text-decoration: none; border-radius: var(--r-pill); }
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-header .langsw { margin-left: auto; flex: none; color: var(--ink-soft); }
.site-header .langsw button[aria-pressed="true"] { color: var(--ink); }
.site-header .btn--sm { flex: none; }
@media (min-width: 820px) { .site-nav { display: flex; } .site-header .langsw { margin-left: 4px; } .site-header .btn--sm { margin-left: 4px; } }
/* phones: brand + RO/EN + a shorter button fit in one row; below 340px the button steps aside (the page has its own) */
@media (max-width: 400px) { .site-header__in { gap: 8px; } .brand { gap: 8px; } .site-header .brand__name { font-size: 19px; } .site-header .btn--sm { padding: 0 16px; } .site-header .btn__more { display: none; } .site-header .langsw button { padding: 6px 7px; min-width: 30px; } }
@media (max-width: 340px) { .site-header .btn--sm { display: none; } }

/* page top: soft cool gradient with the brand motif behind header + hero — a large quarter circle in the top-right
   corner (where the mark keeps its teal quarter) and a faint grid of pluses. Decoration only. */
body.has-top { position: relative; background: #FFFFFF linear-gradient(180deg, #F2F8F9 0, #FFFFFF 720px) no-repeat; }
body.has-top::before {
  content: ""; position: absolute; z-index: 0; top: 0; right: 0; width: min(64vw, 300px); aspect-ratio: 1;
  background: var(--tint); border-bottom-left-radius: 100%; pointer-events: none;
}
body.has-top::after {
  content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 720px; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 12v8M12 16h8' stroke='%23128C96' stroke-opacity='.3' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 85% at 100% 0%, #000 0%, transparent 72%);
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
@media (min-width: 900px) { body.has-top::before { width: 540px; } }

/* hero */
.hero { padding: 16px 0 var(--band); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--teal-ink); font-weight: 700; font-size: 14.5px; letter-spacing: .01em; }
.eyebrow::before { content: ""; width: 11px; height: 11px; flex: none; background: var(--teal); border-top-right-radius: 100%; }
.hl { color: var(--teal); }
.hero h1 { margin-bottom: 18px; }
.hero__lead { font-size: 18.5px; color: var(--ink-soft); max-width: 33em; margin-bottom: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.hero__cta .btn { flex: 1 1 100%; }
.reassure { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.reassure li { display: inline-flex; align-items: center; gap: 7px; }
.reassure svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
@media (min-width: 480px) { .hero__cta .btn { flex: 0 0 auto; } }

/* hero panel (desktop): the program's pieces as one quiet list */
.panel { display: none; }
@media (min-width: 900px) {
  .hero { padding-top: 36px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .hero__lead { font-size: 20px; }
  .panel { display: block; padding: 22px; background: rgba(255, 255, 255, .86); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
}
.panel__title { margin: 2px 4px 12px; color: var(--ink-faint); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.panel__list { list-style: none; display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 14px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.prow:hover { color: var(--ink); border-color: var(--c, var(--teal)); box-shadow: var(--shadow-sm); }
.prow__ic { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--c-soft, var(--tint)); }
.prow__ic svg { width: 28px; height: 28px; }
.prow__txt { flex: 1; line-height: 1.3; }
.prow__txt strong { display: block; font-size: 16.5px; letter-spacing: -.01em; }
.prow__txt span { color: var(--ink-soft); font-size: 14.5px; }
.prow > svg { width: 20px; height: 20px; color: var(--ink-faint); flex: none; }
.prow__ic svg { color: var(--c, var(--teal)); }
.prow--tr { --c: var(--tr); --c-soft: var(--tr-soft); }

/* bands and section heads */
.band { padding: var(--band) 0; }
.band--soft { background: var(--bg-soft); }
.band--tint { background: var(--tint); }
.section-head { max-width: 40em; margin-bottom: 32px; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 18px; margin: 0; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--teal-ink); font-weight: 800; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; }

/* program cards */
.programs { list-style: none; display: grid; gap: 20px; }
@media (min-width: 960px) { .programs { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.programs--one { max-width: 600px; }
@media (min-width: 960px) { .programs--one { grid-template-columns: 1fr; } }
.pcard {
  --c: var(--brand); --c-ink: var(--brand); --c-soft: var(--tint); --c-btn: var(--brand); --c-btn-dark: var(--brand-hover);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.pcard--tr { --c: var(--tr); --c-ink: var(--tr-ink); --c-soft: var(--tr-soft); --c-btn: var(--tr-btn); --c-btn-dark: var(--tr-btn-dark); }
.pcard__top { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--c-soft); border-bottom: 3px solid var(--c); }
.pcard__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--surface); }
.pcard__icon svg { width: 34px; height: 34px; }
.pcard__for { margin: 0; color: var(--c-ink); font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.pcard__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 18px; }
.pcard__name { font-size: 25px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.pcard__desc { color: var(--ink-soft); margin-bottom: 16px; }
.pcard__list { list-style: none; display: grid; gap: 9px; margin-bottom: 20px; font-size: 16px; line-height: 1.45; }
.pcard__list li { display: flex; gap: 10px; }
.pcard__list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--c); }
.pcard__price { margin: auto 0 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-soft); font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.pcard__price strong { display: block; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 2px; }
.pcard__actions { display: grid; gap: 2px; justify-items: center; }
.pcard__actions .btn { width: 100%; background: var(--c-btn); box-shadow: none; }
.pcard__actions .btn:hover { background: var(--c-btn-dark); }
.pcard__actions .link-arrow { color: var(--c-ink); }
.programs-note { margin: 24px 0 0; color: var(--ink-soft); font-size: 15.5px; }

/* how we work */
.how { display: grid; gap: 8px; }
@media (min-width: 900px) { .how { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .how .section-head { position: sticky; top: 24px; } }
.principles { list-style: none; display: grid; gap: 12px; }
.principle { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.principle h3 { font-size: 18.5px; margin-bottom: 6px; }
.principle p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.badge { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--tint); color: var(--teal-ink); }
.badge svg { width: 23px; height: 23px; }

/* in good time */
.stages { list-style: none; display: grid; gap: 14px; }
@media (min-width: 860px) { .stages { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.stage { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--tint-2); }
.stage__when { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.stage p:not(.stage__when) { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.stage__prog { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 10px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--c-soft, var(--tint)); color: var(--c-ink, var(--ink)); font-weight: 700; font-size: 15px; text-decoration: none; }
.stage__prog:hover { color: var(--c-ink, var(--ink)); box-shadow: inset 0 0 0 1.5px var(--c, var(--teal)); }
.stage__prog::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--teal)); flex: none; }
.stage--tr { --c: var(--tr); --c-ink: var(--tr-ink); --c-soft: var(--tr-soft); }
.aside-note { display: flex; gap: 12px; align-items: flex-start; margin: 26px 0 0; color: var(--ink-soft); font-size: 16px; max-width: 46em; }
.aside-note svg { width: 22px; height: 22px; flex: none; color: var(--teal); margin-top: 1px; }

/* social */
.social { text-align: center; }
.social .section-head { margin: 0 auto 26px; }
.social .kicker { justify-content: center; }
.social__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social__links li { flex: 1 1 220px; max-width: 300px; }
.social__link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 20px 10px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.social__link:hover { color: var(--ink); border-color: var(--teal); box-shadow: var(--shadow-sm); }
.social__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; flex: none; }
.social__ic svg { width: 22px; height: 22px; }
.social__txt { display: flex; flex-direction: column; text-align: left; line-height: 1.25; }
.social__txt strong { font-size: 16.5px; }
.social__txt span { color: var(--ink-soft); font-size: 15px; }

/* footer (navy, white mark) */
.site-footer { background: var(--brand); color: var(--on-dark-soft); padding: 48px 0 36px; font-size: 15.5px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--on-dark); }
.site-footer .brand__tag { color: var(--teal-light); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; }
.footer-brand, .footer-col--wide { grid-column: 1 / -1; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; } .footer-brand, .footer-col--wide { grid-column: auto; } }
.footer-col h2 { font: 800 12.5px/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light); margin: 0 0 8px; }
.footer-col ul { list-style: none; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); text-decoration: none; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14.5px; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: var(--on-dark); overflow-wrap: anywhere; }
.site-footer :focus-visible { outline-color: var(--teal-light); }

/* about page */
.page-hero { padding: 16px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 8.6vw, 54px); }
.page-hero .hero__lead { margin-bottom: 0; }
.lang-note { margin: 14px 0 0; color: var(--ink-faint); font-size: 15px; max-width: 40em; }
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.toc a:hover { border-color: var(--teal); color: var(--ink); }
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(26px, 6vw, 34px); }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose ul li::marker { color: var(--teal); }
.doc-section { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 8px; }
.doc-section:first-child { border-top: 0; padding-top: 8px; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; gap: 12px !important; }
.steps li { position: relative; padding: 16px 18px 16px 62px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 15px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--teal-ink); font: 800 15px/1 var(--font); }
.steps strong { display: block; margin-bottom: 2px; }
.callout { display: flex; gap: 14px; padding: 18px 20px; margin: 8px 0 20px; border-radius: var(--r-md); background: var(--tint); border: 1px solid var(--tint-2); }
.callout svg { width: 24px; height: 24px; flex: none; color: var(--teal-ink); margin-top: 2px; }
.callout p { margin: 0; }
.mini-programs { list-style: none; padding: 0 !important; display: grid !important; gap: 10px !important; }
@media (min-width: 640px) { .mini-programs { grid-template-columns: repeat(auto-fill, minmax(260px, 360px)); } }
.mini-programs li { display: flex; }
.mini { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); color: var(--ink); text-decoration: none; line-height: 1.3; }
.mini:hover { color: var(--ink); box-shadow: var(--shadow-md); }
.mini strong { display: block; font-size: 16.5px; color: var(--ink); letter-spacing: -.01em; }
.mini span { color: var(--ink-soft); font-size: 14.5px; }
.mini--tr { --c: var(--tr); }
.mini svg { width: 30px; height: 30px; flex: none; }

/* 404 */
.nf { padding: 40px 0 var(--band); text-align: center; background: linear-gradient(180deg, #F2F8F9, #FFFFFF 70%); }
.nf__mark { width: 72px; height: 72px; margin: 0 auto 26px; display: block; }
.nf h1 { font-size: clamp(32px, 8vw, 48px); }
.nf .hero__lead { margin: 0 auto 28px; }
.nf .mini-programs { max-width: 360px; margin: 0 auto 28px; text-align: left; grid-template-columns: 1fr; }
