/* ============================================================
   notepadexe.com — landing page
   Design system:
   - paper (cream) bg by default, off-black fg, blue accent
   - Inter (sans) + JetBrains Mono (mono) by default
   - confident short declarations, asymmetric feature rows
   ============================================================ */

:root {
  /* defaults — dark preset base */
  --bg: #0A0A0B;
  --bg-elev: #111113;
  --bg-soft: #141416;
  --fg: #F2F1ED;
  --fg-dim: #A7A59E;
  --fg-mute: #6E6C66;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #6A8BFF;
  --accent-ink: #F2F1ED;

  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* density */
  --pad-y: 140px;
  --pad-x: clamp(24px, 5vw, 80px);
  --gap: 32px;

  color-scheme: dark;
}

/* Paper preset — light cream background */
[data-preset="paper"] {
  --bg: #F2EFE7;
  --bg-elev: #ECE8DC;
  --bg-soft: #E4DFD0;
  --fg: #18171A;
  --fg-dim: #5A5650;
  --fg-mute: #8A8680;
  --line: rgba(0, 0, 0, 0.10);
  --line-strong: rgba(0, 0, 0, 0.18);
  --accent: #6A8BFF;
  --accent-ink: #F2F1ED;
  color-scheme: light;
}

[data-density="compact"] {
  --pad-y: 96px;
  --gap: 24px;
}
[data-density="roomy"] {
  --pad-y: 180px;
  --gap: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }

/* ---------- layout primitives ---------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}

section {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  display: inline-block;
  border-radius: 1px;
}

.h1 {
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.body {
  font-size: 17px;
  color: var(--fg-dim);
  max-width: 52ch;
  text-wrap: pretty;
}
.mono { font-family: var(--mono); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -0.01em;
}
.nav-brand .logo-img {
  width: 22px; height: 22px; border-radius: 5px;
  display: block;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px;
  color: var(--fg-dim);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
  margin-right: 8px;
  vertical-align: middle;
}
.nav-cta {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 6px;
  transition: transform 120ms ease;
}
.nav-cta:hover { transform: translateY(-1px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
  font-family: inherit;
  user-select: none;
}
.btn-primary {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 12px 40px -12px color-mix(in oklab, var(--accent) 40%, transparent);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-soft); }

.hint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: 14px;
  display: flex; align-items: center; gap: 8px;
}
.hint::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- hero ---------- */
.hero {
  padding-top: calc(var(--pad-y) + 40px);
  padding-bottom: calc(var(--pad-y) - 20px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .body { margin-bottom: 36px; font-size: 19px; }

.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* hero glow backdrop */
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 20%, transparent) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

/* ---------- running stats bar ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin-top: 60px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.stat .num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- section header ---------- */
.sec-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 72px;
  align-items: end;
}
@media (max-width: 880px) { .sec-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; } }
.sec-header .eyebrow { margin-bottom: 0; }
.sec-header .h2 { margin-top: 14px; }
.sec-header .body { justify-self: start; align-self: end; }

/* ---------- feature rows (asymmetric) ---------- */
.feature-row {
  display: grid;
  gap: 80px;
  align-items: center;
  padding: 40px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); padding-top: 100px; margin-top: 60px; }
