/* =========================================================================
   Page-level compositions (home hero, catalog, course detail, checkout,
   dashboard). Components come from components.css.
   ========================================================================= */

/* ---- Home hero ----------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background: radial-gradient(40% 50% at 15% 20%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 70%),
              radial-gradient(35% 45% at 85% 10%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%),
              radial-gradient(40% 40% at 70% 80%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: radial-gradient(color-mix(in oklab, var(--text) 14%, transparent) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 80%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--fs-4xl); letter-spacing: -0.035em; }
.hero .lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); color: var(--text-2); margin-top: 20px; max-width: 580px; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); margin-bottom: 22px; }
.hero-pill .badge { height: 22px; }
.hero-search { margin-top: 32px; display: flex; gap: 8px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); max-width: 560px; }
.hero-search .input { border: 0; box-shadow: none !important; height: 48px; background: transparent; }
.hero-trust { margin-top: 28px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust .stat-value { font-size: var(--fs-xl); }
.hero-visual { position: relative; }
.hero-window { border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.hero-window .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.hero-window .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.hero-window .screen { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(160deg, var(--brand-800), var(--ink-brand)); display: grid; place-items: center; }
.hero-window .play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.16); border: 1px solid rgb(255 255 255 / 0.3); color: #fff; backdrop-filter: blur(6px); }
.hero-window .play .icon { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 4px; }
.hero-window .lessons { padding: 14px; display: grid; gap: 8px; }
.hero-window .lesson { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: var(--fs-sm); font-weight: 600; }
.hero-window .lesson .icon { color: var(--success); }
.hero-window .lesson .progress { flex: 1; }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg-elevated); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); animation: float 6s ease-in-out infinite; }
.float-card .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.float-card.one { left: -28px; bottom: 18%; }
.float-card.two { right: -18px; top: 10%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 560px; } .float-card.one { left: 8px; } .float-card.two { right: 8px; } .hero-window { transform: none; } }

/* ---- Feature tiles ------------------------------------------------------- */
.feature { padding: 26px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-50); color: var(--brand-700); }
.feature.accent .ico { background: var(--accent-50); color: var(--accent-700); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: var(--fs-sm); }

