/* Noteko's website. The app's own colors (ui/theme/Color.kt) and its Roboto Mono for headings and labels;
   body text in the system's sans serif, for reading. Muted is a little lighter than the app's on the web. */
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/roboto-mono.ttf") format("truetype");
  font-weight: 100 700;
  font-display: swap;
}
:root {
  --bg: #000000;
  --surface: #0c0c0c;
  --band: #0f0f0e;
  --raised: #161615;
  --outline: #282827;
  --outline-strong: #343434;
  --text: #e4e3de;
  --muted: #8e8d88;
  --faint: #5c5b57;
  --accent: #f82d00;
  --on-accent: #f8f8f8;
  --mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 20px/1 var(--mono); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font: 14px var(--mono); }
.site-header nav .icon { width: 15px; height: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-footer { border-top: 1px solid var(--outline); margin-top: 112px; padding: 24px 0 40px; color: var(--muted); font: 13px var(--mono); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .brand { gap: 8px; font-size: 14px; color: var(--text); }
.site-footer .brand img { width: 20px; height: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); text-decoration: none; }

/* Icons */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Home: the hero is the app's own composer, centered, with one button. */
.hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 0 72px; }
h1 { font: 700 clamp(26px, 4.2vw, 40px)/1.12 var(--mono); letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 { font-size: clamp(30px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 16px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 16px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.hero .lead { max-width: 30em; margin-bottom: 56px; }
.button { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); font: 600 15px var(--mono); padding: 13px 22px; border-radius: 999px; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.hero .button { margin-top: 56px; }
.note { color: var(--muted); font: 13px var(--mono); }
.offer { font: 13px/1.5 var(--mono); color: var(--faint); margin: 14px 0 0; }
.offer b { color: var(--muted); font-weight: 500; }

/* The composer: the preview line above the box, worded as the app words it (composer.js). */
.composer { width: min(520px, 100%); text-align: left; }
.preview { font: 13px var(--mono); color: var(--muted); padding: 0 6px 10px; min-height: 2.2em; opacity: 0; transition: opacity .2s; }
.preview.shown { opacity: 1; }
.preview::before { content: "▸ "; color: var(--accent); }
.box { display: flex; align-items: center; gap: 12px; border: 1px solid var(--outline-strong); border-radius: 18px; padding: 16px 18px; font: 500 clamp(15px, 4.4vw, 18px) var(--mono); background: var(--surface); }
.box .typed { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.box i { font-style: normal; color: var(--accent); }
.box .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.box .icon { color: var(--muted); }
@keyframes blink { 50% { opacity: 0; } }

/* The waitlist */
/* The address and the button sit in one pill; once you've joined, only the status is left. */
.waitlist { max-width: 440px; margin: 0 auto; }
.waitlist .field { display: flex; gap: 8px; padding: 5px; border: 1px solid var(--outline-strong); border-radius: 999px; background: var(--surface); }
.waitlist .field:focus-within { border-color: var(--accent); }
.waitlist input[type="email"] { flex: 1; min-width: 0; font: 15px var(--mono); color: var(--text); background: none; border: 0; padding: 0 14px; outline: none; }
.waitlist input[type="email"]::placeholder { color: var(--faint); }
.waitlist .button { border: 0; cursor: pointer; padding: 11px 20px; font-size: 14px; white-space: nowrap; }
.waitlist .button:disabled { opacity: 0.6; cursor: default; filter: none; }
.waitlist.joined .field { display: none; }
.waitlist-status { margin: 12px 0 0; font: 13px/1.5 var(--mono); color: var(--muted); }
.waitlist-status:empty { display: none; }
.waitlist-status.done { color: var(--text); font-size: 15px; }
.waitlist-status.done::before { content: "▸ "; color: var(--accent); }
.waitlist-status.error { color: #ff7a5c; }
.waitlist .trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Sections: one narrow column, no cards. */
section { max-width: 640px; margin: 0 auto; padding: 128px 0 0; }
h2 { font: 700 clamp(22px, 3vw, 28px)/1.2 var(--mono); letter-spacing: -0.02em; margin: 0 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 32px; }
/* A band: the section's background, a shade off the page's black, reaching both edges of the window. */
.band { margin-top: 128px; padding: 80px 0; background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
.band .symbols div { border-color: var(--outline-strong); }
.lead-icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 16px; }

.symbols { margin: 0; display: grid; }
.symbols div { display: grid; grid-template-columns: 28px 160px minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-top: 1px solid var(--outline); }
.symbols div:last-child { border-bottom: 1px solid var(--outline); }
.symbols dt { font: 700 18px var(--mono); color: var(--accent); }
.symbols dd { display: contents; }
.symbols strong { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--mono); }
.symbols strong .icon { width: 16px; height: 16px; color: var(--muted); }
.symbols code { font: 13px var(--mono); color: var(--muted); background: none; border: 0; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* No frame: the clip's black is the page's, and its top, where a message is cut off, fades into it. */
.clip { max-width: 520px; margin: 0 auto 32px; }
.clip video { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; color: var(--muted); font-size: 15px; }
.points li { display: flex; gap: 14px; }
.points .icon { color: var(--accent); margin-top: 1px; }
.points strong { color: var(--text); font: 600 14px var(--mono); display: block; margin-bottom: 2px; }

.nots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font: 500 15px var(--mono); }
.nots li { display: inline-flex; align-items: center; gap: 8px; }
.nots .icon { width: 18px; height: 18px; color: var(--accent); }

/* Closing call to action */
.cta { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 640px; margin: 0 auto; padding: 144px 0 0; scroll-margin-top: 48px; }
.cta .play { width: 36px; height: 36px; fill: var(--text); margin-bottom: 20px; }
.cta h2 { margin-bottom: 28px; }
.cta .waitlist { width: 100%; }
.cta .fine { margin: 14px 0 0; color: var(--faint); font: 13px var(--mono); }
.cta .fine a { color: var(--muted); text-decoration: underline; }
.waitlist.joined + .fine { display: none; }

/* Text pages: privacy, terms, licenses */
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-top: 24px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.muted, .doc .muted { color: var(--muted); font-size: 14px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--raised); border: 1px solid var(--outline); border-radius: 6px; padding: 1px 6px; }

@media (max-width: 520px) {
  .hero .lead { margin-bottom: 40px; }
  .hero .button { margin: 40px 0 0; }
  section { padding-top: 96px; }
  .band { margin-top: 96px; padding: 64px 0; }
  .nots { display: grid; grid-template-columns: 1fr 1fr; }
  .symbols div { grid-template-columns: 24px minmax(0, 1fr); }
  .symbols code { grid-column: 2; }
  .points { grid-template-columns: 1fr; }
  .cta { padding-top: 112px; }
  .waitlist .field { flex-direction: column; border-radius: 24px; }
  .waitlist input[type="email"] { padding: 10px 14px; }
  .waitlist .button { justify-content: center; }
  .site-footer { margin-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .box .caret { animation: none; } }
