/* CodingDrop public site. Light "Aurora" theme from the logo: white and mint paper, deep navy ink, teal → cyan → violet accent.
   Lots of motion, all of it cheap: only transform and opacity animate (no blur, no animated gradients or shadows),
   endless animations pause when off screen (site.js adds .paused), and prefers-reduced-motion turns everything off.
   Everything reads fine without JS. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/static/fonts/PlusJakartaSans.woff2") format("woff2");
  font-weight: 400 800; font-display: swap; }

:root {
  --bg: #fafcfd; --bg-2: #eef8f8; --card: #ffffff; --ink: #0b1230; --ink-2: #172347;
  --soft: #3b4863; --muted: #5d6a82; --line: #e1eef0; --line-2: #cbe2e6;
  --accent: #0e7490; --accent-2: #155e75; --accent-tint: #e0f6f7; --violet: #8b5cf6; --pink: #22d3ee; --red: #e0475b;
  --on-dark: #e6fffb; --on-dark-2: #a8c4cc; --on-dark-accent: #67e8f9;
  /* buttons carry white text, so their gradient stays deep; gradient words use the brighter --grad-text */
  --grad: linear-gradient(115deg, #0f766e 0%, #0e7490 50%, #6d28d9 100%);
  --grad-text: linear-gradient(115deg, #0d9488 0%, #0891b2 50%, #7c3aed 100%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shadow-sm: 0 1px 2px rgba(14, 15, 44, .05), 0 2px 8px rgba(14, 15, 44, .04);
  --shadow: 0 1px 2px rgba(14, 15, 44, .05), 0 14px 34px rgba(14, 15, 44, .09);
  --shadow-lg: 0 2px 4px rgba(14, 15, 44, .05), 0 30px 70px rgba(8, 80, 100, .16);
  --radius: 18px; --wrap: 1160px; --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.4, .64, 1);
  /* blog code blocks: dark panel, token colours from app/markdown.py (t-k keyword, t-s string, t-c comment…) */
  --code-bg: #0d1430; --code-ink: #e6fffb; --code-line: #1e2a52; --code-muted: #8a96bd;
  --t-k: #c4b5fd; --t-s: #9ee6c4; --t-c: #8a96bd; --t-n: #fcd34d; --t-f: #67e8f9; --t-b: #f0abfc;
  --t-d: #f9a8d4; --t-v: #fda4af; --t-p: #93c5fd;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--bg); overflow-x: hidden;
  font: 17px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: #c9f1f1; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 60; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.grad, .serif { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; padding-right: .06em; }

/* Scroll progress bar (CSS scroll timeline where supported; hidden elsewhere) */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: var(--grad);
  transform-origin: 0 50%; transform: scaleX(0); display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Navigation: sticky and solid (no blur, so scrolling stays smooth) */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(251, 251, 255, .95);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14, 15, 44, .05); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 70px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); position: relative; flex: none; overflow: hidden; }
.mark::after { content: ""; position: absolute; inset: 8.5px; background: var(--grad); transform: rotate(45deg); border-radius: 2px;
  transition: transform .5s var(--spring); }
.brand img { display: block; height: 50px; width: auto; margin-left: -10px; }
.foot .brand img { height: 56px; }
.links { display: flex; align-items: center; gap: 4px; }
.links a:not(.btn) { position: relative; color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; }
.links a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.links a:not(.btn):hover { color: var(--ink); }
.links a:not(.btn):hover::after { transform: scaleX(1); }
.links .btn { margin-left: 8px; }

/* Buttons (a light sweeps across on hover) */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; transition: transform .25s var(--spring), box-shadow .25s, border-color .2s, color .2s; }
.btn svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.btn:hover svg.go { transform: translateX(4px); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-110%);
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .45) 50%, transparent 75%); transition: transform .6s var(--ease); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(14, 116, 144, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14, 116, 144, .38); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }

/* Type */
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -.04em; margin: 22px 0 20px; font-weight: 800; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -.035em; margin: 12px 0 14px; font-weight: 800; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.015em; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--soft); max-width: 600px; margin: 0; }
.sub { color: var(--muted); margin: 0 0 40px; max-width: 600px; font-size: 18px; }
.center .lead, .center .sub { margin-left: auto; margin-right: auto; }
.label { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); }
.note { color: var(--muted); font-size: 15px; margin-top: 28px; }

/* Badge and status (live ones send out a soft ping) */
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 600;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--spring); }
.badge:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }
.badge .new { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff;
  font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.badge svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.badge:hover svg { transform: translateX(3px); }
.status { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.status.live::after { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--accent); animation: ping 2.2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .55; } to { transform: scale(3.2); opacity: 0; } }
.status.muted { color: var(--muted); }
.status.muted::before { background: var(--line-2); }

/* One-time load-in (opacity and position only) */
.rise { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .22s; } .d4 { animation-delay: .3s; }
.d5 { animation-delay: .38s; } .d6 { animation-delay: .46s; } .d7 { animation-delay: .54s; } .d8 { animation-delay: .62s; }

/* Soft glowing orbs: pre-softened gradients that only move (no blur filter), paused off screen */
.has-orbs { position: relative; isolation: isolate; }
.orbs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; width: 620px; height: 620px; border-radius: 50%; will-change: transform; }
.orb.o1 { top: -260px; right: -140px; background: radial-gradient(closest-side, rgba(139, 92, 246, .22), rgba(139, 92, 246, 0));
  animation: drift 18s ease-in-out infinite alternate; }
.orb.o2 { top: 60px; left: -260px; background: radial-gradient(closest-side, rgba(34, 211, 238, .18), rgba(34, 211, 238, 0));
  animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb.o3 { bottom: -320px; left: 30%; background: radial-gradient(closest-side, rgba(45, 212, 191, .14), rgba(45, 212, 191, 0));
  animation: drift 26s ease-in-out infinite alternate; }
.orbs.dark .orb.o1 { background: radial-gradient(closest-side, rgba(139, 92, 246, .45), rgba(139, 92, 246, 0)); }
.orbs.dark .orb.o3 { background: radial-gradient(closest-side, rgba(45, 212, 191, .3), rgba(45, 212, 191, 0)); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-90px, 70px, 0) scale(1.15); } }

/* Home hero */
.hero { padding: 60px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-title .line { display: block; }
.w { display: inline-block; animation: word .8s var(--ease) both; }
@keyframes word { from { opacity: 0; transform: translateY(.45em) rotate(2deg); } to { opacity: 1; transform: none; } }
.rotator { display: inline-block; }
.rot-word { display: inline-block; transition: transform .45s var(--ease), opacity .45s; }
.rot-word.out { transform: translateY(-.5em); opacity: 0; }
.rot-word.from-below { transform: translateY(.5em); opacity: 0; transition: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.center .actions { justify-content: center; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; color: var(--accent); }

/* Hero visual: a fanned stack of drops that floats, and spreads out on hover */
.stack { position: relative; height: 440px; }
.drop-card { position: absolute; left: 50%; top: 50%; width: min(380px, 92%); padding: 26px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); color: var(--ink);
  text-decoration: none; transition: transform .7s var(--spring); animation: float 7s ease-in-out infinite; }
.drop-card.c1 { z-index: 3; transform: translate(-50%, -46%) rotate(-2deg); }
.drop-card.c2 { z-index: 2; transform: translate(-28%, -60%) rotate(7deg); animation-delay: -2.3s; }
.drop-card.c3 { z-index: 1; transform: translate(-72%, -60%) rotate(-8deg); animation-delay: -4.6s; }
.stack:hover .c1 { transform: translate(-50%, -42%) rotate(0deg); }
.stack:hover .c2 { transform: translate(-16%, -66%) rotate(11deg); }
.stack:hover .c3 { transform: translate(-84%, -66%) rotate(-13deg); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.drop-card:hover { color: var(--ink); }
.drop-card h3 { font-size: 30px; letter-spacing: -.03em; margin: 14px 0 6px; }
.drop-card p { color: var(--soft); margin: 0; font-size: 15.5px; }
.drop-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--bg-2);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--soft); }
.chip svg { width: 14px; height: 14px; color: var(--accent); }
/* A time-limited offer (app/site/offer.toml): the regular price struck through, and the offer's name and end date */
.was { font-size: .58em; font-weight: 600; color: var(--muted); text-decoration: line-through; margin-right: .2em; vertical-align: .18em; letter-spacing: 0; }
.offer-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--grad); margin-right: 6px; }
.drop-card .foot-row { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.drop-card .go-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--accent); }
.drop-card .go-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.drop-card:hover .go-link svg { transform: translateX(4px); }
.drop-card .top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.drop-card .top svg { width: 18px; height: 18px; }
.skel i { display: block; height: 10px; border-radius: 6px; background: var(--bg-2); margin-top: 12px; }
.skel i:nth-child(1) { width: 72%; } .skel i:nth-child(2) { width: 52%; } .skel i:nth-child(3) { width: 64%; }

