/* ===========================================================
   Pixel.Noted — site styles (matches the NotedSuite redesign)
   Calm, low-noise, ADHD-friendly. One message at a time.
   Light = ink on warm paper; dark = dusk-lake navy + coral.
   Theme follows the visitor's system (prefers-color-scheme).
   =========================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Light palette (default) */
  --bg:         #faf9f7;
  --bg-soft:    #f2efe9;
  --text:       #10162e;
  --text-dim:   #565e78;
  --accent:     #ff8a6b;
  --accent-deep:#bc431f;
  --accent-2:   #ffd2a8;
  --card:       #ffffff;
  --card-line:  rgba(16, 22, 46, 0.10);
  --chip-bg:    #ffffff;
  --shot-shadow: rgba(16, 22, 46, 0.18);
  --header-bg:  rgba(250, 249, 247, 0.85);
  --nav-bg:     rgba(250, 249, 247, 0.97);

  --radius: 18px;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #0e1326;
    --bg-soft:    #141a32;
    --text:       #f2f4fb;
    --text-dim:   #aeb6cf;
    --accent:     #ff8a6b;
    --accent-deep:#ff9d80;
    --accent-2:   #ffd2a8;
    --card:       #141a32;
    --card-line:  rgba(255, 255, 255, 0.14);
    --chip-bg:    #141a32;
    --shot-shadow: rgba(0, 0, 0, 0.5);
    --header-bg:  rgba(14, 19, 38, 0.82);
    --nav-bg:     rgba(14, 19, 38, 0.96);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); }

/* ---------- SITE HEADER (matches notedsuite.app) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.9rem 1.25rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  background: transparent;
}
.site-header.is-solid {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--card-line), 0 10px 30px rgba(16, 22, 46, 0.06);
  padding: 0.6rem 1.25rem;
}
.header-inner {
  /* Full-bleed: wordmark hugs the left window edge, hamburger the right,
     at every window size. */
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark span { color: var(--accent-deep); }

/* Nav is always a slide-in drawer behind the hamburger (right side) */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100svh;
  width: min(78vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 5.5rem 2rem 2rem;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-left: 1px solid var(--card-line);
  box-shadow: -20px 0 50px rgba(16, 22, 46, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: -1; /* below the toggle button */
}
.site-nav.is-open { transform: translateX(0); }
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(16, 22, 46, 0.07);
}
.site-nav a:hover { color: var(--text); }
.site-nav { overflow-y: auto; }
.nav-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 1.6rem 0 0.3rem;
}
.nav-heading:first-child { margin-top: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 7rem) 1.25rem 2.5rem;
  text-align: center;
}
.hero img {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 16px 40px rgba(16, 22, 46, 0.25);
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 1.25rem 0 0.5rem;
}
.hero h1 .suite { color: var(--accent-deep); }
.hero .tag {
  color: var(--text);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  margin: 0 auto;
  max-width: 40ch;
}
.hero .lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  margin: 0.9rem auto 0;
  max-width: 52ch;
}

/* ---------- BUTTONS / BADGE ---------- */
.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a0f0a;
  font-weight: 600;
  text-decoration: none;
}
.btn.disabled {
  background: var(--chip-bg);
  color: var(--text-dim);
  border: 1px solid var(--card-line);
  cursor: default;
}
.badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--text-dim);
  border: 1px solid var(--card-line);
  font-size: 1rem;
  font-weight: 600;
  cursor: default;
}
.badge-pending .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- INTRO COPY ---------- */
.intro {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
  text-align: center;
}
.intro p {
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---------- SCREENSHOTS ---------- */
.shots {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  display: grid;
  gap: 1.5rem;
}
.shot { text-align: center; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--card-line);
  box-shadow: 0 24px 60px var(--shot-shadow);
}
.shot .cap { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.75rem; }

/* ---------- FEATURE CARDS (pointer-tracked glow) ---------- */
.features {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.feature {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(16, 22, 46, 0.05);
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 138, 107, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.feature:hover::before { opacity: 1; }
.feature h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 700; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid var(--card-line);
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}
footer a { color: var(--text-dim); text-decoration: none; margin: 0 0.6rem; }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .feature::before,
  .site-header, .site-nav, .nav-toggle span { transition: none; }
}
