:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #465470;
  --link: #09588d;
  --blue: #0868a8;
  --paper: #fbfcff;
  --night: #111827;
  --night-text: #e6ecf7;
  --mint: #a0efce;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:hover { text-decoration: underline; text-underline-offset: .24em; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.042em; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 2.4vw, 2.25rem); }
[id] { scroll-margin-block-start: 1.5rem; }

.wrap { width: min(100% - 3.5rem, 74rem); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.header { padding-block: 1.15rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.35rem; font-weight: 750; letter-spacing: -.055em; text-decoration: none; }
.brand img { display: block; object-fit: contain; }
.header nav, .header-actions, .footer > div { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2rem); }
.header nav a, .footer > div a, .language { font-size: .9rem; font-weight: 650; text-decoration: none; }
.header nav a, .footer > div a { color: var(--muted); }
.header a:hover, .footer a:hover { text-decoration: underline; }
.header-actions { gap: .9rem; }
.language { display: grid; place-items: center; min-width: 2rem; min-height: 2.75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .65rem 1.05rem; min-height: 2.75rem; font-size: .94rem; font-weight: 700; border-radius: .65rem; text-decoration: none; text-align: center; }
.button-outline { border: 1px solid #c5cede; }
.button-primary { background: var(--blue); color: white; }
.button:hover { text-decoration: underline; }
.skip { position: absolute; z-index: 1; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.hero { background: radial-gradient(ellipse at 82% 36%, #263e55, transparent 53%), var(--night); color: var(--night-text); }
.hero-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; min-height: min(48rem, 76vh); padding-block: clamp(2.2rem, 5vw, 5rem); }
.hero h1 { font-size: clamp(2.85rem, 5.7vw, 6rem); line-height: .98; letter-spacing: -.069em; font-weight: 760; }
.hero h1 span { display: block; color: var(--mint); }
.hero p { margin: 1.25rem 0 1.45rem; font-size: clamp(1.05rem, 1.65vw, 1.25rem); max-width: 34rem; color: #d3deef; }
.hero .button-primary { background: var(--mint); color: #112d25; padding-inline: 1.25rem; }
.hero-paths { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: 1rem; }
.hero-paths a { color: #d3deef; text-underline-offset: .23em; }
.hero-screens { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: .85rem; row-gap: 1.3rem; margin: 0; }
.hero-screens img { width: 100%; height: auto; max-height: 29rem; object-fit: cover; object-position: top; border: 1px solid #53667c; border-radius: clamp(.55rem, 2vw, 1.15rem); box-shadow: 0 1rem 2rem #080b1670; }
.hero-screens .screen-discussion { transform: translateY(1.05rem); }
.hero-screens .screen-program { transform: translateY(-.65rem); }
.hero-screens figcaption { grid-column: 1 / -1; color: #d3deef; padding-top: .75rem; font-size: .85rem; text-align: center; }
.solutions, .reading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.scene {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem) clamp(1rem, 5vw, 3.75rem) 1rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(ellipse at 87% 0%, #fbfdff 0, transparent 65%),
    linear-gradient(140deg, #dceffa, #b9d8f6);
}
.scene--event {
  background:
    radial-gradient(ellipse at 13% 0%, #fbfaff 0, transparent 65%),
    linear-gradient(140deg, #e1e2fa, #cdd1f8);
}
.scene-caption { color: #435675; font-size: .84rem; }
.mockup {
  width: 100%;
  max-width: 26rem;
  align-self: stretch;
  border: 1px solid #fff;
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: #fcfdff;
  box-shadow: 0 .65rem 1.65rem #24335023;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.mockup-heading, .mockup-row, .mockup-people { display: flex; align-items: center; gap: .65rem; }
.mockup-heading strong { font-size: 1.02rem; }
.scene-symbol { display: grid; place-items: center; flex: 0 0 1.8rem; height: 1.8rem; border-radius: .55rem; background: #d7edff; }
.scene-symbol::before { content: ''; width: .66rem; height: .66rem; border-radius: 50%; border: .14rem solid #1d6390; }
.scene--event .scene-symbol { background: #e8e5fd; }
.scene--event .scene-symbol::before { border-radius: .16rem; border-color: #534ca1; }
.mockup-section { margin: .75rem 0 .45rem; font-size: .82rem; font-weight: 650; color: var(--muted); }
.mockup-rows { display: grid; gap: .45rem; }
.mockup-row { min-height: 3rem; background: #f0f5fb; border-radius: .55rem; padding: .35rem .5rem; }
.scene--event .mockup-row { background: #f2f1fc; }
.mockup-row strong, .mockup-row small { display: block; line-height: 1.2; }
.mockup-row small { color: var(--muted); font-size: .78rem; margin-top: .13rem; }
.mockup-time { flex: none; padding: .32rem .36rem; border-radius: .4rem; background: #e3dff9; color: #433e7d; font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.avatar { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #dbeafe url('avatars.webp') no-repeat; background-size: 420% 140%; }
.avatar--anya { background-position: 6.25% 30%; }
.avatar--mark { background-color: #f9e6c6; background-position: 50% 42%; }
.avatar--jina { background: #e7dffd url('avatar-jina.png') center 38% / 128% no-repeat; }
.mockup-people { margin-top: .75rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.avatar-stack { display: flex; padding-inline-start: .25rem; }
.avatar-stack .avatar { width: 1.7rem; height: 1.7rem; margin-inline-start: -.25rem; border: 2px solid #fcfdff; }

.section { padding-block: clamp(2.8rem, 6vw, 5.5rem); }
.section h2 { margin-bottom: clamp(1.3rem, 3vw, 2.2rem); }
.solutions, .reading { gap: clamp(1.4rem, 5vw, 5rem); }
.solutions article { display: flex; flex-direction: column; }
.solutions article > h3 + p, .reading article > p { margin-top: .8rem; color: var(--muted); max-width: 34rem; }
.solutions .scene { margin-top: auto; }
.solutions article > h3 + p { padding-bottom: 1.15rem; }
.profile-note { margin-top: 2rem; padding: 1.2rem 1.35rem; border-radius: .8rem; background: #edf3fa; }
.profile-note h3 { font-size: 1.18rem; letter-spacing: -.025em; }
.profile-note p { margin-top: .45rem; color: var(--muted); }
.capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.75rem clamp(1.4rem,5vw,5rem); margin-top: 2rem; }
.capabilities h3 { font-size: 1.32rem; }
.capabilities dl { display: grid; gap: .55rem; margin-block: .7rem; }
.capabilities dt { font-weight: 650; }
.capabilities dd { margin: 0; }
.capabilities dd, .capabilities p { color: var(--muted); }
.category, .news time { color: var(--muted); font-size: .88rem; font-weight: 650; }
.category { margin-bottom: .65rem; }
.section-intro { margin-bottom: clamp(1.25rem, 3vw, 2.3rem); }
.section-intro h2 { margin-bottom: .7rem; }
.section-intro p { font-size: 1.12rem; max-width: 42rem; }
.case-section { color: var(--night-text); background: var(--night); }
.case-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.case-tile { position: relative; display: flex; flex-direction: column; gap: .55rem; min-height: 12.5rem; border-radius: .75rem; padding: 1rem 1.2rem; background: #21304a; }
.case-tile:nth-child(5) { grid-column: span 2; background: #213f44; }
.case-tile--kontur { background: #3d3451; }
.case-tile h3 { font-size: clamp(1.18rem,2vw,1.56rem); letter-spacing: -.032em; }
.case-tile h3 a { text-decoration-thickness: .07em; text-underline-offset: .22em; }
.case-tile h3 a::after { content: ''; position: absolute; inset: 0; }
.case-metric { display: grid; margin-top: auto; padding-top: .75rem; }
.case-metric strong, .case-feature strong { color: var(--mint); font-size: clamp(2.6rem, 4.3vw, 4.6rem); letter-spacing: -.076em; line-height: 1; font-variant-numeric: tabular-nums; }
.case-metric span, .case-feature span { margin-top: .35rem; color: #d1ddee; }
.case-status { color: #f0dfb8; font-size: .87rem; }
.formats { margin-top: 2rem; }
.formats h3, .pricing-notes h3 { font-size: 1.35rem; }
.formats dl, .plan-grid, .pricing-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.formats dt, .plan dt, .case-stats dt { font-weight: 650; }
.formats dd, .plan dd, .case-stats dd { margin: 0; }
.formats dd, .plan p:not(.plan-price), .pricing-notes p, .pricing-notes li { color: var(--muted); }
.plan-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.plan { padding: clamp(.9rem, 2.2vw, 1.45rem); background: #edf3fa; border-radius: .8rem; }
.plan h3 { font-size: 1.35rem; }
.plan-price { font-size: clamp(1.3rem, 2vw, 1.72rem); font-weight: 750; margin: .4rem 0; }
.plan dl { display: grid; gap: .6rem; margin-bottom: 0; }
.plan dl > div { display: flex; justify-content: space-between; gap: .6rem; font-size: .92rem; }
.plan dd, .plan dt, .plan-price { overflow-wrap: anywhere; }
.plan dd { text-align: right; }
.pricing-notes { grid-template-columns: 1fr 1.5fr; gap: clamp(1rem, 4vw, 3rem); margin-block: 1.75rem 1rem; }
.pricing-notes p + p, .pricing-notes h3 + p { margin-top: .55rem; }
.pricing-notes ul { padding-inline-start: 1.3rem; }
.organizer-docs { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.case-hero { padding-block: clamp(1.75rem,5vw,4.2rem); background: var(--night); color: var(--night-text); }
.case-hero .case-back { color: var(--mint); margin: 0 0 1.7rem; }
.case-hero .category { color: #d3deef; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.case-hero h1 { font-size: clamp(2.8rem, 7vw, 6.6rem); line-height: .98; text-wrap: balance; }
.case-hero .case-status { margin-top: .9rem; }
.case-feature { margin-top: 1.5rem; display: grid; }
.case-story { display: grid; grid-template-columns: 1fr 1.15fr; align-items: start; gap: clamp(1rem,6vw,5rem); }
.case-story h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.case-metric-group + .case-metric-group { margin-top: 1.7rem; }
.case-metric-group h2 { font-size: clamp(1.35rem, 2.45vw, 1.95rem); margin-bottom: .65rem; }
.case-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); margin: 0; gap: .65rem; }
.case-stats > div { background: #edf3fa; padding: .8rem .9rem; border-radius: .65rem; display: flex; flex-direction: column-reverse; justify-content: start; gap: .35rem; }
.case-stats dt { color: var(--muted); line-height: 1.35; font-size: .91rem; }
.case-stats dd { color: var(--link); font-size: clamp(1.85rem, 3.9vw, 2.9rem); line-height: 1; letter-spacing: -.05em; font-weight: 750; font-variant-numeric: tabular-nums; }
.data-note { margin-top: .85rem; color: var(--muted); }
.case-screen { margin: 1.35rem 0 0; }
.case-screen img { display: block; max-width: min(100%, 20rem); height: auto; border-radius: .7rem; }
.case-screen figcaption { font-size: .88rem; margin-top: .6rem; color: var(--muted); }
.reading h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.help-intro { color: var(--muted); max-width: 35rem; }
.text-link { display: inline-block; margin-top: .85rem; color: var(--link); font-weight: 650; text-underline-offset: .22em; }
.news { background: #edf3fa; border-radius: .8rem; padding: 1.15rem 1.25rem; }
.news h3 { margin-top: .5rem; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: clamp(1.3rem, 4vw, 3rem); border-radius: 1.25rem; background: #e4effd; }
.contact h2 { font-size: clamp(1.65rem, 4vw, 3.35rem); }
.contact p { margin-top: .55rem; color: var(--muted); }
.contact .button { flex: none; }
.footer { padding-block: 1.9rem; }
.footer .brand { font-size: 1.15rem; }

.guide-hero { padding-block: clamp(2.2rem, 5vw, 4.7rem); background: var(--night); color: var(--night-text); }
.guide-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); text-wrap: balance; max-width: 58rem; }
.guide-hero p { color: #d3deef; font-size: clamp(1.05rem, 2vw, 1.27rem); max-width: 42rem; margin-top: .95rem; }
.guide-back { display: inline-block; margin-bottom: 1rem; color: var(--mint); text-underline-offset: .22em; }
.guide-index { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1.2rem, 4vw, 3.2rem); }
.guide-index h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
.guide-index h3 { font-size: 1.2rem; letter-spacing: -.025em; }
.guide-index ul, .guide-outline ul, .guide-related ul { margin: 0; padding: 0; list-style: none; }
.guide-index li + li { margin-top: 1.3rem; }
.guide-index li p { margin-top: .4rem; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 43rem); gap: clamp(1.3rem, 6vw, 5rem); align-items: start; }
.guide-outline { background: #edf3fa; border-radius: .75rem; padding: 1.15rem; }
.guide-outline p { font-weight: 750; margin-bottom: .55rem; }
.guide-outline li, .guide-related li { margin-block: .35rem; }
.guide-outline a, .guide-related a, .guide-index a { color: var(--link); text-underline-offset: .18em; }
.guide-copy { min-width: 0; overflow-wrap: anywhere; }
.guide-copy h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); margin-bottom: .7rem; }
.guide-copy section + section { margin-top: 2rem; }
.guide-copy p + p, .guide-copy ol li + li { margin-top: .65rem; }
.guide-copy ol { padding-inline-start: 1.3rem; margin: .55rem 0 0; }

@media (max-width: 52rem) {
  .header { flex-wrap: wrap; }
  .header nav { order: 1; width: 100%; justify-content: center; flex-wrap: wrap; }
  .scene { padding-inline: clamp(.85rem, 4vw, 2.5rem); }
  .case-list, .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .case-tile:nth-child(5) { grid-column: auto; }
}

@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2rem); }
  .header { column-gap: .5rem; padding-block: .8rem; }
  .header .brand img { width: 30px; height: 30px; }
  .header .brand { font-size: 1.15rem; }
  .header .button { padding-inline: .62rem; font-size: .86rem; }
  .header-actions { gap: .3rem; }
  .hero h1 { font-size: clamp(2.6rem, 10.1vw, 4.2rem); }
  .hero-layout, .solutions, .reading, .case-story, .pricing-notes, .capabilities, .plan-grid, .guide-index, .guide-layout { grid-template-columns: 1fr; }
  .hero-screens { max-width: 26rem; width: 100%; justify-self: center; }
  .hero-screens img { max-height: 21rem; }
  .hero-screens .screen-discussion, .hero-screens .screen-program { transform: none; }
  .hero-screens figcaption { padding-top: 0; }
  .formats dl { grid-template-columns: 1fr; }
  .case-tile { min-height: 9.5rem; padding-inline: .75rem; }
  .case-tile h3 { overflow-wrap: anywhere; }
  .case-metric span, .case-feature span { font-size: .88rem; }
  .contact { flex-direction: column; align-items: flex-start; }
  .footer { flex-wrap: wrap; }
}

@media (max-width: 23rem) {
  .header { column-gap: .35rem; }
  .header .brand { font-size: 1.1rem; }
  .header .button { padding-inline: .5rem; font-size: .85rem; }
  .header-actions { gap: .25rem; }
}

@media (min-width: 22rem) and (max-width: 30rem) {
  .case-stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
