/**
 * TelccFree — premium landing composition (index.html only).
 * Scoped to body.portal-landing and loaded after every shared stylesheet,
 * so it can settle conflicts with telc-theme-dark.css without !important
 * except where the shared sheets already use it.
 */

/* clip (not hidden) keeps the sticky header working while blocking x-overflow */
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

/* brand hairline above the sticky header */
.top-stripe {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 3000;
  background: var(--h-border, #e7e1d9);
}

.top-stripe-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #e91e8c, #1976d2);
}

body.portal-landing {
  --h-bg: #faf8f6;
  --h-bg-blur: rgba(250, 248, 246, 0.82);
  --h-surface: #ffffff;
  --h-surface-2: #f4f1ec;
  --h-surface-3: #ece7e0;
  --h-text: #1b1a18;
  --h-text-2: #494540;
  --h-muted: #767068;
  --h-border: #e7e1d9;
  --h-border-2: #d7cfc4;
  --h-ink: #1a2230;
  --h-ink-2: #2b3648;
  --h-on-ink: #ffffff;
  --h-accent: #d0176f;
  --h-accent-soft: rgba(208, 23, 111, 0.09);
  --h-shadow-1: 0 1px 2px rgba(28, 22, 16, 0.05);
  --h-shadow-2: 0 4px 14px -6px rgba(28, 22, 16, 0.16), 0 1px 3px rgba(28, 22, 16, 0.05);
  --h-shadow-3: 0 20px 42px -20px rgba(28, 22, 16, 0.35), 0 6px 14px -8px rgba(28, 22, 16, 0.14);
  --h-r-sm: 10px;
  --h-r-md: 14px;
  --h-r-lg: 18px;
  --h-r-xl: 22px;
  --h-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --h-speed: 200ms;

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--h-bg);
  color: var(--h-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.dark body.portal-landing {
  --h-bg: #101216;
  --h-bg-blur: rgba(16, 18, 22, 0.82);
  --h-surface: #171a1f;
  --h-surface-2: #1c2026;
  --h-surface-3: #232830;
  --h-text: #ecebe8;
  --h-text-2: #c2bfba;
  --h-muted: #918d87;
  --h-border: #2a2f37;
  --h-border-2: #3a4049;
  --h-ink: #ecebe8;
  --h-ink-2: #ffffff;
  --h-on-ink: #14171c;
  --h-accent: #ef7fb5;
  --h-accent-soft: rgba(239, 127, 181, 0.13);
  --h-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --h-shadow-2: 0 4px 16px -6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
  --h-shadow-3: 0 22px 46px -20px rgba(0, 0, 0, 0.75), 0 8px 18px -10px rgba(0, 0, 0, 0.5);

  background: var(--h-bg) !important;
  color: var(--h-text) !important;
}

body.portal-landing *,
body.portal-landing *::before,
body.portal-landing *::after {
  box-sizing: border-box;
}

/* zero-specificity reset so every component rule below still wins */
:where(body.portal-landing) :where(h1, h2, h3, h4, p, ul, li, figure) {
  margin: 0;
  padding: 0;
}

:where(body.portal-landing) :where(ul) {
  list-style: none;
}

:where(body.portal-landing) :where(a) {
  text-decoration: none;
}

body.portal-landing [id] {
  scroll-margin-top: 88px;
}

body.portal-landing ::selection {
  background: var(--h-accent-soft);
  color: var(--h-text);
}

/* ── shell + typography ─────────────────────────────────────── */
.thome-shell {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: 28px;
}

.thome-heading {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--h-text);
  line-height: 1.14;
}

.thome-section-head {
  max-width: 40rem;
  margin: 0 auto 34px;
  text-align: center;
}

.thome-section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.thome-section-head p {
  margin-top: 12px;
  font-size: clamp(0.95rem, 1.5vw, 1.03rem);
  line-height: 1.6;
  color: var(--h-muted);
}

.thome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--h-border);
  background: var(--h-surface);
  box-shadow: var(--h-shadow-1);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--h-text-2);
}

.thome-eyebrow svg {
  width: 16px;
  height: 16px;
  color: var(--h-accent);
}

.thome-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.75;
}

/* ── buttons ────────────────────────────────────────────────── */
body.portal-landing .thome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--h-r-md);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--h-speed) var(--h-ease),
    border-color var(--h-speed) var(--h-ease),
    box-shadow var(--h-speed) var(--h-ease),
    transform var(--h-speed) var(--h-ease),
    color var(--h-speed) var(--h-ease);
}