.track { display: flex; align-items: center; gap: 14px; padding: 18px; color: inherit; text-decoration: none !important; }
.track .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); flex: none; transition: all var(--t); }
.track:hover .ico { background: var(--brand); color: #fff; }
.track .arrow { margin-left: auto; color: var(--text-3); transition: transform var(--t); }
.track:hover .arrow { transform: translateX(3px); color: var(--text); }

.steps { counter-reset: step; }
.step { position: relative; padding: 26px 26px 26px 26px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--border-strong); display: block; margin-bottom: 10px; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: clamp(32px, 6vw, 64px); color: #fff; isolation: isolate;
  background: radial-gradient(60% 90% at 0% 0%, color-mix(in oklab, var(--brand) 90%, #fff) 0%, transparent 60%), radial-gradient(50% 80% at 100% 100%, color-mix(in oklab, var(--accent) 80%, transparent), transparent 60%), linear-gradient(135deg, var(--brand-800), var(--ink-brand)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 0.8); }

/* ---- Catalog ----------------------------------------------------------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); background: linear-gradient(180deg, var(--brand-50), transparent); border-bottom: 1px solid var(--border); }
.page-head p { color: var(--text-2); margin-top: 8px; font-size: var(--fs-md); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 24px 0; }
.filter-bar form { display: flex; gap: 8px; flex: 1; max-width: 520px; }
.filter-bar .select { width: auto; height: 44px; }

/* ---- Course detail ----------------------------------------------------- */
.detail-hero { background: linear-gradient(160deg, var(--ink-brand), var(--brand-800)); color: #fff; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.detail-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 35%, transparent), transparent); pointer-events: none; }
.detail-hero h1 { color: #fff; font-size: var(--fs-3xl); max-width: 760px; }
.detail-hero .lead { color: rgb(255 255 255 / 0.78); font-size: var(--fs-md); max-width: 720px; margin-top: 14px; }
.detail-hero .meta-list { color: rgb(255 255 255 / 0.82); margin-top: 22px; }
.detail-hero .meta-list .icon { color: rgb(255 255 255 / 0.6); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: var(--fs-sm); color: rgb(255 255 255 / 0.65); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: rgb(255 255 255 / 0.8); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; position: relative; }
.detail-layout > .main { padding-top: 40px; display: grid; gap: 40px; }
.buy-card { position: sticky; top: calc(var(--header-h) + 20px); margin-top: -220px; z-index: 2; overflow: hidden; box-shadow: var(--shadow-lg); }
.buy-card .cover { aspect-ratio: 16/9; position: relative; background: var(--surface-2); }
.buy-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.buy-card .inner { padding: 22px; display: grid; gap: 16px; }
.buy-card .price .now { font-size: 2rem; }
.plan-options { display: grid; gap: 10px; }
.plan-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.plan-option:hover { border-color: var(--border-strong); }
.plan-option input { accent-color: var(--brand); width: 18px; height: 18px; }
.plan-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.plan-option .amt { margin-left: auto; text-align: right; font-weight: 750; color: var(--ink); line-height: 1.2; }
.plan-option .amt small { display: block; font-weight: 500; color: var(--text-3); font-size: 12px; }
.guarantee { display: flex; gap: 10px; align-items: center; color: var(--text-3); font-size: var(--fs-xs); justify-content: center; }
.curriculum .lesson-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: var(--fs-sm); color: var(--text-2); }
.curriculum .lesson-row + .lesson-row { border-top: 1px dashed var(--border); }
.curriculum .lesson-row .icon { color: var(--text-3); }
.curriculum .lesson-row a { font-weight: 650; }
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; gap: 0; }
  .detail-layout > aside { order: -1; }
  .buy-card { position: relative; top: 0; margin-top: -40px; max-width: 560px; }
  .detail-hero { padding-bottom: 72px; }
}

/* ---- Checkout ------------------------------------------------------------ */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.schedule { display: grid; gap: 0; }
.schedule .row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.schedule .row:last-child { border-bottom: 0; }
.schedule .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; }
.schedule .row.is-first .num { background: var(--brand); color: #fff; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } }

/* ---- Dashboard --------------------------------------------------------- */
.welcome { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 28px; }
.welcome h1 { font-size: var(--fs-2xl); }
.continue-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; }
.continue-card .thumb { position: relative; min-height: 170px; background: var(--surface-2); }
.continue-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.continue-card .thumb .play-btn { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / 0.92); color: var(--ink-brand); box-shadow: var(--shadow-lg); }
.continue-card .thumb .play-btn .icon { fill: currentColor; stroke: none; margin-left: 3px; }
.continue-card .body { padding: 24px; display: grid; gap: 12px; align-content: center; }
@media (max-width: 720px) { .continue-card { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.kpi .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.kpi .stat-value { font-size: var(--fs-xl); }
@media (max-width: 720px) {
  .kpis { gap: 10px; }
  .kpi { padding: 14px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .kpi .ico { width: 34px; height: 34px; border-radius: 10px; }
  .kpi .stat-label { font-size: 12px; }
}
.enrolled .body { gap: 12px; }
.enrolled .progress-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.enrolled .progress-row .progress { flex: 1; }

/* ---- Error page --------------------------------------------------------- */
.error-page { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.error-code { font-family: var(--font-display); font-weight: 850; font-size: clamp(5rem, 14vw, 9rem); letter-spacing: -0.06em; line-height: 1; }

/* ---- Subscriptions / pricing --------------------------------------------- */
.seg-switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-full); background: var(--surface-2); border: 1px solid var(--border); }
.seg-switch a { padding: 8px 18px; border-radius: var(--r-full); font-weight: 650; font-size: var(--fs-sm); color: var(--text-3); }
.seg-switch a:hover { text-decoration: none; color: var(--text); }
.seg-switch a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.pricing-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch;
  max-width: calc(var(--cols, 4) * 390px); margin-inline: auto; }   /* few plans stay card-sized and centred; 4 sit side by side */
.price-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border: 1.5px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-xs); }
.price-card.is-featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.price-card .ribbon { position: absolute; top: -12px; left: 24px; }
.price-card h2 { font-size: var(--fs-lg); }
.price-amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amount strong { font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.price-amount s { color: var(--text-3); }
.price-card .check-list { flex: 1; }
.price-card .btn { margin-top: auto; }
.code-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); }
.code-box code { font-size: var(--fs-lg); font-weight: 750; letter-spacing: 0.08em; color: var(--ink); }
.sub-cover { border: 1.5px solid var(--brand); background: var(--brand-50); border-radius: var(--r-md); padding: 14px; }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kpis.kpis-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Hero: tighter spacing (all styles) ------------------------------------- */
.hero { padding: clamp(20px, 3.2vw, 44px) 0 clamp(32px, 4.5vw, 60px); }
.hero-pill { margin-bottom: 14px; }
.hero .lead { margin-top: 14px; }
.hero-search { margin-top: 22px; }
.hero-trust { margin-top: 20px; }

