:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --blue: #1877F2;
  --blue-deep: #1468D8;
  --blue-soft: #EEF4FF;
  --violet: #6366F1;
  --violet-soft: #F1F0FF;
  --orange: #F97316;
  --orange-soft: #FFF4E8;
  --green: #16A34A;
  --green-soft: #ECFDF3;
  --ink: #1C1E21;
  --muted: #65676B;
  --muted-light: #8A8D91;
  --paper: #ffffff;
  --canvas: #F0F2F5;
  --line: #E4E6EB;
  --line-strong: #CDD0D4;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .10), 0 0 0 1px rgba(0, 0, 0, .04);
  --shadow-md: 0 6px 28px rgba(0, 0, 0, .11), 0 0 0 1px rgba(0, 0, 0, .04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.homepage-body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid rgba(36, 94, 170, .32);
  outline-offset: 3px;
}

/* Canonical diaspora.ro desktop header. */
.site-header-stack { position: relative; z-index: 100; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 0 max(32px, calc((100% - 1320px) / 2));
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(28, 52, 78, .06);
}
.tb-logo { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.tb-logo-txt {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.tb-logo-txt span { color: var(--blue); }
.tb-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
}
.tb-desktop-quick-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-left: auto;
  white-space: nowrap;
}
.tb-desktop-quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease;
}
.tb-desktop-quick-nav a:hover {
  background: #f0f3f8;
  color: var(--blue-deep);
}
.tb-desktop-quick-nav .tb-news-link {
  margin-right: 4px;
  background: #f5f6f8;
  border: 1px solid #dfe5ec;
  color: #1f2937;
}
.tb-news-link__dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #1f2937; }
.tb-right { display: flex; align-items: center; gap: 8px; order: 4; flex: 0 0 auto; }
.btn-in, .btn-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-in { border: 1px solid var(--line-strong); background: #fff; color: #445366; }
.btn-in:hover { border-color: #b8c4d1; background: #f7f9fb; }
.btn-reg { border: 1px solid var(--blue); background: var(--blue); color: #fff; }
.btn-reg:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); }
.tb-user-menu { display: none; align-items: center; gap: 8px; }
.tb-profile-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; }
.tb-profile-avatar { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 800; }
.tb-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tb-profile-copy { display: grid; gap: 2px; min-width: 0; }
.tb-profile-name { font-size: 12px; line-height: 1.1; white-space: nowrap; }
.tb-profile-email { max-width: 150px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.tb-logout-btn { padding: 7px 10px; border: 1px solid #ebcaca; border-radius: 9px; background: #fff7f7; color: #b44b4b; font-size: 12px; font-weight: 700; cursor: pointer; }
#dpr-global-language { order: 5; flex: 0 0 auto; }
#dpr-global-language select {
  width: 106px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.topbar > .tb-logo { order: 1; }
.topbar > .tb-live { order: 2; }
.topbar > .tb-desktop-quick-nav { order: 3; }
.topbar > .site-menu-trigger { order: 6; }
.topbar > .site-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.topbar > .site-menu-trigger:hover,
.topbar > .site-menu-trigger[aria-expanded="true"] { border-color: #cbd5e1; background: #f8fafc; color: #172033; }
.topbar > .site-menu-trigger .site-menu-trigger__lines { display: grid; gap: 3px; width: 16px; }
.topbar > .site-menu-trigger .site-menu-trigger__lines i { width: 16px; height: 2px; border-radius: 2px; background: currentColor; }

/* Main desktop composition. */
main { overflow: hidden; }
.container { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.direction-section { padding: 20px 0 44px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h1 { margin: 0; color: #0F172A; font-size: clamp(42px, 4.5vw, 60px); font-weight: 900; letter-spacing: -.05em; line-height: 1.04; }
.section-heading h1 span { color: var(--blue); }
.section-heading p { max-width: 620px; margin: 14px 0 0; color: #374151; font-size: 16px; line-height: 1.6; }
.direction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.direction-card {
  --card-accent: var(--blue);
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 16px;
  min-height: 146px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.direction-card:hover { transform: translateY(-3px); border-color: #c5d1df; box-shadow: var(--shadow-md); }
.direction-card--blue { --card-accent: var(--blue); --card-tint: var(--blue-soft); }
.direction-card--violet { --card-accent: var(--violet); --card-tint: var(--violet-soft); }
.direction-card--orange { --card-accent: var(--orange); --card-tint: var(--orange-soft); }
.direction-card--green { --card-accent: var(--green); --card-tint: var(--green-soft); }
.direction-icon { display: grid; width: 52px; height: 52px; grid-row: 1 / span 2; place-items: center; border-radius: 13px; background: var(--card-tint, var(--blue-soft)); }
.direction-icon--purple,
.direction-icon--blue { --card-tint: #f1f3f5; }
.direction-icon img { width: 27px; height: 27px; object-fit: contain; opacity: .82; }
.direction-label { align-self: end; color: #1C1E21; font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.direction-description { align-self: start; margin-top: 8px; color: #4B5563; font-size: 14px; line-height: 1.5; }
.direction-arrow { align-self: start; color: var(--card-accent); font-size: 22px; line-height: 1; }

.feature-section { padding: 18px 0 30px; }
.feature-section--lead { padding: 42px 0 28px; }
.feature-section--compact { padding-top: 10px; }
.feature-panel { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.feature-panel--country { grid-template-columns: .92fr 1.08fr; min-height: 430px; border-radius: 24px; }
.feature-panel--service, .feature-panel--career, .feature-panel--community { grid-template-columns: 30% 42% 28%; }
.feature-panel--career { grid-template-columns: 42% 30% 28%; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px; }
.feature-panel--country .feature-copy { padding: 54px; }
.feature-panel--country .feature-copy h2 { font-size: clamp(36px, 4.1vw, 58px); }
.feature-copy h2 { margin: 0; color: #0F172A; font-size: clamp(30px, 3.1vw, 44px); font-weight: 900; letter-spacing: -.05em; line-height: 1.04; }
.feature-copy h2 span { color: var(--blue); }
.feature-copy > p { max-width: 410px; margin: 16px 0 24px; color: #374151; font-size: 16px; line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 800; transition: background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: var(--blue-deep); }
.feature-media { min-height: 300px; background: #e8eef4; }
.feature-media img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; }
.feature-media--country { min-height: 430px; }
.feature-media--country img { object-position: center; }
.feature-media--family img { object-position: center; }
.feature-media--career img, .feature-media--community img { object-position: center; }
.feature-list { display: flex; flex-direction: column; justify-content: center; gap: 0; margin: 0; padding: 22px 24px; list-style: none; }
.feature-list li { border-bottom: 1px solid #edf0f3; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list a { display: flex; align-items: center; gap: 10px; min-height: 48px; color: #374151; font-size: 14px; font-weight: 700; transition: color .18s ease, padding .18s ease; }
.feature-list a:hover { padding-left: 4px; color: var(--blue); }
.feature-list a > span { margin-left: auto; color: var(--muted-light); font-size: 18px; font-weight: 400; }
.feature-list img { width: 19px; height: 19px; object-fit: contain; opacity: .7; }
.closing-cta { padding-top: 22px; padding-bottom: 58px; }
.closing-cta-inner { display: flex; align-items: center; gap: 18px; padding: 24px 30px; border-radius: 16px; background: var(--blue-deep); color: #fff; }
.closing-cta-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 12px; background: rgba(255,255,255,.12); font-size: 24px; }
.closing-cta h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.closing-cta p { margin: 5px 0 0; color: #D1D5DB; font-size: 14px; }
.closing-cta .button { margin-left: auto; background: #fff; color: var(--blue-deep); }
.button--light:hover { background: #edf3f8; }

.footer { padding: 42px 0 0; background: #172b43; color: #d8e3ef; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.25fr; gap: 30px; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding-bottom: 38px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-col-links { display: flex; flex-direction: column; gap: 9px; }
.footer-col-links a, .footer-links a { color: #D1D5DB; font-size: 13px; transition: color .18s ease; }
.footer-col-links a:hover, .footer-links a:hover { color: #fff; }
.footer-app-col { gap: 14px; }
.footer-app-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.store-badge { display: inline-flex; min-width: 108px; min-height: 34px; align-items: center; justify-content: center; padding: 0 11px; gap: 7px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(255,255,255,.06); color: #fff; font-size: 11px; font-weight: 800; }
.store-badge:hover { background: rgba(255,255,255,.12); }
.footer-app-community { display: grid; gap: 11px; margin-top: 2px; }
.footer-app-socials { display: flex; gap: 7px; }
.footer-app-socials a { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.10); color: #fff; font-size: 12px; font-weight: 800; }
.footer-app-socials a:hover { background: var(--blue); }
.footer-brand-lockup { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.footer-brand-lockup img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand-lockup strong { color: #9ec3ed; }
.footer-brand-sub { max-width: 205px; color: #9eb3c9; font-size: 10px; line-height: 1.45; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,.14); color: #9eb3c9; font-size: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }

@media (max-width: 1180px) {
  .container, .footer-cols, .footer-bottom { width: min(100% - 48px, 1080px); }
  .tb-desktop-quick-nav a { padding-left: 5px; padding-right: 5px; font-size: 10px; }
  .tb-desktop-quick-nav .tb-news-link { margin-right: 0; }
  .tb-right { gap: 5px; }
  .btn-in, .btn-reg { padding-left: 9px; padding-right: 9px; }
}
@media (max-width: 980px) {
  .direction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .tb-desktop-quick-nav { display: none; }
  #dpr-global-language { margin-left: auto; }
  .topbar > .site-menu-trigger { margin-left: 0; }
  .feature-panel--country { grid-template-columns: 1fr 1fr; }
  .feature-panel--service, .feature-panel--career, .feature-panel--community { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: .01ms; animation-duration: .01ms; }
}


/* Homepage visual refinement — editorial type hierarchy and calmer surfaces. */
:root {
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #172033;
  --muted: #5d6878;
  --line: #dfe5ec;
  --canvas: #f5f7fa;
}
body { font-family: var(--font-ui); font-size: 16px; color: var(--ink); }
.tb-logo-txt,
.section-heading h1,
.feature-copy h2,
.direction-label,
.closing-cta h2,
.footer-col-title { font-family: var(--font-display); }
.topbar { min-height: 70px; background: rgba(255,255,255,.985); box-shadow: 0 3px 18px rgba(31, 52, 78, .07); }
.tb-desktop-quick-nav a { color: #536174; font-size: 12px; font-weight: 700; }
.tb-right .btn-in, .tb-right .btn-reg { border-radius: 11px; font-family: var(--font-ui); font-size: 12px; letter-spacing: -.01em; }
.section-heading { margin-bottom: 32px; }
.section-heading h1 { letter-spacing: -.055em; }
.section-heading p { color: #536071; line-height: 1.65; }
.direction-section { padding-top: 34px; padding-bottom: 52px; }
.direction-grid { gap: 16px; }
.direction-card { min-height: 154px; padding: 22px; border-radius: 19px; box-shadow: 0 2px 8px rgba(28, 46, 70, .07); }
.direction-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(28, 46, 70, .12); }
.direction-icon { width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.85); border-radius: 15px; box-shadow: inset 0 0 0 1px rgba(31, 52, 78, .035); }
.direction-icon img { width: 25px; height: 25px; opacity: .9; }
.direction-label { color: #172033; font-size: 17px; letter-spacing: -.035em; }
.direction-description { color: #5d6878; font-size: 13px; line-height: 1.58; }
.direction-arrow { font-size: 24px; font-weight: 500; }
.feature-section { padding-bottom: 34px; }
.feature-panel { border-color: #dce3eb; border-radius: 23px; box-shadow: 0 3px 14px rgba(28, 46, 70, .075); }
.feature-copy h2 { letter-spacing: -.055em; }
.feature-copy > p { color: #536071; line-height: 1.7; }
.button { min-height: 46px; padding: 0 20px; border-radius: 12px; font-family: var(--font-ui); font-size: 13px; letter-spacing: -.01em; box-shadow: 0 3px 8px rgba(24, 119, 242, .14); }
.feature-list { padding-left: 26px; padding-right: 26px; }
.feature-list a { color: #465365; font-size: 13px; }
.feature-list img { width: 20px; height: 20px; }
.closing-cta-inner { border-radius: 18px; box-shadow: 0 8px 24px rgba(20, 104, 216, .17); }
.footer { padding-top: 40px; background: #14263c; }
.footer-cols { gap: 24px; padding-bottom: 30px; }
.footer-col { gap: 4px; }
.footer-col-title { font-size: 12px; letter-spacing: .1em; }
.footer-col-links { gap: 0; }
.footer-col-links a { min-height: 20px; display: flex; align-items: center; color: #cbd6e2; font-size: 12px; line-height: 1.2; }
.footer-col-links a:hover { color: #fff; padding-left: 3px; }
.footer-extra-link { display: none !important; }
.footer.is-expanded .footer-extra-link { display: flex !important; }
.footer-more { display: inline-flex; width: fit-content; align-items: center; gap: 0; padding: 2px 0; border: 0; background: transparent; color: #8fc0f5; font-family: var(--font-ui); font-size: 12px; font-weight: 800; cursor: pointer; }
.footer-more:hover, .footer-more:focus-visible { color: #fff; }
.footer-more__label { display: inline; }
.footer-bottom { padding-top: 19px; padding-bottom: 23px; color: #91a4ba; font-size: 11px; }
.footer-links { gap: 18px; }
.footer-links a { font-size: 11px; }

/* Mobile homepage reading scale — kept after the shared refinement rules so it remains the mobile source of truth. */
@media (max-width: 700px) {
  .container, .footer-cols, .footer-bottom { width: min(100% - 32px, 520px); }
  .topbar { min-height: 58px; padding: 0 16px; gap: 10px; }
  .tb-live, .tb-right { display: none; }
  .topbar > #dpr-global-language { display: grid; margin-left: auto; }
  .topbar > .site-menu-trigger { margin-left: 0; padding: 9px 10px; }
  .topbar > .site-menu-trigger > span:last-child { display: none; }
  .direction-section { padding-top: 40px; }
  .section-heading h1 { font-size: 36px; line-height: 1.04; }
  .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .direction-card { grid-template-columns: 56px minmax(0, 1fr); min-height: 160px; padding: 20px; column-gap: 14px; }
  .direction-icon { width: 56px; height: 56px; border-radius: 16px; }
  .direction-icon img { width: 28px; height: 28px; }
  .direction-label { font-size: 19px; line-height: 1.25; }
  .direction-description { margin-top: 8px; font-size: 14px; line-height: 1.55; }
  .direction-arrow { display: none; }
  .feature-panel--country, .feature-panel--service, .feature-panel--career, .feature-panel--community { grid-template-columns: 1fr; }
  .feature-copy { padding: 28px 24px; }
  .feature-media, .feature-media--country { min-height: 220px; }
  .feature-list { display: flex; padding: 16px 24px 24px; }
  .feature-list a { min-height: 52px; font-size: 15px; line-height: 1.5; }
  .closing-cta-inner { align-items: flex-start; flex-wrap: wrap; padding: 22px; }
  .closing-cta .button { margin-left: 60px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-app-col { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card { min-height: 164px; }
}
.store-badge-icon { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