.feature-row.left  { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.feature-row.right { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.feature-row.right .f-copy { order: 2; }
.feature-row.right .f-art,
.feature-row.right .f-shot  { order: 1; }
@media (max-width: 960px) {
  .feature-row.left, .feature-row.right {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-row.right .f-copy,
  .feature-row.right .f-art,
  .feature-row.right .f-shot { order: initial; }
}

/* ---------- real product screenshots ---------- */
.hero-shot {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero-shot img {
  width: 100%;
  height: auto;
  display: block;
  filter: none;
}
.f-shot {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  min-height: 0;
  display: block;
}
.f-shot::before { content: none; }
.f-shot img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  filter: none;
}
/* framed variant for screenshots that contain window chrome / desktops */
.f-shot-framed {
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 20px 50px -20px rgba(0,0,0,0.18);
}
.f-shot-framed img,
.f-shot-framed video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ---------- avatars and logo image ---------- */
.t-card .avatar-img {
  width: 24px; height: 24px; border-radius: 50%;
  object-fit: cover;
  display: block;
}
.f-copy .eyebrow { margin-bottom: 20px; }
.f-copy h3 { margin-bottom: 16px; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.025em; }
.f-copy p { color: var(--fg-dim); max-width: 42ch; }

.f-skips {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.f-skips li {
  font-size: 15px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.005em;
}
.f-skips .chk {
  font-size: 12px;
  color: var(--accent);
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-elev);
}

/* ---------- feature grid (compact) ---------- */
.f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 880px) { .f-grid { grid-template-columns: 1fr; } }
.f-cell {
  background: var(--bg);
  padding: 32px 28px;
  min-height: 220px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  transition: background 180ms ease;
}
.f-cell:hover { background: var(--bg-elev); }
.f-cell .glyph {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.f-cell h4 {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 8px;
}
.f-cell p {
  font-size: 14px;
  color: var(--fg-dim);
}

/* ---------- testimonials ---------- */
.testimonials {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) { .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .t-grid { grid-template-columns: 1fr; } }
.t-card {
  break-inside: avoid;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
  display: inline-block; width: 100%;
}
.t-card .quote {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.t-card .who {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
}

/* ---------- pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elev);
}
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  padding: 36px 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 20px;
  position: relative;
}
.plan:last-child { border-right: none; }
@media (max-width: 880px) {
  .plan { border-right: none; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: none; }
}
.plan.feat { background: color-mix(in oklab, var(--accent) 6%, var(--bg-elev)); }
.plan .pname {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan.feat .pname { color: var(--accent); }
.plan .price {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan .price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--fg-mute);
  font-family: var(--mono);
  letter-spacing: 0;
  margin-left: 4px;
}
.plan ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-dim);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.plan ul li { display: flex; gap: 10px; align-items: baseline; }
.plan ul li::before {
  content: '+';
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
}
.plan .psub {
  font-size: 13px;
  color: var(--fg-mute);
  margin-top: -8px;
  font-family: var(--mono);
}
.plan.feat .psub { color: color-mix(in oklab, var(--accent) 70%, var(--fg-mute)); }
.plan .pbadge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
}
.edu-note {
  margin-top: 48px;
  text-align: center;
  font-size: 14px;
  color: var(--fg-dim);
  border-top: 1px dashed var(--line);
  padding-top: 32px;
}
.edu-note strong { color: var(--fg); font-weight: 600; }
.edu-note a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
  margin-left: 6px;
}

/* ---------- download footer CTA ---------- */
.cta-final {
  text-align: center;
  padding-top: var(--pad-y);
  padding-bottom: calc(var(--pad-y) - 40px);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 14%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final h2 { margin-bottom: 36px; }
.cta-final .hint { justify-content: center; margin-top: 18px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 48px var(--pad-x) 36px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
}
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h5 {
  font-size: 11px;
  color: var(--fg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-col a { display: block; padding: 4px 0; color: var(--fg-mute); }
.foot-col a:hover { color: var(--fg); }
.foot-meta {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  font-size: 17px;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--fg-mute);
  font-size: 22px;
  font-weight: 300;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; color: var(--accent); }
.faq details p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 72ch;
}
.faq details p a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}

/* ---------- newsletter ---------- */
.newsletter {
  text-align: center;
  border-top: 1px solid var(--line);
}
.newsletter h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.newsletter .body { margin: 0 auto 32px; }
.newsletter iframe {
  max-width: 420px;
  width: 100%;
  border: none;
  border-radius: 8px;
}

/* ---------- responsive nav ---------- */
@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-cta { font-size: 12px; padding: 6px 12px; }
}