/* ---- Hero: dark glass variant (photo / video) ------------------------------- */
.hero-dark { color: #fff;
  background:
    radial-gradient(55% 70% at 80% 45%, color-mix(in oklab, var(--brand) 55%, transparent), transparent 70%),
    radial-gradient(40% 55% at 0% 0%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%),
    linear-gradient(160deg, #050a1a 0%, #0a1433 55%, #0e1d4a 100%); }
.hero-dark::before { display: none; }
.hero-dark::after { opacity: 0.35; background-image: radial-gradient(rgb(255 255 255 / 0.16) 1px, transparent 1px); }
.hero-dark h1 { color: #fff; }
.hero-dark .gradient-text { background-image: linear-gradient(100deg, #7fb2ff 5%, #ffb36b 95%); }
.hero-dark .lead { color: rgb(255 255 255 / 0.78); }
.hero-dark .hero-pill { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.18); color: #fff; backdrop-filter: blur(10px); box-shadow: none; }
.hero-dark .hero-search { border-color: transparent; box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.6); }
.hero-dark .hero-trust .stat-value { color: #fff; }
.hero-dark .hero-trust .stat-label { color: rgb(255 255 255 / 0.65); }
.hero-dark + .section-tight { padding-top: clamp(28px, 4vw, 48px); }

.glass { background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.22); border-radius: 16px; color: #fff;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 20px 40px -18px rgb(0 0 0 / 0.55); }
.hero:not(.hero-dark) .glass { background: rgb(255 255 255 / 0.86); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-md); }
.hero:not(.hero-dark) .tech-bubble { background: var(--surface); color: var(--text); border-color: var(--border); }

.hero-stage { position: relative; min-height: clamp(420px, 40vw, 540px); display: grid; place-items: end center; }
.hero-stage.is-video { place-items: center; }
.hero-orb { position: absolute; left: 50%; top: 54%; width: min(400px, 78%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 28%, #6fb0ff 0%, var(--brand) 42%, #0a2470 100%);
  box-shadow: 0 0 110px 8px color-mix(in oklab, var(--brand) 45%, transparent), inset 0 -30px 60px rgb(0 0 0 / 0.25); }
.hero-ring { position: absolute; left: 50%; top: 54%; width: min(500px, 96%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  border: 1.5px dashed rgb(255 255 255 / 0.22); animation: hero-spin 80s linear infinite; }
.hero:not(.hero-dark) .hero-ring { border-color: color-mix(in oklab, var(--brand) 35%, transparent); }
.hero-dots { position: absolute; left: 0; bottom: 6%; width: 130px; height: 110px; opacity: 0.55;
  background-image: radial-gradient(rgb(255 255 255 / 0.45) 1.5px, transparent 1.6px); background-size: 16px 16px; }
.hero:not(.hero-dark) .hero-dots { background-image: radial-gradient(color-mix(in oklab, var(--brand) 50%, transparent) 1.5px, transparent 1.6px); }
.hero-person { position: relative; z-index: 1; width: min(430px, 86%); height: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.45)); }
.is-card .hero-person { width: min(340px, 68%); aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 28px; margin-bottom: 7%;
  border: 1px solid rgb(255 255 255 / 0.28); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); filter: none; }
.is-card .float-trust { top: 64%; left: -2%; }
.hero-video { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; padding: 8px; }
.hero-video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; display: block; }

.float-stat, .float-trust, .float-name { position: absolute; z-index: 2; animation: hero-bob 7s ease-in-out infinite; }
.float-stat { padding: 12px 18px; display: grid; gap: 2px; min-width: 132px; }
.float-stat strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.hero-dark .float-stat.fs-1 strong { color: #8ec0ff; } .hero-dark .float-stat.fs-2 strong { color: #7ee2a8; } .hero-dark .float-stat.fs-3 strong { color: #ffc183; }
.float-stat span { font-size: 0.8rem; font-weight: 600; opacity: 0.78; }
.fs-1 { left: 0; top: 4%; } .fs-2 { right: 0; top: 0; animation-delay: -2s; } .fs-3 { right: -2%; top: 46%; animation-delay: -4s; }
.float-trust { left: -3%; top: 38%; padding: 12px 16px; max-width: 250px; display: grid; gap: 3px; text-decoration: none; color: inherit; animation-delay: -3s; border-width: 1.5px; }
a.float-trust:hover { text-decoration: none; border-color: rgb(255 255 255 / 0.5); }
.float-trust .ft-label { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; opacity: 0.82; }
.float-trust .ft-label .icon { color: var(--accent); }
.float-trust strong { font-size: 1.1rem; line-height: 1.25; }
.float-trust .ft-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 700; color: #9cc6ff; }
.hero:not(.hero-dark) .float-trust .ft-link { color: var(--brand); }
.float-name { right: 3%; bottom: 3%; padding: 10px 16px; text-align: right; display: grid; border-right: 3px solid var(--accent); animation-delay: -5s; }
.float-name strong { font-size: 1.05rem; } .float-name span { font-size: 0.8rem; font-weight: 600; opacity: 0.92; }
.hero-dark .float-name { background: rgb(10 20 50 / 0.55); }

.hero-bubbles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tech-bubble { position: absolute; pointer-events: auto; padding: 7px 14px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: #fff; text-decoration: none;
  background: rgb(255 255 255 / 0.1); border: 1px solid rgb(255 255 255 / 0.26); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.6); animation: hero-bob 6s ease-in-out infinite; transition: background var(--t-fast), border-color var(--t-fast); }
.tech-bubble:hover, .tech-bubble:focus-visible { background: var(--brand); border-color: transparent; color: #fff; text-decoration: none; }
.tb-1 { left: 33%; top: 1%; } .tb-2 { right: 3%; top: 27%; animation-delay: -1s; } .tb-3 { left: 1%; top: 25%; animation-delay: -2.5s; }
.tb-4 { left: 5%; top: 62%; animation-delay: -1.5s; } .tb-5 { right: 0; top: 66%; animation-delay: -3.5s; } .tb-6 { left: 20%; bottom: 7%; animation-delay: -4.5s; }
.tb-7 { left: 40%; top: 33%; animation-delay: -2s; } .tb-8 { left: 31%; top: 22%; animation-delay: -5s; }

@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes hero-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tech-bubble, .float-stat, .float-trust, .float-name, .hero-ring { animation: none; } }

@media (max-width: 960px) {
  .hero-stage { max-width: 560px; width: 100%; margin-inline: auto; min-height: 440px; }
  .tb-7, .tb-8, .hero-dots { display: none; }
}
@media (max-width: 560px) {
  .hero-stage { min-height: 380px; }
  .float-stat { min-width: 0; padding: 9px 12px; } .float-stat strong { font-size: 1.3rem; }
  .float-trust { left: 0; top: 40%; max-width: 190px; padding: 10px 12px; } .float-trust strong { font-size: 0.95rem; }
  .tb-5, .tb-6 { display: none; }
  .fs-3 { display: none; }
}

/* ---- Tighter page spacing --------------------------------------------------- */
.page-head { padding: clamp(18px, 3vw, 36px) 0 clamp(14px, 2.2vw, 24px); }
.welcome { margin-bottom: 20px; }

/* ==== Accent cards: one design for format, feature, step and stat cards ============================
   Each card gets a "tone" (cycles per position in its grid): coloured left stripe, soft tinted
   background, coloured icon tile, clearer text. Change the palette here and every page follows. */
:root { --tone-1: #2563eb; --tone-2: #16a34a; --tone-3: #ea580c; --tone-4: #7c3aed; --tone-5: #0891b2; --tone-6: #db2777; }
.track, .feature, .step, .kpi, .tone-card { --tone: var(--tone-1); }
:is(.track, .feature, .step, .kpi, .tone-card):nth-child(6n+2) { --tone: var(--tone-2); }
:is(.track, .feature, .step, .kpi, .tone-card):nth-child(6n+3) { --tone: var(--tone-3); }
:is(.track, .feature, .step, .kpi, .tone-card):nth-child(6n+4) { --tone: var(--tone-4); }
:is(.track, .feature, .step, .kpi, .tone-card):nth-child(6n+5) { --tone: var(--tone-5); }
:is(.track, .feature, .step, .kpi, .tone-card):nth-child(6n+6) { --tone: var(--tone-6); }

.card:is(.track, .feature, .step, .kpi, .tone-card) {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--tone) 8%, var(--surface)) 0%, var(--surface) 62%);
  border: 1px solid color-mix(in oklab, var(--tone) 20%, var(--border));
  border-left: 5px solid var(--tone);
  box-shadow: 0 12px 30px -20px color-mix(in oklab, var(--tone) 55%, transparent);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:is(.track, .feature, .step, .tone-card)::after {   /* soft decorative glow, top-right */
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in oklab, var(--tone) 16%, transparent), transparent 70%);
}
:is(a.card.track, .card.feature, .card.step, .card.tone-card):hover {
  transform: translateY(-4px); border-color: color-mix(in oklab, var(--tone) 45%, var(--border)); border-left-color: var(--tone);
  box-shadow: 0 22px 40px -22px color-mix(in oklab, var(--tone) 70%, transparent);
}
:is(.track, .feature, .kpi, .tone-card) .ico {
  background: color-mix(in oklab, var(--tone) 14%, var(--surface)); color: var(--tone);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--tone) 22%, transparent);
}
.feature.accent .ico { background: color-mix(in oklab, var(--tone) 14%, var(--surface)); color: var(--tone); }

