/* NotWork: the shared "paper & ink" design language of DoAll and CalSci —
   warm paper, near-black ink outlines, hard offset shadows and a few
   saturated highlighter colours. */

:root {
  --paper: #f2ede4;
  --paper-deep: #e7e0d2;
  --card: #fffcf6;
  --ink: #121212;
  --ink-fixed: #121212;
  --text: #121212;
  --text-soft: #5e594f;
  --text-faint: #8a8376;
  --line: #121212;
  --shadow: #121212;

  --signal: #ff5a1f;
  --lime: #d7f75b;
  --butter: #ffd45c;
  --sky: #9cd7ff;
  --lilac: #cdb8ff;
  --mint: #8fe3b5;
  --blush: #ffa9c9;

  --radius: 16px;
  --font: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: 'Instrument Serif', Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #121110;
    --paper-deep: #272522;
    --card: #1d1c1a;
    --text: #f2ede4;
    --text-soft: #aba597;
    --text-faint: #7d776c;
    --line: #f2ede4;
    --shadow: var(--signal);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #121110;
  --paper-deep: #272522;
  --card: #1d1c1a;
  --text: #f2ede4;
  --text-soft: #aba597;
  --text-faint: #7d776c;
  --line: #f2ede4;
  --shadow: var(--signal);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background 0.25s, color 0.25s;
}
/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: radial-gradient(var(--paper-deep) 1px, transparent 1.2px);
  background-size: 22px 22px;
  opacity: 0.7;
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.05; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--signal); letter-spacing: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft);
}
kbd {
  font-family: var(--mono); font-size: 11px; padding: 1px 6px;
  border: 1.5px solid var(--line); border-radius: 6px; background: var(--card); color: var(--text);
}

/* ---- surfaces and buttons ---------------------------------------------- */

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--text);
  box-shadow: 3px 3px 0 var(--shadow);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 90ms ease, box-shadow 90ms ease, background 0.2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--shadow); }
.btn[aria-disabled='true'] { opacity: 0.55; pointer-events: none; }
.btn-signal { background: var(--signal); color: var(--ink-fixed); border-color: var(--ink-fixed); }
.btn-lime { background: var(--lime); color: var(--ink-fixed); border-color: var(--ink-fixed); }
.btn-ink { background: var(--text); color: var(--paper); }
.btn-small { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.btn-icon { width: 38px; padding: 0; }
.btn kbd { font-size: 10px; }

/* ---- top bar ------------------------------------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(clamp(16px, 4vw, 40px), env(safe-area-inset-right)) 12px max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { transition: transform 0.4s cubic-bezier(.3,1.6,.5,1); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.logo img { filter: none; }
.logo-word { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.logo.small { gap: 8px; font-weight: 700; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 6px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid transparent;
}
.nav-links a:hover { border-color: var(--line); background: var(--card); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ---- hero --------------------------------------------------------------- */

.hero {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px) 64px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink-fixed); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { transform: scale(1.35); } }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); margin: 18px 0 22px; }
.hero h1 .word { display: inline-block; animation: pop-word 0.6s cubic-bezier(.3,1.5,.5,1) both; }
.hero h1 .word:nth-child(1) { animation-delay: 0.05s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.12s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.19s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.26s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.33s; }
@keyframes pop-word { from { opacity: 0; transform: translateY(40px) rotate(6deg); } }
.scribble { position: relative; display: inline-block; font-size: 0.92em; animation: pop-word 0.7s 0.45s cubic-bezier(.3,1.5,.5,1) both; }
.scribble svg { position: absolute; left: 0; right: 0; bottom: -8px; width: 100%; height: 16px; overflow: visible; }
.scribble path {
  fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 0.9s 1s ease-out forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--text-soft); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* floating stickers */
.hero-stage { position: relative; height: 440px; }
.sticker {
  position: absolute; width: calc(var(--s) * var(--k, 1)); height: calc(var(--s) * var(--k, 1)); display: grid; place-items: center;
  border: 2px solid var(--ink-fixed); border-radius: 26px;
  box-shadow: 5px 5px 0 var(--ink-fixed);
  cursor: grab; user-select: none; touch-action: none;
  animation: bob 5s ease-in-out infinite, drop-in 0.8s cubic-bezier(.3,1.5,.5,1) both;
  transition: box-shadow 0.15s;
}
.sticker:hover { box-shadow: 8px 8px 0 var(--ink-fixed); }
.sticker.dragging { cursor: grabbing; animation: none; box-shadow: 10px 10px 0 var(--ink-fixed); z-index: 5; }
.sticker img { width: 78%; height: 78%; border-radius: 18px; pointer-events: none; }
.sticker .label {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--card); color: var(--text); border: 2px solid var(--line); border-radius: 999px;
  padding: 1px 10px; font-family: var(--mono); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.sticker.text { width: auto; height: calc(56px * var(--k, 1)); font-weight: 800; font-size: calc(22px * var(--k, 1)); color: var(--ink-fixed); padding: 0 16px; }
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: var(--r, 0deg); }
  50% { translate: 0 -14px; rotate: calc(var(--r, 0deg) * -1); }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-80px) scale(0.6); } }

