/* ===== Lamplight (day) - 2026 landing design =====
   Palette: warm white paper + ink text + amber lamplight accent + sage.
   Display: Fraunces. Body: Inter. Scoped under .landing. */

:root {
  --n-paper: #FFFFFF;
  --n-paper-alt: #F7F5EF;
  --n-surface: #FFFFFF;
  --n-surface-2: #F3F1E9;
  --n-line: rgba(23, 27, 38, 0.10);
  --n-lamplight: #C97A1F;
  /* Deeper amber, for surfaces that are FILLED and carry white text on top -
     chat bubbles, send buttons, wizard step numbers. --n-lamplight itself is
     only 3.4:1 against white, which is fine for a 1px border or an icon and
     not fine for a sentence. This one is 4.7:1 and clears AA. */
  --n-lamplight-deep: #A8621A;
  --n-lamplight-soft: rgba(201, 122, 31, 0.10);
  --n-ink: #171B26;
  --n-dusk: #5B6272;
  --n-leaf: #3E8C6A;
  --n-radius: 18px;
  --n-radius-sm: 10px;
  --n-font-display: 'Fraunces', Georgia, serif;
  --n-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body:has(.landing) { background: var(--n-paper); }
body:has(.landing) .main-container { max-width: none; padding: 0; margin: 0; }

.landing {
  font-family: var(--n-font-body);
  background: var(--n-paper);
  color: var(--n-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

.landing ::selection { background: var(--n-lamplight); color: #fff; }

.n-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
.landing h1, .landing h2 {
  font-family: var(--n-font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--n-ink);
}
.landing h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); }
.landing h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.landing h1 em, .landing h2 em { font-style: italic; color: var(--n-lamplight); }

.n-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-lamplight);
  margin-bottom: 18px;
}

.n-lead { color: var(--n-dusk); font-size: 1.02rem; max-width: 34rem; }

/* ===== Hero ===== */
.n-hero {
  position: relative;
  padding: 64px 0 64px;
  background:
    radial-gradient(ellipse 55% 45% at 78% 12%, rgba(201, 122, 31, 0.09), transparent 65%),
    radial-gradient(ellipse 40% 50% at 8% 85%, rgba(62, 140, 106, 0.06), transparent 60%),
    var(--n-paper);
}
/* Top-aligned, not centred: the chat mock is far taller than the copy, so
   centring pushed the headline ~300px down the fold behind a band of empty
   paper. The copy starts with the mock and the space goes back to the page. */
.n-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
.n-hero-copy .n-lead { margin: 20px 0 28px; }

.n-cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.n-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.n-btn:focus-visible { outline: 2px solid var(--n-lamplight); outline-offset: 3px; }
.n-btn-primary {
  background: var(--n-lamplight);
  color: #fff;
  box-shadow: 0 8px 24px rgba(201, 122, 31, 0.28);
}
.n-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 122, 31, 0.36); }
.n-btn-ghost {
  color: var(--n-ink);
  border: 1px solid var(--n-line);
  background: transparent;
}
.n-btn-ghost:hover { background: var(--n-surface-2); }

.n-hero-notes { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--n-dusk); font-size: 0.9rem; }
.n-hero-notes span::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--n-leaf);
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== Signature: the 2 AM chat card ===== */
.n-chat {
  background: var(--n-surface);
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  box-shadow: 0 24px 64px rgba(23, 27, 38, 0.10);
  overflow: hidden;
}
.n-chat-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--n-line);
  background: var(--n-surface-2);
}
.n-chat-who { display: flex; align-items: center; gap: 12px; }
.n-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--n-lamplight-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.n-chat-name { font-weight: 600; font-size: 0.95rem; }
.n-chat-status { font-size: 0.78rem; color: var(--n-leaf); }
.n-chat-clock { font-size: 0.8rem; color: var(--n-dusk); font-variant-numeric: tabular-nums; }
.n-chat-log { padding: 22px 20px 8px; min-height: 320px; display: flex; flex-direction: column; gap: 12px; }
.n-msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease, transform 350ms ease;
}
.n-msg.is-visible { opacity: 1; transform: translateY(0); }
.n-msg-user {
  align-self: flex-end;
  background: var(--n-surface-2);
  color: var(--n-ink);
  border-bottom-right-radius: 5px;
}
.n-msg-ai {
  align-self: flex-start;
  background: var(--n-lamplight-soft);
  color: var(--n-ink);
  border: 1px solid rgba(201, 122, 31, 0.18);
  border-bottom-left-radius: 5px;
}
.n-msg-memory {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--n-lamplight);
  background: none;
  padding: 0 4px;
  border: none;
}
.n-typing {
  align-self: flex-start;
  display: none;
  gap: 5px;
  padding: 13px 16px;
  background: var(--n-lamplight-soft);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}