/* Feature cards: bigger, clearer */
.feature { padding: clamp(22px, 2.4vw, 30px); }
.feature .ico { width: 54px; height: 54px; border-radius: 16px; margin-bottom: 18px; }
.feature h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.feature p { font-size: var(--fs-base); line-height: 1.65; color: var(--text-2); }

/* Format (track) cards */
.track { padding: 20px 20px 20px 18px; gap: 16px; }
.track .ico { width: 50px; height: 50px; border-radius: 14px; }
.track:hover .ico { background: var(--tone); color: #fff; }
.track strong { font-size: 1.08rem; color: var(--ink); }
.track .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--tone) 10%, var(--surface)); color: var(--tone); }
.track:hover .arrow { background: var(--tone); color: #fff; }

/* Step cards: solid coloured number instead of a faint outline */
.step { padding: clamp(22px, 2.4vw, 30px); }
.step::before { color: var(--tone); -webkit-text-stroke: 0; font-size: 2.6rem; opacity: 0.9;
  background: linear-gradient(135deg, var(--tone), color-mix(in oklab, var(--tone) 55%, #fff)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step h3 { font-size: 1.2rem; color: var(--ink); }
.step p, .step .muted { font-size: var(--fs-base) !important; line-height: 1.65; color: var(--text-2) !important; }

/* Stat tiles (learner pages, affiliate dashboard) */
.kpi { border-left-width: 4px !important; }
.kpi .stat-value { color: var(--ink); }

/* Dark mode: a little more colour so cards stand apart from the page */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card:is(.track, .feature, .step, .kpi, .tone-card) {
    background: linear-gradient(135deg, color-mix(in oklab, var(--tone) 16%, var(--surface)) 0%, var(--surface) 65%); }
}
:root[data-theme="dark"] .card:is(.track, .feature, .step, .kpi, .tone-card) {
  background: linear-gradient(135deg, color-mix(in oklab, var(--tone) 16%, var(--surface)) 0%, var(--surface) 65%); }

/* Round headshot frame */
.hero-stage.is-circle { place-items: center; }
.is-circle .hero-person { width: min(300px, 60%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; filter: none;
  border: 6px solid rgb(255 255 255 / 0.9); box-shadow: 0 0 0 10px rgb(255 255 255 / 0.08), 0 30px 60px -20px rgb(0 0 0 / 0.6); margin-top: 4%; }
.is-circle .float-trust { top: 66%; left: -2%; }
.is-circle .float-name { bottom: 6%; }
.float-trust strong { white-space: nowrap; }
@media (max-width: 560px) {
  .is-circle .float-trust { top: auto; bottom: 2%; left: 0; max-width: none; }
  .is-circle .float-name { bottom: auto; top: 4%; right: 0; }
  .is-circle .tb-1 { display: none; }
  .is-circle .hero-person { width: min(230px, 62%); }
}

/* ===== About page ===== */
.about-hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 5vw, 56px);
  background: radial-gradient(80% 90% at 100% 0%, var(--brand-100), transparent 60%), linear-gradient(180deg, var(--brand-50), var(--bg)); }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.about-hero h1 { font-size: var(--fs-4xl); letter-spacing: -0.03em; line-height: 1.08; }
.about-hero .lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: var(--text-2); margin-top: 18px; max-width: 640px; }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.about-stats > div { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.about-stats strong { font-size: var(--fs-2xl); letter-spacing: -0.02em; color: var(--brand-700); }
.about-stats span { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.35; }
.about-hero-photo { position: relative; margin: 0; justify-self: center; max-width: 380px; order: -1; }
.about-hero-photo::before { content: ""; position: absolute; inset: 18% 4% 0 4%; border-radius: 48% 48% var(--r-xl) var(--r-xl);
  background: linear-gradient(160deg, var(--brand), var(--accent)); opacity: .9; z-index: 0; }
.about-hero-photo img { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
.about-hero-photo figcaption { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); display: grid; text-align: center; white-space: nowrap;
  padding: 10px 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.about-hero-photo figcaption span { font-size: var(--fs-xs); color: var(--text-2); }
.about-brand { display: grid; gap: 12px; align-content: start; }
.about-brand-icon, .about-link-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); }
.about-brand .btn { justify-self: start; }
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.about-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--surface); }
.about-photo img { width: 100%; height: auto; display: block; }
.about-cases { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.about-case { overflow: hidden; color: inherit; text-decoration: none !important; display: grid; grid-template-rows: auto 1fr; }
.about-case-img { aspect-ratio: 16 / 9; background: linear-gradient(140deg, var(--brand-800), var(--ink-brand)); display: grid; place-items: center; overflow: hidden; }
.about-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.about-case:hover .about-case-img img { transform: scale(1.04); }
.about-case-img span { color: #fff; font-size: var(--fs-3xl); font-weight: 850; letter-spacing: .04em; opacity: .9; }
.about-case h3 { font-size: var(--fs-md); }
.about-offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.about-offer h3 { font-size: var(--fs-base); display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.about-offer h3 .icon { color: var(--brand); }
.about-links { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.about-link { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; color: inherit; text-decoration: none !important; }
.about-link > span:nth-child(2) { display: grid; gap: 2px; }
.about-link > .icon { color: var(--text-3); }
.about-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: clamp(22px, 4vw, 40px); align-items: center;
  background: linear-gradient(135deg, var(--brand-50), var(--surface)); border-color: var(--brand-200); }
.about-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.about-contact-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.about-contact-list .icon { color: var(--brand); }
@media (max-width: 900px) {
  .about-hero-grid, .about-split, .about-contact { grid-template-columns: 1fr; }
  .about-split-rev .about-photo { order: 2; }
  .about-hero-photo { max-width: 300px; order: 0; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .about-offer { grid-template-columns: 1fr; } }

/* ===== Policy pages ===== */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 4vw, 48px) 16px clamp(40px, 6vw, 72px); }
.legal-nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 4px; }
.legal-nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }
.legal-nav a:hover { background: var(--surface-2); color: var(--text); }
.legal-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.legal-body h2 { font-size: var(--fs-lg); margin: 32px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: var(--fs-md, 1.05rem); margin: 24px 0 8px; }
.legal-body h2[id] { scroll-margin-top: 90px; }
.legal-body p, .legal-body li { color: var(--text-2); line-height: 1.7; }
.legal-body ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-note { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
@media (max-width: 800px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; display: flex; flex-wrap: wrap; } }