body.portal-landing .thome-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.85;
}

body.portal-landing .thome-btn--primary {
  background: var(--h-ink);
  color: var(--h-on-ink);
  box-shadow: var(--h-shadow-2);
}

body.portal-landing .thome-btn--primary:hover {
  background: var(--h-ink-2);
  transform: translateY(-1px);
  box-shadow: var(--h-shadow-3);
}

body.portal-landing .thome-btn--ghost {
  background: var(--h-surface);
  color: var(--h-text);
  border-color: var(--h-border-2);
  box-shadow: var(--h-shadow-1);
}

body.portal-landing .thome-btn--ghost:hover {
  background: var(--h-surface);
  border-color: var(--h-muted);
  transform: translateY(-1px);
  box-shadow: var(--h-shadow-2);
}

body.portal-landing .thome-btn:focus-visible,
body.portal-landing .thome-iconbtn:focus-visible,
body.portal-landing .thome-nav a:focus-visible,
body.portal-landing .level-card:focus-visible {
  outline: 2px solid var(--h-accent);
  outline-offset: 3px;
}

/* PWA install — compact secondary CTA, functionality untouched */
body.portal-landing #pwa-install-btn {
  background: var(--h-surface);
  color: var(--h-text);
  border: 1px solid var(--h-border-2);
  box-shadow: var(--h-shadow-1);
}

body.portal-landing #pwa-install-btn:hover {
  border-color: var(--h-muted);
  box-shadow: var(--h-shadow-2);
}

/* ── header ─────────────────────────────────────────────────── */
.thome-header {
  position: sticky;
  top: 3px;
  z-index: 1200;
  overflow: visible;
  background: var(--h-bg-blur);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--h-ease), box-shadow 220ms var(--h-ease);
}

.thome-header.is-stuck {
  border-bottom-color: var(--h-border);
  box-shadow: 0 6px 20px -18px rgba(28, 22, 16, 0.6);
}

html.dark .thome-header.is-stuck {
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.9);
}

.thome-header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
}

.thome-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.thome-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: #fff;
  background: transparent;
  box-shadow: 0 6px 16px -8px rgba(25, 90, 200, 0.55);
}

.thome-brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: inherit;
}

.thome-brand__mark svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
}

.thome-brand__word {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
  color: var(--h-text);
  line-height: 1.1;
}

.thome-brand__word em {
  font-style: normal;
  color: var(--h-accent);
}

.thome-brand__tag {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-top: 2px;
}

.thome-nav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
}

.thome-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--h-r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--h-text-2);
  text-decoration: none;
  transition: color var(--h-speed) var(--h-ease), background var(--h-speed) var(--h-ease);
}

.thome-nav a svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
  color: var(--h-muted);
  transition: color var(--h-speed) var(--h-ease);
}

.thome-nav a:hover {
  color: var(--h-text);
  background: var(--h-surface-2);
}

.thome-nav a:hover svg {
  color: var(--h-accent);
}

/* marks the two areas that are still in preparation */
.thome-nav__dot {
  width: 5px;
  height: 5px;
  margin-inline-start: -2px;
  border-radius: 999px;
  background: var(--h-accent);
  opacity: 0.75;
}

.thome-header__utils {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.thome-nav + .thome-header__utils {
  margin-left: 0;
}

/* the shared lang/theme bar is fixed site-wide — dock it into the header here */
body.portal-landing .telc-portal-header-utils,
body.portal-landing .telc-portal-lang-bar {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.thome-divider-v {
  width: 1px;
  height: 24px;
  background: var(--h-border);
  flex-shrink: 0;
}

/* ── notification bell ──────────────────────────────────────── */
.thome-bell {
  position: relative;
  display: inline-flex;
  font-family: "Inter", sans-serif;
  direction: ltr;
}

.thome-bell:not(.is-unread) .thome-bell__count {
  display: none;
}

body.portal-landing #bell-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--h-border);
  background: var(--h-surface);
  color: var(--h-text-2);
  cursor: pointer;
  user-select: none;
  transition: color var(--h-speed) var(--h-ease), border-color var(--h-speed) var(--h-ease),
    box-shadow var(--h-speed) var(--h-ease);
}

body.portal-landing #bell-icon:hover {
  color: var(--h-text);
  border-color: var(--h-border-2);
  box-shadow: var(--h-shadow-2);
}

