/* StackTrellis public site: refined visual layer. Loaded after style.css on the public layout only (the admin does not load it). */
:root {
  --max: 1200px;
  --ink: #0b1020; --ink-2: #121a33; --ink-3: #1b2547;
  --on-ink: #e8ecf8; --on-ink-muted: #a9b5d3;
  --accent: #22d3ee; --accent-soft: #a5b4fc;
  --grad-brand: linear-gradient(120deg, #4338ca 0%, #6366f1 45%, #22d3ee 100%);
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lift: 0 2px 4px rgba(15, 23, 42, .06), 0 18px 40px rgba(67, 56, 202, .14);
}
:root[data-theme="dark"] { --shadow-soft: 0 0 0 1px #24324a; --shadow-lift: 0 0 0 1px #3a4a78, 0 18px 40px rgba(0, 0, 0, .35); }

body { font-size: 1.0625rem; letter-spacing: -.003em; }
.container { max-width: var(--max); }
h1, h2, h3 { letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.12; }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { font-size: 1.12rem; line-height: 1.65; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; letter-spacing: .14em; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn { min-height: 48px; padding: 12px 24px; border-radius: 12px; font-size: 1rem; letter-spacing: -.005em; transition: transform .15s var(--ease), box-shadow .2s, background-color .15s, border-color .15s; }
.btn--primary { box-shadow: 0 1px 2px rgba(67, 56, 202, .35), 0 8px 20px rgba(67, 56, 202, .22); }
.btn--primary:hover { box-shadow: 0 2px 4px rgba(67, 56, 202, .35), 0 14px 28px rgba(67, 56, 202, .3); filter: none; background: #4f46e5; }
:root[data-theme="dark"] .btn--primary:hover { background: #b4bcff; }
.btn--ghost { background: transparent; }
.btn--light { background: #fff; color: #0b1020; }
.btn--light:hover { background: #eef0ff; }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { background: color-mix(in srgb, var(--color-bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: color-mix(in srgb, var(--color-border) 80%, transparent); }
.site-header__inner { max-width: var(--max); }
.brand { font-size: 1.22rem; letter-spacing: -.02em; }
.brand svg { width: 36px; height: 36px; }
.brand-logo img { display: block; height: 64px; width: auto; }
.brand-logo--dark { display: none; }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
@media (min-width: 640px) { :root { --header-h: 84px; } }
@media (max-width: 639px) { .brand-logo img { height: 44px; } }
.footer-logo { display: block; height: 56px; width: auto; }
.nav a, .nav button.nav__link { font-size: .96rem; border-radius: 10px; position: relative; }
@media (min-width: 900px) {
  .nav a:hover, .nav button.nav__link:hover { background: var(--color-surface); color: var(--color-text); }
  .nav a[aria-current="page"] { color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 9%, transparent); }
  .nav__sub { border-radius: 16px; padding: 10px; box-shadow: var(--shadow-lift); min-width: 300px; margin-top: 6px; }
  .nav__sub a { border-radius: 10px; padding: 10px 12px; }
  .nav__sub a:hover { background: var(--color-surface); }
}
.theme-toggle { border-radius: 12px; }
.header-cta { min-height: 44px; padding: 9px 20px; }

/* ---------- Hero (home) ---------- */
.hero-pro { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 85% -10%, rgba(99, 102, 241, .45), transparent 60%), radial-gradient(700px 480px at -5% 105%, rgba(34, 211, 238, .22), transparent 60%), var(--ink); color: var(--on-ink); padding-block: clamp(56px, 8vw, 112px) clamp(64px, 8vw, 120px); isolation: isolate; }
.hero-pro::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 0 64 64M64 0 0 64' stroke='%23a5b4fc' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='32' cy='32' r='2.6' fill='%23a5b4fc'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 70%); mask-image: linear-gradient(100deg, transparent 5%, #000 70%); }
.hero-pro__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero-pro__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--on-ink); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); margin-bottom: 22px; }
.pill i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); margin-left: 6px; }
.hero-pro h1 { font-size: clamp(2.4rem, 1.3rem + 3.9vw, 4.1rem); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; color: #fff; margin-bottom: 22px; }
.hero-pro h1 .accent { background: linear-gradient(100deg, #a5b4fc 0%, #67e8f9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-pro .lead { color: var(--on-ink-muted); max-width: 56ch; margin-bottom: 30px; }
.hero-pro .btn-row { margin-bottom: 36px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); max-width: 640px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--on-ink-muted); line-height: 1.4; }
.trust svg { flex: none; margin-top: 2px; color: #67e8f9; }

/* decorative product visual */
.mock { position: relative; padding: 18px 0 38px 18px; }
.mock__win { background: linear-gradient(180deg, #151e3d, #0f1730); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #334166; }
.mock__bar span:first-child { background: #fb7185; } .mock__bar span:nth-child(2) { background: #fbbf24; } .mock__bar span:nth-child(3) { background: #34d399; }
.mock__bar em { margin-left: 14px; font-style: normal; font-size: .72rem; color: #8b97b8; background: rgba(255, 255, 255, .05); padding: 3px 12px; border-radius: 99px; }
.mock__body { padding: 20px; display: grid; gap: 14px; }
.mock__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__tile { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px; }
.mock__tile small { display: block; color: #8b97b8; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.mock__tile b { display: block; color: #fff; font-size: 1.15rem; margin-top: 4px; }
.mock__tile b i { font-style: normal; color: #34d399; font-size: .72rem; margin-left: 4px; }
.mock__chart { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px 14px 10px; }
.mock__chart svg { display: block; width: 100%; height: 120px; }
.mock__rows { display: grid; gap: 8px; }
.mock__row { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: #c7d0e8; }
.mock__row i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #6366f1, #22d3ee); flex: none; }
.mock__row span { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.mock__row span:nth-of-type(1) { max-width: 55%; } .mock__row b { color: #8b97b8; font-weight: 500; }
.mock__code { position: absolute; left: -6px; bottom: -4px; width: min(300px, 70%); background: #0a0f22; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px 16px; font: 500 .76rem/1.7 var(--font-mono); color: #c7d0e8; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.mock__code .k { color: #c4b5fd; } .mock__code .f { color: #67e8f9; } .mock__code .s { color: #86efac; } .mock__code .c { color: #62709a; }
.mock__chip { position: absolute; right: -4px; top: -2px; display: flex; align-items: center; gap: 10px; background: #fff; color: #0b1020; padding: 10px 16px 10px 10px; border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); font-size: .8rem; line-height: 1.25; }
.mock__chip i { width: 32px; height: 32px; border-radius: 10px; background: #e7f7ef; color: #067647; display: flex; align-items: center; justify-content: center; }
.mock__chip b { display: block; font-size: .85rem; } .mock__chip span { color: #5b6579; font-size: .72rem; }
@media (max-width: 999px) { .mock { max-width: 560px; } }
@media (max-width: 560px) { .mock__tiles { grid-template-columns: 1fr 1fr; } .mock__tile:nth-child(3) { display: none; } .mock__chip { right: 6px; } }

/* ---------- Commitments strip ---------- */
.facts { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact { padding: 30px 28px; border-left: 1px solid var(--color-border); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--color-text); line-height: 1.1; }
.fact span { color: var(--color-text-muted); font-size: .95rem; }
@media (max-width: 700px) { .fact { border-left: 0; border-top: 1px solid var(--color-border); padding: 20px 4px; } .fact:first-child { border-top: 0; } }

/* ---------- Bento services ---------- */
.bento { display: grid; gap: 22px; grid-template-columns: repeat(12, 1fr); }
.bento__item { grid-column: span 12; position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--color-bg); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; text-decoration: none; color: inherit; }
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--color-primary) 45%, var(--color-border)); }
@media (min-width: 900px) { .bento__item--7 { grid-column: span 7; } .bento__item--5 { grid-column: span 5; } }
.bento__icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 24px rgba(67, 56, 202, .3); margin-bottom: 22px; }
.bento__item h3 { font-size: 1.5rem; margin-bottom: 8px; }
.bento__item > p { color: var(--color-text-muted); margin-bottom: 18px; max-width: 52ch; }
.bento__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.bento__list li a, .bento__list li span { display: flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; font-weight: 500; font-size: .98rem; }
.bento__list li a:hover { color: var(--color-primary); }
.bento__list svg { color: var(--color-primary); flex: none; }
.bento__more { margin-top: auto; font-weight: 700; color: var(--color-primary); display: inline-flex; align-items: center; gap: 8px; }
.bento__item--dark { background: radial-gradient(500px 280px at 100% 0, rgba(99, 102, 241, .5), transparent 70%), var(--ink); color: var(--on-ink); border-color: transparent; }
.bento__item--dark > p { color: var(--on-ink-muted); } .bento__item--dark .bento__list li a, .bento__item--dark .bento__list li span { color: #e8ecf8; } .bento__item--dark .bento__list svg, .bento__item--dark .bento__more { color: #67e8f9; } .bento__item--dark h3 { color: #fff; }
.bento__tag { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--color-primary) 10%, transparent); color: var(--color-primary); }
.bento__item--dark .bento__tag { background: rgba(255, 255, 255, .1); color: #c7d2fe; }

/* ---------- Why us ---------- */
.values { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.value { display: flex; gap: 18px; }
.value__ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-primary) 11%, transparent); color: var(--color-primary); }
.value h3 { font-size: 1.12rem; margin-bottom: 6px; } .value p { color: var(--color-text-muted); margin: 0; font-size: .98rem; line-height: 1.6; }

/* ---------- Process timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px; counter-reset: s; position: relative; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); gap: 28px; } .timeline::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--color-primary), var(--accent)); opacity: .35; } }
.timeline li { position: relative; counter-increment: s; padding: 0; }
.timeline li::before { content: counter(s); position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--grad-brand); box-shadow: 0 0 0 8px var(--color-bg), 0 10px 24px rgba(67, 56, 202, .3); margin-bottom: 22px; }
.section--alt .timeline li::before { box-shadow: 0 0 0 8px var(--color-surface), 0 10px 24px rgba(67, 56, 202, .3); }
.timeline h3 { margin-bottom: 8px; font-size: 1.25rem; } .timeline p { color: var(--color-text-muted); margin: 0; line-height: 1.6; }

/* ---------- Capabilities chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 920px; margin-inline: auto; }
.chip { padding: 9px 18px; border-radius: 99px; font-weight: 600; font-size: .95rem; background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text); box-shadow: var(--shadow-soft); }

/* ---------- Work cards ---------- */
.work { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.work__card { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--color-bg); border: 1px solid var(--color-border); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), box-shadow .25s; }
.work__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.work__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); position: relative; }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.work__card:hover .work__media img { transform: scale(1.05); }
.work__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .55); background: radial-gradient(400px 220px at 80% 0, rgba(99, 102, 241, .6), transparent 70%), var(--ink-2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; }
.work__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.work__body h3 { font-size: 1.25rem; margin: 6px 0 0; } .work__body p { color: var(--color-text-muted); margin: 0; font-size: .97rem; }
.tag { font-weight: 700; }

/* ---------- Academy band ---------- */
.band-dark { background: radial-gradient(800px 420px at 90% 0, rgba(99, 102, 241, .4), transparent 60%), radial-gradient(600px 400px at 0 100%, rgba(34, 211, 238, .16), transparent 60%), var(--ink); color: var(--on-ink); }
.band-dark h2, .band-dark h3 { color: #fff; } .band-dark .eyebrow { color: #a5b4fc; } .band-dark p { color: var(--on-ink-muted); }
.academy-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .academy-grid { grid-template-columns: 1.1fr .9fr; } }
.academy-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.academy-list li { display: flex; gap: 12px; align-items: flex-start; color: #dbe2f5; }
.academy-list svg { color: #67e8f9; flex: none; margin-top: 3px; }
.cert { background: linear-gradient(160deg, #fff, #eef0ff); color: #0b1020; border-radius: 20px; padding: 10px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); transform: rotate(2deg); max-width: 440px; margin-inline: auto; }
.cert__in { border: 2px solid #c7d2fe; border-radius: 14px; padding: 30px 26px; text-align: center; }
.cert__in small { letter-spacing: .2em; text-transform: uppercase; color: #4338ca; font-weight: 700; font-size: .68rem; }
.cert__in h3 { color: #0b1020; font-size: 1.5rem; margin: 10px 0 4px; letter-spacing: .08em; }
.cert__in p { color: #475569; margin: 0 0 6px; font-size: .9rem; }
.cert__name { font-size: 1.35rem; font-weight: 800; color: #0b1020; border-bottom: 1px solid #cbd5e1; display: inline-block; padding: 4px 22px; margin: 10px 0; }
.cert__seal { margin: 16px auto 0; width: 54px; height: 54px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.q { position: relative; display: flex; flex-direction: column; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow-soft); margin: 0; }
.q::before { content: "\201C"; position: absolute; top: 6px; right: 22px; font: 800 5.5rem/1 Georgia, serif; color: color-mix(in srgb, var(--color-primary) 16%, transparent); }
.q blockquote { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.65; position: relative; }
.q figcaption { margin-top: auto; display: flex; gap: 12px; align-items: center; font-size: .92rem; color: var(--color-text-muted); }
.q figcaption b { color: var(--color-text); display: block; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 32px 72px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 5fr 7fr; } .faq-wrap > div:first-child { position: sticky; top: 110px; align-self: start; } }
.faq { max-width: none; }
.faq details { border: 1px solid var(--color-border); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; background: var(--color-bg); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-soft); border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border)); }
.faq summary { padding: 20px 0; font-size: 1.05rem; }
.faq details p { padding-bottom: 20px; margin: 0; line-height: 1.7; }
.faq summary::after { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--color-primary) 10%, transparent); font-size: 1.3rem; flex: none; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(44px, 6vw, 84px) clamp(24px, 5vw, 64px); color: #fff; background: radial-gradient(700px 360px at 85% 0, rgba(34, 211, 238, .45), transparent 65%), linear-gradient(135deg, #3730a3, #4f46e5 55%, #0e7490); box-shadow: 0 30px 70px rgba(67, 56, 202, .35); }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 0 64 64M64 0 0 64' stroke='white' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='32' cy='32' r='2.6' fill='white'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, .88); opacity: 1; font-size: 1.15rem; }
.cta-band .btn--primary { background: #fff; color: #1e1b4b; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.cta-band .btn--primary:hover { background: #eef0ff; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 6vw, 84px); background: radial-gradient(700px 320px at 95% 0, color-mix(in srgb, #6366f1 20%, transparent), transparent 70%), var(--color-surface); border-bottom: 1px solid var(--color-border); }
.page-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 45%; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M0 0 64 64M64 0 0 64' stroke='%236366f1' stroke-opacity='.22' stroke-width='1.2' fill='none'/%3E%3Ccircle cx='32' cy='32' r='2.6' fill='%236366f1' fill-opacity='.3'/%3E%3C/svg%3E"); -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; max-width: 20ch; }
.page-hero p { font-size: 1.2rem; max-width: 62ch; line-height: 1.65; }
.breadcrumb { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px 14px; border-radius: 99px; background: color-mix(in srgb, var(--color-bg) 75%, transparent); border: 1px solid var(--color-border); font-size: .84rem; margin-bottom: 20px; }

/* ---------- Cards, grids, content ---------- */
.card { border-radius: 20px; padding: 28px; box-shadow: var(--shadow-soft); border-color: var(--color-border); }
.card--link:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.card__icon { width: 50px; height: 50px; border-radius: 15px; background: var(--grad-brand); color: #fff; border: 0; box-shadow: 0 8px 20px rgba(67, 56, 202, .28); }
.card h3 { font-size: 1.2rem; }
.card__thumb { border-radius: 14px; }
.card__thumb--img { border-style: solid; }
.tag { padding: 3px 12px; }
.grid { gap: 24px; }
.aside-box { border-radius: 22px; padding: 28px; box-shadow: var(--shadow-soft); background: var(--color-bg); }
.checklist li { margin-bottom: 12px; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.prose img, .prose figure { border-radius: 16px; }
.notice { border-radius: 14px; }
.steps li::before { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 2rem; }
.form .field input, .form .field select, .form .field textarea { border-radius: 12px; min-height: 48px; border-color: var(--color-border); border-width: 1.5px; background: var(--color-bg); }
.form .field input:focus, .form .field select:focus, .form .field textarea:focus { outline: 0; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.two-col > div > .form { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-soft); }
.consent { border-radius: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); border-top: 0; padding-block: clamp(52px, 6vw, 84px) 28px; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad-brand); }
.site-footer .brand, .site-footer .brand span { color: #fff; } .site-footer .brand__accent { color: #a5b4fc; }
.site-footer h2 { color: #8f9bbc; font-size: .78rem; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer a { color: #d6ddf2; } .site-footer a:hover { color: #fff; }
.site-footer .muted, .site-footer .meta { color: var(--on-ink-muted); }
.site-footer li { margin-bottom: 11px; }
.footer-grid { gap: 40px; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .1); color: #8f9bbc; }
.newsletter input { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 12px; }
.newsletter input::placeholder { color: #7f8bab; }
.newsletter .btn--primary { background: #fff; color: #1e1b4b; box-shadow: none; }
.linklike { color: #d6ddf2; }
.site-footer p a, .site-footer .meta a { text-decoration: underline; }
.chat-fab { box-shadow: 0 10px 28px rgba(18, 140, 126, .45); }

@media (prefers-reduced-motion: no-preference) {
  .hero-pro .pill, .hero-pro h1, .hero-pro .lead, .hero-pro .btn-row { animation: rise .45s var(--ease) both; }
  .hero-pro h1 { animation-delay: .04s; } .hero-pro .lead { animation-delay: .08s; } .hero-pro .btn-row { animation-delay: .12s; }
  .mock { animation: rise .55s .1s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}
.bento__more, .bento__more:hover { text-decoration: none; }

/* ---------- Polish ---------- */
.card .tag, .work__body .tag { align-self: flex-start; }
.card > span:has(> .tag) { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { text-decoration: none; color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.form h2 { font-size: 1.6rem; margin-bottom: 4px; }
.aside-box h3 { font-size: 1.1rem; }
.aside-box ul { padding-left: 1.1rem; }
.page-hero + .section { padding-top: clamp(40px, 5vw, 72px); }
.grid .card { height: 100%; }
@media (max-width: 899px) { .hero-pro .btn-row .btn { flex: 1 1 auto; } }
a.tag, a.tag:hover { text-decoration: none; }
a.tag:hover { border-color: var(--color-primary); color: var(--color-primary); }
div.card__thumb { border: 0; color: rgba(255, 255, 255, .6); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; background: radial-gradient(300px 160px at 80% 0, rgba(99, 102, 241, .55), transparent 70%), var(--ink-2); }

/* ===== Header v2: utility bar, refined header, mega menu ===== */
:root { --top-h: 38px; }
.topbar { display: none; background: var(--ink); color: var(--on-ink-muted); font-size: .8rem; }
.topbar a, .topbar span { color: #cfd7ee; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; min-height: var(--top-h); }
.topbar li > a, .topbar li > span { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; }
.topbar__social { opacity: .8; } .topbar__social:hover { opacity: 1; }
@media (min-width: 900px) { .topbar { display: block; } }
.site-header { box-shadow: 0 1px 0 color-mix(in srgb, var(--color-border) 70%, transparent), 0 8px 24px -18px rgba(15, 23, 42, .35); }
.site-header__inner { min-height: max(72px, var(--header-h)); }
.nav__mobile-extra a { color: var(--color-text-muted); }
@media (min-width: 900px) {
  .nav__mobile-extra { display: none; }
  .nav > ul { gap: 2px; }
  .nav > ul > li > a, .nav button.nav__link { padding: 10px 14px; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
  .nav > ul > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
  .nav a[aria-current="page"] { background: none; }
  .chev { transition: transform .2s var(--ease); } [aria-expanded="true"] .chev { transform: rotate(180deg); }
  .has-sub { position: static; }
  .nav { position: static; }
  .site-header__inner { position: relative; }
  .mega { display: none; position: absolute; top: calc(100% - 4px); left: 50%; transform: translateX(-50%); width: min(820px, calc(100vw - 48px)); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .35); overflow: hidden; }
  .mega.is-open { display: block; }
  .mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px; }
  .mega__foot { display: flex; align-items: center; gap: 14px; padding: 14px 22px; background: var(--color-surface); border-top: 1px solid var(--color-border); font-size: .9rem; }
  .mega__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 4px 0; }
  .mega__all { margin-left: auto; }
}
.mega__item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--color-text); }
.mega__item:hover, .mega__item:focus-visible { background: var(--color-surface); }
.mega__item strong { display: block; font-size: .95rem; }
.mega__item small { display: block; color: var(--color-text-muted); font-size: .82rem; line-height: 1.45; margin-top: 2px; }
.mega__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary); }
.mega__ico--alt { background: color-mix(in srgb, #0891b2 14%, transparent); color: #0e7490; }
@media (max-width: 899px) { .mega { display: none; padding-left: 8px; } .mega.is-open { display: block; } .mega__item small, .mega__foot { display: none; } }

/* ===== Hero carousel: header + banner fit the first screen ===== */
.hero-pro { padding-block: 0; display: flex; flex-direction: column; min-height: calc(100svh - 72px - var(--top-h)); }
@media (max-width: 899px) { .hero-pro { min-height: calc(100svh - 72px); } }
.hero-slides { display: grid; flex: 1; }
.hero-slide { grid-area: 1 / 1; display: flex; align-items: center; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; padding-block: clamp(28px, 5vh, 64px); }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hero-slide > .container { width: 100%; }
.hero-pro h1, .hero-title { font-size: clamp(2rem, 1rem + 3.2vw, 3.5rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; color: #fff; margin-bottom: 18px; }
.hero-pro .lead { margin-bottom: 24px; }
.hero-pro .btn-row { margin-bottom: 26px; }
.hero-card { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: clamp(24px, 3vw, 40px); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.hero-card__ico { width: 68px; height: 68px; border-radius: 20px; background: var(--grad-brand); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-card li { display: flex; gap: 12px; align-items: center; color: #e4e9f8; font-weight: 500; }
.hero-card li svg { color: #67e8f9; flex: none; }
.hero-ctl { display: flex; justify-content: space-between; align-items: center; padding-block: 14px 20px; position: relative; z-index: 2; }
.hero-dots { display: flex; gap: 10px; }
.hero-dots button { width: 44px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.hero-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); transition: background .2s; }
.hero-dots button[aria-current="true"]::after { background: #fff; }
.hero-dots button:hover::after { background: rgba(255,255,255,.6); }
.hero-btns { display: flex; gap: 8px; }
.hero-btns button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.hero-btns button:hover { background: rgba(255,255,255,.2); }
.hero-pro .i-play, .hero-pro.is-paused .i-pause { display: none; } .hero-pro.is-paused .i-play { display: block; }
.hero-pro :focus-visible { outline: 3px solid #67e8f9; outline-offset: 3px; }
@media (max-height: 800px) and (min-width: 1000px) {
  .hero-pro .trust { display: none; }
  .hero-pro .btn-row { margin-bottom: 0; }
  .mock { transform: scale(.88); transform-origin: center; }
}
@media (max-width: 999px) { .hero-card, .mock, .hero-pro .trust { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; transform: none; } }

/* ===== Footer v2 ===== */
.site-footer { background: radial-gradient(800px 360px at 100% 0, rgba(99,102,241,.22), transparent 60%), var(--ink); padding-top: clamp(40px, 5vw, 64px); }
.footer-news { display: grid; gap: 22px; align-items: center; margin-bottom: clamp(40px, 5vw, 60px); padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: linear-gradient(135deg, rgba(99,102,241,.28), rgba(34,211,238,.12)); border: 1px solid rgba(255,255,255,.14); }
.site-footer .footer-news__title { color: #fff; font-size: 1.35rem; letter-spacing: -.01em; text-transform: none; margin-bottom: 6px; }
.footer-news p { margin: 0; color: #d6ddf2; }
.site-footer .newsletter { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .newsletter input[type=email] { flex: 1 1 220px; min-height: 48px; padding: 0 16px; }
.site-footer .newsletter .meta, .site-footer .newsletter .form-status { flex-basis: 100%; margin: 0; font-size: .82rem; }
@media (min-width: 900px) { .footer-news { grid-template-columns: 1fr 1.1fr; } }
.footer-grid { display: grid; gap: 36px; padding-bottom: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .brand { font-size: 1.35rem; }
.footer-about { margin: 16px 0 18px; max-width: 46ch; line-height: 1.7; color: #b7c1de; font-size: .95rem; }
.footer-contact, .footer-social, .footer-legal { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; font-size: .92rem; color: #cfd7ee; }
.footer-contact svg { flex: none; margin-top: 2px; color: #a5b4fc; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social li { margin: 0; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--color-primary); transform: translateY(-2px); }
.site-footer nav h2 { color: #fff; font-size: .82rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav a { text-decoration: none; color: #b7c1de; display: inline-block; padding: 2px 0; transition: color .15s, transform .15s; }
.site-footer nav a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: .88rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal li { margin: 0; }
.footer-legal a, .footer-legal .linklike { color: #b7c1de; text-decoration: none; } .footer-legal a:hover, .footer-legal .linklike:hover { color: #fff; text-decoration: underline; }
.to-top { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid rgba(255,255,255,.2); text-decoration: none; font-size: .82rem; }
.to-top svg { transform: rotate(-90deg); }
.site-footer--min { padding-top: 28px; }
.nav .mega__item { display: flex; width: auto; padding: 12px; font-weight: 400; border-radius: 14px; }
.nav .mega__foot a { display: inline-flex; width: auto; }
.site-footer nav li { margin-bottom: 4px; }
.nav button.nav__link { display: flex; align-items: center; gap: 6px; }
@media (min-width: 900px) { .nav button.nav__link { display: inline-flex; width: auto; } }

/* Slightly shorter banner so the whole slider (with controls) is visible without scrolling */
.hero-pro { min-height: calc(100svh - 72px - var(--top-h) - 30px); }
@media (max-width: 899px) { .hero-pro { min-height: calc(100svh - 72px - 30px); } }
.hero-slide { padding-block: clamp(20px, 3.5vh, 44px); }
.hero-ctl { padding-block: 8px 14px; }

/* ===== Forms v2 (public site) ===== */
.form { gap: 20px; }
.form--card, .section > .container > form.form { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 24px; padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.form--card::before, .section > .container > form.form::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.form__head { display: flex; gap: 16px; align-items: center; margin-bottom: 4px; }
.form__head h2 { font-size: 1.5rem; margin: 0 0 2px; letter-spacing: -.02em; }
.form__head p { margin: 0; color: var(--color-text-muted); font-size: .95rem; }
.form__ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-brand); box-shadow: 0 10px 24px -8px rgba(67, 56, 202, .55); }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form .field { min-width: 0; }
.form .field label { font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--color-text); }
.req { color: #dc2626; font-weight: 700; }
.opt { color: var(--color-text-muted); font-weight: 400; font-size: .85em; }
.form .field input, .form .field select, .form .field textarea { width: 100%; font: inherit; color: var(--color-text); background: color-mix(in srgb, var(--color-surface) 55%, var(--color-bg)); border: 1.5px solid var(--color-border); border-radius: 12px; min-height: 50px; padding: 12px 16px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.form .field textarea { min-height: 150px; line-height: 1.55; resize: vertical; }
.form .field input::placeholder, .form .field textarea::placeholder { color: color-mix(in srgb, var(--color-text-muted) 75%, transparent); }
.form .field input:hover, .form .field select:hover, .form .field textarea:hover { border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border)); }
.form .field input:focus, .form .field select:focus, .form .field textarea:focus { outline: 0; background: var(--color-bg); border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.form .field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form .field [aria-invalid="true"] { border-color: #dc2626; background-color: color-mix(in srgb, #dc2626 5%, var(--color-bg)); }
.form .field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .18); }
.error-text { color: #b91c1c; font-size: .85rem; font-weight: 500; margin: 6px 0 0; }
[data-theme="dark"] .error-text, [data-theme="dark"] .req { color: #fca5a5; }
.form .hint { display: block; margin-top: 6px; }
.form .field-check { display: flex; gap: 12px; align-items: flex-start; }
.form .field-check input { flex: none; width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--color-primary); }
.form .field-check label { font-weight: 400; margin: 0; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 6px; }
.form__foot .meta { margin: 0; flex: 1 1 240px; display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; line-height: 1.5; }
.form__foot .meta svg { flex: none; margin-top: 2px; }
.btn--lg { min-height: 54px; padding-inline: 30px; font-size: 1.02rem; }
.form > .btn[type=submit], .form > button.btn--primary { min-height: 52px; padding-inline: 28px; }
.notice { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--color-border); border-left-width: 4px; }
.notice > svg { flex: none; margin-top: 1px; }
.notice--ok { background: color-mix(in srgb, #16a34a 9%, var(--color-bg)); border-color: color-mix(in srgb, #16a34a 35%, var(--color-border)); border-left-color: #16a34a; }
.notice--ok > svg { color: #16a34a; }
.notice--err { background: color-mix(in srgb, #dc2626 8%, var(--color-bg)); border-color: color-mix(in srgb, #dc2626 35%, var(--color-border)); border-left-color: #dc2626; }
.notice--err > svg { color: #dc2626; }

/* Contact page side column */
.contact-aside { display: grid; gap: 20px; align-content: start; }
.contact-aside .aside-box { margin: 0 !important; }
.aside-box--info h3, .contact-aside h3 { margin-bottom: 14px; }
.info-list, .next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list small { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; margin-bottom: 2px; }
.info-ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--color-primary) 12%, transparent); color: var(--color-primary); }
.info-ico--lg { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #fff; margin-bottom: 16px; }
.aside-box--book { background: radial-gradient(500px 260px at 100% 0, rgba(99, 102, 241, .5), transparent 65%), var(--ink); border-color: transparent; color: #d6ddf2; }
.aside-box--book h3 { color: #fff; margin-bottom: 8px; }
.aside-box--book p { color: #c3cce6; margin-bottom: 20px; }
.next-steps { counter-reset: s; }
.next-steps li { position: relative; padding-left: 46px; counter-increment: s; }
.next-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .9rem; display: flex; align-items: center; justify-content: center; }
.next-steps b { display: block; font-size: .95rem; }
.next-steps span { color: var(--color-text-muted); font-size: .88rem; }
@media (min-width: 900px) { .contact-sec .two-col { grid-template-columns: 1.55fr 1fr; gap: 36px; } .contact-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.section > .container > form.form > .btn--lg { width: 100%; }
.form > .meta { text-align: center; margin: 0; }

/* ===== Compact inner-page header ===== */
.page-hero { padding-block: clamp(26px, 3.2vw, 40px); color: #fff; border-bottom: 0; background: radial-gradient(620px 260px at 92% -20%, rgba(99, 102, 241, .55), transparent 65%), radial-gradient(420px 220px at 0% 120%, rgba(34, 211, 238, .2), transparent 65%), var(--ink); isolation: isolate; }
.page-hero::after { opacity: .1; width: 55%; background-size: 56px 56px; filter: invert(1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.page-hero__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.page-hero__text { min-width: 0; }
.page-hero h1 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; max-width: 30ch; color: #fff; margin: 0 0 6px; }
.page-hero p { font-size: 1.02rem; line-height: 1.55; color: var(--on-ink-muted); max-width: 64ch; margin: 0; }
.page-hero .breadcrumb { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #cfd7ee; padding: 3px 12px; font-size: .78rem; margin-bottom: 12px; gap: 6px; }
.page-hero .breadcrumb a { color: #cfd7ee; } .page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb__sep { opacity: .5; }
.page-hero__badge { flex: none; width: 84px; height: 84px; border-radius: 24px; display: none; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, rgba(99, 102, 241, .55), rgba(34, 211, 238, .25)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .15); transform: rotate(6deg); }
@media (min-width: 720px) { .page-hero__badge { display: flex; } }
.page-hero + .section { padding-top: clamp(32px, 4vw, 56px); }

/* Banner trimmed a further 30px+ so the whole slider sits inside the first screen */
.hero-pro { min-height: calc(100svh - 72px - var(--top-h) - 64px); }
@media (max-width: 899px) { .hero-pro { min-height: calc(100svh - 72px - 64px); } }
.hero-slide { padding-block: clamp(14px, 2.5vh, 32px); }
.hero-ctl { padding-block: 4px 10px; }
.hero-pro { min-height: calc(100svh - 72px - var(--top-h) - 84px); }
@media (max-width: 899px) { .hero-pro { min-height: calc(100svh - 72px - 84px); } }

/* Fit the whole slider (text, visual and controls) on short screens, e.g. laptops with browser bars and a taskbar */
.hero-pro { min-height: 0; height: calc(100svh - 72px - var(--top-h)); max-height: 820px; }
@media (max-width: 899px) { .hero-pro { height: auto; min-height: calc(100svh - 72px); max-height: none; } }
.hero-slides { min-height: 0; }
.hero-slide { overflow: hidden; }
.hero-pro h1, .hero-title { font-size: clamp(1.7rem, min(1rem + 3.2vw, 7.4svh), 3.5rem); }
.hero-pro .lead { font-size: clamp(.98rem, 2.4svh, 1.2rem); }
@media (max-height: 760px) and (min-width: 900px) {
  .hero-pro .pill { margin-bottom: 12px; }
  .hero-pro h1, .hero-title { margin-bottom: 12px; }
  .hero-pro .lead { margin-bottom: 18px; }
  .hero-pro .btn { min-height: 44px; padding-block: 10px; }
  .mock { transform: scale(.78); transform-origin: right center; }
  .hero-card { transform: scale(.85); transform-origin: right center; }
  .hero-btns button { width: 38px; height: 38px; }
}
@media (max-height: 640px) and (min-width: 900px) {
  .hero-pro .pill { display: none; }
  .hero-pro .lead { margin-bottom: 14px; }
  .mock { transform: scale(.66); }
  .hero-card { transform: scale(.72); }
  .hero-ctl { padding-block: 0 8px; }
}
.hero-pro { height: calc(100svh - 72px - var(--top-h) - 6px); }
@media (max-width: 899px) { .hero-pro { height: auto; min-height: calc(100svh - 72px - 6px); } }

/* ===== Polish from the brand/contrast review ===== */
/* Academy steps: room for the larger gradient numbers so they never overlap the heading */
.steps li { padding-top: 3.4rem; }
.steps li::before { line-height: 1; top: 0; }
.steps li::after { content: ""; position: absolute; top: 1.2rem; left: 3.4rem; right: 0; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--color-primary) 35%, transparent), transparent); }
/* "Why StackTrellis": six cards sit as two even rows of three */
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Dark mode: solid brand indigo buttons with white text (6.3:1) instead of pale lavender, matching light mode */
:root[data-theme="dark"] .btn--primary { background: #4f46e5; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(79, 70, 229, .35); }
:root[data-theme="dark"] .btn--primary:hover { background: #5b52f0; color: #fff; }
/* Performance: the browser skips style, layout and paint for sections that are off screen until they scroll near the viewport */
main > .section:not(:first-child), main > .facts, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ===== Bank transfer cards (client invoice page and portal) ===== */
.bank-pay { margin-top: 28px; }
.bank-pay__head h2 { font-size: 1.15rem; margin: 0 0 4px; }
.bank-pay__head p { margin: 0 0 16px; color: var(--color-text-muted); font-size: .95rem; }
.bank-pay__grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .bank-pay__grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.bank-card { border: 1px solid var(--color-border); border-radius: 16px; overflow: hidden; background: var(--color-bg); box-shadow: var(--shadow-soft); }
.bank-card__name { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #312e81, #4338ca 60%, #0e7490); }
.bank-card__ico { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .16); flex: none; }
.bank-card dl { margin: 0; padding: 6px 16px 10px; }
.bank-card dl > div { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.bank-card dl > div:last-child { border-bottom: 0; }
.bank-card dt { color: var(--color-text-muted); font-size: .85rem; }
.bank-card dd { margin: 0; font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.bank-card dd.mono { font-family: var(--font-mono); font-size: .86rem; letter-spacing: .02em; }
.bank-card__note { margin: 0; padding: 0 16px 12px; font-size: .85rem; color: var(--color-text-muted); }

/* "Log in as client" banner */
.impersonating { background: #b45309; color: #fff; font-size: .92rem; position: relative; z-index: 120; }
.impersonating__in { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-block: 8px; }
.impersonating .btn--sm { min-height: 34px; padding: 6px 14px; font-size: .85rem; }