/* ---- ticker ------------------------------------------------------------- */

.ticker {
  overflow: hidden; background: var(--lime); color: var(--ink-fixed);
  border-block: 2px solid var(--ink-fixed); transform: rotate(-1.2deg); margin: 10px -10px 30px;
}
.ticker-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.ticker-track span { padding: 12px 22px; font-weight: 800; font-size: 20px; white-space: nowrap; display: inline-flex; align-items: center; gap: 22px; }
.ticker-track span::after { content: "✺"; color: var(--signal); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- sections ----------------------------------------------------------- */

.section {
  max-width: 1180px; margin: 0 auto;
  padding: 44px max(clamp(16px, 4vw, 40px), env(safe-area-inset-right)) 44px max(clamp(16px, 4vw, 40px), env(safe-area-inset-left));
  scroll-margin-top: 70px;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-title { font-size: clamp(32px, 5vw, 52px); margin-bottom: 0; }
#roadmap .section-title { margin-bottom: 28px; }
.filters { display: flex; gap: 6px; padding: 4px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); }
.chip { border: 0; background: none; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.chip.active { background: var(--text); color: var(--paper); }

/* ---- app cards ---------------------------------------------------------- */

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: rise 0.55s cubic-bezier(.3,1.3,.5,1) both;
}
.app-card:hover { transform: translate(-3px, -3px) rotate(-0.4deg); box-shadow: 8px 8px 0 var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon {
  width: 68px; height: 68px; flex: none; border-radius: 18px;
  border: 2px solid var(--ink-fixed); box-shadow: 3px 3px 0 var(--ink-fixed);
  overflow: hidden; transition: transform 0.4s cubic-bezier(.3,1.6,.5,1);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card:hover .app-icon { transform: rotate(-8deg) scale(1.06); }
.app-card h3 { font-size: 30px; }
.status {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-fixed); background: var(--lime); }
.status.soon::before { background: var(--butter); animation: blink 1.6s infinite; }
.app-tagline { font-size: 22px; font-weight: 800; line-height: 1.15; }
.app-tagline em { display: block; }
.app-desc { color: var(--text-soft); flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 11px; font-weight: 500; padding: 2px 9px; border: 1.5px solid var(--line); border-radius: 999px; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.app-actions .btn { flex: 1 1 auto; }
.links-row { display: flex; gap: 14px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.links-row a:hover { color: var(--signal); }
.stamp {
  position: absolute; top: 18px; right: -10px; z-index: 2;
  background: var(--butter); color: var(--ink-fixed); border: 2px solid var(--ink-fixed); border-radius: 8px;
  padding: 4px 12px; font-weight: 800; font-size: 14px; transform: rotate(8deg);
  box-shadow: 3px 3px 0 var(--ink-fixed);
  animation: wiggle 2.6s ease-in-out infinite;
}
@keyframes wiggle { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(3deg) scale(1.06); } }
.teaser { align-items: center; justify-content: center; text-align: center; min-height: 300px; border-style: dashed; box-shadow: none; }
.teaser:hover { box-shadow: 4px 4px 0 var(--shadow); }
.teaser .q {
  width: 68px; height: 68px; border-radius: 18px; display: grid; place-items: center;
  border: 2px solid var(--ink-fixed); box-shadow: 3px 3px 0 var(--ink-fixed);
  font-size: 34px; font-weight: 800; color: var(--ink-fixed);
  animation: tumble 4s ease-in-out infinite;
}
@keyframes tumble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) translateY(-6px); } }
.teaser p { color: var(--text-soft); font-family: var(--mono); font-size: 13px; }

/* ---- roadmap ------------------------------------------------------------ */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px; position: relative; }
.steps li strong { font-size: 22px; }
.steps li > span:last-child { color: var(--text-soft); }
.step-tag {
  align-self: flex-start; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink-fixed); color: var(--ink-fixed); background: var(--lime);
}
.steps .now .step-tag { background: var(--butter); }
.steps .next .step-tag { background: var(--sky); }
.steps .now { border-color: var(--signal); }

/* ---- about -------------------------------------------------------------- */

