:root {
  --ink: #12142b;
  --body: #4a4f6a;
  --muted: #7a7f99;
  --line: #e4e4f2;
  --bg: #f7f6fd;
  --card: #fff;
  --brand: #4f5bea;
  --brand-2: #7b5cf0;
  --grad: linear-gradient(90deg, #b45cf0, #7b5cf0 45%, #3f6ff2);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 20, 43, .04), 0 12px 32px -12px rgba(63, 72, 180, .18);
  --head: 'Albert Sans', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--sans);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
svg { display: block; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid rgba(79, 91, 234, .45); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px;
  font: 600 16px/1 var(--sans); text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #5a68f2, #4452e0); box-shadow: 0 6px 18px -6px rgba(68, 82, 224, .6), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.btn-light { color: var(--brand); background: #fff; }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 246, 253, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--head); color: var(--ink); letter-spacing: -.02em; }
.logo { width: 32px; height: 32px; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu a:not(.btn) { color: var(--body); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current="page"] { color: var(--ink); }
.nav-menu a[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; }

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(180, 92, 240, .12), transparent 70%),
    radial-gradient(50% 50% at 85% 10%, rgba(63, 111, 242, .14), transparent 70%);
}
.hero-copy { text-align: center; max-width: 960px; }
.eyebrow { font: 600 14px/1.4 var(--sans); color: var(--brand); margin-bottom: 16px; }
h1 { font-size: clamp(42px, 7.4vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 620px; margin: 24px auto 0; font-size: 19px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* Illustrative panel */
.panel {
  position: relative; margin-top: 64px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(63, 72, 180, .35);
  overflow: hidden; scroll-margin-top: 96px;
}
.example-tag {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font: 600 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: #f1f1f8; border-radius: 999px; padding: 5px 9px;
}
.panel-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #e3e3ef; }
.panel-title { margin-left: 10px; font: 600 13px/1 var(--sans); color: var(--ink); }
.panel-body { display: grid; grid-template-columns: 340px 1fr; }

.tasks { padding: 20px; border-right: 1px solid var(--line); background: #fbfbfe; }
.tasks h3 { font-size: 15px; margin: 20px 0 10px; }
.capture {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; color: var(--ink);
  background: #fff; border: 1px solid #d9dbfb; box-shadow: 0 0 0 4px rgba(79, 91, 234, .07);
}
.capture svg { width: 20px; flex: none; color: var(--brand); }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.task-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--ink);
}
.task-list li span { flex: 1; }
.chk { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c5c8de; flex: none; }
.chk.done { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/100%; border-color: var(--brand); }
.chk.done + span { color: var(--muted); text-decoration: line-through; }
.tag { font: 600 11px/1 var(--sans); font-style: normal; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.t-high { color: #b4235a; background: #fde8f0; }
.t-med { color: #7a4cd9; background: #efe9fd; }
.t-low { color: #2f6b8f; background: #e5f2fa; }
.hint { margin-top: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.45; border-radius: 10px; background: #f3f0fe; color: #4b3d8f; }

.calendar { --row: 46px; padding: 16px 20px 20px; overflow-x: auto; }
.cal-head, .cal-grid { display: grid; grid-template-columns: 32px repeat(5, minmax(96px, 1fr)); gap: 8px; min-width: 560px; }
.cal-head span { font: 600 13px/1 var(--sans); color: var(--muted); padding: 6px 0 12px; }
.cal-head .today { color: var(--brand); }
.times { display: grid; grid-auto-rows: var(--row); font-size: 11px; color: var(--muted); }
.day {
  position: relative; height: calc(var(--row) * 7);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 1px), var(--line) calc(var(--row) - 1px) var(--row));
}
.ev {
  position: absolute; left: 0; right: 0;
  top: calc(var(--s) * var(--row) + 2px); height: calc(var(--l) * var(--row) - 6px);
  padding: 6px 8px; border-radius: 8px; border-left: 3px solid;
  font: 600 12px/1.3 var(--sans); overflow: hidden;
}
.meet { background: #eef0f6; border-color: #a5abc4; color: #444a66; }
.task { background: #e9ecfe; border-color: var(--brand); color: #2d36a8; }
.focus { background: #f3ecfe; border-color: var(--brand-2); color: #5b37c4; }

/* Sections */
.section { padding: 96px 0; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 20px; margin: 18px 0 8px; }
.card p { font-size: 15px; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-violet { background: #efe9fd; color: #7a4cd9; }
.ic-blue { background: #e7ebfe; color: var(--brand); }
.ic-pink { background: #fbe9f6; color: #c040a0; }
.ic-teal { background: #e3f4f3; color: #1f8a83; }

/* Story tabs */
.story { background: #fff; border-block: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; margin-top: 40px; padding: 6px; background: var(--bg); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button {
  display: flex; align-items: center; gap: 8px; flex: none;
  border: 0; background: transparent; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--body);
}
.tabs button span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #e7e7f3; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(18, 20, 43, .08); }
.tabs button[aria-selected="true"] span { background: var(--brand); color: #fff; }
.pane { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.pane[hidden] { display: none; }
.pane h3 { font-size: 30px; margin-bottom: 12px; }
.pane p { font-size: 17px; max-width: 460px; }
.mini {
  position: relative; padding: 36px 28px 28px; border-radius: 20px;
  background: linear-gradient(135deg, #f4effe, #eaf0ff); border: 1px solid var(--line);
}
.mini p { max-width: none; }
.quote { font: 600 20px/1.35 var(--head); color: var(--ink); }
.parsed { margin-top: 14px; font-size: 14px; background: #fff; padding: 10px 12px; border-radius: 10px; }
.parsed em { font-style: normal; color: var(--muted); }
.rank { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink); font-weight: 500; }
.rank li { padding: 8px 4px; }
.rank .tag { margin-left: 8px; }
.slot { background: #fff; padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--ink); border-left: 3px solid var(--brand); }
.slot + .slot { margin-top: 10px; }
.slot.warn { border-color: #e0679a; background: #fff6f9; }
.now { font-size: 13px; font-weight: 600; color: var(--brand); }
.now-title { font: 700 28px/1.2 var(--head); color: var(--ink); margin: 6px 0 14px; }
.next { font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 18px; }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; background: none; border: 0; text-align: left;
  font: 600 18px/1.4 var(--head); color: var(--ink);
}
.faq-item i { position: relative; width: 14px; height: 14px; flex: none; }
.faq-item i::before, .faq-item i::after { content: ""; position: absolute; inset: 6px 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.faq-item i::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-a { padding: 0 0 22px; max-width: 640px; }

/* CTA + footer */
.cta-band { padding: 88px 0; text-align: center; color: #e6e8ff; background: linear-gradient(135deg, #5b3fd8, #3f6ff2); }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); }
.cta-band p { margin: 14px 0 30px; font-size: 18px; }
.site-footer { padding: 56px 0 32px; background: #fff; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.foot-links a { color: var(--body); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--brand); }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Shared illustrative bits */
.insight { margin-top: 12px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; gap: 4px; }
.insight span { font-size: 12px; font-weight: 600; color: var(--muted); }
.insight b { font: 700 18px/1.2 var(--head); color: var(--ink); }
.insight small { font-size: 12.5px; color: var(--muted); }
.bar { display: block; height: 6px; margin: 6px 0 2px; border-radius: 6px; background: linear-gradient(90deg, var(--brand-2), var(--brand)) 0 0 / var(--p) 100% no-repeat, #ececf6; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline .ev { position: static; height: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 12px; font-size: 14px; }
.timeline time { min-width: 72px; font-weight: 500; opacity: .75; }
.timeline small { flex-basis: 100%; padding-left: 84px; font-weight: 500; }
.timeline .conflict { background: #fff6f9; border-color: #e0679a; color: #8f2456; }

/* Sub pages */
.page-hero { padding: 72px 0 88px; background: radial-gradient(60% 60% at 20% 0%, rgba(180, 92, 240, .12), transparent 70%), radial-gradient(50% 60% at 85% 10%, rgba(63, 111, 242, .14), transparent 70%); }
.page-hero-sm { padding-bottom: 32px; }
.page-hero-sm .lede { margin-left: 0; }
.h1-sub { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.use h3 { margin-top: 0; }
.alt { background: #fff; border-block: 1px solid var(--line); }
.section-tight { padding-top: 24px; }

.showcase { padding: 24px; }
.tabs-center { margin: 0 auto 24px; }
.view { max-width: 720px; margin: 0 auto; min-height: 290px; }
.chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; height: 220px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.chart div { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 6px; position: relative; padding-bottom: 26px; }
.chart i { width: 22px; height: var(--h); border-radius: 6px 6px 2px 2px; background: #d9dcfb; }
.chart i + i { background: linear-gradient(180deg, var(--brand-2), var(--brand)); }
.chart span { position: absolute; bottom: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.legend { margin-top: 16px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: #d9dcfb; }
.legend .k-done::before { background: var(--brand); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.section .split h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 18px 0 14px; }
.sub { font-size: 17px; max-width: 480px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #e7ebfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2L11.5 6' fill='none' stroke='%234f5bea' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks b { color: var(--ink); }

.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.preset { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--body); }
.preset:hover { border-color: #c9ccf6; }
.preset[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.task-card { margin-top: 16px; padding: 16px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.tc-title { font: 700 18px/1.3 var(--head); color: var(--ink); }
.task-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 0; }
.task-card dt { font-size: 12px; color: var(--muted); }
.task-card dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }

.steps { display: grid; gap: 96px; }
.step { scroll-margin-top: 96px; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 16px/1 var(--head); }
.step .capture { margin-bottom: 14px; }

.prose p + p { margin-top: 14px; }
.section .prose h2 { font-size: 26px; margin: 44px 0 12px; }
.section .prose h2:first-child { margin-top: 0; }
.prose .ticks li::before { top: 3px; }

.not-found { min-height: 64vh; display: grid; align-items: center; }
.lost { max-width: 420px; margin: 0 auto 40px; text-align: left; }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .panel-body { grid-template-columns: 1fr; }
  .tasks { border-right: 0; border-bottom: 1px solid var(--line); }
  .cards-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .steps { gap: 72px; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: grid; gap: 6px; width: 44px; height: 44px; place-content: center;
    border: 1px solid var(--line); background: #fff; border-radius: 10px;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(18, 20, 43, .2);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 12px 0; font-size: 17px; }
  .nav-menu .btn { margin-top: 8px; }
  .hero { padding: 48px 0 64px; }
  .lede { font-size: 17px; }
  .panel { margin-top: 44px; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; }
  .pane { grid-template-columns: 1fr; gap: 24px; }
  .tabs button { padding: 9px 12px; }
  .page-hero { padding: 48px 0 56px; }
  .page-hero-sm { padding-bottom: 24px; }
  .showcase { padding: 44px 14px 16px; }
  .chart { gap: 6px; height: 180px; }
  .chart i { width: 14px; }
  .task-card dl { grid-template-columns: 1fr 1fr; }
  .timeline small { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