/* ===== EduArn LMS product page ===== */
.lms-hero { position: relative; overflow: hidden; padding: clamp(24px, 3.5vw, 48px) 0 clamp(36px, 4.5vw, 60px);
  background: radial-gradient(70% 80% at 100% 0%, var(--brand-100), transparent 60%), radial-gradient(50% 60% at 0% 100%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 70%), linear-gradient(180deg, var(--brand-50), var(--bg)); }
.lms-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center; max-width: 1240px; }
.lms-hero h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.1; max-width: 15em; }
.lms-hl { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lms-hero .lead { font-size: clamp(1rem, .95rem + .25vw, 1.12rem); color: var(--text-2); margin-top: 14px; max-width: 560px; line-height: 1.6; }
.lms-hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.lms-hero-points li { display: flex; gap: 6px; align-items: center; }
.lms-hero-points .icon { color: var(--success); }
.lms-hero-shot { position: relative; margin: 0; }
.lms-hero-shot img { width: 100%; height: auto; max-height: min(440px, 60vh); object-fit: cover; display: block; border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-lg, var(--shadow-md)); background: var(--surface); }
.lms-float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.lms-float > .icon { color: var(--brand); width: 22px; height: 22px; }
.lms-float span { display: grid; line-height: 1.25; }
.lms-float small { font-size: var(--fs-xs); color: var(--text-2); }
.lms-float-a { left: -14px; bottom: -18px; }
.lms-float-b { right: -10px; top: -16px; }
.lms-strip { border-block: 1px solid var(--border); background: var(--surface); }
.lms-strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lms-strip-grid > div { display: grid; gap: 2px; padding: 22px 16px; text-align: center; }
.lms-strip-grid > div + div { border-left: 1px solid var(--border); }
.lms-strip strong { font-size: var(--fs-2xl); letter-spacing: -0.02em; color: var(--brand-700); }
.lms-strip span { font-size: var(--fs-sm); color: var(--text-2); }
.lms-center { justify-content: center; text-align: center; }
.lms-center p { margin-inline: auto; }
.lms-center-text { text-align: center; }
.lms-alt { background: var(--surface-2); }
.lms-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); }
.lms-uses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lms-use { display: grid; gap: 10px; align-content: start; }
.lms-use h3 { font-size: var(--fs-md); }
.lms-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lms-feature { --tone: var(--brand); position: relative; display: grid; align-content: start; gap: 16px; padding: 24px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xs); overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.lms-feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--tone), color-mix(in oklab, var(--tone) 30%, transparent)); opacity: .85; }
.lms-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in oklab, var(--tone) 35%, var(--border)); }
.lms-tone-1 { --tone: #7c3aed; } .lms-tone-2 { --tone: #0d9488; } .lms-tone-3 { --tone: var(--accent); }
.lms-feature-head { display: flex; gap: 14px; align-items: flex-start; }
.lms-feature-ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; color: #fff;
  background: linear-gradient(140deg, var(--tone), color-mix(in oklab, var(--tone) 65%, #000)); box-shadow: 0 6px 16px color-mix(in oklab, var(--tone) 30%, transparent); }
.lms-feature h3 { font-size: var(--fs-md); line-height: 1.25; }
.lms-feature-head p { margin-top: 4px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.45; }
.lms-feature ul { padding-top: 14px !important; border-top: 1px dashed var(--border); }
.lms-feature li .icon { color: var(--tone) !important; }
.lms-feature ul, .lms-plan-list, .lms-plan-meta { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.lms-feature li, .lms-plan-list li, .lms-plan-meta li { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.5; }
.lms-feature li .icon, .lms-plan-list li .icon { color: var(--success); margin-top: 3px; flex: none; }
.lms-access { display: grid; gap: 12px; }
.lms-access > div { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.lms-access > div > .icon { color: var(--brand); width: 22px; height: 22px; flex: none; }
.lms-access span { display: grid; gap: 2px; }
.lms-access small { color: var(--text-2); font-size: var(--fs-sm); }
.lms-steps { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: linear-gradient(150deg, var(--brand-50), var(--surface)); border: 1px solid var(--brand-200); }
.lms-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; display: grid; gap: 18px; }
.lms-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; }
.lms-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.lms-steps li span { color: var(--text-2); font-size: var(--fs-sm); }
.lms-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; max-width: 1080px; margin-inline: auto; }
.lms-plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 30px); }
.lms-plan.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.lms-plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: var(--r-full); background: var(--brand); color: #fff; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.lms-plan h3 { font-size: var(--fs-xl); }
.lms-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lms-price strong { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; }
.lms-price span { color: var(--text-2); font-size: var(--fs-sm); }
.lms-offer { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: var(--r-md); background: color-mix(in oklab, var(--success) 12%, transparent); color: var(--success); font-weight: 700; font-size: var(--fs-sm); }
.lms-plan-meta { padding-block: 12px; border-block: 1px solid var(--border); }
.lms-plan-meta li { font-weight: 650; color: var(--text); }
.lms-plan-meta .icon { color: var(--brand); margin-top: 2px; }
.lms-plan-list { flex: 1; }
.lms-plan-list li.is-extra .icon { color: var(--accent); }
.lms-plan-list em { font-style: normal; font-size: var(--fs-xs); padding: 1px 7px; border-radius: var(--r-full); background: var(--surface-2); color: var(--text-3); margin-left: 4px; white-space: nowrap; }
.lms-quotes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lms-quote { margin: 0; display: grid; gap: 12px; align-content: start; }
.lms-stars { display: flex; gap: 2px; color: #f59e0b; }
.lms-stars .icon { fill: currentColor; }
.lms-quote blockquote { margin: 0; color: var(--text); line-height: 1.6; }
.lms-quote figcaption { display: grid; font-size: var(--fs-sm); }
.lms-quote figcaption span { color: var(--text-2); }
.lms-faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.lms-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2px 18px; }
.lms-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lms-faq summary::-webkit-details-marker { display: none; }
.lms-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.lms-faq details[open] summary::after { content: "\2013"; }
.lms-faq p { padding: 0 0 16px; color: var(--text-2); line-height: 1.65; }
.lms-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.lms-cta .lms-cta-main { --btn-bg: #fff; --btn-fg: var(--brand-800); --btn-bd: #fff; }
.lms-cta .lms-cta-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .5); }
#features, #pricing { scroll-margin-top: 80px; }
@media (max-width: 1000px) {
  .lms-features, .lms-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms-plans { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 900px) { .lms-hero-grid { grid-template-columns: 1fr; } .lms-float-a { left: 8px; } .lms-float-b { right: 8px; } }
@media (max-width: 640px) {
  .lms-features, .lms-uses, .lms-quotes { grid-template-columns: 1fr; }
  .lms-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lms-strip-grid > div:nth-child(3) { border-left: 0; }
  .lms-strip-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ===== Contact page ===== */
.contact-head { background: radial-gradient(70% 90% at 100% 0%, var(--brand-100), transparent 60%), linear-gradient(180deg, var(--brand-50), var(--bg)); }
.contact-quick { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-quick-item { display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs); color: inherit; text-decoration: none !important; transition: transform var(--t), box-shadow var(--t); }
.contact-quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-quick-item > span:last-child { display: grid; line-height: 1.3; }
.contact-quick-item small { color: var(--text-2); font-size: var(--fs-sm); }
.contact-quick-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-700); }
.contact-quick-item.is-wa .contact-quick-ico { background: #25d366; color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; }
.contact-card h2 { font-size: var(--fs-md); }
.contact-form-card { padding: clamp(22px, 3vw, 34px); scroll-margin-top: 90px; border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.contact-form-card h2 { font-size: var(--fs-xl); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Floating contact buttons (every public page) ===== */
.float-contact { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 12px; }
body:has(.fn-sticky, .wb-sticky, .bottom-nav) .float-contact { bottom: calc(88px + env(safe-area-inset-bottom)); }
.float-btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; text-decoration: none !important;
  box-shadow: 0 8px 22px rgb(0 0 0 / .18); transition: transform var(--t), box-shadow var(--t); }
.float-btn .icon { width: 26px; height: 26px; }
.float-btn:hover, .float-btn:focus-visible { transform: scale(1.07); box-shadow: 0 10px 26px rgb(0 0 0 / .25); }
.float-btn.is-wa { background: #25d366; animation: float-pulse 2.4s ease-out 1.5s 3; }
.float-btn.is-mail { background: linear-gradient(140deg, var(--brand), var(--brand-800)); width: 46px; height: 46px; justify-self: center; }
.float-btn.is-mail .icon { width: 21px; height: 21px; }
.float-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 6px 10px; border-radius: 8px;
  background: var(--ink-brand, #0a1f44); color: #fff; font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t); }
.float-btn:hover .float-tip, .float-btn:focus-visible .float-tip { opacity: 1; transform: translate(0, -50%); }
@keyframes float-pulse { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / .55), 0 8px 22px rgb(0 0 0 / .18); } 70% { box-shadow: 0 0 0 14px rgb(37 211 102 / 0), 0 8px 22px rgb(0 0 0 / .18); } 100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0), 0 8px 22px rgb(0 0 0 / .18); } }
@media (prefers-reduced-motion: reduce) { .float-btn.is-wa { animation: none; } }
@media (max-width: 560px) { .float-btn { width: 48px; height: 48px; } .float-btn.is-mail { width: 42px; height: 42px; } .float-tip { display: none; } }
@media print { .float-contact { display: none; } }