body.portal-landing #bell-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.thome-bell__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--h-accent);
  color: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 2px solid var(--h-bg);
}

.thome-notif {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  flex-direction: column;
  width: min(360px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: min(520px, 68vh, calc(100dvh - 88px));
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  box-shadow: var(--h-shadow-3);
  overflow: hidden;
  overflow-x: hidden;
  z-index: 1400;
  animation: thomeNotifIn 180ms var(--h-ease);
}

.thome-notif.is-open {
  display: flex;
}

.thome-notif[hidden] {
  display: none !important;
}

@keyframes thomeNotifIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.thome-notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 11px 14px;
  background: var(--h-surface-2);
  border-bottom: 1px solid var(--h-border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--h-text);
}

.thome-notif__pill {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--h-accent);
  background: var(--h-accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.thome-notif__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.thome-notif__banner {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 14px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--h-text-2);
  background: var(--h-surface-2);
  border-bottom: 1px solid var(--h-border);
}

.thome-notif__banner svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--h-accent);
  stroke-width: 1.8;
}

.thome-notif__item {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--h-border);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

a.thome-notif__item {
  cursor: pointer;
}

a.thome-notif__item:hover,
a.thome-notif__item:focus-visible {
  background: var(--h-surface-2);
}

.thome-notif__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.thome-notif__item:last-child {
  border-bottom: none;
}

.thome-notif__item--muted {
  opacity: 0.72;
}

.thome-notif__icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--h-surface-3);
  color: var(--h-text-2);
}

.thome-notif__icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

.thome-notif__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.thome-notif__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--h-text);
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 1.3;
}

.thome-notif__item--muted .thome-notif__title {
  color: var(--h-text-2);
}

.thome-notif__desc {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--h-muted);
}

.thome-notif [data-notif-lang="ar"] {
  display: none;
}

html[lang="ar"] .thome-notif [data-notif-lang="de"],
body[data-ui-lang="ar"] .thome-notif [data-notif-lang="de"] {
  display: none;
}

html[lang="ar"] .thome-notif [data-notif-lang="ar"],
body[data-ui-lang="ar"] .thome-notif [data-notif-lang="ar"] {
  display: block;
}

html[lang="ar"] .thome-notif__title [data-notif-lang="ar"],
body[data-ui-lang="ar"] .thome-notif__title [data-notif-lang="ar"] {
  display: inline;
}

.thome-notif__desc p {
  margin: 0 0 8px;
}

.thome-notif__desc p:last-child {
  margin-bottom: 0;
}

.thome-notif__desc a {
  color: var(--h-accent);
  font-weight: 600;
  text-decoration: none;
}

.thome-notif__desc a:hover,
.thome-notif__desc a:focus-visible {
  text-decoration: underline;
}

.thome-notif__state {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid var(--h-border-2);
  color: var(--h-muted);
}

.thome-notif__state--live {
  color: #1f7a4d;
  border-color: rgba(31, 122, 77, 0.35);
  background: rgba(31, 122, 77, 0.08);
}

.thome-notif__state--neu {
  color: var(--h-accent);
  border-color: transparent;
  background: var(--h-accent-soft);
}

html.dark .thome-notif__state--live {
  color: #6ddba0;
  border-color: rgba(109, 219, 160, 0.3);
  background: rgba(109, 219, 160, 0.1);
}

html.dark .thome-notif__state--neu {
  color: var(--h-accent);
  border-color: transparent;
  background: var(--h-accent-soft);
}

/* ── hero ───────────────────────────────────────────────────── */
.thome-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
}

.thome-hero::before {
  content: "";
  position: absolute;
  inset: -240px -10% auto;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(46% 52% at 50% 46%, rgba(208, 23, 111, 0.08), transparent 72%),
    radial-gradient(38% 46% at 82% 34%, rgba(25, 118, 210, 0.07), transparent 74%);
}

html.dark .thome-hero::before {
  background:
    radial-gradient(46% 52% at 50% 46%, rgba(239, 127, 181, 0.1), transparent 72%),
    radial-gradient(38% 46% at 82% 34%, rgba(96, 165, 250, 0.08), transparent 74%);
}

.thome-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thome-hero h1 {
  margin-top: 22px;
  font-size: clamp(2.05rem, 4.6vw, 3.1rem);
  text-wrap: balance;
}

