/* Notello landing page styles
   Builds on tokens.css. Page-specific layout + playful sticky-paper texture. */

@import url("tokens.css");

* { box-sizing: border-box; }

:root {
  --paper:        #FAF3E2;  /* warm cream "desk" */
  --paper-grid:   rgba(120, 100, 60, 0.06);
  --ink:          #2A2520;
  --ink-soft:     #5C5247;
  --hairline:     rgba(42, 37, 32, 0.12);
  --accent-mac:   #007AFF;
  --tape:         rgba(245, 215, 130, 0.55);
  --tape-edge:    rgba(220, 180, 80, 0.45);

  --page-bg: var(--paper);
  --page-fg: var(--ink);
  --page-fg-soft: var(--ink-soft);
  --page-hair: var(--hairline);
}

[data-theme="dark"] {
  --page-bg: #1E1A16;
  --page-fg: #F4ECDB;
  --page-fg-soft: rgba(244, 236, 219, 0.65);
  --page-hair: rgba(244, 236, 219, 0.14);
  --paper-grid: rgba(244, 236, 219, 0.05);
}

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-system);
  background: var(--page-bg);
  color: var(--page-fg);
  font-size: 16px;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* paper "desk" surface — subtle dotted grid + a barely-there grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(var(--paper-grid) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.page { position: relative; z-index: 1; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ===== HANDWRITTEN TYPE ===== */
.hand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.hand-light {
  font-family: var(--font-display);
  font-weight: 400;
}

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(54px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--page-fg);
}
h1.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: #D4612B;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
h3.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 6px;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #C05821;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow .squiggle { display: inline-block; width: 22px; height: 8px; }

.lede {
  font-family: var(--font-system);
  font-size: 19px;
  line-height: 1.55;
  color: var(--page-fg-soft);
  max-width: 560px;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--page-bg) 78%, transparent);
  border-bottom: 0.5px solid var(--page-hair);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-brand .mark {
  width: 32px; height: 32px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 6px 14px rgba(0,0,0,0.12);
  background-size: cover;
  transform: rotate(-4deg);
}
.nav-links { display: flex; gap: 22px; margin-left: 18px; }
.nav-links a {
  font-size: 15px;
  color: var(--page-fg-soft);
  transition: color 150ms;
}
.nav-links a:hover { color: var(--page-fg); }
.nav-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-cta .ghost {
  font-size: 14px;
  color: var(--page-fg-soft);
}
.nav-cta .pill {
  background: var(--page-fg);
  color: var(--page-bg);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta .pill:hover { transform: translateY(-1px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero-copy { position: relative; z-index: 3; }
.hero-stage {
  position: relative;
  height: 560px;
}
.hero-cta-row {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* App Store button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-system);
  transition: transform 150ms var(--ease-out), box-shadow 150ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18), 0 8px 22px rgba(0,0,0,0.18);
}
.appstore-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,0.22), 0 14px 30px rgba(0,0,0,0.22); }
.appstore-btn .apple-glyph { font-size: 28px; line-height: 1; margin-top: -2px; }
.appstore-btn .as-label { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-btn .as-label .small { font-size: 10px; opacity: 0.85; letter-spacing: 0.03em; text-transform: uppercase; }
.appstore-btn .as-label .big { font-size: 19px; font-weight: 600; }

.cta-meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--page-fg-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta-meta .arrow { display: inline-block; width: 28px; height: 22px; }

/* ===== STICKY NOTE (page) ===== */
.s-note {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-note);
  box-shadow: var(--shadow-note);
  transition: box-shadow 200ms var(--ease-out), transform 250ms var(--ease-out);
  background-clip: padding-box;
  cursor: grab;
}
.s-note.lifted { box-shadow: 0 4px 8px rgba(0,0,0,0.18), 0 22px 50px rgba(0,0,0,0.22); cursor: grabbing; }
.s-note .s-inner {
  position: relative;
  border-radius: var(--radius-note);
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.s-note .s-strip {
  height: 15px;
  width: 100%;
}
.s-note .s-body {
  padding: 16px 18px 22px;
  font-family: var(--font-note);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(0,0,0,0.85);
  position: relative;
  z-index: 1;
}
.s-note.editable .s-body { outline: none; }
.s-note .s-body[contenteditable="true"]:empty::before {
  content: attr(data-ph);
  color: rgba(0,0,0,0.30);
}
.s-note .s-deco {
  position: absolute;
  bottom: 8px; right: 8px;
  pointer-events: none;
  opacity: 0.85;
}
/* paper curl shadow */
.s-note::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -6px;
  height: 16px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0,0,0,0.22), rgba(0,0,0,0) 70%);
  filter: blur(2px);
  z-index: -1;
}
.s-note .s-inner::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--note-inner-sheen);
  pointer-events: none;
}