/* Contact header with the trainer photo and training "bubbles" (main site) */
.contact-head.has-stage { padding-bottom: 0; overflow: hidden; }
.contact-head.has-stage .contact-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.contact-head.has-stage .contact-head-grid > div:first-child { padding-bottom: clamp(24px, 4vw, 48px); }
.contact-stage { position: relative; min-height: 440px; display: grid; place-items: end center; }
.cs-orb { position: absolute; left: 50%; top: 56%; width: min(330px, 74%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 28%, #6fb0ff 0%, var(--brand) 45%, #0a2470 100%); box-shadow: 0 0 90px 4px color-mix(in oklab, var(--brand) 35%, transparent); }
.cs-ring { position: absolute; left: 50%; top: 56%; width: min(420px, 94%); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  border: 1.5px dashed color-mix(in oklab, var(--brand) 35%, transparent); animation: hero-spin 80s linear infinite; }
.cs-dots { position: absolute; left: 4%; bottom: 8%; width: 110px; height: 90px; opacity: .5;
  background-image: radial-gradient(color-mix(in oklab, var(--brand) 55%, transparent) 1.5px, transparent 1.6px); background-size: 15px 15px; }
.cs-person { position: relative; z-index: 1; width: min(330px, 74%); height: auto; margin-left: 2%; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .28)); }
.cs-bubble { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  font-size: .76rem; font-weight: 700; color: var(--text); text-decoration: none !important; background: rgb(255 255 255 / .92); border: 1px solid var(--border);
  box-shadow: 0 10px 22px -12px rgb(10 31 68 / .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: hero-bob 6s ease-in-out infinite; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); }
