/* shotbar.aimantas.com. Night graphite with one accent, highlighter yellow: the colour of every search match in the app. */
/* Mona Sans and Martian Mono, SIL Open Font License 1.1 (licences in /static/fonts/). Latin subsets. */
@font-face {
  font-family: "Mona Sans";
  src: url("/static/fonts/MonaSans-Latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/static/fonts/MartianMono-Latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0A0C10;
  --bg-raise: #0F1218;
  --panel: #141821;
  --panel-2: #1A1F2A;
  --line: rgba(236, 240, 248, .08);
  --line-strong: rgba(236, 240, 248, .15);
  --text: #ECEFF4;
  --text-2: #A7AFBE;
  --text-3: #808A9C;
  --accent: #FFD43B;
  --accent-ink: #17140A;
  --accent-soft: rgba(255, 212, 59, .14);
  --accent-glow: rgba(255, 212, 59, .22);
  --sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Key symbols (⌃ ⌥ ⇧ ⌘ ↑ ↓) are outside the Latin subsets; the system face draws them at one size. */
  --keys: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", var(--mono);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: rgba(255, 212, 59, .55); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; font-weight: 680; font-stretch: 108%; letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); letter-spacing: -.035em; font-stretch: 112%; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
kbd { font: 500 .78em/1 var(--keys); display: inline-flex; align-items: center; justify-content: center; min-width: 1.95em; height: 1.95em; padding: 0 .45em; margin: 0 .1em; border-radius: 6px; color: var(--text); background: linear-gradient(var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 rgba(0, 0, 0, .5); vertical-align: .05em; }
code, pre { font-family: var(--mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { display: inline-block; width: 18px; height: 18px; flex: none; fill: currentColor; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10, 12, 16, .74); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 640; letter-spacing: -.01em; margin-right: auto; }
.brand img { border-radius: 7px; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { color: var(--text-2); text-decoration: none; font-size: .94rem; transition: color .2s; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 9px; height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s; white-space: nowrap; }
.button:hover { background: var(--panel-2); border-color: rgba(236, 240, 248, .26); }
.button:active { transform: translateY(1px) scale(.99); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 24px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .45); }
.button.primary:hover { background: #FFDC5C; box-shadow: 0 12px 30px -10px rgba(255, 212, 59, .45), inset 0 1px 0 rgba(255, 255, 255, .5); }
.button.small { height: 36px; padding: 0 14px; font-size: .88rem; border-radius: 9px; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:active { transform: none; } }

/* Hero */
main > section { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.hero { padding-top: 40px; text-align: center; position: relative; isolation: isolate; }
/* The light the windows sit in: outside the masked stage so the fade never dims it. */
.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 360px; width: min(1240px, 130vw); height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 212, 59, .32), rgba(255, 212, 59, .12) 45%, rgba(255, 212, 59, .03) 75%, transparent); }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 72px; height: 72px; margin-bottom: 20px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .55)); }
.hero h1 { max-width: 14ch; }
.lede { margin-top: 18px; max-width: 50ch; font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.5; color: var(--text-2); text-wrap: balance; }
.hero .actions { margin-top: 28px; }
.meta { margin-top: 14px; font-size: .9rem; color: var(--text-3); }

/* The stage is light, not a box: a yellow bloom behind the windows on the page itself. */
.stage { position: relative; margin: 40px auto 0; max-width: 1000px; height: clamp(440px, 54vw, 720px); isolation: isolate; -webkit-mask-image: linear-gradient(#000 84%, transparent); mask-image: linear-gradient(#000 84%, transparent); }
.stage-shot { position: absolute; margin: 0; }
.stage-shot img { width: 100%; }
.stage-panel { width: min(46%, 460px); left: 50%; top: 24px; transform: translateX(-80%); z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.stage-preview { width: min(46%, 460px); left: 50%; top: 84px; transform: translateX(-12%); z-index: 1; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .45)); }

/* The one authored moment: the app windows settle onto the stage. They start visible, so a throttled
   or paused timeline never hides the product. Hero text renders immediately (it is the largest paint). */
@media (prefers-reduced-motion: no-preference) {
  .stage-panel { animation: panel-in 1.1s var(--ease) .1s both; }
  .stage-preview { animation: preview-in 1.3s var(--ease) .25s both; }
}
@keyframes panel-in { from { transform: translateX(-80%) translateY(56px) scale(.97); } to { transform: translateX(-80%); } }
@keyframes preview-in { from { transform: translateX(-2%) translateY(40px); } to { transform: translateX(-12%); } }

/* Section heads */
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 1.1rem; }