.thome-hero h1 span {
  display: block;
}

.thome-hero h1 .thome-hero__accent {
  display: inline;
  background-image: linear-gradient(transparent 62%, var(--h-accent-soft) 62%);
  box-shadow: inset 0 -2px 0 var(--h-accent);
}

.thome-hero__sub {
  margin-top: 18px;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.7vw, 1.09rem);
  line-height: 1.65;
  color: var(--h-muted);
}

.thome-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.thome-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--h-border);
  width: 100%;
  max-width: 36rem;
}

.thome-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--h-muted);
}

.thome-hero__meta svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  color: var(--h-text-2);
}

/* ── learning features band ─────────────────────────────────── */
.thome-band {
  background: var(--h-surface-2);
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
  padding: 46px 0 50px;
}

.thome-band__label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--h-muted);
}

.thome-band__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--h-border);
}

.thome-features {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.thome-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 6px 18px;
  border-left: 1px solid var(--h-border);
  transition: transform var(--h-speed) var(--h-ease);
}

.thome-feature:first-child {
  border-left: none;
  padding-left: 0;
}

.thome-feature:last-child {
  padding-right: 0;
}

.thome-feature:hover {
  transform: translateY(-2px);
}

.thome-feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  color: var(--h-text-2);
  box-shadow: var(--h-shadow-1);
  transition: color var(--h-speed) var(--h-ease), border-color var(--h-speed) var(--h-ease),
    box-shadow var(--h-speed) var(--h-ease);
}

.thome-feature:hover .thome-feature__icon {
  color: var(--h-accent);
  border-color: var(--h-border-2);
  box-shadow: var(--h-shadow-2);
}

.thome-feature__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.thome-feature h3 {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--h-text);
  letter-spacing: -0.01em;
}

.thome-feature p {
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--h-muted);
}

/* ── level selection ────────────────────────────────────────── */
.thome-levels {
  padding: 28px 0 40px;
}

/* three cards need more room than the old two-up row */
.thome-levels .thome-shell {
  max-width: 1280px;
}

.thome-level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.portal-landing .level-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--h-r-xl);
  border: 1px solid var(--h-border);
  background-color: var(--h-surface-3);
  background-image: none;
  box-shadow: var(--h-shadow-2);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--h-speed) var(--h-ease), box-shadow var(--h-speed) var(--h-ease),
    border-color var(--h-speed) var(--h-ease);
}

@media (min-width: 768px) {
  body.portal-landing .level-card {
    aspect-ratio: 16 / 11;
  }
}

body.portal-landing .level-card:hover {
  transform: translateY(-3px);
  border-color: var(--h-border-2);
  box-shadow: var(--h-shadow-3);
}

body.portal-landing .level-card:active {
  transform: translateY(-1px);
}

html.dark body.portal-landing .level-card {
  background-color: var(--h-surface-3);
  border-color: var(--h-border-2);
}

/* photographs must survive every shared dark-mode rule */
body.portal-landing .level-card__img,
html.dark body.portal-landing .level-card__img {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  width: 100%;
  height: 100%;
  display: block !important;
  object-fit: cover;
  object-position: center;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
  pointer-events: none;
  transform: scale(1);
  transition: transform 220ms var(--h-ease);
}

body.portal-landing .level-card:hover .level-card__img {
  transform: scale(1.02);
}

html.dark body.portal-landing .level-card__img {
  filter: brightness(0.92) saturate(0.96) !important;
}

body.portal-landing .level-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1 !important;
  background: linear-gradient(
    to top,
    rgba(8, 10, 14, 0.92) 0%,
    rgba(8, 10, 14, 0.62) 38%,
    rgba(8, 10, 14, 0.22) 66%,
    rgba(8, 10, 14, 0.06) 100%
  ) !important;
  transition: opacity var(--h-speed) var(--h-ease);
}

body.portal-landing .level-card:hover .level-card__scrim {
  opacity: 0.92 !important;
}

body.portal-landing .level-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}

@media (min-width: 768px) {
  body.portal-landing .level-card__content {
    padding: 30px;
  }
}

/* telc-theme-dark-exercises.css paints every [class*="card"] element in dark
   mode — the photo cards need their layers to stay transparent */
html.dark body.portal-landing .level-card__content,
html.dark body.portal-landing .level-card__meta,
html.dark body.portal-landing .level-card__meta li,
html.dark body.portal-landing .level-card__img {
  background-color: transparent !important;
  border-color: transparent !important;
}