.cs-bubble .icon { color: var(--brand); }
.cs-bubble:hover, .cs-bubble:focus-visible { background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -10px color-mix(in oklab, var(--brand) 70%, transparent); }
.cs-bubble:hover .icon, .cs-bubble:focus-visible .icon { color: #fff; }
.cb-1 { left: 0; top: 10%; } .cb-2 { right: 4%; top: 2%; animation-delay: -1s; } .cb-3 { left: 6%; top: 30%; animation-delay: -2.5s; }
.cb-4 { right: 0; top: 24%; animation-delay: -1.8s; } .cb-5 { left: 0; top: 52%; animation-delay: -3.4s; } .cb-6 { right: 0; top: 50%; animation-delay: -4.2s; }
.cb-7 { left: 9%; top: 72%; animation-delay: -5s; }
@media (min-width: 901px) { .cb-4 { right: -7%; } .cb-6 { right: -8%; } .cb-2 { right: -2%; } }
.cs-name { position: absolute; z-index: 3; right: 2%; bottom: 6%; display: grid; text-align: right; padding: 9px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); border-right: 3px solid var(--accent); box-shadow: var(--shadow-md); animation: hero-bob 7s ease-in-out -5s infinite; }
.cs-name strong { font-size: .98rem; } .cs-name span { font-size: .76rem; font-weight: 600; color: var(--text-2); }
[data-theme="dark"] .cs-bubble { background: rgb(20 28 48 / .88); }
@media (prefers-reduced-motion: reduce) { .cs-bubble, .cs-name, .cs-ring { animation: none; } }
@media (max-width: 900px) {
  .contact-head.has-stage .contact-head-grid { grid-template-columns: 1fr; }
  .contact-head.has-stage .contact-head-grid > div:first-child { padding-bottom: 0; }
  .contact-stage { max-width: 480px; width: 100%; margin-inline: auto; min-height: 400px; }
}
@media (max-width: 480px) {
  .contact-stage { min-height: 340px; }
  .cs-bubble { font-size: .7rem; padding: 5px 10px; }
  .cb-3, .cb-4, .cb-7, .cs-dots { display: none; }
  .cb-2 { right: 0; top: 0; } .cb-6 { right: auto; left: 0; top: 70%; }
}