/* Live demo: the page's centre, so it gets a full-width raised band. */
.demo { max-width: none !important; margin-top: 110px !important; padding: 110px 24px 100px !important; background: linear-gradient(180deg, var(--bg-raise), #0C0F14); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.demo-app { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--bg); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.demo-side { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 540px; }
.demo-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line-strong); color: var(--text-2); transition: border-color .2s, box-shadow .2s; }
.demo-search:focus-within { border-color: rgba(255, 212, 59, .6); box-shadow: 0 0 0 4px var(--accent-soft); }
.demo-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 1rem var(--sans); caret-color: var(--accent); }
.demo-search input::placeholder { color: var(--text-3); }
.demo-search input::-webkit-search-cancel-button { filter: invert(.7); }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-chips button { font: 500 .85rem var(--sans); color: var(--text-2); background: transparent; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.demo-chips button:hover, .demo-chips button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.demo-count { font-size: .82rem; color: var(--text-3); }
.demo-results { list-style: none; margin: 0; padding: 0 2px 2px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow-y: auto; max-height: 480px; align-content: start; }
.demo-results button { width: 100%; text-align: left; padding: 6px 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); cursor: pointer; font: 400 .74rem/1.35 var(--sans); transition: border-color .2s; }
.demo-results button:hover { border-color: var(--line-strong); }
.demo-results button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.demo-results img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; background: #000; }
.demo-results .snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; min-height: 2.7em; }
.demo-results mark { background: rgba(255, 212, 59, .3); color: var(--text); border-radius: 3px; padding: 0 2px; }
@media (prefers-reduced-motion: no-preference) { .demo-results li { animation: chip-in .45s var(--ease) both; } }
@keyframes chip-in { from { transform: translateY(8px) scale(.97); } to { transform: none; } }
.demo-empty { grid-column: 1 / -1; padding: 20px 4px; color: var(--text-2); font-size: .92rem; }
.demo-view { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; justify-content: center; background: radial-gradient(80% 80% at 50% 50%, rgba(255, 212, 59, .05), transparent 70%); }
.demo-canvas { position: relative; align-self: center; width: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9); }
.demo-canvas img { width: 100%; height: auto; }
.demo-boxes { position: absolute; inset: 0; pointer-events: none; }
.demo-boxes span { position: absolute; border: 2px solid var(--accent); background: rgba(255, 212, 59, .2); border-radius: 4px; box-shadow: 0 0 0 4px rgba(255, 212, 59, .12); }
@media (prefers-reduced-motion: no-preference) { .demo-boxes span { animation: box-in .5s var(--ease) both; } }
@keyframes box-in { from { transform: scale(1.3); } to { transform: none; } }
.demo-view figcaption { text-align: center; font-size: .88rem; color: var(--text-3); }
.demo-noscript { padding: 18px; color: var(--text-2); }
.note { margin-top: 18px !important; text-align: center; font-size: .85rem; color: var(--text-3); }