.n-typing.is-on { display: inline-flex; }
.n-typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--n-lamplight);
  animation: n-bounce 1.1s infinite;
}
.n-typing i:nth-child(2) { animation-delay: 0.15s; }
.n-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes n-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.n-chat-input { display: flex; gap: 10px; padding: 14px 20px 20px; }
.n-chat-input input {
  flex: 1;
  background: var(--n-paper-alt);
  border: 1px solid var(--n-line);
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--n-ink);
  font-family: var(--n-font-body);
  font-size: 0.9rem;
}
.n-chat-input input::placeholder { color: var(--n-dusk); }
.n-chat-input button {
  background: var(--n-lamplight);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 600;
  font-family: var(--n-font-body);
  cursor: pointer;
}

/* ===== Sections ===== */
.n-section { padding: 88px 0; }
.n-section-header { max-width: 40rem; margin-bottom: 52px; }
.n-section-header p { color: var(--n-dusk); margin-top: 14px; font-size: 1.05rem; }
.n-section-alt { background: var(--n-paper-alt); }

/* ===== Hours of the day (use cases) ===== */
.n-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.n-hour {
  background: var(--n-surface);
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  padding: 26px 22px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.n-hour:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 122, 31, 0.35);
  box-shadow: 0 12px 32px rgba(23, 27, 38, 0.08);
}
.n-hour-time { font-family: var(--n-font-display); font-size: 1.5rem; color: var(--n-lamplight); font-variant-numeric: tabular-nums; }
.n-hour-name { font-weight: 600; margin: 10px 0 8px; font-size: 1rem; }
.n-hour p { color: var(--n-dusk); font-size: 0.9rem; line-height: 1.55; }

/* ===== Memory section ===== */
.n-memory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.n-memory-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.n-chip {
  font-size: 0.83rem;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--n-surface);
  border: 1px solid var(--n-line);
  color: var(--n-dusk);
}
.n-chip strong { color: var(--n-lamplight); font-weight: 600; }
.n-memory-reply {
  background: var(--n-lamplight-soft);
  border: 1px solid rgba(201, 122, 31, 0.18);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  padding: 16px 18px;
  font-size: 0.95rem;
  max-width: 30rem;
}
.n-memory-reply-label { font-size: 0.75rem; color: var(--n-lamplight); margin-bottom: 8px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== Steps ===== */
.n-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.n-step { border-top: 2px solid var(--n-line); padding-top: 22px; }
.n-step-k { font-family: var(--n-font-display); color: var(--n-lamplight); font-size: 1.1rem; }
.n-step h3 { font-size: 1.05rem; margin: 10px 0 8px; font-weight: 600; }
.n-step p { color: var(--n-dusk); font-size: 0.92rem; }

/* ===== Pricing ===== */
.n-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.n-plan {
  background: var(--n-surface);
  border: 1px solid var(--n-line);
  border-radius: var(--n-radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.n-plan-featured {
  border-color: rgba(201, 122, 31, 0.4);
  background: linear-gradient(180deg, rgba(201, 122, 31, 0.06), transparent 40%), var(--n-surface);
  position: relative;
  box-shadow: 0 16px 40px rgba(23, 27, 38, 0.08);
}
.n-plan-tag {
  position: absolute;
  top: -12px; left: 26px;
  background: var(--n-lamplight);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.n-plan-name { font-weight: 600; font-size: 1.05rem; }
.n-plan-price { font-family: var(--n-font-display); font-size: 2.2rem; margin: 14px 0 2px; color: var(--n-ink); }
.n-plan-price small { font-size: 0.95rem; color: var(--n-dusk); font-family: var(--n-font-body); }
.n-plan-annual { font-size: 0.82rem; color: var(--n-leaf); margin-bottom: 18px; }
.n-plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.n-plan li { padding: 7px 0; color: var(--n-dusk); font-size: 0.92rem; }
.n-plan li::before { content: '·  '; color: var(--n-lamplight); font-weight: 700; }
.n-plan .n-btn { text-align: center; }

/* ===== Honesty strip ===== */
.n-honest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.n-honest-item { border-left: 2px solid var(--n-lamplight); padding-left: 18px; }
.n-honest-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.n-honest-item p { color: var(--n-dusk); font-size: 0.9rem; }
.n-honest-item a { color: var(--n-leaf); }

/* ===== Final CTA ===== */
.n-final {
  text-align: center;
  padding: 110px 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(201, 122, 31, 0.08), transparent 70%),
    var(--n-paper-alt);
}
.n-final p { color: var(--n-dusk); margin: 18px auto 34px; max-width: 30rem; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .n-hero-grid, .n-memory-grid { grid-template-columns: 1fr; gap: 40px; }
  .n-hours, .n-pricing, .n-honest, .n-steps { grid-template-columns: 1fr 1fr; }
  .n-hero { padding: 64px 0 56px; }
}
@media (max-width: 600px) {
  .n-hours, .n-pricing, .n-honest, .n-steps { grid-template-columns: 1fr; }
  .n-section { padding: 60px 0; }
  .n-chat-log { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after {
    animation: none !important;
    transition: none !important;
  }
  .n-msg { opacity: 1; transform: none; }
}