html.dark body.portal-landing .level-card__cta {
  background-color: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
}

html.dark body.portal-landing .level-card:hover .level-card__cta {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
}

body.portal-landing .level-card .level-badge,
html.dark body.portal-landing .level-card .level-badge {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  margin-bottom: 6px;
}

body.portal-landing .level-card .level-title,
html.dark body.portal-landing .level-card .level-title,
html.dark body.portal-landing .level-card.b1 .level-title,
html.dark body.portal-landing .level-card.b2 .level-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
}

.level-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 15px;
  list-style: none;
}

.level-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.level-card__meta svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
  color: rgba(255, 255, 255, 0.72);
}

body.portal-landing .level-card__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: var(--h-r-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background var(--h-speed) var(--h-ease), border-color var(--h-speed) var(--h-ease);
}

body.portal-landing .level-card:hover .level-card__cta {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
}

body.portal-landing .level-card__cta svg,
body.portal-landing .level-card .level-sub__arrow {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  color: #ffffff !important;
  transition: transform var(--h-speed) var(--h-ease);
}

body.portal-landing .level-card:hover .level-card__cta svg,
body.portal-landing .level-card:hover .level-sub__arrow {
  transform: translateX(4px);
}

/* ── C1: same family, advanced tone ─────────────────────────────
   Drop c1-heidelberg.jpg next to b1-germany.jpg / b2-berlin.jpg and the
   photo takes over automatically; until then this designed surface shows. */
body.portal-landing .level-card.c1,
html.dark body.portal-landing .level-card.c1 {
  background-color: #18202c;
  background-image:
    radial-gradient(120% 95% at 76% 6%, rgba(112, 141, 188, 0.42), transparent 62%),
    radial-gradient(95% 85% at 8% 100%, rgba(208, 23, 111, 0.2), transparent 62%),
    linear-gradient(158deg, #26313f 0%, #182029 60%, #11161d 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

body.portal-landing .level-card.c1::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 24px
  );
}

body.portal-landing .level-card.c1 .level-card__scrim {
  background: linear-gradient(
    to top,
    rgba(8, 10, 14, 0.82) 0%,
    rgba(8, 10, 14, 0.42) 46%,
    rgba(8, 10, 14, 0.08) 78%,
    rgba(8, 10, 14, 0) 100%
  ) !important;
}

body.portal-landing .level-card.c1 .level-card__meta svg {
  color: rgba(255, 255, 255, 0.62);
}

/* status flag on the C1 card */
.level-status {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
}

.level-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--h-accent);
  box-shadow: 0 0 0 3px rgba(208, 23, 111, 0.22);
  flex-shrink: 0;
}

html.dark .level-status__dot {
  box-shadow: 0 0 0 3px rgba(239, 127, 181, 0.22);
}

.level-status__ar {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
  padding-inline-start: 8px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.24);
}

/* ── upcoming: Lernen & Videos ──────────────────────────────── */
.thome-soon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 56rem;
  margin: 0 auto;
}

.thome-soon-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 22px;
  border-radius: var(--h-r-xl);
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  box-shadow: var(--h-shadow-1);
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--h-speed) var(--h-ease), box-shadow var(--h-speed) var(--h-ease),
    border-color var(--h-speed) var(--h-ease);
}

.thome-soon-tile:hover {
  transform: translateY(-3px);
  border-color: var(--h-border-2);
  box-shadow: var(--h-shadow-2);
}

.thome-soon-tile:focus-visible {
  outline: 2px solid var(--h-accent);
  outline-offset: 3px;
}

.thome-soon-tile__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--h-r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--h-accent-soft);
  color: var(--h-accent);
  margin-bottom: 16px;
}

.thome-soon-tile__icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.7;
}

.thome-soon-tile__flag {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--h-surface-2);
  border: 1px solid var(--h-border-2);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h-text-2);
  white-space: nowrap;
}

.thome-soon-tile__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--h-accent);
  flex-shrink: 0;
}

.thome-soon-tile__flag-ar {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--h-muted);
  padding-inline-start: 8px;
  border-inline-start: 1px solid var(--h-border-2);
}

.thome-soon-tile h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--h-text);
}

.thome-soon-tile p {
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--h-muted);
  max-width: 24rem;
}

.thome-soon-tile__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--h-text);
}

