/* ============ Tokens ============ */
:root {
  --white: #ffffff;
  --bg-soft: #f5f9ff;
  --sky-50: #eef6ff;
  --sky-100: #dcecff;
  --sky-200: #bcdcff;
  --sky-300: #8cc8ff;
  --sky-400: #4fb0ff;
  --blue-500: #2b6cff;
  --blue-600: #1d55e8;
  --blue-700: #1641b8;
  --navy: #081a3d;
  --navy-2: #0f2655;

  --ink: #0b1a36;
  --ink-2: #3b4a68;
  --muted: #6a7895;
  --line: #e2e9f4;
  --line-2: #cfdaea;

  --green: #0f8a5f;
  --green-soft: #e1f5ec;
  --amber: #a35f00;
  --amber-soft: #fff1d6;

  --bar-a: #bcdcff;
  --bar-b: #1d55e8;

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 26, 54, .05), 0 4px 12px -4px rgba(11, 26, 54, .08);
  --shadow: 0 1px 2px rgba(11, 26, 54, .04), 0 16px 40px -12px rgba(22, 65, 184, .18);
  --shadow-lg: 0 2px 6px rgba(11, 26, 54, .04), 0 30px 70px -20px rgba(22, 65, 184, .32);

  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  font-size: 1.1em; line-height: 1;
  background: linear-gradient(95deg, var(--blue-600) 10%, var(--sky-400) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
p { margin: 0; }
a { color: inherit; }
b, strong { font-weight: 600; }
code { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
[hidden] { display: none !important; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; }
.section { padding: 112px 0; scroll-margin-top: 72px; }
.section.soft { background: var(--bg-soft); }

.center-head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.center-head p { margin-top: 18px; color: var(--ink-2); font-size: 1.1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--sky-50); border: 1px solid var(--sky-100); color: var(--blue-700);
  font: 600 .8rem/1.2 var(--display); letter-spacing: -0.005em;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 0 rgba(43, 108, 255, .5); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(43, 108, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 108, 255, 0); } }
.eyebrow.dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: var(--sky-300); }
.eyebrow.dark i { background: var(--sky-400); }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font: 600 .72rem/1.6 var(--font); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.blue { background: var(--sky-50); color: var(--blue-600); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--display); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 85, 232, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--blue-700); }
.btn-soft { background: var(--sky-50); color: var(--blue-700); border-color: var(--sky-100); }
.btn-soft:hover { background: var(--sky-100); }
.btn-white { background: #fff; color: var(--blue-700); box-shadow: 0 10px 24px -10px rgba(8, 26, 61, .5); }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* ============ Nav ============ */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(226, 233, 244, .7); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -0.04em; }
.logo-mark {
  display: inline-grid; place-items: center; flex: none; width: 38px; height: 34px;
}
.logo-mark img { display: block; width: 38px; height: 34px; }
.logo-mark--tile img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 14px -6px rgba(29, 85, 232, .6); }
.logo-mark.sm, .logo-mark.sm img { width: 26px; height: 24px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font: 500 .92rem var(--font); }
.nav-links a:hover { color: var(--blue-600); }