/* Bento */
.bento { padding-top: 130px; }
.bento > h2 { text-align: center; max-width: 24ch; margin: 0 auto 44px; }
.bento-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel) 0%, var(--bg-raise) 100%); overflow: hidden; display: flex; flex-direction: column; min-height: 360px; }
.tile-copy { padding: 26px 26px 0; position: relative; z-index: 1; }
.tile-copy p { margin-top: 10px; color: var(--text-2); max-width: 40ch; text-wrap: pretty; }
.tile-visual { margin-top: auto; padding: 22px 22px 0; display: flex; justify-content: center; }
.tile-visual img { width: 100%; max-width: 420px; }
.tile-visual img.cropped { border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -12px 40px -20px rgba(0, 0, 0, .7); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.tile-drag { grid-column: span 3; grid-row: span 2; background: radial-gradient(90% 60% at 50% 100%, rgba(255, 212, 59, .13), transparent 70%), linear-gradient(180deg, var(--panel) 0%, var(--bg-raise) 100%); }
.tile-drag .tile-visual img { max-width: 460px; }
.tile-match { grid-column: span 3; }
.tile-match .tile-visual img { max-width: 400px; }
.tile-keys { grid-column: span 3; background: var(--accent); color: var(--accent-ink); border-color: transparent; padding: 26px; min-height: 0; }
.tile-keys kbd { color: #2B2510; background: linear-gradient(#FFF6CF, #FFE68A); border-color: rgba(23, 20, 10, .28); box-shadow: 0 2px 0 rgba(23, 20, 10, .28), inset 0 1px 0 rgba(255, 255, 255, .8); }
.keys { margin: 18px 0 0; display: grid; gap: 10px; }
.keys > div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; font-weight: 520; }
.tile-folders { grid-column: span 3; }
.tile-folders .tile-visual img { max-width: 460px; }
.tile-arrival { grid-column: span 3; background: radial-gradient(80% 70% at 70% 100%, rgba(255, 212, 59, .12), transparent 70%), linear-gradient(180deg, var(--panel) 0%, var(--bg-raise) 100%); }
.tile-arrival .tile-visual { padding-bottom: 22px; }
.tile-arrival .tile-visual img { max-width: 300px; }
.tile-notch { grid-column: span 6; flex-direction: row; align-items: stretch; min-height: 300px; }
.tile-notch .tile-copy { flex: 0 1 44%; padding: 32px; align-self: center; }
.tile-notch .tile-copy p { max-width: 44ch; }
.tile-notch .tile-copy kbd { font-size: .74em; }
.tile-notch .tile-visual { flex: 1; margin: 0; padding: 32px 32px 0; align-items: flex-end; }
.tile-notch .tile-visual img { max-width: 560px; }

/* Privacy */
.privacy { padding-top: 140px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.privacy-copy > p { margin-top: 18px; color: var(--text-2); font-size: 1.08rem; max-width: 46ch; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.facts .icon { margin-top: 3px; width: 20px; height: 20px; color: var(--accent); }
.privacy .small { margin-top: 24px; font-size: .95rem; }
.entitlements { margin: 0; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: #07090C; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9); }
.entitlements .ent-head { padding: 18px 24px 4px; font: 400 .74rem/1.6 var(--mono); color: var(--text-3); }
.entitlements dl { margin: 0; padding: 4px 24px 20px; font: 400 .74rem/1.6 var(--mono); }
.entitlements dl > div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); }
.entitlements dl > div:first-child { border-top: 0; }
.entitlements dt { color: var(--text); }
.entitlements dd { margin: 0; color: var(--accent); }
.entitlements figcaption { padding: 14px 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-2); }

/* Story and FAQ share one column so their edges align. */
.story, .faq { max-width: 760px !important; }
.story { padding-top: 140px; }
.story p { margin-top: 18px; color: var(--text-2); font-size: 1.08rem; }
.faq { padding-top: 110px; }
.faq h2 { margin-bottom: 26px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; font-weight: 560; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { padding: 0 0 22px; color: var(--text-2); max-width: 62ch; }

/* Closing band */
.cta { margin-top: 140px !important; margin-bottom: 0; max-width: none !important; padding: 96px 24px !important; text-align: center; background: var(--accent); color: var(--accent-ink); }
.cta > img { margin: 0 auto 22px; filter: drop-shadow(0 14px 24px rgba(23, 20, 10, .35)); }
.cta h2 { max-width: 16ch; margin: 0 auto 30px; }
.cta .button.primary { background: var(--accent-ink); color: #FFFFFF; box-shadow: none; }
.cta .button:not(.primary) { background: transparent; color: var(--accent-ink); border-color: rgba(23, 20, 10, .35); }
.cta .button:not(.primary):hover { background: rgba(23, 20, 10, .06); }

/* Docs */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 110px; }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
.doc h2 { font-size: 1.5rem; margin-top: 2em; margin-bottom: .6em; }
.doc h3 { margin-top: 1.6em; margin-bottom: .4em; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin-top: .9em; }
.doc .meta { color: var(--text-3); margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: .5em 0; }
.doc b { color: var(--text); font-weight: 600; }
.doc code { font-size: .86em; background: var(--panel); border: 1px solid var(--line); padding: .1em .4em; border-radius: 5px; color: var(--text); word-break: break-word; }
.doc.center { text-align: center; padding-top: 140px; }
.doc.center .button { margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
main:has(.cta) + .site-footer { border-top: 0; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 36px 24px 44px; display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; color: var(--text-3); font-size: .9rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 560; }
.footer-brand img { border-radius: 6px; }
.footer-note { grid-column: 1; }
.footer-links { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 22px; align-items: center; }
.footer-links a, .footer-note a { color: var(--text-2); }

@media (max-width: 960px) {
  .demo-app { grid-template-columns: 1fr; }
  .demo-side { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .demo-results { grid-template-columns: repeat(3, 1fr); max-height: none; overflow: visible; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .tile-drag, .tile-match, .tile-keys, .tile-folders, .tile-arrival, .tile-notch { grid-column: span 2; grid-row: auto; }
  .tile-notch { flex-direction: column; }
  .tile-notch .tile-copy { padding: 26px 26px 0; flex: none; }
  .privacy { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  main > section { padding-left: 16px; padding-right: 16px; }
  .header-inner { padding: 0 16px; gap: 14px; }
  .site-header nav { display: none; }
  .hero { padding-top: 32px; }
  .hero-icon { width: 64px; height: 64px; margin-bottom: 18px; }
  .actions { width: 100%; }
  .actions .button { width: 100%; justify-content: center; }
  .stage { margin-top: 32px; height: 440px; }
  .stage-panel { width: 82%; transform: translateX(-50%); top: 16px; }
  .stage-preview { display: none; }
  @keyframes panel-in { from { transform: translateX(-50%) translateY(40px); } to { transform: translateX(-50%); } }
  .demo { margin-top: 72px !important; padding: 80px 16px 72px !important; }
  .bento, .privacy, .story { padding-top: 96px; }
  .demo-results { grid-template-columns: 1fr 1fr; }
  .demo-view { padding: 14px; }
  .demo-boxes span { border-width: 1.5px; background: rgba(255, 212, 59, .12); box-shadow: none; }
  .tile { min-height: 0; }
  .tile-copy { padding: 22px 22px 0; }
  .tile-visual { padding: 20px 20px 0; }
  .hero::after { top: 420px; height: 560px; }
  .keys > div { grid-template-columns: 108px 1fr; }
  .entitlements dl > div { grid-template-columns: 1fr; gap: 2px; }
  .entitlements .ent-head, .entitlements dl, .entitlements figcaption { padding-left: 16px; padding-right: 16px; }
  .cta { padding: 72px 16px !important; margin-top: 96px !important; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-column: 1; grid-row: auto; }
}