.thome-soon-tile__more svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
  color: var(--h-accent);
  transition: transform var(--h-speed) var(--h-ease);
}

.thome-soon-tile:hover .thome-soon-tile__more svg {
  transform: translateX(4px);
}

/* ── learning journey ───────────────────────────────────────── */
/* sits between two banded sections, so it carries the page surface */
.thome-journey {
  background: var(--h-bg);
  border-bottom: 1px solid var(--h-border);
  padding: 62px 0 66px;
}

.thome-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.thome-steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--h-border-2) 8%,
    var(--h-border-2) 92%,
    transparent
  );
  z-index: 0;
}

.thome-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.thome-step__icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  color: var(--h-text-2);
  box-shadow: var(--h-shadow-1);
  transition: color var(--h-speed) var(--h-ease), transform var(--h-speed) var(--h-ease),
    box-shadow var(--h-speed) var(--h-ease);
}

.thome-step:hover .thome-step__icon {
  color: var(--h-accent);
  transform: translateY(-2px);
  box-shadow: var(--h-shadow-2);
}

.thome-step__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.thome-step__index {
  margin-top: 14px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--h-muted);
}

.thome-step h3 {
  margin-top: 6px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--h-text);
}

.thome-step p {
  margin-top: 6px;
  max-width: 15rem;
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--h-muted);
}

/* ── community ──────────────────────────────────────────────── */
.thome-community {
  padding: 60px 0 66px;
}

.thome-community__panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: var(--h-r-xl);
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  box-shadow: var(--h-shadow-2);
}

@media (min-width: 820px) {
  .thome-community__panel {
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 30px 34px;
  }
}

.thome-community__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--h-r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 136, 204, 0.1);
  color: #0088cc;
  margin-bottom: 14px;
}

html.dark .thome-community__icon {
  background: rgba(56, 176, 232, 0.14);
  color: #4ec2f0;
}

.thome-community__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.thome-community__panel h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--h-text);
}

.thome-community__de {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--h-muted);
  max-width: 28rem;
}

.thome-community__ar {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--h-muted);
  max-width: 28rem;
  text-align: right;
}

.thome-community__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

body.portal-landing .portal-action-ctas {
  margin: 0;
  gap: 12px;
  width: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}

body.portal-landing .platform-share-wrap {
  width: auto;
  margin: 0;
}

body.portal-landing .portal-telegram-cta {
  width: auto;
  margin: 0;
}

body.portal-landing .portal-telegram-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--h-r-md);
  background: var(--h-ink);
  color: var(--h-on-ink) !important;
  font-size: 0.925rem;
  font-weight: 600;
  box-shadow: var(--h-shadow-2);
  transition: background var(--h-speed) var(--h-ease), transform var(--h-speed) var(--h-ease),
    box-shadow var(--h-speed) var(--h-ease);
}

body.portal-landing .portal-telegram-btn:hover {
  background: var(--h-ink-2);
  transform: translateY(-1px);
  box-shadow: var(--h-shadow-3) !important;
}

body.portal-landing .portal-telegram-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.85;
}

/* share button: keep the component + translations, drop the glow */
body.portal-landing #platform-share-btn {
  height: 48px;
  padding: 0 20px;
  gap: 9px;
  border-radius: var(--h-r-md);
  background: var(--h-surface) !important;
  color: var(--h-text) !important;
  border: 1px solid var(--h-border-2) !important;
  font-size: 0.875rem;
  font-weight: 600;
  animation: none !important;
  box-shadow: var(--h-shadow-1) !important;
  max-width: 100%;
}

body.portal-landing #platform-share-btn:hover {
  transform: translateY(-1px) !important;
  border-color: var(--h-muted) !important;
  box-shadow: var(--h-shadow-2) !important;
}

body.portal-landing #platform-share-btn .platform-share-btn__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20rem;
}

.thome-community__handle {
  margin-top: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--h-muted);
}

/* ── footer ─────────────────────────────────────────────────── */
.thome-footer {
  border-top: 1px solid var(--h-border);
  background: var(--h-surface-2);
  padding: 34px 0 40px;
  text-align: center;
}

.thome-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--h-text);
}

.thome-footer__brand svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  color: var(--h-accent);
}

.thome-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: 14px 0 4px;
}
.thome-footer__links a {
  color: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none;
}
.thome-footer__links a:hover,
.thome-footer__links a:focus-visible {
  text-decoration: underline;
  color: #1565c0;
}
.thome-footer p {
  margin: 10px auto 0;
  max-width: 52rem;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--h-muted);
}

