/* Notesappme — shared styles
   Dark, typographic, built for a minimal launcher. */

@font-face {
  font-family: "Geist";
  src: url("assets/Geist-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/GeistMono-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --bg-elevated: #111113;
  --bg-soft: #17171a;
  --bg-hover: #1d1d21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f3ee;
  --text-mute: #a3a29c;
  --text-faint: #7a7974;
  --accent: #d4f56e;
  --accent-hover: #e2ff8a;
  --accent-ink: #14180a;
  --accent-soft: rgba(212, 245, 110, 0.1);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 4.25rem;
  --measure: 72rem;
  --legal-measure: 42rem;
  --radius: 1.15rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 245, 110, 0.05), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 255, 255, 0.03), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
  outline-offset: 2px;
}

/* ---------- Header / footer ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--text);
}

.brand img,
.brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.45rem;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav .ext {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav .ext::after {
  content: "↗";
  font-size: 0.75em;
  opacity: 0.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.footer-meta {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.footer-links a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding: 5.25rem 0 4.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 580;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--text-mute);
  font-size: 1.15rem;
  line-height: 1.65;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: default;
}

.btn-soon {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-soon:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  cursor: pointer;
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

.cta-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* ---------- Device mock ---------- */

.device-wrap {
  display: flex;
  justify-content: center;
}

.device {
  width: min(100%, 22rem);
  aspect-ratio: 9 / 16.4;
  padding: 0.7rem;
  border-radius: 2.15rem;
  background: linear-gradient(180deg, #2a2a2e, #141416);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.device-screen {
  position: relative;
  height: 100%;
  border-radius: 1.55rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 100%, rgba(212, 245, 110, 0.07), transparent 42%),
    #070708;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.device-status {
  position: absolute;
  top: 0.85rem;
  left: 1.15rem;
  right: 1.15rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.home-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 7rem;
  pointer-events: none;
}

.home-idle p {
  margin: 0.35rem 0 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.chevron {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--accent);
  animation: bob 2.4s var(--ease) infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.search-dock {
  position: relative;
  padding: 0.85rem 0.85rem 1.1rem;
  background: linear-gradient(180deg, rgba(23, 23, 26, 0.4), var(--bg-elevated) 30%);
  border-top: 1px solid var(--line);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-mute);
}

.search-bar .caret {
  display: inline-block;
  width: 0.08rem;
  height: 0.95em;
  background: var(--accent);
  animation: blink 1.15s steps(1) infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.kb-keys {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.28rem;
  margin-top: 0.7rem;
}

.kb-keys span {
  height: 1.55rem;
  border-radius: 0.28rem;
  background: #2a2a2e;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.kb-keys span:nth-child(4n) {
  background: #222226;
}

/* ---------- Sections ---------- */

.section {
  padding: 4.25rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 580;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  max-width: 28rem;
  color: var(--text-mute);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature {
  padding: 1.6rem 1.55rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.feature:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.15rem;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.feature p {
  margin: 0;
  color: var(--text-mute);
  font-size: 0.98rem;
}

.cta-band {
  margin: 1rem 0 5rem;
  padding: 3rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.4rem);
  background:
    radial-gradient(700px 180px at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-elevated);
}

.cta-band h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.045em;
  font-weight: 580;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: var(--text-mute);
}

.cta-band .cta-row {
  justify-content: center;
}

/* ---------- Legal / 404 ---------- */

.page {
  width: min(var(--legal-measure), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.page header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: -0.045em;
  font-weight: 580;
}

.effective {
  margin: 0 0 2.25rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.page h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.page h3 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.05rem;
}

.page p,
.page li {
  color: var(--text-mute);
}

.page p {
  margin: 0 0 1rem;
}

.page ul,
.page ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.page li + li {
  margin-top: 0.4rem;
}

.page .placeholder {
  color: var(--text);
  background: var(--accent-soft);
  border-radius: 0.2rem;
  padding: 0.05em 0.28em;
  font-family: var(--mono);
  font-size: 0.9em;
}

.not-found {
  text-align: center;
  padding: 6rem 0 7rem;
}

.not-found h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.045em;
}

.not-found p {
  margin: 0 auto 1.6rem;
  max-width: 28rem;
  color: var(--text-mute);
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3.25rem 0 3rem;
  }

  .device-wrap {
    order: -1;
  }

  .device {
    width: min(100%, 18.5rem);
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .footer-inner,
  .wrap,
  .page {
    width: min(var(--measure), calc(100% - 1.75rem));
  }

  .brand span {
    /* keep the wordmark; it is the product name */
  }

  .nav {
    gap: 0.15rem 0.85rem;
  }

  .nav a {
    font-size: 0.86rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .lede {
    font-size: 1.05rem;
  }

  .section {
    padding: 3rem 0;
  }

  .cta-band {
    margin-bottom: 3.5rem;
    padding: 2.25rem 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .chevron,
  .search-bar .caret {
    animation: none;
  }

  .search-bar .caret {
    opacity: 1;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-mute: #c8c7c0;
    --line: rgba(255, 255, 255, 0.28);
  }
}

/* ---------- Waitlist ---------- */

.sr-only,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.cta-band .cta-stack {
  align-items: center;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.6rem;
  width: min(100%, 32rem);
  position: relative;
}

.cta-band .waitlist-form {
  justify-content: center;
}

.waitlist-form input[type="email"] {
  flex: 1 1 13.5rem;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-faint);
}

.waitlist-form input[type="email"]:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.waitlist-form input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: transparent;
}

.waitlist-form button[type="submit"] {
  cursor: pointer;
  flex: 0 0 auto;
}

.waitlist-form button[type="submit"]:disabled {
  opacity: 0.65;
  cursor: wait;
}

.waitlist-status {
  flex-basis: 100%;
  margin: 0.1rem 0 0;
  min-height: 1.35em;
  font-size: 0.9rem;
  color: var(--text-mute);
}

.waitlist-status[data-state="ok"] {
  color: var(--accent);
}

.waitlist-status[data-state="error"] {
  color: #f0b4b4;
}

@media (max-width: 640px) {
  .waitlist-form {
    width: 100%;
  }

  .waitlist-form button[type="submit"] {
    width: 100%;
  }
}