.about { padding: clamp(24px, 5vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.about h2 { font-size: clamp(30px, 4.6vw, 50px); max-width: 820px; }
.perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.perks li { display: flex; flex-direction: column; gap: 6px; padding: 20px; box-shadow: 3px 3px 0 var(--shadow); }
.perks li span:last-child { color: var(--text-soft); font-size: 15px; }
.perks strong { font-size: 19px; }
.perk-icon {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 6px;
  border: 2px solid var(--ink-fixed); color: var(--ink-fixed); font-weight: 800; font-size: 18px;
}

.footer {
  max-width: 1180px; margin: 32px auto 0; padding: 26px clamp(16px, 4vw, 40px) 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
  border-top: 2px solid var(--line);
}
.footer-links { display: flex; gap: 18px; font-weight: 600; }

/* ---- scroll reveal ------------------------------------------------------ */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.3,1.3,.5,1); }
.js .reveal.in { opacity: 1; transform: none; }
.intro { animation: rise 0.6s 0.5s cubic-bezier(.3,1.3,.5,1) both; }
.hero-cta.intro { animation-delay: 0.65s; }

/* ---- in-page window ----------------------------------------------------- */

.window-wrap {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 3vh 3vw;
  background: color-mix(in srgb, var(--ink-fixed) 45%, transparent); animation: fade 0.18s;
}
.window-wrap[hidden] { display: none; }
.window {
  width: min(1200px, 100%); height: min(840px, 100%);
  max-height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  box-shadow: 8px 8px 0 var(--shadow);
  animation: pop 0.3s cubic-bezier(.3,1.4,.5,1);
}
.window.max { width: 100%; height: 100%; }
@keyframes pop { from { transform: scale(0.9) translateY(20px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 2px solid var(--line); background: var(--paper-deep); }
.lights { display: flex; gap: 8px; }
.light { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-fixed); padding: 0; }
.light:hover { transform: scale(1.15); }
.tabs { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 5px; }
.tab {
  display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 6px; border-radius: 999px;
  border: 2px solid var(--line); background: transparent; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.tab img { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink-fixed); }
.tab.active { background: var(--card); box-shadow: 3px 3px 0 var(--shadow); }
.tab .x { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; }
.tab .x:hover { background: var(--signal); color: var(--ink-fixed); }
.win-body { position: relative; flex: 1; background: var(--paper); }
.win-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--paper); }
.win-body iframe:not(.active) { display: none; }
.frame-note {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 16px; font-size: 14px; font-weight: 600;
}

.dock { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 40; animation: pop 0.25s; }
.dock[hidden] { display: none; }

/* ---- command palette ---------------------------------------------------- */

.palette-wrap {
  position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; padding: 14vh 16px 0;
  background: color-mix(in srgb, var(--ink-fixed) 40%, transparent); animation: fade 0.15s;
}
.palette-wrap[hidden] { display: none; }
.palette { width: min(580px, 100%); height: fit-content; overflow: hidden; border-radius: 22px; box-shadow: 8px 8px 0 var(--shadow); animation: pop 0.22s cubic-bezier(.3,1.4,.5,1); }
.palette input { width: 100%; padding: 18px 20px; border: 0; outline: 0; background: transparent; font-size: 19px; font-weight: 600; border-bottom: 2px solid var(--line); }
.palette ul { list-style: none; margin: 0; max-height: 340px; overflow-y: auto; padding: 8px; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; border: 2px solid transparent; }
.palette li.sel { border-color: var(--line); background: var(--paper-deep); }
.palette li img { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ink-fixed); }
.palette .meta { flex: 1; font-weight: 800; }
.palette .meta small { display: block; color: var(--text-soft); font-weight: 500; font-size: 13px; }
.palette .act { font-family: var(--mono); font-size: 11px; color: var(--text-soft); }
.palette .empty { color: var(--text-soft); justify-content: center; cursor: default; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 2px solid var(--line); color: var(--text-soft); font-size: 12px; font-family: var(--mono); }

.toast { position: fixed; bottom: 24px; right: 24px; z-index: 70; padding: 12px 18px; font-weight: 600; max-width: calc(100vw - 48px); animation: pop 0.25s cubic-bezier(.3,1.4,.5,1); }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .scribble path { stroke-dashoffset: 0; }
}

/* ---- suggest an app ----------------------------------------------------- */

.suggest-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.suggest-form { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--text); font: inherit; resize: vertical;
  transition: box-shadow 0.12s, transform 0.12s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 3px 3px 0 var(--signal); transform: translate(-1px, -1px); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field.invalid input, .field.invalid textarea { border-color: var(--signal); animation: shake 0.35s; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg { display: flex; border: 2px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 7px 8px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--text); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--signal); }
.spark-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: -6px; }
.spark-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
.spark {
  border: 1.5px dashed var(--line); background: transparent; border-radius: 999px; padding: 3px 11px;
  font-size: 13px; font-weight: 600; transition: transform 0.15s, background 0.15s;
}
.spark:hover { background: var(--butter); color: var(--ink-fixed); border-style: solid; border-color: var(--ink-fixed); transform: rotate(-2deg) scale(1.04); }
.form-error { color: var(--signal); font-weight: 700; }
.form-error[hidden] { display: none; }
.fine { font-size: 13px; color: var(--text-soft); }