.thome-footer strong {
  color: var(--h-text-2);
}

.thome-method {
  display: grid;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0 0 0 1.2rem;
  max-width: 52rem;
  color: var(--h-muted, #57534e);
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (min-width: 720px) {
  .thome-method {
    grid-template-columns: 1fr 1fr;
  }
}
.thome-guides {
  padding: 8px 0 36px;
}
.thome-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.thome-guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--h-border, #e7e1d9);
  background: var(--h-surface, #fff);
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
}

/* ── responsive ─────────────────────────────────────────────── */
@media (min-width: 960px) {
  .thome-nav {
    display: inline-flex;
  }

  .thome-hero {
    padding: 76px 0 60px;
  }
}

@media (max-width: 1040px) {
  .thome-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .thome-feature {
    border-left: none;
    padding: 16px;
    border-radius: var(--h-r-md);
    background: var(--h-surface);
    border: 1px solid var(--h-border);
  }

  .thome-feature:first-child,
  .thome-feature:last-child {
    padding: 16px;
  }
}

/* tablet: B1 | B2 on top, C1 centred underneath at the same card width */
@media (max-width: 1120px) {
  .thome-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.portal-landing .level-card.c1 {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 10px);
  }
}

@media (max-width: 760px) {
  .thome-level-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.portal-landing .level-card.c1 {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

@media (max-width: 900px) {
  .thome-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .thome-steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .thome-shell {
    padding-inline: 18px;
  }

  .thome-notif {
    position: fixed;
    top: 68px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
    max-height: min(520px, calc(100dvh - 80px));
  }

  .thome-header__inner {
    min-height: 62px;
    gap: 10px;
    overflow: visible;
  }

  .thome-brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .thome-brand__word {
    font-size: 0.98rem;
  }

  .thome-brand__tag {
    display: none;
  }

  .thome-header__utils {
    gap: 6px;
  }

  .thome-divider-v {
    display: none;
  }

  .thome-hero {
    padding: 34px 0 34px;
  }

  .thome-hero h1 {
    margin-top: 18px;
  }

  .thome-hero__cta {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  body.portal-landing .thome-btn {
    width: 100%;
  }

  .thome-hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    margin-top: 26px;
    padding-top: 20px;
  }

  .thome-band {
    padding: 38px 0 42px;
  }

  .thome-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .thome-feature {
    padding: 14px;
    gap: 9px;
  }

  .thome-feature__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .thome-feature:last-child {
    grid-column: span 2;
  }

  .thome-levels {
    padding: 22px 0 36px;
  }

  .level-status {
    top: 14px;
    inset-inline-end: 14px;
    padding: 5px 10px;
    font-size: 0.6rem;
    gap: 7px;
  }

  .thome-soon-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .thome-soon-tile {
    padding: 20px;
  }

  .thome-soon-tile__flag {
    top: 18px;
    inset-inline-end: 18px;
    font-size: 0.6rem;
  }

  .thome-soon-tile__icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
  }

  body.portal-landing .level-card {
    aspect-ratio: 5 / 4;
    border-radius: var(--h-r-lg);
  }

  body.portal-landing .level-card__content {
    padding: 20px;
  }

  .level-card__meta {
    gap: 5px 12px;
    margin-top: 10px;
  }

  .level-card__meta li {
    font-size: 0.76rem;
  }

  .thome-journey {
    padding: 44px 0 48px;
  }

  .thome-step__icon {
    width: 54px;
    height: 54px;
  }

  .thome-community {
    padding: 44px 0 48px;
  }

  .thome-community__panel {
    padding: 22px 20px;
  }

  .thome-community__actions,
  body.portal-landing .portal-action-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  body.portal-landing .portal-telegram-btn,
  body.portal-landing #platform-share-btn {
    width: 100%;
    justify-content: center;
  }

  body.portal-landing #platform-share-btn .platform-share-btn__label {
    max-width: none;
  }
}

@media (max-width: 359px) {
  .thome-features {
    grid-template-columns: 1fr;
  }

  .thome-feature:last-child {
    grid-column: auto;
  }

  .thome-feature {
    flex-direction: row;
    align-items: center;
    gap: 13px;
  }

  .thome-feature__text h3 {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.portal-landing *,
  body.portal-landing *::before,
  body.portal-landing *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