/* ===== Help & guides (signed-in users) ===== */
.guides-hero { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); border: 1px solid var(--brand-200);
  background: radial-gradient(70% 120% at 100% 0%, var(--brand-100), transparent 60%), linear-gradient(135deg, var(--brand-50), var(--surface)); }
.guides-hero h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
.guides-search { position: relative; display: flex; gap: 10px; max-width: 640px; }
.guides-search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.guides-search .input { padding-left: 42px; flex: 1; }
.guides-h2 { font-size: var(--fs-lg); }
.guides-results { display: grid; gap: 10px; }
.guides-result { display: grid; gap: 2px; color: inherit; text-decoration: none !important; }
.guides-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; align-items: start; }
.guides-section { padding: 20px; scroll-margin-top: 90px; }
.guides-section-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.guides-section-head > div { flex: 1; }
.guides-section-head h2 { font-size: var(--fs-md); }
.guides-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-800)); }
.guides-list { list-style: none; margin: 0; padding: 0; display: grid; }
.guides-list a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.guides-list a:hover { color: var(--brand-700); }
.guides-list a .icon { color: var(--text-3); flex: none; }
.guides-crumbs { display: flex; gap: 8px; align-items: center; color: var(--text-3); margin-bottom: 14px; }
.guides-crumbs a { color: var(--text-2); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.guide-article { min-width: 0; max-width: 780px; }
.guide-head h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; line-height: 1.15; }
.lead-sm { font-size: var(--fs-md); }
.guide-toc-inline { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 4px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--surface-2); font-size: var(--fs-sm); }
.guide-toc-inline strong { width: 100%; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.guide-body { margin-top: 18px; }
.guide-body h2 { font-size: var(--fs-xl); margin: 30px 0 10px; scroll-margin-top: 90px; }
.guide-body h3 { font-size: var(--fs-md); margin: 22px 0 8px; }
.guide-body p, .guide-body li { color: var(--text-2); line-height: 1.7; }
.guide-body ul { padding-left: 20px; display: grid; gap: 6px; margin: 8px 0; }
.guide-body img { max-width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm, var(--shadow-xs)); margin: 10px 0; }
.guide-body code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.guide-body pre { padding: 14px 16px; border-radius: var(--r-md); background: var(--ink-brand, #0a1f44); color: #e6ecff; overflow-x: auto; font-size: var(--fs-sm); }
.guide-body pre code { background: none; border: 0; padding: 0; color: inherit; }
.guide-steps { list-style: none; counter-reset: gs; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.guide-steps > li { counter-increment: gs; position: relative; padding: 14px 16px 14px 58px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.guide-steps > li::before { content: counter(gs); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: var(--fs-sm); }
.guide-steps > li > div { color: var(--text); line-height: 1.6; }
.guide-steps > li p, .guide-steps > li ul { margin: 6px 0 0; }
.guide-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700);
  font-weight: 650; font-size: .92em; white-space: nowrap; }
.guide-path span { opacity: .6; }
.guide-callout { margin: 14px 0; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid; display: grid; gap: 2px; }
.guide-callout p { margin: 0; }
.guide-callout.is-tip { background: color-mix(in oklab, var(--success) 8%, var(--surface)); border-color: color-mix(in oklab, var(--success) 35%, transparent); }
.guide-callout.is-tip strong { color: var(--success); }
.guide-callout.is-note { background: var(--brand-50); border-color: var(--brand-200); }
.guide-callout.is-note strong { color: var(--brand-700); }
.guide-callout.is-warning { background: color-mix(in oklab, var(--accent) 9%, var(--surface)); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.guide-callout.is-warning strong { color: color-mix(in oklab, var(--accent) 80%, #000); }
.guide-table { overflow-x: auto; margin: 12px 0; }
.guide-table table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.guide-table th, .guide-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide-table th { background: var(--surface-2); font-weight: 700; }
.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.guide-pager a { display: grid; gap: 4px; color: inherit; text-decoration: none !important; }
.guide-pager a .text-xs { display: inline-flex; align-items: center; gap: 4px; }
.guide-pager .is-next { text-align: right; justify-items: end; }
.guide-side { position: sticky; top: 90px; display: grid; gap: 2px; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.guide-side-title { text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 6px; }
.guide-side a { padding: 7px 8px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; font-weight: 600; }
.guide-side a:hover { background: var(--surface-2); color: var(--text); }
.guide-side a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.guide-side-all { display: flex; gap: 6px; align-items: center; margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 !important; padding-top: 10px !important; }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: 1fr; } .guide-side { position: static; } }
@media (max-width: 560px) { .guide-pager { grid-template-columns: 1fr; } .guides-search { flex-wrap: wrap; } }