/* Marquee strip */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { display: inline-flex; align-items: center; gap: 14px; padding: 0 14px; font-weight: 700; font-size: 16px; color: var(--soft); white-space: nowrap; }
.track span::after { content: ""; width: 8px; height: 8px; background: var(--grad); transform: rotate(45deg); border-radius: 2px; margin-left: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--spring), box-shadow .35s, border-color .35s; }
.card p { color: var(--soft); margin: 0; }
.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-tint); color: var(--accent); transition: transform .45s var(--spring), background .3s, color .3s; }
.icon svg { width: 21px; height: 21px; }
.lift:hover .icon { transform: rotate(-10deg) scale(1.12); background: var(--accent); color: #fff; }

/* Sections */
.section { padding: 104px 0; }
.section-tight { padding: 64px 0; }
.band { background: var(--bg-2); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.perks h3 { font-size: 18px; }
.perks p { font-size: 15.5px; }

/* Comparison */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.versus .card { padding: 34px; }
.versus h3 { font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.versus .scratch h3 { color: var(--red); }
.versus .drop { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.versus .drop h3 { color: var(--on-dark-accent); }
.versus .drop .list li { color: var(--on-dark); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: flex; gap: 12px; color: var(--soft); }
.list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.scratch .list svg { color: var(--red); } .drop .list svg { color: var(--on-dark-accent); }

/* Catalogue */
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .cover img { transform: scale(1.06); }
.product .body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 24px; letter-spacing: -.025em; margin: 8px 0 2px; }
.product h3 a { color: var(--ink); text-decoration: none; }
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; flex-wrap: wrap; }
.product .row .actions { margin: 0; gap: 8px; }
.price { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.price-note { color: var(--muted); font-size: 14px; font-weight: 600; }
.cover.locked { display: grid; place-items: center; color: var(--muted);
  background: repeating-linear-gradient(135deg, var(--bg-2) 0 12px, #f4fbfb 12px 24px); }
.cover.locked span { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .12em; font-size: 13px;
  padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); transition: transform .45s var(--spring); }
.product:hover .cover.locked span { transform: scale(1.08) rotate(-3deg); }
.cover.locked svg { width: 16px; height: 16px; }

/* About the maker */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.portrait { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.ring { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.ring::before { content: ""; position: absolute; inset: -20%; background: conic-gradient(#14b8a6, #22d3ee, #8b5cf6, #14b8a6);
  animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-2); border: 6px solid var(--card);
  display: grid; place-items: center; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .initials { font-size: 92px; font-weight: 800; letter-spacing: -.05em; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 700;
  animation: float 6s ease-in-out infinite; white-space: nowrap; }
.tag svg { width: 16px; height: 16px; color: var(--accent); }
.tag.t1 { top: 8px; left: -40px; } .tag.t2 { top: 46%; right: -64px; animation-delay: -2s; } .tag.t3 { bottom: 4px; left: -10px; animation-delay: -4s; }
.about h2 { margin-bottom: 18px; }
.about p { color: var(--soft); margin: 0 0 14px; font-size: 17.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 8px; }
.stat { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Inner pages (/drops, /about) */
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { max-width: 860px; margin-left: auto; margin-right: auto; }
.page-hero .about h1 { margin-left: 0; }
.page-hero .about p { color: var(--soft); margin: 0 0 14px; font-size: 17.5px; }
.pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head .btn { margin-bottom: 40px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stats.wide { max-width: 760px; margin: 48px auto 0; }
.stats.wide .stat { text-align: center; }
.maker { display: flex; align-items: center; gap: 28px; padding: 28px 32px; }
.maker h3 { font-size: 21px; margin: 6px 0 0; max-width: 620px; }
.maker .btn { margin-left: auto; flex: none; }
.portrait.sm { width: 104px; height: 104px; margin: 0; flex: none; }
.portrait.sm .avatar { inset: 4px; border-width: 4px; }
.portrait.sm .initials { font-size: 34px; }

.where { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; font-weight: 600; margin: 22px 0 0 !important; }
.where svg { width: 16px; height: 16px; color: var(--accent); }
.stats.four { grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats.four .stat { text-align: center; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.skills .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.skills .chip { transition: transform .3s var(--spring), border-color .2s, color .2s; }
.skills .chip:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

/* Journey: the line draws itself, then each step rises in */
.journey { position: relative; list-style: none; margin: 0 auto; padding: 0; max-width: 780px; }
.journey::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .2s; }
.journey.in::before { transform: scaleY(1); }
.journey li { position: relative; padding: 0 0 34px 68px; }
.journey li:last-child { padding-bottom: 0; }
.journey li::before { content: ""; position: absolute; left: 12px; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--card); border: 5px solid var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.journey li:last-child::before { background: var(--grad); border-color: var(--card); box-shadow: 0 0 0 3px var(--accent), 0 0 0 9px var(--bg); }
.journey .year { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent);
  font-weight: 800; font-size: 13px; letter-spacing: .04em; }
.journey h3 { font-size: 21px; margin: 10px 0 4px; }
.journey p { color: var(--soft); margin: 0; }

/* Make it yours */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.ways { display: grid; gap: 16px; }
.ways .card { display: flex; gap: 18px; align-items: flex-start; }
.ways .icon { margin: 0; flex: none; }

/* Steps: the dashed line draws itself when the section comes into view */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps::before { content: ""; position: absolute; top: 57px; left: 16%; right: 16%; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
.steps.in::before { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 34px 26px; }
.num { width: 46px; height: 46px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 0 0 7px var(--card); transition: transform .45s var(--spring); }
.step:hover .num { transform: scale(1.15) rotate(-8deg); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 2px 22px;
  margin-bottom: 12px; transition: border-color .25s, transform .3s var(--spring); }
.faq details:hover { border-color: var(--line-2); transform: translateX(4px); }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-2); color: var(--ink); font-size: 18px; font-weight: 600; transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--accent); color: #fff; }
.faq details p { color: var(--soft); margin: 0 0 20px; animation: open .4s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* Dark call-to-action band */
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; padding: 68px 40px; text-align: center;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.cta h2 { margin-top: 10px; }
.cta p { color: var(--on-dark-2); max-width: 560px; margin: 0 auto; }
.cta .label { color: var(--on-dark-accent); }
.cta .actions { justify-content: center; }
.cta a:not(.btn) { color: var(--on-dark-accent); }

/* Product page */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.p-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 56px 0 88px; }
.p-hero > * { min-width: 0; } /* the terminal's unwrapped lines must scroll inside it, not widen the page */
.p-hero h1 { font-size: clamp(46px, 6.5vw, 84px); margin: 14px 0 8px; }
.tagline { font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; line-height: 1.25; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 0; flex-wrap: wrap; }
.price-row .price { font-size: 38px; }
.fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }

/* Terminal (dark, on the light page) */
.term { border-radius: 18px; background: #0d0e24; border: 1px solid #23244a; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
  animation: float 8s ease-in-out infinite; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid #23244a; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f47; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 10px; color: #8d90b0; font-size: 13px; font-weight: 600; }
.term-body { padding: 20px 22px 24px; font: 12.5px/1.85 "SF Mono", ui-monospace, Menlo, Consolas, monospace; min-height: 250px; overflow-x: auto; }
.tl { white-space: pre; color: #9a9dbd; }
.tl.cmd { color: #fff; font-weight: 600; }
.tl.bad { color: #ffa3b1; } .tl.ok { color: #9ee6c4; }
.js .term[data-type] .tl { visibility: hidden; }
.js .term[data-type] .tl.on { visibility: visible; }
.caret { display: inline-block; width: 8px; height: 15px; margin-left: 2px; vertical-align: -3px; background: var(--violet); }
.term-note { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* Screenshot tabs */
.tabs { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.tablist { display: none; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); overflow-x: auto; }
.js .tablist { display: flex; }
.tablist button { font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); background: transparent; border: 1px solid transparent;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .2s, background .2s, transform .3s var(--spring); }
.tablist button:hover { color: var(--ink); transform: translateY(-1px); }
.tablist button[aria-selected="true"] { color: #fff; background: var(--grad); }
.tabs figure { margin: 0; }
.tabs figure img { width: 100%; max-height: 760px; object-fit: cover; object-position: top; }
.tabs figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px;
  color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.tabs figcaption a { font-weight: 700; text-decoration: none; }
.tabs [role="tabpanel"]:not([hidden]) { animation: panel .5s var(--ease); }
@keyframes panel { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.video { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Features */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento .card:nth-child(4n + 1), .bento .card:nth-child(4n) { grid-column: span 2; }
.bento .card { min-height: 220px; display: flex; flex-direction: column; }
.bento .card h3 { margin-top: auto; padding-top: 22px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two .card { padding: 34px; }
.two .card h3 { font-size: 22px; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--soft); text-align: left; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }

/* What you get (dark band with the buy box) */
.getbox { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 52px; text-align: left; }
.getbox h2 { margin-bottom: 24px; }
.getbox .checks li { color: var(--on-dark); }
.getbox .checks svg { color: var(--on-dark-accent); }
.getbox .side { text-align: center; padding: 32px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.getbox .side .price { font-size: 44px; }
.getbox .side .price-note { color: var(--on-dark-2); margin: 4px 0 0; }
.getbox .side .btn { width: 100%; margin-top: 20px; }
.getbox .fine { color: var(--on-dark-2); }

/* Sticky buy bar (product page) */
.buybar { position: fixed; left: 50%; bottom: 18px; z-index: 45; transform: translate(-50%, 140%); opacity: 0; visibility: hidden;
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transition: transform .55s var(--spring), opacity .4s, visibility .4s; white-space: nowrap; }
.buybar.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.buybar strong { font-size: 16px; }
.buybar span { color: var(--muted); font-weight: 700; }

/* Policy pages and 404 */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 0 40px; }
.doc .card { padding: 48px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); margin: 10px 0 6px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -.01em; }
.doc p, .doc li { color: var(--soft); }
.big { font-size: clamp(110px, 18vw, 170px); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* Footer */
.foot { margin-top: 56px; padding: 56px 0 44px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { margin: 12px 0 0; max-width: 360px; }
.foot nav { display: flex; gap: 14px 26px; flex-wrap: wrap; align-content: flex-start; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.copy { margin-top: 32px; font-size: 13.5px; }

/* Reveal on scroll (site.js adds .js on <html> and .in when visible). Variants: up (default), left, right, zoom. */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(24px) scale(.98);
  transition: opacity .65s var(--ease), transform .65s var(--spring), box-shadow .35s, border-color .35s; }
.js [data-stagger].in > * { opacity: 1; transform: none; }
.js [data-stagger].in > .lift:hover { transform: translateY(-6px); }
[data-stagger].in > *:nth-child(2) { transition-delay: .08s; } [data-stagger].in > *:nth-child(3) { transition-delay: .16s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .24s; } [data-stagger].in > *:nth-child(5) { transition-delay: .32s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .4s; }
[data-stagger].in > .lift:hover { transition-delay: 0s; }

/* Endless animations stop while their section is off screen */
.paused, .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

@media (max-width: 1000px) {
  .hero-grid, .p-hero, .split, .getbox, .about { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; }
  .catalog, .kinds { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card:nth-child(4n + 1), .bento .card:nth-child(4n) { grid-column: auto; }
  .stack { height: 400px; max-width: 520px; margin: 0 auto; width: 100%; }
  .about { gap: 48px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 60px; }
  .section { padding: 72px 0; }
  .links a:not(.btn) { display: none; }
  .brand img { height: 42px; margin-left: -8px; }
  .links .btn { white-space: nowrap; }
  .perks, .catalog, .versus, .two, .steps, .bento, .kinds, .skills { grid-template-columns: 1fr; }
  .stats.four { grid-template-columns: 1fr 1fr; }
  .journey li { padding-left: 56px; }
  .page-hero { padding: 40px 0 44px; }
  .maker { flex-direction: column; text-align: center; padding: 28px 22px; }
  .maker .btn { margin-left: 0; }
  .section-head .btn { margin-bottom: 28px; }
  .steps::before { display: none; }
  .stack { height: 360px; }
  .drop-card { padding: 22px; }
  .drop-card h3 { font-size: 26px; }
  .drop-card.c2, .stack:hover .c2 { transform: translate(-42%, -58%) rotate(5deg); }
  .drop-card.c3, .stack:hover .c3 { transform: translate(-58%, -58%) rotate(-6deg); }
  .portrait { width: 230px; height: 230px; }
  .avatar .initials { font-size: 70px; }
  .tag.t1 { left: -24px; } .tag.t2 { top: auto; bottom: 34px; right: -34px; } .tag.t3 { left: -6px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .stat { padding: 14px 12px; }
  .stat b { font-size: 24px; }
  .getbox, .doc .card, .two .card, .versus .card { padding: 26px; }
  .cta { padding: 46px 22px; border-radius: 22px; }
  .p-hero { padding: 32px 0 56px; gap: 36px; }
  .term-body { padding: 16px; min-height: 0; }
  .tablist { flex-wrap: wrap; }  /* every screenshot tab visible, none cut off at the edge */
  .buybar { left: 12px; right: 12px; transform: translateY(140%); justify-content: space-between; }
  .buybar.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; transform: none; }
  .progress { display: none; }
}

/* Free silentbug playground (/try/silentbug) */
.try { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.try > *, .try-results > *, .try-form > * { min-width: 0; } /* long code lines scroll inside their box, never widen the page */
.try-form, .try-results { grid-column: 1; }
.try-checks { grid-column: 2; grid-row: 1; position: sticky; top: 90px; }
.try-form { display: grid; gap: 12px; padding: 24px; }
.try-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.try-label { font-weight: 700; font-size: 14px; color: var(--soft); }
.try select { font: inherit; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.try-examples { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; color: var(--muted); }
.try-examples a { font-weight: 700; text-decoration: none; }
.try textarea { width: 100%; min-height: 320px; resize: vertical; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: #0d1430; color: #e6fffb; font: 13.5px/1.6 "SF Mono", ui-monospace, Menlo, Consolas, monospace; tab-size: 4; }
.try textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.try-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.try-actions .fine { margin: 0; max-width: 360px; }
.try-results { display: grid; gap: 14px; }
.try-results h2 { font-size: 26px; margin: 8px 0 0; }
.try-error { border-color: var(--red); color: var(--red); font-weight: 600; }
.finding { padding: 20px 22px; border-left: 4px solid var(--line-2); }
.finding.sev-critical { border-left-color: var(--red); } .finding.sev-high { border-left-color: #f59e0b; }
.finding-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.finding-head .sev { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--soft); }
.sev-critical .sev { background: #fde4e7; color: #b4233a; } .sev-high .sev { background: #fdf0d9; color: #92560a; }
.finding-head .where { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 700; }
.finding pre { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #0d1430; color: #e6fffb; overflow-x: auto;
  font: 13px/1.6 "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.finding p { margin: 6px 0 0; color: var(--soft); }
.try-upsell { background: linear-gradient(160deg, var(--accent-tint), var(--card)); }
.try-upsell p { color: var(--soft); margin: 0 0 12px; }
.try-upsell .others { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.try-upsell .others svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.try-checks h3 { margin-bottom: 14px; }
.try-checks .fine { margin-top: 16px; }
@media (max-width: 900px) {
  .try { grid-template-columns: 1fr; }
  .try-checks { grid-column: 1; grid-row: auto; position: static; }
}

/* Blog (/blog, /blog/<slug>): one narrow reading column; code blocks come highlighted from app/markdown.py */
.posts { list-style: none; margin: 0 auto; padding: 0; max-width: 780px; display: grid; gap: 18px; }
.post-card { display: block; color: var(--ink); text-decoration: none; }
.post-card:hover { color: var(--ink); }
.post-card h2 { font-size: clamp(24px, 3vw, 30px); margin: 8px 0; }
.post-card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent);
  font-weight: 700; font-size: 15px; }
.post-card .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.post-card:hover .more svg { transform: translateX(4px); }
.post-meta { color: var(--muted); font-size: 14.5px; font-weight: 600; margin: 0; }
.post-meta a { color: var(--ink); font-weight: 700; text-decoration: none; }
.post-meta a:hover { color: var(--accent); }
.draft-tag { padding: 2px 8px; border-radius: 999px; background: #fdf0d9; color: #92560a; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; }
.draft-note { padding: 10px 14px; border-radius: 12px; background: #fdf0d9; color: #92560a; font-weight: 700; font-size: 14.5px; }

.post { max-width: 720px; margin: 0 auto; padding: 48px 0 24px; }
.post-head { padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.post-head h1 { font-size: clamp(36px, 5.4vw, 56px); margin: 6px 0 14px; }
.post-sub { font-size: clamp(18px, 2vw, 21px); color: var(--soft); margin: 0 0 18px; }

.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { font-size: clamp(25px, 3vw, 31px); margin-top: 2em; }
.prose > h3 { font-size: 21px; margin-top: 1.6em; }
.prose > h4 { font-size: 18px; margin-top: 1.4em; }
.prose > h2 + *, .prose > h3 + *, .prose > h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a { font-weight: 600; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose code { padding: .12em .4em; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
  font: .86em/1.5 "SF Mono", ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.prose pre.code { position: relative; padding: 38px 20px 18px; border-radius: 14px; background: var(--code-bg); color: var(--code-ink);
  border: 1px solid var(--code-line); overflow-x: auto; tab-size: 4; font: 14.5px/1.65 "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.prose pre.code::before { content: attr(data-lang); position: absolute; top: 12px; left: 20px; color: var(--code-muted);
  font: 800 11px/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.prose pre.code code { padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; overflow-wrap: normal; }
.t-k { color: var(--t-k); } .t-s { color: var(--t-s); } .t-c { color: var(--t-c); font-style: italic; } .t-n { color: var(--t-n); }
.t-f { color: var(--t-f); } .t-b { color: var(--t-b); } .t-d { color: var(--t-d); } .t-v { color: var(--t-v); } .t-p { color: var(--t-p); }
.prose blockquote { padding: 2px 0 2px 20px; border-left: 3px solid var(--accent); color: var(--soft); }
.prose hr { height: 1px; border: 0; background: var(--line); margin: 2.2em 0; }
.prose figure img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.prose .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-2); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose th.c, .prose td.c { text-align: center; } .prose th.r, .prose td.r { text-align: right; }

.post-product { margin-top: 48px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--accent-tint), var(--card)); }
.post-product p { margin: 0 0 14px; color: var(--ink); font-weight: 600; }
.post-product-links { display: flex; flex-wrap: wrap; gap: 10px; }
.post-end { margin: 36px 0 0; font-weight: 700; }
.post-end a { text-decoration: none; }
@media (max-width: 680px) {
  .post { padding-top: 28px; }
  .prose { font-size: 17px; }
  .prose pre.code { margin-left: -10px; margin-right: -10px; padding: 34px 16px 14px; border-radius: 12px; font-size: 13px; }
  .prose pre.code::before { left: 16px; }
}