/* Tape strip variant — for "stuck to the page" cards */
.s-note.taped::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 22px;
  background: var(--tape);
  border-left: 1px dashed var(--tape-edge);
  border-right: 1px dashed var(--tape-edge);
  transform: translateX(-50%) rotate(-2deg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
  z-index: 5;
  opacity: 0.85;
}

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-head {
  text-align: center;
  margin: 0 auto 64px;
  max-width: 720px;
}
.section-head .eyebrow { justify-content: center; }
.section-head .lede { margin: 16px auto 0; }

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.feature-card {
  position: relative;
  background: #FFF;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 12px 30px rgba(0,0,0,0.06);
  border: 1px solid var(--page-hair);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
[data-theme="dark"] .feature-card {
  background: #28221C;
  border-color: var(--page-hair);
  color: var(--page-fg);
}
.feature-card .viz {
  position: relative;
  height: 160px;
  margin: -12px -8px 6px;
}
.feature-card .feature-body { color: var(--page-fg-soft); font-size: 15px; line-height: 1.5; }

/* Mock window */
.mock {
  position: relative;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10), 0 16px 40px rgba(0,0,0,0.14);
  overflow: hidden;
  border: 0.5px solid rgba(0,0,0,0.12);
}
.mock-titlebar {
  height: 28px;
  background: rgba(246,246,246,0.96);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  border-bottom: 0.5px solid var(--divider);
}
.mock-titlebar .tl {
  width: 11px; height: 11px; border-radius: 50%;
}
.mock-titlebar .tl.r { background: #FF5F57; }
.mock-titlebar .tl.y { background: #FEBC2E; }
.mock-titlebar .tl.g { background: #28C840; }
.mock-titlebar .mb-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}

/* Menu-bar mock (for hero / features) */
.menubar-mock {
  height: 26px;
  background: linear-gradient(180deg, rgba(38,32,28,0.88), rgba(38,32,28,0.78));
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: #FFF;
  border-radius: 8px 8px 0 0;
}
.menubar-mock .apple-dot { font-size: 14px; margin-right: 12px; }
.menubar-mock .mb-app { font-weight: 700; margin-right: 12px; }
.menubar-mock .mb-item { padding: 0 8px; opacity: 0.85; }
.menubar-mock .mb-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menubar-mock .mb-status {
  display: inline-flex; align-items: center; padding: 2px 4px; border-radius: 3px;
  background: rgba(255,255,255,0.18);
}
.menubar-mock .mb-status img { width: 14px; height: 14px; filter: invert(1) brightness(2); opacity: 0.95; }
.menubar-mock .mb-clock { font-variant-numeric: tabular-nums; opacity: 0.9; }

/* Themes section */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.theme-card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: var(--radius-note);
  box-shadow: var(--shadow-note);
  overflow: hidden;
  cursor: pointer;
  transition: transform 220ms var(--ease-out);
}
.theme-card:hover { transform: translateY(-4px) rotate(0deg) !important; }
.theme-card .tc-strip { height: 18px; width: 100%; }
.theme-card .tc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: rgba(0,0,0,0.85);
  padding: 14px 16px 0;
}
.theme-card .tc-deco {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 96px; height: 96px;
  opacity: 0.92;
}
.theme-card .tc-pro {
  position: absolute;
  top: 28px; right: 12px;
  background: var(--accent-yellow);
  color: #5A3D00;
  font-family: var(--font-system);
  font-weight: 700;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.plan {
  position: relative;
  padding: 36px 32px 32px;
  border-radius: var(--radius-note);
  background: var(--note-yellow-bg);
  box-shadow: var(--shadow-note);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan .plan-strip {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
  background: var(--note-yellow-strip);
  border-radius: var(--radius-note) var(--radius-note) 0 0;
}
.plan .plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: rgba(0,0,0,0.85);
  margin-top: 12px;
}
.plan .plan-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(0,0,0,0.55);
}
.plan .plan-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  color: rgba(0,0,0,0.85);
  margin: 6px 0 2px;
  letter-spacing: -0.02em;
}
.plan .plan-price .small { font-size: 20px; font-weight: 700; }
.plan .plan-price .label { font-family: var(--font-system); font-size: 14px; font-weight: 500; color: rgba(0,0,0,0.55); margin-left: 8px; }
.plan ul { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.plan ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font-system);
  font-size: 15px;
  color: rgba(0,0,0,0.78);
}
.plan ul li .tick {
  flex: 0 0 18px; height: 18px; margin-top: 2px;
}
.plan .plan-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.85);
  color: #FFF;
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  align-self: flex-start;
  text-decoration: none;
}
.plan .plan-cta:hover { background: rgba(0,0,0,1); }
.plan.pro { background: var(--note-pink-bg); }
.plan.pro .plan-strip { background: var(--note-pink-strip); }
.plan.pro .plan-cta { background: var(--note-pink-icon); }
.plan .star-badge {
  position: absolute;
  top: -22px; right: -14px;
  width: 96px; height: 96px;
  background: var(--accent-yellow);
  color: #5A3D00;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-align: center;
  line-height: 1.1;
  gap: 2px;
  transform: rotate(8deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  z-index: 4;
}
.plan .star-badge .big { font-size: 19px; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.t-note {
  position: relative;
  padding: 22px 24px 24px;
  border-radius: var(--radius-note);
  box-shadow: var(--shadow-note);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.t-note .t-quote {
  font-family: var(--font-note);
  font-size: 17px;
  line-height: 1.5;
  color: rgba(0,0,0,0.85);
}
.t-note .t-by {
  margin-top: auto;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-system);
  font-size: 13px;
  color: rgba(0,0,0,0.6);
}
.t-note .t-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #FFF;
}
.t-note .t-by .t-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: rgba(0,0,0,0.78);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #FFF;
  border: 1px solid var(--page-hair);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 200ms;
}
[data-theme="dark"] .faq-item {
  background: #28221C;
}
.faq-item.open { box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 16px 30px rgba(0,0,0,0.08); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--note-yellow-strip);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-system);
  font-weight: 700;
  color: var(--note-yellow-icon);
  transition: transform 200ms var(--ease-out);
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--page-fg-soft);
}

