/* The page: the opening line, then the product told in short stories with pictures of the app itself. */
.story { background: var(--paper); color: var(--ink); font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.story h2, .story h3 { font-weight: 600; letter-spacing: -0.03em; }
.story section { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
/* the opening: a scholar's headline, centred, as a book's title page sets it */
.hero { padding-top: clamp(72px, 13vh, 150px) !important; padding-bottom: clamp(20px, 3vh, 36px) !important; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 12.5em; font: 500 clamp(44px, 7.4vw, 104px)/1.02 "Source Serif 4", Georgia, serif; letter-spacing: -0.025em; text-wrap: balance; }
/* the subheading and lede in the features' own type (sans h3, sans body) under the serif headline */
.hero h1 > span { display: block; margin-top: 22px; font: 600 clamp(26px, 3vw, 40px)/1.12 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -0.03em; color: #8a8982; }
.lede { margin: 26px auto 0; max-width: 34em; font-size: 19px; line-height: 1.6; color: #55544f; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.hero .cta { padding: 15px 24px; font-size: 16px; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; font: 500 15px/1 "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer; transition: background 160ms ease; }
.cta:hover { background: #2b2b2b; }
.cta.quiet { background: rgba(19, 19, 19, 0.06); color: var(--ink); }
.cta.quiet:hover { background: rgba(19, 19, 19, 0.11); }
.cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

#features { padding-top: clamp(28px, 3vw, 44px); }
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-bottom: clamp(64px, 8vw, 112px) !important; }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.flip .copy { order: 2; }
.feature .copy { padding-top: 18px; border-top: 1px solid #e4e2dc; }
.kicker { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.feature h3 { margin: clamp(28px, 4vw, 56px) 0 0; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; }
.feature .copy > p:last-child { margin: 16px 0 0; font-size: 19px; line-height: 1.6; color: #55544f; }
/* a cropped window of the app, on a quiet tinted ground */
.shot { margin: 0; padding: clamp(14px, 2vw, 24px); border-radius: 14px; background: #f0eee8; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; object-position: 50% 0%; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08); background: #fff; }
.note { max-width: 1160px; margin: -40px auto 0; padding: 0 clamp(20px, 4vw, 48px); font-size: 11px; color: #a3a29b; text-align: center; }

.integrations, .trust { padding-top: clamp(72px, 9vw, 120px) !important; }
.integrations h2, .trust h2 { margin: 0; padding-top: 22px; border-top: 1px solid #e4e2dc; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.05; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.grid { gap: 28px 32px; }
.grid > div { padding: 16px 0 0; border-top: 1px solid #e4e2dc; }
.grid h4 { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; }
.grid ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; color: #3c3b37; }
.grid p { margin: 0; font-size: 14px; line-height: 1.6; color: #55544f; }
.status { margin-top: 10px !important; font-size: 12.5px !important; color: #8a8982 !important; }
.trust .links { display: flex; gap: 20px; margin: 22px 0 0; font-size: 14px; }
.trust .links a { color: var(--ink); }

.closing { padding: clamp(96px, 12vw, 160px) clamp(20px, 4vw, 48px) clamp(20px, 3vw, 40px) !important; text-align: center; }
.closing h2 { margin: 0 auto 30px; max-width: 14em; font-size: clamp(34px, 5vw, 64px); line-height: 1.04; }
.closing h2 span { color: #8a8982; }
.closing p { margin: 18px auto 0; max-width: 30em; font-size: 14px; color: #8a8982; }

.site-foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; max-width: 1160px; margin: 0 auto; padding: 48px clamp(20px, 4vw, 48px) 40px; border-top: 1px solid #e4e2dc; font-size: 13.5px; }
.site-foot .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.site-foot h5 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: #8a8982; letter-spacing: 0.04em; }
.site-foot nav a { display: block; color: #3c3b37; text-decoration: none; line-height: 2; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .copy { grid-column: 1 / -1; margin: 12px 0 0; font-size: 12.5px; color: #8a8982; }

@media (max-width: 820px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .site-foot { grid-template-columns: 1fr 1fr; }
}

/* integrations (2026-11-08): a 2×2 of cards, one a kind of work, each its services as app-style tiles,
   the name small under each; a card with more than nine keeps nine on show and swaps some every few
   seconds (connectors.js) */
.integrations .groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.integrations .group { display: flex; flex-direction: column; margin: 0; padding: 26px 26px 30px; border: 1px solid #e4e2dc; border-radius: 22px; background: rgba(255, 255, 255, 0.55); }
.integrations .group h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.integrations .group h4 small { display: block; margin: 4px 0 0; font-size: 14px; font-weight: 400; letter-spacing: 0; color: #8a8982; }
.logos { display: grid; grid-template-columns: repeat(3, 92px); justify-content: center; gap: 22px clamp(18px, 4vw, 44px); margin: auto 0; padding: 30px 0 0; list-style: none; }
/* exactly four tiles: two by two, not three and one left over */
.logos:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 92px); }
.logos li { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 12px; line-height: 1.3; text-align: center; color: #6b6a64; }
.logos li[hidden] { display: none; }
.logos li > span:last-child { max-width: 92px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.logo { display: grid; flex: none; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 6px 18px rgba(0, 0, 0, 0.06); }
.logo svg, .logo img { width: 32px; height: 32px; object-fit: contain; }
.logos li.in { animation: tile-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes tile-in { from { opacity: 0; transform: scale(0.86); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .logos li.in { animation: none; } }
@media (max-width: 900px) { .integrations .groups { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .logos { grid-template-columns: repeat(3, 76px); gap: 18px 14px; } .logo { width: 58px; height: 58px; border-radius: 15px; } .logo svg, .logo img { width: 28px; height: 28px; } }
.note-small { margin: 18px 0 0; font-size: 11px; color: #a3a29b; }

/* the map: the same chart with a different paper pointed at in each picture, crossfading slowly */
.shot.fit img { aspect-ratio: auto; object-fit: contain; }
.shot.cycle { display: grid; }
.shot.cycle img { grid-area: 1 / 1; opacity: 0; transition: opacity 1.4s ease; }
.shot.cycle img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .shot.cycle img { transition: none; } }


/* words that arrive one after another, out of a blur, when they come into view (reveal.js; still under reduced motion) */
/* (padding holds the descenders inside the word's box: a blurred layer is cut to that box in WebKit, so g, y and p arrived late) */
.reveal .rw { display: inline-block; padding-block: 0.12em 0.24em; margin-block: -0.12em -0.24em; opacity: 0; filter: blur(5px); transform: translateY(0.28em); transition: opacity 765ms ease, filter 765ms ease, transform 765ms cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i) * 64ms); }
.reveal.shown .rw { opacity: 1; filter: blur(0); transform: none; }
/* the homepage demo (demo/otto-demo.mp4, recorded by demo/kras/record.mjs): a loop of the real app in the same mat as the shots */
.story section.demo { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 112px); }
.demo-frame video { display: block; width: 100%; height: auto; aspect-ratio: 2400 / 1500; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08); }
@media (prefers-color-scheme: dark) { .demo-frame video { background: #1E1E1C; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.4); } }
@media (max-width: 700px) { .demo-frame video { border-radius: 8px; } }
/* no play button or controls over the demo, in any browser (it autoplays muted; story.js starts it) */
.demo-frame video::-webkit-media-controls, .demo-frame video::-webkit-media-controls-panel, .demo-frame video::-webkit-media-controls-overlay-play-button, .demo-frame video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0; }
.shot picture { display: contents; }

/* browser button (2026-11-08): a results page drawn in HTML, Otto's button under each result and its
   menu open, as browser-extension/scholar.js draws them */
.shot.browse { display: grid; }
.browse .win { position: relative; overflow: hidden; border-radius: 12px; background: #fff; color: #202124; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08); font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; text-align: left; }
.browse .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #ececec; background: #f6f6f4; }
.browse .bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdad4; }
.browse .url { flex: 1; min-width: 0; margin-left: 10px; padding: 4px 10px; border-radius: 7px; background: #fff; color: #6b6a64; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browse .res { margin: 0; padding: 14px 20px 18px; list-style: none; }
.browse .res li { padding: 10px 0; }
.browse .res p { margin: 0; }
.browse .t { color: #1a0dab; font-size: 16px; line-height: 1.3; }
.browse .by { margin-top: 2px !important; color: #006621; font-size: 12.5px; }
.browse .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 5px !important; color: #1a0dab; font-size: 12.5px; }
.browse .ob { display: inline-flex; align-items: center; gap: 5px; padding: 1px 6px; margin: -1px -6px; border-radius: 6px; color: #202124; }
.browse .ob.on { background: #eef3ff; }
.browse .ob.done { color: #2b7dff; }
.browse .gm { width: 22px; height: 8px; fill: none; stroke: currentColor; stroke-width: 9; }
.browse .gmenu { position: absolute; left: clamp(150px, 40%, 300px); top: 128px; width: 230px; padding: 4px 0; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.16); }
.browse .gmenu p { margin: 0; }
.browse .h { padding: 6px 12px 4px; color: #777; font-size: 12px; }
.browse .it { display: flex; align-items: center; gap: 10px; padding: 5px 12px; white-space: nowrap; }
.browse .it.on { background: #f1f3f4; }
.browse .it em { display: flex; align-items: center; gap: 3px; margin-left: auto; color: #2b7dff; font-size: 12px; font-style: normal; font-weight: 500; }
.browse .tk { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.browse .ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--t, #8e8e93) 20%, transparent); font-size: 13px; line-height: 1; }
.browse .ic.plus { color: #555; font-size: 16px; }
.browse .rule { height: 1px; margin: 4px 0 !important; background: rgba(0, 0, 0, 0.08); }
@media (prefers-color-scheme: dark) {
  .browse .win { background: #202124; color: #e8eaed; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.4); }
  .browse .bar { border-bottom-color: #3c4043; background: #292a2d; }
  .browse .bar i { background: #5f6368; }
  .browse .url { background: #202124; color: #9aa0a6; }
  .browse .t, .browse .acts { color: #8ab4f8; }
  .browse .by { color: #81c995; }
  .browse .ob { color: #e8eaed; }
  .browse .ob.on { background: rgba(138, 180, 248, 0.16); }
  .browse .ob.done, .browse .it em { color: #8ab4f8; }
  .browse .gmenu { background: #2d2e31; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.5); }
  .browse .h { color: #9aa0a6; }
  .browse .it.on { background: #3c4043; }
  .browse .ic.plus { color: #bdc1c6; }
  .browse .rule { background: rgba(255, 255, 255, 0.12); }
}
@media (max-width: 520px) { .browse .gmenu { left: auto; right: 10px; top: 172px; width: 196px; } .browse .t { font-size: 14.5px; } }

/* Mac and Windows (2026-11-08): one quiet line under the connectors */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; margin: 36px 0 0; font-size: 17px; color: #3d3c38; text-align: center; }
.platforms > span:first-child { color: var(--ink); font-weight: 600; }
.platforms .os { display: inline-flex; align-items: center; gap: 10px; }
.platforms img, .platforms svg { width: 21px; height: 21px; fill: currentColor; }

/* universities testing Otto (2026-11-08): monochrome wordmarks, inverted in dark */
.unis { padding-top: clamp(72px, 9vw, 120px) !important; }
.unis h2 { margin: 0; max-width: 26ch; padding-top: 22px; border-top: 1px solid #e4e2dc; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.05; }
.unis .say { max-width: 46em; margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: #6b6a64; }
.uni-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 28px clamp(24px, 5vw, 64px); margin: 40px 0 0; padding: 0; list-style: none; }
.uni-logos li { display: grid; place-items: center; height: 64px; }
.uni-logos img { max-width: 100%; max-height: 48px; width: auto; height: auto; opacity: 0.78; }
.uni-logos li:nth-child(4) img { max-height: 40px; }
@media (max-width: 700px) { .uni-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* feature clips (demo/clips): real app recordings, played only while on screen (story.js) */
.shot.clip video { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08); background: #fff; }
@media (prefers-color-scheme: dark) { .shot.clip video { background: #1b1b1a; } }
