@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, system-ui, sans-serif;
  background: #f4f3f9;
  color: #232235;
  --night: #171628;
  --night-muted: #bebbd3;
  --lime: #dcfb93;
  --ink: #232235;
  --muted: #575368;
  --rule: #dad6e7;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-underline-offset: 0.25em; }
::selection { color: var(--night); background: var(--lime); }
:focus-visible { outline: 3px solid #7956bc; outline-offset: 5px; }
.wrap { width: min(75rem, calc(100% - 4rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: 0.65rem; left: 0.65rem; transform: translateY(-200%); padding: 0.65rem 1rem; border-radius: 0.5rem; background: var(--lime); color: var(--night); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 4; background: var(--night); color: #fff; border-bottom: 1px solid #38344e; }
.header-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 1.1rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand img { flex: none; }
.site-header nav { display: flex; align-items: center; gap: 1.35rem; font-size: 0.875rem; font-weight: 750; }
.site-header nav a { color: var(--night-muted); text-decoration: none; }
.site-header nav a:hover { color: #fff; text-decoration: underline; }
.site-header nav button {
  min-height: 2.65rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #665f82;
  border-radius: 0.5rem;
  color: #edeafa;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.site-header nav button:hover:not(:disabled) { background: #2d2942; }
.site-header nav button[aria-pressed='true'] { color: var(--lime); border-color: #929d70; }
.site-header nav button:disabled { cursor: default; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--lime); }

.showcase { position: relative; overflow: clip; }
.hero {
  padding: 0.75rem 2rem;
  color: #fff;
  background:
    radial-gradient(ellipse at 78% 43%, #332647 0, transparent 49%),
    var(--night);
}
.hero .hero-layout { width: min(75rem, 100%); }
.hero-layout { min-height: 28rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 1.25rem; }
.hero-copy { position: relative; z-index: 3; padding-block: 4.5rem; }
.hero h1 { margin: 0; font-size: clamp(3.5rem, 6.2vw, 5.8rem); line-height: 1.01; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero p { max-width: 32ch; margin: 1.4rem 0 1.9rem; color: #d5d0e7; font-size: 1.08rem; line-height: 1.65; }
.browse { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; padding: 0.65rem 1.1rem; border-radius: 0.55rem; background: var(--lime); color: var(--night); font-size: 0.96rem; font-weight: 800; text-decoration: none; }
.browse:hover { background: #edffb8; }

.hero-scene { position: relative; width: min(100%, 31rem); justify-self: end; height: auto; aspect-ratio: 1.08; isolation: isolate; }
.orbit { position: absolute; z-index: -1; border: 1px solid #625476; border-radius: 50%; transform: rotate(-24deg); }
.orbit-outer { inset: 9% 2% 11% 0; }
.orbit-inner { inset: 20% 13% 21% 10%; opacity: 0.68; }
.scene-axis { position: absolute; z-index: -1; inset: 16% 1% 14%; background: linear-gradient(#66567c, #66567c) center / 1px 100% no-repeat, linear-gradient(#66567c, #66567c) center / 100% 1px no-repeat; opacity: 0.55; transform: rotate(-24deg); }
.tile-origin { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 12%; transform: rotate(var(--tilt)); }
.origin-1 { --tilt: -15deg; top: 15%; left: 9%; background: #29533b; }
.origin-2 { --tilt: 11deg; top: 9%; left: 48%; background: #573e83; }
.origin-3 { --tilt: -11deg; top: 48%; left: 21%; background: #394b86; }
.origin-4 { --tilt: 13deg; top: 45%; left: 57%; background: #704631; }
.showcase.has-deck .tile-origin { visibility: hidden; }
.flight-layer { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.flight-tile { position: absolute; top: 0; left: 0; transform-origin: center; }
.flight-tile .tool-art { box-shadow: 0 15px 38px #100d21a6; }

.catalog { padding: 2.65rem 2rem 4rem; background: #eeedf6; }
.catalog .wrap { width: min(75rem, 100%); }
.catalog-heading { position: relative; z-index: 3; margin-bottom: 1.65rem; }
.catalog h2, .about h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; }
.catalog h2 { scroll-margin-block-start: 1rem; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1rem; padding: 0; margin: 0; list-style: none; }
.tool { min-width: 0; }
.tool-link { display: block; height: 100%; border-radius: 0.95rem; text-decoration: none; }
.tool-link:hover h3, .tool-link:focus-visible h3 { text-decoration: underline; }
.tool-art { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 0.95rem; isolation: isolate; container-type: inline-size; }
.art-generic > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flight-layer .tool-art { border-radius: 10%; }
.tool-copy { position: relative; z-index: 3; padding: 0.95rem 0.15rem 0; }
.category { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.tool h3 { margin: 0.3rem 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.3; }
.tool p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.catalog-help { margin: 2rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.catalog-help a { font-weight: 750; }
.catalog .tool-filters { margin-top: 1rem; align-items: end; }
.catalog .catalog-heading { display: block; }
.catalog [inert] { visibility: hidden; }
.catalog .tool-filters label:first-child { flex: 1 1 20rem; max-width: 37rem; }
.catalog .tool-filters input { width: 100%; }
.search-examples { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.search-examples button { min-height: 2.35rem; padding: 0.35rem 0.7rem; border: 1px solid #c5bdd7; border-radius: 0.5rem; background: transparent; color: var(--ink); font-size: 0.8rem; cursor: pointer; }
.search-examples button:hover { background: #fff; border-color: #7956bc; }
.workflow-match, .quick-tools { margin-bottom: 1.35rem; padding: 0.85rem 1rem; background: #e5e1f2; border-radius: 0.65rem; }
.workflow-match p, .quick-tools h3 { margin: 0 0 0.3rem; }
.workflow-match a, .quick-tools a { font-weight: 750; }
.quick-tools ul { display: inline-flex; flex-wrap: wrap; gap: 0.1rem 1rem; margin: 0 1rem 0 0; padding: 0; list-style: none; }
.quick-tools a { display: inline-flex; align-items: center; min-height: 2rem; }
.curated { padding-block: 2.75rem 2rem; }
.curated h2 { margin: 0 0 0.8rem; font-size: 1.8rem; letter-spacing: -0.025em; }
.curated-decks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; column-gap: 1.5rem; }
.curated-deck { border-block-start: 1px solid var(--rule); padding: 0.35rem 0; }
.curated-deck summary { min-height: 2.75rem; padding: 0.55rem 0; cursor: pointer; font-weight: 800; }
.curated-deck p { margin: 0; max-width: 38ch; color: var(--muted); }
.curated-deck ul { margin: 0.55rem 0; padding-inline-start: 1.15rem; }
.curated-deck a { display: inline-flex; align-items: center; min-height: 2rem; font-weight: 700; }
.curated .catalog-help { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; }
.showcase[data-searching] .flight-layer { visibility: hidden; }
.showcase[data-searching] .tile-origin { visibility: visible; }
.showcase[data-searching] .tool-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 0.55rem 0.85rem; }
.showcase[data-searching] .tool-link { display: flex; align-items: center; gap: 0.8rem; background: #f8f7fc; padding: 0.65rem; border-radius: 0.65rem; }
.showcase[data-searching] .tool-art { flex: 0 0 3rem; border-radius: 0.42rem; }
.showcase[data-searching] .tool-copy { padding: 0; }
.showcase[data-searching] .tool h3 { margin-top: 0.12rem; }
.tool-localized { display: inline-block; padding-top: 0.35rem; font-weight: 750; }

.art-countdown { background: radial-gradient(circle at 35% 13%, #517c50, #254732 69%, #1b3629); color: #e1ff9f; }
.dial { position: absolute; inset: 17%; border: 1px solid #d8ffab99; border-radius: 50%; box-shadow: inset 0 0 0 7cqw #c4eab511; }
.dial::after { position: absolute; inset: 9%; content: ''; border: 1px solid #c5ee9e60; border-radius: 50%; }
.dial-hand { position: absolute; inset: 21%; border: 2px solid transparent; border-top-color: #e5ffa6; border-radius: 50%; transform: rotate(36deg); }
.dial-number { position: absolute; inset: 0; display: grid; align-content: center; justify-content: center; grid-auto-flow: column; gap: 0.4cqw; font-weight: 800; font-size: 18cqw; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: 1; }
.dial-number span { color: #c8f17d; }
.tool[data-tool-id='visual-focus-timer'] .art-countdown { color: #fff4e7; background: linear-gradient(145deg, #805446, #4a3031 64%, #302227); }
.tool[data-tool-id='visual-focus-timer'] .dial { border: 0; box-shadow: none; background: conic-gradient(#ffcb94 0 67%, #80585b 67% 100%); }
.tool[data-tool-id='visual-focus-timer'] .dial::after { inset: 6%; border: 0; background: #39282a; }
.tool[data-tool-id='visual-focus-timer'] .dial-hand { display: none; }
.tool[data-tool-id='visual-focus-timer'] .dial-number span { color: #ffcb94; }

.art-image { background: radial-gradient(circle at 72% 16%, #7754a8, #472e75 70%, #372560); color: #f7d7ff; }
.crop { position: absolute; inset: 22%; border: 2px dashed #dac5ffb3; border-radius: 11%; }
.image-symbol { position: absolute; inset: 32% 27% 32% 29%; background: #d9c6ff; border: 2px solid #f5eaff; border-radius: 14%; transform: rotate(-9deg); }
.image-symbol::before { position: absolute; content: ''; top: 17%; left: 19%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #654798; }
.image-symbol::after { position: absolute; content: ''; inset: 23% 11% 14%; background: #7650ab; clip-path: polygon(0 100%, 31% 44%, 47% 66%, 72% 13%, 100% 100%); }
.image-size { position: absolute; right: 12%; bottom: 16%; padding: 0.23em 0.48em; border-radius: 0.28em; background: #f8dcff; color: #292134; font-size: 8cqw; font-weight: 800; white-space: nowrap; }

.art-pdf { background: radial-gradient(circle at 33% 16%, #586ba1, #3c4b7e 64%, #2c365d); }
.document { position: absolute; width: 36%; height: 53%; border-radius: 9%; }
.document-back { top: 22%; left: 27%; background: #bfcdef; transform: rotate(-17deg); }
.document-front { top: 24%; left: 40%; background: #ffc4ae; color: #3d2b49; transform: rotate(10deg); }
.document::before { position: absolute; top: 28%; left: 18%; height: 4%; width: 50%; content: ''; background: #5a567b; border-radius: 10px; box-shadow: 0 8cqw #5a567b; opacity: 0.65; }
.document-front span { position: absolute; left: 16%; bottom: 13%; font-size: 8cqw; font-weight: 800; }
.tool[data-tool-id='pdf-page-extractor'] .art-pdf { background: linear-gradient(148deg, #487662, #2b5344 62%, #173f37); }
.tool[data-tool-id='pdf-page-extractor'] .document-back { background: #f0e1b9; }
.tool[data-tool-id='pdf-page-extractor'] .document-front { color: #172e2a; background: #b8ebce; }
.tool[data-tool-id='pdf-page-extractor'] .document::before { background: #486b5d; box-shadow: 0 8cqw #486b5d; }

.art-text { background: radial-gradient(circle at 69% 17%, #95614a, #674230 68%, #563628); }
.text-sheet { position: absolute; inset: 23% 19%; display: flex; flex-direction: column; justify-content: center; gap: 9%; padding-inline: 13%; border-radius: 11%; background: #ffdbbf; transform: rotate(-8deg); }
.text-sheet i { display: block; flex: 0 0 5%; width: 100%; border-radius: 999px; background: #794e3e; transform-origin: left; }
.text-sheet i:nth-child(2) { width: 88%; }
.text-sheet i:nth-child(3) { width: 65%; }
.text-sheet i:nth-child(4) { width: 93%; margin-top: 6%; }
.text-sheet i:nth-child(5) { width: 75%; }

.art-resize { background: radial-gradient(circle at 27% 19%, #426d86, #264c6a 65%, #1b3753); }
.resize-source { position: absolute; inset: 25% 27% 40% 15%; border: 2px dashed #a7d6e9; border-radius: 10%; transform: rotate(-8deg); }
.resize-frame { position: absolute; top: 34%; left: 40%; display: grid; place-items: center; width: 39%; aspect-ratio: 1; border: 2px solid #e2fff4; border-radius: 12%; color: #183e46; background: #b9f6df; transform: rotate(7deg); }
.resize-frame span { font-size: 13cqw; font-weight: 800; }
.art-leave { background: radial-gradient(circle at 24% 20%, #376a5e, #17443e 66%, #102d2c); }
.leave-route { position: absolute; inset: 27% 26% 28%; border: 3cqw solid #b6d7c9; border-right: 0; border-bottom: 0; border-radius: 25% 0 0; transform: scaleY(-1); }
.leave-stop { position: absolute; width: 15%; aspect-ratio: 1; border: 2.3cqw solid #cce9dc; border-radius: 50%; background: #23534a; transform: translate(-50%, -50%); }
.leave-start { left: 28%; top: 28%; }
.leave-mid { left: 45%; top: 71%; border-color: #e1f791; background: #e1f791; }
.leave-end { left: 74%; top: 71%; }
.art-images-pdf { background: linear-gradient(140deg, #674673, #3e2a51 66%, #2d1d3d); }
.images-pdf-sheet { position: absolute; width: 39%; height: 55%; border-radius: 10%; }
.images-pdf-back { top: 18%; left: 42%; background: #c8acd9; transform: rotate(13deg); }
.images-pdf-front { top: 24%; left: 25%; background: #fff3df; transform: rotate(-10deg); }
.images-pdf-front i { position: absolute; inset: 16% 15% 44%; border-radius: 12%; background: linear-gradient(145deg, #be775a, #f4c893); }
.images-pdf-front b { position: absolute; bottom: 9%; right: -24%; padding: .2em .35em; border-radius: .3em; color: #32213b; background: #f8d786; font-size: 8.2cqw; }
.tool.playing .images-pdf-front { animation: images-pdf-stack 800ms cubic-bezier(.16,1,.3,1) both; }
@keyframes images-pdf-stack { from { transform: translate(-24%, 6%) rotate(-25deg); } to { transform: rotate(-10deg); } }

.art-qr { background: linear-gradient(148deg, #496d91, #243f60 62%, #142841); }
.qr-mark { position: absolute; inset: 16%; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4.5cqw; padding: 9cqw; border-radius: 16%; background: #152a43; transform: rotate(-8deg); }
.qr-mark i { display: grid; place-items: center; border: 2cqw solid #f3f8ff; border-radius: 16%; }
.qr-mark i::before { content: ''; width: 48%; aspect-ratio: 1; border-radius: 12%; background: #f3f8ff; }
.qr-modules { margin: 1cqw; border-radius: 12%; background: conic-gradient(from 90deg, transparent 25%, #d4f588 0 50%, transparent 0 75%, #d4f588 0) 0 0 / 66.667% 66.667%; }
.tool.playing .qr-mark { animation: qr-settle 750ms cubic-bezier(.16,1,.3,1) both; }
@keyframes qr-settle { from { transform: translateY(12%) rotate(-18deg) scale(.88); } to { transform: rotate(-8deg); } }

.tool[data-tool-id='qr-code-reader'] .art-qr { background: linear-gradient(148deg, #705192, #493060 62%, #2f1e47); }
.tool[data-tool-id='qr-code-reader'] .qr-mark { background: #281b3c; }
.tool[data-tool-id='qr-code-reader'] .qr-mark::after {
  content: '';
  position: absolute;
  inset: 50% 7% auto;
  height: 1cqw;
  border-radius: 2px;
  background: #e0f89e;
  transform: translateY(-50%);
}

.tool.playing .dial-hand { animation: count-turn 850ms cubic-bezier(.16,1,.3,1) both; }
.tool.playing .dial-number { animation: count-settle 750ms cubic-bezier(.16,1,.3,1) both; }
.tool.playing .image-symbol { animation: image-fit 850ms cubic-bezier(.16,1,.3,1) both; }
.tool.playing .document-back { animation: pages-back 860ms cubic-bezier(.16,1,.3,1) both; }
.tool.playing .document-front { animation: pages-front 860ms cubic-bezier(.16,1,.3,1) both; }
.tool.playing .text-sheet i { animation: text-join 770ms cubic-bezier(.16,1,.3,1) both; }
.tool.playing .text-sheet i:nth-child(even) { animation-delay: 75ms; }
.tool.playing .resize-frame { animation: resize-fit 820ms cubic-bezier(.16,1,.3,1) both; }
.tool.playing .leave-mid { animation: leave-pulse 700ms cubic-bezier(.16,1,.3,1) both; }
@keyframes count-turn { from { transform: rotate(-98deg); } to { transform: rotate(36deg); } }
@keyframes count-settle { from { transform: translateY(7%); opacity: 0.65; } to { transform: none; opacity: 1; } }
@keyframes image-fit { from { transform: rotate(-16deg) scale(1.6); } to { transform: rotate(-9deg) scale(1); } }
@keyframes pages-back { from { transform: translate(-29%, 0) rotate(-29deg); } to { transform: rotate(-17deg); } }
@keyframes pages-front { from { transform: translate(25%, -4%) rotate(19deg); } to { transform: rotate(10deg); } }
@keyframes text-join { from { transform: scaleX(0.48); } to { transform: scaleX(1); } }
@keyframes resize-fit { from { transform: translate(14%, -12%) rotate(13deg) scale(1.34); } to { transform: rotate(7deg); } }
@keyframes leave-pulse { 40% { transform: translate(-50%, -50%) scale(1.35); } }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 1rem 2rem; padding-block: 4.25rem; }
.about h2 { font-size: clamp(1.7rem, 2.7vw, 2.35rem); }
.about p { max-width: 56ch; margin: 0; color: var(--muted); line-height: 1.7; }
.about p + p { margin-top: 0.85rem; }
.site-footer { background: var(--night); color: #e8e4f5; font-size: 0.86rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; padding-block: 1.3rem; }
.footer-inner span { font-weight: 800; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.55rem 1.15rem; }

.info-page { display: flex; flex-direction: column; min-height: 100svh; }
.info-content { flex: 1; width: min(47rem, calc(100% - 2rem)); margin-inline: auto; padding-block: clamp(2rem, 6vw, 4.5rem); }
.info-content .breadcrumb { margin: 0 0 1.6rem; color: var(--muted); font-size: 0.875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.55rem; padding: 0; margin: 0; list-style: none; }
.info-content h1 { margin: 0 0 0.75rem; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; }
.info-content h2 { margin: 2rem 0 0.4rem; font-size: 1.3rem; font-weight: 800; line-height: 1.25; }
.info-content p { max-width: 68ch; margin: 0; color: var(--muted); line-height: 1.7; }
.info-content p + p { margin-top: 0.7rem; }
.info-content a { font-weight: 750; }

@media (max-width: 60rem) {
  .hero-layout { min-height: 24rem; }
  .hero h1 { font-size: clamp(2.95rem, 6.5vw, 4.5rem); }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
  .catalog { padding-block: 3.1rem 3.5rem; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { min-height: 3.75rem; }
  .site-header nav { gap: 0.6rem; }
  body:not(.info-page) .site-header nav a:not(.deck-nav) { display: none; }
  .site-header nav .deck-nav { font-size: 0.76rem; }
  .hero-layout { grid-template-columns: 1fr; gap: 0; min-height: auto; }
  .hero { padding-inline: 1rem; }
  .hero-copy { padding-block: 2.8rem 0; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 4rem); }
  .hero p { margin-block: 1rem 1.25rem; font-size: 1rem; }
  .hero-scene { display: none; }
  .hero-copy { padding-block: 2.2rem 1.75rem; }
  .catalog { padding: 2.4rem 1rem 2.75rem; }
  .catalog-heading { margin-bottom: 1.05rem; }
  .tool-grid { gap: 1.3rem 0.75rem; }
  .tool-copy { padding-top: 0.62rem; }
  .tool h3 { font-size: 1rem; }
  .tool p { font-size: 0.84rem; }
  .about { grid-template-columns: 1fr; padding-block: 2.55rem; }
}
@media (max-width: 22rem) {
  .brand { font-size: 0.97rem; gap: 0.45rem; }
  .brand img { width: 29px; height: 29px; }
  .site-header nav button { font-size: 0.8rem; padding-inline: 0.55rem; }
  .hero h1 { font-size: 2.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tool.playing .tool-art * { animation: none; }
}
.motion-reduced .tool.playing .tool-art * { animation: none; }