/* ============ Hero ============ */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(140, 200, 255, .55), transparent 70%),
    radial-gradient(30% 30% at 12% 30%, rgba(188, 220, 255, .6), transparent 70%),
    radial-gradient(30% 30% at 88% 26%, rgba(188, 220, 255, .55), transparent 70%),
    linear-gradient(180deg, #f2f8ff 0%, #ffffff 75%);
}
.hero-sky::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29, 85, 232, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 85, 232, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-copy { text-align: center; }
.hero-copy h1 { max-width: 900px; margin: 0 auto; }
.hero-sub { margin: 26px auto 0; font-size: 1.18rem; line-height: 1.6; color: var(--ink-2); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.hero-note b { color: var(--blue-600); font-family: var(--mono); font-weight: 500; }

/* Shared bits: file chips, file-type icons, Aven avatar */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-2); white-space: nowrap;
}
.fx { width: 12px; height: 15px; border-radius: 3px; flex: none; position: relative; display: inline-block; }
.fx::after { content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 4px; background: rgba(255,255,255,.6); border-bottom-left-radius: 2px; }
.fx.pdf { background: #e5484d; } .fx.png { background: #8b5cf6; } .fx.xlsx, .fx.csv { background: #17a06b; } .fx.docx { background: var(--blue-600); }
.fc-av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-100); color: var(--blue-700); font-weight: 700; font-size: .8rem; }
.fc-av.aven { background: #fff; border: 1px solid var(--line); }
.fc-av.aven img { display: block; width: 24px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Hero showcase (looping story) ============ */
.showcase {
  position: relative; margin-top: 64px; border-radius: 30px; padding: 26px 30px 34px; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 80% at 12% 0%, rgba(79, 176, 255, .5), transparent 60%),
    radial-gradient(45% 70% at 100% 100%, rgba(140, 200, 255, .55), transparent 60%),
    linear-gradient(135deg, #0c2463 0%, #1a4fd8 55%, #3b9cf5 100%);
  box-shadow: 0 40px 90px -30px rgba(22, 65, 184, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.showcase::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000 20%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 45%, #000 20%, transparent 80%);
}
.showcase > * { position: relative; }

/* Step tracker */
.sc-progress { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 28px; font: 600 .86rem var(--display); color: rgba(255,255,255,.55); }
.sp { display: flex; align-items: center; gap: 9px; transition: color .3s; white-space: nowrap; }
.sp i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); display: grid; place-items: center; font-style: normal; font-size: .76rem; transition: all .3s; }
.sp.on { color: #fff; }
.sp.on i { background: #fff; color: var(--blue-600); border-color: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.15); }
.sp.done { color: rgba(255,255,255,.85); }
.sp.done i { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
.sp-line { width: 64px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.2); position: relative; overflow: hidden; }
.sp-line b { position: absolute; inset: 0; width: 0; background: #fff; transition: width .6s ease; }
.sp-line.fill b { width: 100%; }

.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 56px 258px 56px minmax(0, 1.12fr); align-items: center; }

/* 1 · Compose window */
.sc-compose {
  background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 50px -18px rgba(5, 20, 60, .55); transition: transform .4s, opacity .4s;
}
.cw-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #eef2f8; font: 600 .82rem var(--display); }
.cw-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #f1f4f9; font-size: .8rem; min-height: 37px; }
.cw-row > span { color: var(--muted); width: 50px; flex: none; }
.cw-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-row .to-chip { font-size: .76rem; }
.cw-body { padding: 12px 14px; min-height: 88px; font-size: .82rem; line-height: 1.55; color: var(--ink-2); }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--blue-600); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sent .caret { display: none; }
.cw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid #eef2f8; }
.att-in { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; font-size: .72rem; padding: 4px 8px; }
.att-on .att-in { opacity: 1; transform: none; }
.cw-send {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--blue-600); color: #fff; font: 600 .78rem var(--display); --plane-fold: var(--blue-600);
  transition: transform .15s, background .3s; box-shadow: 0 6px 14px -6px rgba(29, 85, 232, .8);
}
.cw-send svg { width: 13px; height: 13px; }
.cw-send .lbl-sent { display: none; }
.pressed .cw-send { transform: scale(.9); }
.sent .cw-send { background: var(--green); box-shadow: none; transform: none; }
.sent .cw-send .lbl { display: none; }
.sent .cw-send .lbl-sent { display: inline; }
.sent .cw-send svg { display: none; }
.working .sc-compose, .delivered .sc-compose { opacity: .9; transform: scale(.97); }

/* Beams with a flying envelope */
.beam { position: relative; height: 2px; margin: 0 6px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.45), rgba(255,255,255,.12)); overflow: visible; }
.beam::after { content: ''; position: absolute; top: -1px; height: 4px; width: 26px; left: 0; border-radius: 4px; background: #fff; filter: blur(2px); opacity: 0; }
.fly1 .beam:nth-of-type(2)::after, .fly2 .beam:nth-of-type(4)::after { animation: streak .8s ease-in-out forwards; }
.beam-env { position: absolute; top: -15px; left: 0; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: #fff; color: var(--blue-600); opacity: 0; box-shadow: 0 0 0 4px rgba(255,255,255,.25), 0 8px 18px -4px rgba(5, 20, 60, .5); }
.beam-env svg { width: 100%; height: 100%; display: block; }
.fly1 .b1, .fly2 .b2 { animation: fly .8s ease-in-out forwards; }
@keyframes fly-y { 0% { top: -6px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: calc(100% - 20px); opacity: 0; } }
@keyframes fly { 0% { left: -6px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% - 20px); opacity: 0; } }
@keyframes streak { 0% { left: 0; opacity: 0; } 30% { opacity: .9; } 100% { left: calc(100% - 26px); opacity: 0; } }

/* 2 · Aven at work (frosted panel) */
.sc-core { display: flex; justify-content: center; }
.agent-card {
  width: 100%; border-radius: 18px; padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 24px 50px -20px rgba(5, 20, 60, .55), inset 0 1px 0 rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.ag-head { display: flex; align-items: center; gap: 10px; }
.ag-orb {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 11px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 18px -6px rgba(5, 20, 60, .6);
}
.ag-orb img { display: block; width: 26px; height: 24px; }
.ag-orb::after { content: ''; position: absolute; inset: -4px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.6); opacity: 0; }
.working:not(.delivered) .ag-orb::after { animation: orb-pulse 1.4s ease-out infinite; }
@keyframes orb-pulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.ag-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.ag-title b { font: 700 .86rem var(--display); }
.ag-status { font-size: .72rem; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-timer { font: 500 .74rem var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.14); font-variant-numeric: tabular-nums; }
.delivered .ag-timer { background: #fff; color: var(--green); }
.ag-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); margin: 12px 0 10px; overflow: hidden; }
.ag-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #fff, var(--sky-200)); transition: width .45s ease; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.work-list li {
  display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px;
  font-size: .76rem; color: rgba(255,255,255,.5); transition: background .25s, color .25s;
}
.wi { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .25s, color .25s; }
.wi svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.wl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws { flex: none; font: 500 .66rem var(--mono); color: var(--sky-200); }
.work-list li.now { background: rgba(255,255,255,.16); color: #fff; }
.work-list li.now .wi { background: rgba(255,255,255,.22); }
.work-list li.now .ws { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; border-top-color: transparent; animation: spin .7s linear infinite; }
.work-list li.done { color: #fff; }
.work-list li.done .wi { background: #fff; color: var(--blue-600); }

/* 3 · Delivered work */
.sc-out { position: relative; min-height: 330px; }
.out-wait {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px;
  border: 1.5px dashed rgba(255,255,255,.4); color: rgba(255,255,255,.65); font: 600 .86rem var(--display);
  transition: opacity .3s;
}
.delivered .out-wait { opacity: 0; }
.out-done {
  background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: 0 24px 50px -18px rgba(5, 20, 60, .55);
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.delivered .out-done { opacity: 1; transform: none; }
.out-head { display: flex; align-items: center; gap: 10px; }
.out-head div { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.out-head b { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out-head div span { font-size: .72rem; color: var(--muted); }
.out-msg { font-size: .8rem; color: var(--ink-2); margin: 10px 0 0; line-height: 1.5; }
.thumbs { position: relative; height: 196px; margin-top: 10px; }
.thumb {
  position: absolute; top: 12px; left: 50%; width: 45%; height: 170px; padding: 10px 10px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 14px 30px -12px rgba(11, 26, 54, .35);
  opacity: 0; transform: translateX(-50%) translateY(30px) scale(.85);
  transition: transform .65s cubic-bezier(.2, .9, .25, 1.15), opacity .4s;
}
.delivered .thumb { opacity: 1; }
.delivered .t-pdf { transform: translateX(calc(-50% - 62%)) rotate(-7deg); transition-delay: .25s; }
.delivered .t-chart { transform: translateX(-50%) translateY(-8px); z-index: 2; transition-delay: .4s; }
.delivered .t-xlsx { transform: translateX(calc(-50% + 62%)) rotate(7deg); transition-delay: .55s; }
.thumb-name { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 5px; padding: 6px 8px; font-size: .62rem; font-weight: 600; color: var(--ink-2); background: var(--bg-soft); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.thumb-name .fx { width: 9px; height: 11px; }
.tp-kicker { width: 40%; height: 4px; border-radius: 2px; background: var(--sky-300); }
.tp-title { font: 700 .6rem/1.25 var(--display); margin: 6px 0 7px; color: var(--ink); }
.tp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 8px; }
.tp-stats span { background: var(--bg-soft); border-radius: 4px; padding: 4px 3px; font-size: .45rem; color: var(--muted); display: flex; flex-direction: column; }
.tp-stats b { font: 700 .6rem var(--display); color: var(--ink); }
.tp-lines { display: grid; gap: 4px; }
.tp-lines i { display: block; height: 3px; border-radius: 2px; background: #e6ecf5; width: 100%; }
.tc-title { font: 700 .6rem var(--display); color: var(--ink); margin-bottom: 10px; }
.tc-bars { display: grid; gap: 9px; }
.tc-bars div { display: grid; gap: 2px; }
.tc-bars span { display: block; height: 6px; border-radius: 2px; background: var(--sky-200); }
.tc-bars span.b { background: var(--blue-600); }
.tc-bars span.hi { background: linear-gradient(90deg, var(--blue-600), #e5484d); }
.tx-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border: 1px solid #e6ecf5; border-radius: 4px; overflow: hidden; }
.tx-grid span { font-size: .52rem; padding: 4px 4px; border-bottom: 1px solid #eef2f8; border-right: 1px solid #eef2f8; color: var(--ink); }
.tx-grid span.h { background: var(--sky-50); color: var(--blue-700); font-weight: 700; }
.tx-grid span.neg { color: #d33a3f; font-weight: 700; }

/* Loop transition */
.showcase .sc-grid { transition: opacity .45s; }
.showcase.fade .sc-grid { opacity: 0; }

/* ============ Pillars ============ */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pillar {
  display: flex; flex-direction: column; border-radius: 26px; padding: 40px;
  background: linear-gradient(180deg, var(--bg-soft), #fff 70%); border: 1px solid var(--line);
}
.pillar-no { font: 700 .8rem var(--mono); color: var(--blue-600); background: var(--sky-50); border: 1px solid var(--sky-100); align-self: flex-start; padding: 3px 10px; border-radius: 999px; margin-bottom: 22px; }
.pillar h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; }
.pillar > p { margin-top: 14px; color: var(--ink-2); font-size: 1.02rem; max-width: 470px; }
.pillar-viz { margin-top: 32px; padding-top: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.setup { gap: 8px; }
.setup-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); font-size: .95rem; color: var(--muted);
}
.setup-row.x { text-decoration: line-through; text-decoration-color: rgba(106, 120, 149, .6); }
.setup-row.x::before { content: '×'; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #eef2f8; color: var(--muted); display: grid; place-items: center; font-size: .9rem; line-height: 1; text-decoration: none; }
.setup-row.ok { color: var(--ink); font-weight: 600; border-color: var(--sky-200); background: #fff; box-shadow: var(--shadow); padding: 14px 16px; }
.setup-row.ok svg { width: 20px; height: 20px; color: var(--blue-600); flex: none; }
.setup-row.ok .pill { margin-left: auto; }
.contrast { gap: 12px; }
.answer, .work { border-radius: 14px; padding: 16px 18px; font-size: .92rem; }
.answer { background: #f1f4f9; color: var(--muted); border: 1px dashed var(--line-2); }
.answer p { font-style: italic; }
.work { background: #fff; border: 1px solid var(--sky-200); box-shadow: var(--shadow); }
.work p { color: var(--ink-2); margin-bottom: 12px; }
.work b { color: var(--green); }
.answer-label { font: 700 .7rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.answer-label.blue { color: var(--blue-600); }

/* ============ How it works (navy, envelope flap) ============ */
.navy {
  background:
    radial-gradient(50% 40% at 50% 100%, rgba(43, 108, 255, .28), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 170px 0 110px; scroll-margin-top: 0;
  clip-path: polygon(0 0, 50% 96px, 100% 0, 100% 100%, 0 100%);
}
.center-head.on-navy p { color: #b6c4e3; }
.center-head.on-navy h2 em { background: linear-gradient(95deg, var(--sky-300), #d4ecff); -webkit-background-clip: text; background-clip: text; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px; padding: 26px;
}
.step-top { display: flex; align-items: center; gap: 0; margin-bottom: 20px; margin-right: -40px; }
.step-card:last-child .step-top { margin-right: 0; }
.step-no {
  flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-500), var(--sky-400)); color: #fff;
  font: 700 .95rem var(--display); box-shadow: 0 8px 20px -8px rgba(79, 176, 255, .8);
}
.step-line {
  flex: 1; height: 2px; position: relative; overflow: hidden;
  background-image: linear-gradient(90deg, rgba(140, 200, 255, .4) 50%, transparent 50%); background-size: 8px 2px;
}
.step-line::after { content: ''; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--sky-300), transparent); animation: pulse-run 2.6s linear infinite; }
@keyframes pulse-run { to { left: 100%; } }
.step-card h3 { color: #fff; }
.step-card > p { color: #b6c4e3; font-size: .9rem; margin-top: 8px; margin-bottom: 20px; }
.mini {
  margin-top: auto; background: #fff; color: var(--ink); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px; font-size: .8rem; min-height: 116px; justify-content: center;
}
.mini-row { display: flex; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid #eef2f8; min-width: 0; }
.mini-row span { color: var(--muted); width: 30px; flex: none; }
.mini-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .file-chip { align-self: flex-start; }
.check { position: relative; padding-left: 24px; line-height: 1.5; }
.check .pill { margin-left: 4px; }
.check::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: .6rem; display: grid; place-items: center; }
.bar-track { height: 7px; border-radius: 4px; background: var(--sky-50); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); }
.tool-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-row code { font-size: .7rem; padding: 3px 7px; border-radius: 6px; }
.tool-row code.ok { background: var(--green-soft); color: var(--green); }
.tool-row code.busy { background: var(--sky-50); color: var(--blue-600); }
.approve { padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); color: #5c3a00; }

/* ============ Demo ============ */
.demo-sec { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.scenarios { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font: 600 .88rem var(--display); color: var(--ink-2); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--sky-300); color: var(--blue-700); }
.chip.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chip:disabled { opacity: .5; cursor: default; }

.demo-shell {
  border-radius: 28px; padding: 22px;
  background: linear-gradient(140deg, var(--sky-100), #e9f3ff 40%, var(--sky-50));
  border: 1px solid var(--sky-100);
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.demo-grid > .panel { height: 620px; display: flex; flex-direction: column; }
.panel { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(207, 218, 234, .6); }
.panel-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #eef2f8; }
.panel-title { flex: 1; font: 600 .95rem var(--display); letter-spacing: -0.015em; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky-100); }
.dots i:first-child { background: var(--sky-300); }

.field { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #f0f4fa; font-size: .9rem; min-width: 0; }
.field-label { color: var(--muted); width: 58px; flex: none; }
.field-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.to-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--sky-50); color: var(--blue-600); font-weight: 600; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 .92rem var(--font); padding: 2px 0; }
.field input:focus, textarea:focus { outline: none; }
textarea { display: block; width: 100%; flex: 1; min-height: 0; resize: none; border: 0; background: transparent; color: var(--ink); font: .92rem/1.65 var(--font); padding: 16px 18px; }
input:disabled, textarea:disabled { color: var(--muted); -webkit-text-fill-color: var(--muted); opacity: 1; }
.attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px; }
.attachments:not(:empty) { padding-bottom: 14px; }
.file-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .8rem; white-space: nowrap; }
.composer-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid #eef2f8; }
.btn-send { padding: 11px 24px; }
.btn-send:disabled { background: var(--green); box-shadow: none; }
.hint { color: var(--muted); font-size: .8rem; }
.composer.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.status-dot.running { background: var(--blue-500); animation: breathe 1s ease-in-out infinite; }
.status-dot.done { background: var(--green); }
@keyframes breathe { 50% { opacity: .35; } }
.timer { font: 500 .85rem var(--mono); color: var(--blue-600); background: var(--sky-50); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }

.log { list-style: none; margin: 0; padding: 10px 18px 18px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sky-200) transparent; }
.log-empty {
  display: grid; place-items: center; height: 100%; min-height: 200px; border-radius: 12px;
  color: var(--muted); font-size: .9rem;
  background-image: radial-gradient(circle, var(--sky-200) 1px, transparent 1.5px); background-size: 16px 16px;
}
.step { display: flex; gap: 14px; padding: 10px 0; position: relative; animation: rise .35s ease both; }
.step:not(:last-child)::before { content: ''; position: absolute; left: 10px; top: 34px; bottom: -6px; width: 2px; background-image: linear-gradient(var(--sky-200) 50%, transparent 50%); background-size: 2px 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.step-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--sky-200); background: #fff; display: grid; place-items: center; font-size: .66rem; font-weight: 700; position: relative; z-index: 1; }
.step.running .step-icon { border-color: var(--blue-500); border-top-color: transparent; animation: spin .8s linear infinite; }
.step.done .step-icon { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.step.done .step-icon::after { content: '✓'; }
.step.final.done .step-icon { background: var(--green); border-color: var(--green); }
.step-main { flex: 1; min-width: 0; }
.step-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.step-title { font-weight: 600; font-size: .9rem; }
.step-title .tool { font: .76rem var(--mono); color: var(--blue-600); background: var(--sky-50); padding: 2px 8px; border-radius: 6px; }
.step-time { font: .72rem var(--mono); color: var(--muted); flex: none; }
.step-detail { color: var(--muted); font-size: .83rem; margin-top: 2px; }
.step-list { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .83rem; }
.step-code { margin: 8px 0 0; padding: 9px 11px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; font: .74rem/1.6 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.tag-sim { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--amber-soft); color: var(--amber); }

/* Inbox: reply email (left) + deliverable viewer (right) */
.inbox { margin-top: 18px; scroll-margin-top: 90px; animation: rise .5s ease both; }
.inbox-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.mail { padding: 26px 28px; display: flex; flex-direction: column; min-width: 0; }
.reply-meta { display: flex; align-items: center; gap: 12px; }
.avatar-aven { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.avatar-aven img { display: block; width: 28px; height: 26px; }
.reply-who { flex: 1; min-width: 0; line-height: 1.35; font-size: .92rem; }
.reply-subject { font-size: 1.3rem; margin: 20px 0 14px; }
.reply-content { font-size: .93rem; color: var(--ink-2); line-height: 1.65; }
.reply-content p { margin: 0 0 .9em; }
.reply-content strong { color: var(--ink); }
.reply-content .sign { color: var(--muted); margin-bottom: 0; }
.callout { padding: 12px 14px; border-radius: 12px; margin: 4px 0 14px; font-size: .88rem; line-height: 1.55; color: var(--ink); border-left: 3px solid; }
.callout.info { background: var(--sky-50); border-color: var(--sky-400); }
.callout.warn { background: var(--amber-soft); border-color: #f0b54a; }
.att-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; font: 700 .74rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.att-head .muted { font: 500 .78rem var(--font); letter-spacing: 0; text-transform: none; }
.reply-files { display: flex; flex-direction: column; gap: 8px; }
.att {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.att:hover { border-color: var(--sky-300); }
.att.active { border-color: var(--blue-500); background: var(--sky-50); box-shadow: 0 0 0 3px rgba(43, 108, 255, .12); }
.att-open { margin-left: auto; font: 600 .78rem var(--display); color: var(--blue-600); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.att:hover .att-open { opacity: 1; }
.att.active .att-open { opacity: 0; }
.file-ext { flex: none; display: grid; place-items: center; width: 34px; height: 40px; border-radius: 6px; font: 600 .6rem var(--mono); color: #fff; text-transform: uppercase; }
.file-ext.sm { width: 28px; height: 32px; font-size: .55rem; }
.file-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.file-info b { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info span { font-size: .75rem; color: var(--muted); }
.ext-pdf { background: #e5484d; } .ext-xlsx, .ext-csv { background: #17a06b; } .ext-docx { background: var(--blue-600); } .ext-png { background: #8b5cf6; } .ext-md { background: #475569; } .ext-eml { background: var(--sky-400); }
.fx.eml { background: var(--sky-400); } .fx.md { background: #475569; }
.reply-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; }

.viewer { display: flex; flex-direction: column; min-width: 0; background: #eaf0f8; border-left: 1px solid var(--line); }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.viewer-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.viewer-title b { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-title span { font-size: .75rem; color: var(--muted); }
.viewer-body { flex: 1 1 0; min-height: 560px; overflow: auto; padding: 26px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.viewer-body > * { animation: rise .3s ease both; }

/* Document page (PDF / Word) */
.doc-page {
  max-width: 600px; margin: 0 auto; background: #fff; border-radius: 4px; padding: 40px 44px;
  box-shadow: 0 1px 2px rgba(11, 26, 54, .06), 0 12px 32px -12px rgba(11, 26, 54, .25);
  font-size: .86rem; line-height: 1.6; color: var(--ink-2);
}
.doc-kicker { font: 700 .68rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.doc-title { font: 700 1.45rem/1.2 var(--display); letter-spacing: -0.03em; color: var(--ink); margin: 8px 0 6px; }
.doc-sub { font-size: .78rem; color: var(--muted); padding-bottom: 16px; margin-bottom: 4px; border-bottom: 1px solid #eef2f8; }
.doc-page h5 { font: 700 .82rem var(--display); color: var(--ink); margin: 20px 0 8px; }
.doc-page p { margin: 0 0 .6em; }
.doc-page ul, .doc-page ol { margin: 0 0 .6em; padding-left: 20px; }
.doc-page li { margin-bottom: 4px; }
.doc-page b { color: var(--ink); }
.doc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 4px; }
.doc-stats div { background: var(--bg-soft); border: 1px solid #e8eef7; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.doc-stats b { font: 700 1.25rem/1.1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.doc-stats span { font-size: .72rem; color: var(--muted); }
.doc-stats em { font-style: normal; font-size: .7rem; font-weight: 600; color: var(--muted); }
.doc-stats em.down { color: #d33a3f; } .doc-stats em.up { color: var(--green); }
.doc-table { overflow-x: auto; border: 1px solid #e6ecf5; border-radius: 8px; margin: 0 0 .6em; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.doc-table th, .doc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eef2f8; color: var(--ink); vertical-align: top; }
.doc-table th { background: var(--bg-soft); font: 600 .7rem var(--display); color: var(--muted); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-table tr.total td { font-weight: 700; background: var(--sky-50); color: var(--blue-700); }
.pending { color: var(--amber); font-weight: 600; }
.gantt { display: grid; gap: 6px; font-size: .74rem; margin-bottom: .6em; }
.g-row, .g-scale { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.g-row > div { position: relative; height: 14px; background: var(--bg-soft); border-radius: 4px; }
.g-row i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); }
.g-scale > div { display: grid; grid-template-columns: repeat(6, 1fr); }
.g-scale em { font-style: normal; color: var(--muted); font-size: .66rem; }

/* Chart (used in docs and the PNG preview) */
.chart { margin: 8px 0 14px; padding: 16px; border: 1px solid #e6ecf5; border-radius: 10px; background: #fff; }
.chart-title { font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.chart-row { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; margin-bottom: 9px; }
.chart-row span { font-size: .76rem; color: var(--muted); }
.bars { display: grid; gap: 3px; }
.bar { height: 9px; border-radius: 3px; background: var(--bar-a); position: relative; }
.bar.b { background: var(--bar-b); }
.bar em { position: absolute; left: calc(100% + 6px); top: -4px; font-style: normal; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.img-frame { max-width: 620px; margin: 40px auto 0; padding: 18px; background: #fff; border-radius: 8px; box-shadow: 0 12px 32px -12px rgba(11, 26, 54, .25); }
.img-frame .chart { border: 0; margin: 0; padding: 8px 4px; }
.img-frame .chart-title { font-size: .95rem; }
.img-frame .bar { height: 14px; }
.img-frame .chart-row { margin-bottom: 14px; }

/* Spreadsheet */
.sheet { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 32px -12px rgba(11, 26, 54, .25); }
.sheet-grid { overflow-x: auto; }
.sheet table { width: 100%; border-collapse: collapse; font: .8rem var(--font); }
.sheet th { background: #f3f6fa; color: var(--muted); font-weight: 500; font-size: .7rem; padding: 4px 8px; border: 1px solid #e3e9f1; text-align: center; }
.sheet td { padding: 7px 10px; border: 1px solid #e9eef5; color: var(--ink); white-space: nowrap; }
.sheet td.rn, .sheet th.rn { width: 34px; background: #f3f6fa; color: var(--muted); font-size: .7rem; text-align: center; }
.sheet td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet tr.hdr td:not(.rn) { font-weight: 600; background: var(--sky-50); color: var(--blue-700); }
.sheet tr.total td:not(.rn) { font-weight: 700; background: #f7f9fc; border-top: 2px solid var(--line-2); }
.sheet .neg { color: #d33a3f; font-weight: 600; }
.sheet-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #f3f6fa; border-top: 1px solid #e3e9f1; }
.sheet-tabs span { padding: 6px 12px; font-size: .74rem; color: var(--muted); border-radius: 6px 6px 0 0; }
.sheet-tabs span.on { background: #fff; color: var(--green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }

/* Email draft (.eml) */
.draft { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px -12px rgba(11, 26, 54, .25); font-size: .88rem; }
.draft-row { display: flex; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #eef2f8; }
.draft-row span { width: 56px; color: var(--muted); flex: none; }
.draft-body { padding: 18px; color: var(--ink-2); line-height: 1.65; }
.draft-body p { margin: 0 0 .8em; }
.draft-body ul { margin: 0 0 .8em; padding-left: 20px; }

/* ============ Use cases (bento) ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento .tile { min-height: 290px; }
.tile {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-200); }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.tile-text { display: flex; flex-direction: column; height: 100%; }
.tile-kicker { font: 700 .72rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.ask-big { margin-top: 10px; font: 600 1.3rem/1.3 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.tile .ask-big { color: var(--ink); font-size: 1.3rem; }
.gets { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.gets > span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.gets .file-chip { background: #fff; }
.tile-viz { background: #fff; border-radius: 16px; border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow-sm); }
.bv-title { font-size: .8rem; font-weight: 600; margin-bottom: 12px; }
.bv { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-bottom: 18px; }
.bv span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--sky-100); position: relative; }
.bv span.hi { background: linear-gradient(180deg, var(--blue-600), var(--sky-400)); }
.bv em { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .68rem; color: var(--muted); }
.bv-note { margin-top: 6px; font-size: .76rem; color: var(--blue-700); background: var(--sky-50); border-radius: 8px; padding: 6px 10px; }
.plan-viz { display: flex; flex-direction: column; gap: 8px; font-size: .84rem; }
.pv-row { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #eef2f8; }
.pv-day { font: 600 .7rem var(--display); color: var(--blue-600); background: var(--sky-50); padding: 3px 8px; border-radius: 6px; flex: none; }
.pv-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 2px; font-size: .82rem; color: var(--ink-2); }

/* ============ Control strip ============ */
.control-sec { padding: 88px 0; }
.control-sec .center-head { margin-bottom: 40px; }
.control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.control-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.ticon { flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--sky-50); color: var(--blue-600); display: grid; place-items: center; }
.ticon svg { width: 22px; height: 22px; }
.control-item h3 { font-size: 1rem; }
.control-item p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-intro { margin-top: 18px; max-width: 320px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--sky-200); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font: 600 1rem var(--display); letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sky-50); color: var(--blue-600); display: grid; place-items: center; font-size: 1.1rem; font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: .95rem; }

/* ============ CTA ============ */
.cta-sec { padding-top: 40px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  border-radius: 32px; padding: 96px 32px;
  background:
    radial-gradient(40% 60% at 85% 10%, rgba(188, 220, 255, .55), transparent 70%),
    radial-gradient(50% 60% at 10% 100%, rgba(8, 26, 61, .35), transparent 70%),
    linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 40%, var(--sky-400) 100%);
}
.cta-card h2 { color: #fff; max-width: 760px; margin: 0 auto; position: relative; }
.cta-card h2 em { background: none; color: #dff0ff; -webkit-background-clip: border-box; background-clip: border-box; }
.cta-card p { margin: 18px auto 0; color: #dbeaff; max-width: 520px; position: relative; }
.cta-card .hero-actions { position: relative; }
.cta-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-mark { position: absolute; top: 46px; right: 9%; width: 54px; height: 54px; padding: 9px; border-radius: 16px; background: #fff; animation: float 5s ease-in-out infinite; }
.cta-mark img { display: block; width: 100%; height: 100%; }
@keyframes float { 50% { transform: translate(-6px, -10px) rotate(-6deg); } }

/* ============ Footer ============ */
.footer { padding: 36px 0 44px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--blue-600); }

/* ============ Responsive ============ */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .sc-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
  .beam { width: 2px; height: 44px; margin: 8px auto; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.45), rgba(255,255,255,.12)); }
  .beam::after { display: none; }
  .beam-env { top: 0; left: -14px; }
  .fly1 .b1, .fly2 .b2 { animation-name: fly-y; }
  .agent-card { max-width: 380px; }
  .sc-out { min-height: 320px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .step-line { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .control { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .step-top { margin-right: 0; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-grid > .panel { height: auto; }
  .composer textarea { min-height: 240px; }
  .agent .log { max-height: 440px; min-height: 200px; }
  .inbox-grid { grid-template-columns: 1fr; }
  .viewer { border-left: 0; border-top: 1px solid var(--line); }
  .viewer-body { flex: none; min-height: 0; max-height: 560px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-sub { font-size: 1.05rem; }
  .showcase { margin-top: 44px; padding: 20px 14px 24px; border-radius: 22px; }
  .sc-progress { gap: 8px; font-size: .74rem; margin-bottom: 20px; }
  .sp span { display: none; }
  .sp.on span { display: inline; }
  .sp-line { width: 24px; }
  .pillar { padding: 26px 20px; border-radius: 20px; }
  .bento .tile { min-height: 0; }
  .navy { padding: 120px 0 80px; clip-path: polygon(0 0, 50% 56px, 100% 0, 100% 100%, 0 100%); }
  .steps { grid-template-columns: 1fr; }
  .step-line { display: none; }
  .demo-shell { padding: 8px; border-radius: 20px; }
  .mail { padding: 20px 18px; }
  .viewer-body { padding: 14px; }
  .doc-page { padding: 24px 20px; }
  .doc-stats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; grid-template-columns: 1fr; }
  .log-empty { min-height: 160px; }
  .cta-card { padding: 72px 20px; border-radius: 24px; }
  .cta-mark { top: 22px; right: 18px; width: 38px; height: 38px; padding: 6px; border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ======================================================================
   Waitlist redesign: whole jobs, not questions.
   Everything below is additive and built from the tokens above.
   ====================================================================== */

/* File types that jobs produce */
.fx.pptx { background: #d24726; } .fx.ics { background: #0e9f9e; }
.ext-pptx { background: #d24726; } .ext-ics { background: #0e9f9e; }

/* Hero: the third card is drafts waiting for approval, not another chart */
.te-list { display: grid; gap: 5px; }
.te-row { display: flex; flex-direction: column; gap: 1px; padding: 5px 6px; border: 1px solid #eef2f8; border-radius: 5px; background: var(--bg-soft); }
.te-row b { font: 700 .55rem var(--display); color: var(--ink); }
.te-row span { font-size: .48rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-pending { margin-top: 7px; font: 700 .5rem var(--display); color: var(--amber); background: var(--amber-soft); border-radius: 4px; padding: 3px 5px; text-align: center; letter-spacing: .02em; }

/* Why: a chat transcript that never ends vs one hand-off */
.turns { display: grid; gap: 6px; }
.turn { max-width: 86%; padding: 6px 10px; border-radius: 10px; font-size: .82rem; line-height: 1.35; font-style: normal; }
.turn.you { justify-self: end; background: #e3e9f3; color: var(--ink-2); border-bottom-right-radius: 3px; }
.turn.ai { justify-self: start; background: #fff; color: var(--ink-2); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.turn.more { justify-self: center; max-width: none; background: none; padding: 2px 0 0; font-style: italic; color: var(--muted); font-size: .8rem; text-align: center; }

/* Why: the three things a chat window structurally can't do */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.diff { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.diff b { display: block; font: 700 1rem/1.3 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.diff p { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.diff-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--sky-100); color: var(--blue-600); }
.diff-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* How it works: an item counter, because volume is the point */
.mini-count { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; color: var(--muted); }
.mini-count b { font: 700 .85rem var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Demo log: batch progress on steps that touch many items */
.step-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.spr-track { flex: 1; height: 6px; border-radius: 4px; background: var(--sky-50); overflow: hidden; }
.spr-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); }
.step.running .spr-track i { animation: spr-fill 1.1s ease-out both; }
@keyframes spr-fill { from { width: 0; } }
.step-progress span { font: 600 .72rem var(--mono); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Reply: the decisions list, and the approval gate */
.reply-content ul.need { margin: 0 0 1em; padding-left: 20px; }
.reply-content ul.need li { margin-bottom: 6px; }
.callout.approve { background: var(--amber-soft); border-color: #f0b54a; }

/* Previews: several drafts per file, and placeholders Aven won't invent */
.draft-wrap + .draft-wrap { margin-top: 18px; }
.draft-status { max-width: 600px; margin: 0 auto 8px; font: 700 .68rem var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.draft-more { max-width: 600px; margin: 16px auto 0; font-size: .84rem; color: var(--muted); }
mark.ph { background: var(--amber-soft); color: #7a4600; padding: 1px 4px; border-radius: 4px; font-weight: 600; }

/* Previews: a calendar file */
.cal { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 12px 32px -12px rgba(11, 26, 54, .25); }
.cal-ev { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #eef2f8; }
.cal-ev:last-child { border-bottom: 0; }
.cal-date { flex: none; width: 48px; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); align-self: flex-start; }
.cal-date b { display: block; font: 700 1.15rem/1.6 var(--display); color: var(--ink); }
.cal-date span { display: block; font: 700 .62rem/1.7 var(--display); text-transform: uppercase; letter-spacing: .06em; background: var(--sky-50); color: var(--blue-700); }
.cal-ev.urgent .cal-date span { background: #fde8e8; color: #c62f34; }
.cal-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-main b { font-size: .92rem; color: var(--ink); }
.cal-main span { font-size: .82rem; color: var(--ink-2); }
.cal-main em { font-style: normal; font-size: .74rem; color: var(--muted); }

/* More jobs: the steps Aven takes, visible in every tile */
.bento .tile.job { min-height: 0; }
.job-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; counter-reset: js; }
.job-steps li { counter-increment: js; display: flex; align-items: baseline; gap: 9px; font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.job-steps li::before { content: counter(js); flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--sky-50); color: var(--blue-600); font: 700 .68rem var(--display); transform: translateY(-1px); }

@media (max-width: 1060px) {
  .diffs { grid-template-columns: 1fr; }
}

/* Let the work list shrink to its card. A grid's auto track won't go below its content's
   minimum width, and with nowrap labels that minimum is the longest label, so a long label
   pushed every row (and its timestamp) past the card edge. */
.work-list { grid-template-columns: minmax(0, 1fr); }

/* Archives are the commonest way a job arrives; they need an icon too. */
.fx.zip { background: #64748b; } .ext-zip { background: #64748b; }

/* Plain-text deliverables (captions, notes). */
.fx.txt { background: #475569; } .ext-txt { background: #475569; }


/* ============ Waitlist form (Kit) ============ */
/* The Kit form, built from the prototype's own tokens so it does not read as an embed.
   It sits on the dark gradient CTA card, so the palette is light-on-dark. */
.wl-form { position: relative; margin: 32px auto 0; max-width: 520px; }
.wl-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wl-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.wl-input {
  flex: 1 1 260px; min-width: 0;
  padding: 13px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .14); color: #fff;
  font: 500 .95rem/1 var(--font); letter-spacing: -0.01em;
  transition: background .15s, border-color .15s;
}
.wl-input::placeholder { color: rgba(255, 255, 255, .7); }
.wl-input:hover { background: rgba(255, 255, 255, .2); }
.wl-input:focus { outline: none; background: rgba(255, 255, 255, .24); border-color: #fff; }
.wl-input:disabled { opacity: .55; cursor: not-allowed; }
.wl-submit { flex: 0 0 auto; }
.wl-submit:disabled { opacity: .55; cursor: not-allowed; }
.wl-note { margin-top: 14px; color: #dbeaff; font-size: .82rem; position: relative; }
.wl-note.is-error { color: #ffd9d9; }
.wl-note.is-success { color: #eafff4; font-weight: 600; }

/* The confirmation that replaces the form once an address is accepted. */
.wl-done { margin: 32px auto 0; max-width: 520px; position: relative; }
.wl-done b { display: block; font: 700 1.15rem/1.3 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }

@media (max-width: 560px) {
  .wl-row { flex-direction: column; }
  /* Reset the flex basis: in a column container it would size the HEIGHT, and a 260px-tall
     input with a 999px radius renders as a giant circle. */
  .wl-input { flex: 0 0 auto; width: 100%; }
  .wl-submit { width: 100%; }
}