/* Download / final cta */
.final-cta {
  text-align: center;
  position: relative;
  padding: 120px 0 80px;
}
.final-cta .scattered { position: absolute; inset: 0; pointer-events: none; }

/* Footer */
footer {
  border-top: 1px solid var(--page-hair);
  padding: 40px 0 60px;
  font-size: 13px;
  color: var(--page-fg-soft);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--page-fg); }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--page-fg); }

/* Underline doodle */
.doodle-underline {
  position: absolute;
  left: -2%; right: -2%;
  bottom: -10px;
  height: 16px;
  pointer-events: none;
}

/* Hero stage notes */
.hero-stage .floater {
  position: absolute;
  will-change: transform, left, top;
  z-index: 2;
}
.hero-stage .floater.dragging { z-index: 50; }

.scatter-area {
  position: absolute; inset: 0;
  pointer-events: none;
}

/* Theme switcher */
.theme-switcher {
  display: inline-flex;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 32px;
}
[data-theme="dark"] .theme-switcher { background: rgba(255,255,255,0.08); }
.theme-switcher button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--page-fg-soft);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.theme-switcher button.active {
  background: var(--page-fg);
  color: var(--page-bg);
}

/* Big bold demo note in interactive section */
.demo-note-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.demo-note-wrap .demo-copy { max-width: 380px; }
.demo-note-wrap .demo-copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  margin: 0 0 12px;
  line-height: 1.1;
}
.demo-note-wrap .demo-copy p {
  color: var(--page-fg-soft);
  font-size: 17px;
  line-height: 1.55;
}

.color-swatch-row {
  display: flex; gap: 10px;
  margin-top: 18px;
}
.color-swatch-row .swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.10);
  transition: transform 150ms;
}
.color-swatch-row .swatch:hover { transform: scale(1.1); }
.color-swatch-row .swatch.active { box-shadow: 0 0 0 3px var(--page-fg); }

/* Stats strip */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 40px 0 0;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  color: var(--page-fg);
  line-height: 1;
}
.stat .lbl {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--page-fg-soft);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 460px; margin-top: 40px; }
  .features { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Section background variations */
.section-bg-paper {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 158, 72, 0.06), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(166, 204, 245, 0.07), transparent 40%);
}
.section-bg-paper.alt {
  background:
    radial-gradient(circle at 75% 10%, rgba(255, 126, 185, 0.06), transparent 40%),
    radial-gradient(circle at 10% 70%, rgba(213, 246, 146, 0.07), transparent 40%);
}
