:root {
  color-scheme: light;
  --paper: #f5f3ec;
  --ink: #1b2031;
  --muted: #515567;
  --violet: #504587;
  --dark: #1c2135;
  --lavender: #dcd4ff;
  --line: #d9d6cd;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .23em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8875dd; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; padding: 29px 0; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.24rem; font-weight: 750; letter-spacing: -.05em; text-decoration: none; }
.brand img { width: 21px; height: 24px; object-fit: contain; filter: brightness(0) saturate(100%); }
nav { display: flex; align-items: center; gap: clamp(18px, 4vw, 42px); }
nav a, .footer > a:last-child { font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover, .footer > a:last-child:hover { text-decoration: underline; }
nav span { margin-left: 4px; color: var(--violet); }

.hero { display: grid; grid-template-columns: 1fr 1.11fr; min-height: 590px; align-items: center; padding: 22px 0 56px; gap: clamp(26px, 5vw, 72px); }
h1, .section-lead h2, .download h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.066em;
}
h1 { font-size: clamp(3.5rem, 6.1vw, 6.9rem); line-height: .96; }
h1 em { color: var(--violet); display: block; font-weight: 400; }
.hero-copy > p, .download-copy > p { max-width: 38ch; margin-top: 27px; color: var(--muted); font-size: 1.09rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: 29px; }
.button {
  display: inline-flex; align-items: center; gap: 14px; min-height: 47px;
  border-radius: 7px; padding: 0 17px; font-size: .9rem; font-weight: 700; text-decoration: none;
}
.button span, .text-link span { font-size: 1.08rem; }
.primary { color: #fff; background: #343051; }
.primary:hover { background: #4b416f; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 680; }

.showcase {
  padding: clamp(20px, 4vw, 49px);
  border-radius: 20px;
  min-width: 0;
  scroll-margin-top: 22px;
  background:
    radial-gradient(ellipse at 4% 8%, #6970af 0%, transparent 52%),
    repeating-linear-gradient(116deg, transparent 0 26px, #ded9ff20 27px, transparent 28px 39px),
    linear-gradient(145deg, #373960, #25283e 75%);
}
.demo { border: 1px solid #747494; border-radius: 12px; overflow: hidden; color: var(--ink); background: #f7f6fb; box-shadow: 0 17px 38px #15162b8a; }
.demo-head { display: flex; justify-content: space-between; align-items: center; min-height: 47px; gap: 10px; padding: 0 16px; color: #eeeeff; background: #25283e; font-size: .75rem; }
.demo-head > span { color: #e0ddf8; }
.demo-brand { display: inline-flex; align-items: center; gap: 6px; font-size: .87rem; font-weight: 700; }
.demo-brand img { object-fit: contain; }
.demo-body { padding: clamp(12px, 2vw, 23px); }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.demo-tabs button {
  min-height: 32px; border: 1px solid #dedbec; border-radius: 5px;
  background: #f7f6fb; color: #494760; padding: 4px 8px; font-size: .75rem; font-weight: 650;
}
.demo-tabs button:hover { background: #eee9fa; }
.demo-tabs button[aria-pressed="true"] { background: #e8e1f7; border-color: #c9bbeb; color: #3c3261; }
.sample { min-height: 231px; }
.sample-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sample h2 { font-size: 1.18rem; letter-spacing: -.03em; }
.sample-title p { margin-top: 4px; font-size: .75rem; color: var(--muted); }
.count { flex: none; margin-top: 1px; padding: 5px 7px; color: #3d5260; background: #e1eef1; border-radius: 4px; font-size: .67rem; font-weight: 650; }
.books { display: grid; gap: 6px; margin-top: 14px; }
.books label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px; border: 1px solid #e5e1ea; border-radius: 6px; background: #fff; cursor: pointer; }
.books input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: #63568d; cursor: pointer; }
.books strong, .books small { display: block; }
.books strong { font-size: .78rem; }
.books small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.visual-sample img { display: block; width: 100%; height: 193px; object-fit: contain; background: #fff; border: 1px solid #e5e1ea; border-radius: 6px; margin-top: 8px; }
.demo-foot { display: flex; align-items: flex-start; gap: 8px; min-height: 48px; padding: 9px 10px; border: 1px solid #e0dbef; border-radius: 6px; background: #efebfa; color: #483e62; font-size: .76rem; line-height: 1.4; }
.demo-foot > span { color: #615390; font-weight: 700; }

.features { border-top: 1px solid var(--line); padding: clamp(45px, 8vw, 90px) 0; }
.section-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; margin-bottom: 29px; }
.section-lead h2, .download h2 { font-size: clamp(2.7rem, 5vw, 5.4rem); line-height: .98; }
.section-lead > p { max-width: 39ch; color: var(--muted); line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid article { padding: clamp(19px, 2.5vw, 29px); border: 1px solid var(--line); border-radius: 9px; background: #faf9f5; }
.feature-icon { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 19px; border-radius: 5px; background: #eae4f6; color: #51448a; font-size: 1.12rem; }
.feature-grid h3 { font-size: 1rem; }
.feature-grid p { margin-top: 8px; color: var(--muted); font-size: .91rem; line-height: 1.55; }

#get-ulemi { scroll-margin-top: 20px; }
.download { display: grid; grid-template-columns: 1fr .65fr; align-items: center; gap: 27px; padding: clamp(25px, 6vw, 70px); overflow: hidden; border-radius: 20px; color: #f8f6fd; background: var(--dark); }
.download-copy > p { color: #e0ddee; }
.download .primary { color: #2f264b; background: var(--lavender); }
.download .primary:hover { background: #ede7ff; }
.phone { justify-self: center; width: min(220px, 100%); padding: 5px; border: 1px solid #83839b; border-radius: 22px; background: #0d1020; box-shadow: 12px 14px 0 #4a466d; }
.phone img { display: block; width: 100%; height: auto; border-radius: 17px; }
.footer { border-top: 1px solid var(--line); margin-top: 53px; }

@media (max-width: 980px) {
  .shell { width: min(1200px, calc(100% - 42px)); }
  .hero { min-height: 0; align-items: center; }
  h1 { font-size: clamp(3.1rem, 6.4vw, 5.8rem); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; gap: 32px; }
  h1 { font-size: clamp(3.35rem, 10vw, 5rem); }
  .showcase { max-width: 570px; }
  .section-lead, .feature-grid { grid-template-columns: 1fr; }
  .features { padding: 46px 0; }
  .section-lead h2 br { display: none; }
}
@media (max-width: 470px) {
  .shell { width: calc(100% - 32px); }
  .topbar { padding: 21px 0; }
  nav { gap: 12px; }
  nav a { font-size: .79rem; }
  .showcase { padding: 14px; border-radius: 14px; }
  .demo-tabs { gap: 4px; }
  .demo-tabs button { font-size: .68rem; padding-inline: 6px; }
  .download { grid-template-columns: 1fr; }
  .phone { width: 186px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