.wishlist { padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 6px; }
.wish-head { display: flex; justify-content: space-between; align-items: baseline; }
.wish-head h3 { font-size: 28px; }
.links-row-link { font-weight: 700; font-size: 14px; }
.wish-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wish-list li a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none;
  border: 2px solid var(--line); border-radius: 14px; background: var(--paper);
  transition: transform 0.12s, box-shadow 0.12s;
}
.wish-list li a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--shadow); }
.votes {
  flex: none; min-width: 52px; display: flex; flex-direction: column; align-items: center;
  padding: 4px 6px; border-radius: 10px; border: 2px solid var(--ink-fixed); background: var(--lime); color: var(--ink-fixed);
  font-weight: 800; line-height: 1.1;
}
.votes small { font-size: 12px; }
.wish-title { font-weight: 700; line-height: 1.25; }
.wish-title small { display: block; font-weight: 500; color: var(--text-soft); font-size: 12px; font-family: var(--mono); }
.wish-empty { color: var(--text-soft); padding: 18px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; }
.wish-list li:nth-child(1) .votes { background: var(--signal); }
.wish-list li:nth-child(2) .votes { background: var(--butter); }
.teaser { cursor: pointer; }


/* ---- menu button (shown on narrower screens) ---------------------------- */

.menu-btn { display: none; }
.burger { display: grid; gap: 4px; width: 16px; }
.burger i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
.menu-btn[aria-expanded='true'] .burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded='true'] .burger i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] .burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-suggest { display: none; }
.btn-search svg { flex: none; }

/* ---- responsive --------------------------------------------------------- */

/* Hover lifts only where there is a real pointer; taps on touch screens stay put */
@media (hover: none) {
  .app-card:hover, .btn:hover { transform: none; }
  .app-card:hover { box-shadow: 4px 4px 0 var(--shadow); }
  .app-card:hover .app-icon { transform: none; }
}

/* Laptops and tablets in landscape: fold the links into a menu */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); right: max(16px, env(safe-area-inset-right));
    flex-direction: column; gap: 4px; min-width: 220px; padding: 8px;
    background: var(--card); border: 2px solid var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--shadow);
    animation: pop 0.2s cubic-bezier(.3,1.4,.5,1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; border-radius: 12px; }
  .nav-links a[href='#suggest']:not(.nav-suggest) { display: none; }
  .nav-links .nav-suggest { display: block; background: var(--lime); color: var(--ink-fixed); border-color: var(--ink-fixed); margin-top: 4px; }
}

/* Tablets in portrait and small laptops */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 12px; padding-bottom: 40px; }
  .hero-stage { height: 300px; --k: 0.8; max-width: 560px; width: 100%; justify-self: center; }
  .suggest-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

/* Phones */
@media (max-width: 640px) {
  .btn-suggest, .btn-search kbd, .hero-cta kbd, .search-label { display: none; }
  .btn-search { width: 38px; padding: 0; }
  .logo-word { font-size: 20px; }
  .hero { padding-top: 36px; }
  .hero-stage { height: 270px; --k: 0.7; }
  .hero-cta .btn { flex: 1 1 auto; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .stamp { right: 10px; }
  .window-wrap { padding: 0; }
  .window { border-radius: 0; height: 100%; border: 0; box-shadow: none; }
  .win-bar { padding-top: max(10px, env(safe-area-inset-top)); }
  .frame-note { width: calc(100% - 24px); justify-content: space-between; }
  .toast { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* Phones turned sideways: short and wide, so keep the hero side by side */
@media (orientation: landscape) and (max-height: 520px) {
  .topbar { position: relative; padding-block: 8px; }
  .section { scroll-margin-top: 0; padding-block: 28px; }
  .hero { grid-template-columns: 1.3fr 1fr; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(32px, 6.4vw, 52px); margin: 10px 0 12px; }
  .lead { font-size: 15px; }
  .hero-cta { margin-top: 18px; }
  .hero-cta .btn { flex: 0 1 auto; }
  .hero-stage { height: 250px; --k: 0.58; }
  .ticker { margin-bottom: 16px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .suggest-grid { grid-template-columns: 1.2fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .window-wrap { padding: 0; }
  .window { width: 100%; height: 100%; border-radius: 0; border: 0; box-shadow: none; }
  .win-bar { padding-block: 6px; }
  .palette-wrap { padding-top: 12px; }
  .palette ul { max-height: calc(100dvh - 170px); }
  .palette input { padding: 12px 18px; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 640px) {
  .app-grid, .suggest-grid { grid-template-columns: 1fr; }
}

