/* Landing page: Northline, invented release planning software. Warm
   off-white, ultramarine for action, peach for warmth, Bahnschrift for
   display over Segoe UI. Product screens are drawn in CSS as rounded
   app windows. Motion is small, purposeful and can be paused. */

.nl-page {
  --nl-night-2: #16163a;
  --nl-blue-text: #3b37d6;
  --nl-blue-dark-text: #2c28b0;
  --nl-red-text: #b3261e;
  --nl-board: #faf9f6;
  --nl-board-col: #f1eee7;
  --nl-on-fill: #16163a;
  --nl-ground: #f8f6f1;
  --nl-paper: #ffffff;
  --nl-ink: #15152b;
  --nl-muted: #56576b;
  --nl-line: #e4e0d6;
  --nl-blue: #3b37d6;
  --nl-blue-dark: #2c28b0;
  --nl-blue-pale: #ecebfd;
  --nl-navy: #16163a;
  --nl-peach: #ffc4a3;
  --nl-peach-pale: #ffeadf;
  --nl-green: #1b7f54;
  --nl-amber: #e59c2f;
  --nl-red: #b3261e;
  --nl-display: Bahnschrift, "DIN Alternate", "Segoe UI", sans-serif;
  --nl-body: "Segoe UI", system-ui, -apple-system, sans-serif;

  background: var(--nl-ground);
  color: var(--nl-ink);
  font-family: var(--nl-body);
  font-size: 1.0625rem;
}

/* Dark mode, the default: Northline after hours. Ink-indigo ground,
   pale type, the blue lifted for text and kept for buttons (PRD section 13.10). Only this template's own tokens
   change; screen only, so print always uses the light palette. */
@media screen {
  :root[data-theme="dark"] .nl-page {
    --nl-night-2: #0a0a18;
    --nl-blue-text: #a3a0ff;
    --nl-blue-dark-text: #bcbaff;
    --nl-red-text: #ff8a80;
    --nl-board: #16162c;
    --nl-board-col: #1e1e38;
    --nl-ground: #0f0f1d;
    --nl-paper: #17172b;
    --nl-ink: #ecebf7;
    --nl-muted: #aaabc2;
    --nl-line: #2c2c47;
    --nl-blue-pale: #24234d;
    --nl-peach-pale: #3a261d;
    color-scheme: dark;
  }
}

.nl-theme-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.nl-theme-btn:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

html:has(.nl-page) {
  scroll-behavior: smooth;
}

.nl-page [hidden] {
  display: none !important;
}

:where(.nl-page) p,
:where(.nl-page) h1,
:where(.nl-page) h2,
:where(.nl-page) h3,
:where(.nl-page) ul,
:where(.nl-page) ol,
:where(.nl-page) dl,
:where(.nl-page) dd,
:where(.nl-page) figure,
:where(.nl-page) blockquote {
  margin: 0;
}

:where(.nl-page) li {
  margin: 0;
}

:where(.nl-page) ul,
:where(.nl-page) ol {
  padding: 0;
  list-style: none;
}

:where(.nl-page) h1,
:where(.nl-page) h2,
:where(.nl-page) h3 {
  color: inherit;
}

.nl-page :focus-visible {
  outline: 3px solid var(--nl-blue);
  outline-offset: 3px;
}

.nl-page section[id] {
  scroll-margin-top: 80px;
}

.nl-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nl-kicker {
  margin-bottom: var(--space-3);
  color: var(--nl-blue-text);
  font-family: var(--nl-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nl-title {
  margin-bottom: var(--space-4);
  font-family: var(--nl-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.nl-head {
  max-width: 700px;
  margin-bottom: var(--space-10);
}

.nl-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.nl-sub {
  color: var(--nl-muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

/* ---------- Buttons ---------- */

.nl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 50px;
  padding: 0 var(--space-6);
  border: 2px solid transparent;
  border-radius: 14px;
  font-family: var(--nl-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nl-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.nl-btn:active {
  transform: translateY(1px);
}

.nl-btn--primary {
  background: var(--nl-blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(59, 55, 214, 0.28);
}

.nl-btn--primary:hover {
  background: var(--nl-blue-dark);
  color: #fff;
}

.nl-btn--peach {
  background: var(--nl-peach);
  color: var(--nl-on-fill);
}

.nl-btn--peach:hover {
  background: #ffb28a;
  color: var(--nl-navy);
}

.nl-btn--line {
  border-color: var(--nl-blue);
  background: transparent;
  color: var(--nl-blue-text);
}

.nl-btn--line:hover {
  background: var(--nl-blue-pale);
  color: var(--nl-blue-dark-text);
}

.nl-btn--block {
  width: 100%;
}

.nl-btn.is-busy {
  cursor: progress;
}

.nl-btn.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: nl-spin 0.8s linear infinite;
}

@keyframes nl-spin {
  to { transform: rotate(360deg); }
}

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

.nl-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nl-ground);
  box-shadow: 0 1px 0 var(--nl-line);
}

.nl-header-in {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  max-width: 1180px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nl-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--nl-ink);
  font-family: var(--nl-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.nl-logo:hover {
  color: var(--nl-ink);
  text-decoration: none;
}

.nl-logo-mark {
  width: 32px;
  height: 32px;
}

.nl-logo-mark rect {
  fill: var(--nl-blue);
}

.nl-logo-mark path {
  fill: var(--nl-peach);
}

.nl-nav {
  margin-left: auto;
}

.nl-nav ul {
  display: flex;
  gap: var(--space-1);
}

.nl-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  color: var(--nl-ink);
  font-weight: 600;
  text-decoration: none;
}

.nl-nav a:hover {
  background: var(--nl-blue-pale);
  color: var(--nl-blue-dark-text);
  text-decoration: none;
}

.nl-menu-btn {
  display: none;
}

.nl-header-cta {
  min-height: 44px;
  padding: 0 var(--space-5);
  font-size: 1rem;
}

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

.nl-hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  overflow: hidden;
}

.nl-hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -120px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--nl-peach-pale) 0%, rgba(255, 234, 223, 0) 70%);
  pointer-events: none;
}

.nl-hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: var(--space-12);
}

.nl-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--nl-line);
  border-radius: 999px;
  background: var(--nl-paper);
  font-size: 0.95rem;
  font-weight: 600;
}

.nl-badge-new {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--nl-peach);
  color: var(--nl-on-fill);
  font-size: 0.85rem;
}

.nl-hero-title {
  margin-bottom: var(--space-5);
  font-family: var(--nl-display);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.nl-lede {
  max-width: 33em;
  margin-bottom: var(--space-8);
  color: var(--nl-muted);
  font-size: 1.22rem;
  line-height: 1.55;
}

.nl-signup {
  max-width: 520px;
}

.nl-signup-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 600;
}

.nl-signup-row {
  display: flex;
  gap: var(--space-2);
  padding: 6px;
  border: 2px solid var(--nl-muted);
  border-radius: 18px;
  background: var(--nl-paper);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nl-signup-row:focus-within {
  border-color: var(--nl-blue);
  box-shadow: 0 0 0 4px var(--nl-blue-pale);
}

.nl-signup-row:has([aria-invalid="true"]) {
  border-color: var(--nl-red);
}

.nl-page .nl-input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 0 var(--space-3);
  border: 0;
  background: transparent;
  color: var(--nl-ink);
  font: inherit;
  font-size: 1.05rem;
}

.nl-page .nl-input:focus-visible {
  outline: none;
}

.nl-page .nl-input::placeholder {
  color: #7a7b8c;
}

.nl-note {
  margin-top: var(--space-3);
  color: var(--nl-muted);
  font-size: 0.95rem;
}

.nl-error {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  color: var(--nl-red-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.nl-error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nl-red);
  color: #fff;
  font-size: 12px;
}

.nl-status:not(:empty) {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: 14px;
  background: #e5f4ec;
  color: #134a31;
  line-height: 1.45;
}

.nl-status:not(:empty)::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--nl-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* The drawn product window */

.nl-hero-visual {
  position: relative;
}

.nl-app {
  position: relative;
  border-radius: 20px;
  background: var(--nl-paper);
  box-shadow: 0 1px 0 var(--nl-line), 0 30px 60px rgba(22, 22, 58, 0.16);
  overflow: hidden;
}

.nl-app-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 14px 18px;
  border-bottom: 1px solid var(--nl-line);
}

.nl-app-dots {
  display: flex;
  gap: 6px;
}

.nl-app-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e8e3d8;
}

.nl-app-title {
  font-family: var(--nl-display);
  font-weight: 600;
}

.nl-app-progress {
  width: 120px;
  height: 8px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--nl-blue-pale);
  overflow: hidden;
}

.nl-app-fill {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 999px;
  background: var(--nl-blue);
  animation: nl-fill 6s ease-in-out infinite;
}

@keyframes nl-fill {
  0%, 40% { width: 64%; }
  55%, 100% { width: 76%; }
}

.nl-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--nl-board);
}

.nl-col {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  padding: 10px;
  border-radius: 12px;
  background: var(--nl-board-col);
}

.nl-col-title {
  margin-bottom: 2px;
  color: var(--nl-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nl-card {
  position: relative;
  display: block;
  height: 54px;
  border-radius: 9px;
  background:
    linear-gradient(#e2dfd6, #e2dfd6) 12px 26px / 60% 6px no-repeat,
    linear-gradient(#ecE9E2, #ece9e2) 12px 38px / 40% 6px no-repeat,
    var(--nl-paper);
  box-shadow: 0 1px 0 var(--nl-line), 0 3px 8px rgba(22, 22, 58, 0.06);
}

.nl-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: var(--tag, var(--nl-blue));
}

.nl-card--short {
  height: 44px;
}

.nl-card--ghost {
  border: 2px dashed #d9d4c8;
  background: transparent;
  box-shadow: none;
}

.nl-card--ghost::before {
  display: none;
}

.nl-card--done::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nl-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.4L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.nl-tag-a { --tag: var(--nl-blue); }
.nl-tag-b { --tag: var(--nl-amber); }
.nl-tag-c { --tag: #e0708a; }

/* The card that travels from "In review" to "Ready". It sits over the
   ghost slot in column two, then slides one column right. */
.nl-mover {
  position: absolute;
  left: calc(16px + (100% - 32px - 36px) / 4 + 12px + 10px);
  top: calc(16px + 10px + 20px + 10px + 54px + 10px);
  width: calc((100% - 32px - 36px) / 4 - 20px);
  box-shadow: 0 12px 24px rgba(22, 22, 58, 0.18);
  animation: nl-move 6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.nl-avatar {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nl-peach);
  box-shadow: 0 0 0 2px var(--nl-paper);
}

@keyframes nl-move {
  0%, 30% { transform: translate(0, 0) rotate(0); }
  38% { transform: translate(8px, -10px) rotate(-3deg); }
  52% { transform: translate(calc(100% + 32px), -10px) rotate(2deg); }
  60%, 88% { transform: translate(calc(100% + 32px), 0) rotate(0); }
  100% { transform: translate(0, 0) rotate(0); }
}

.nl-toast-mock {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--nl-night-2);
  color: #fff;
  font-size: 0.92rem;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: nl-toast 6s ease infinite;
}

.nl-toast-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--nl-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.4 2.4L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

@keyframes nl-toast {
  0%, 55% { opacity: 0; translate: 0 12px; }
  62%, 86% { opacity: 1; translate: 0 0; }
  94%, 100% { opacity: 0; translate: 0 12px; }
}

.nl-page.is-still .nl-mover,
.nl-page.is-still .nl-toast-mock,
.nl-page.is-still .nl-app-fill {
  animation-play-state: paused;
}

.nl-motion-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-3);
  padding: 0 var(--space-4) 0 var(--space-3);
  border: 1px solid var(--nl-line);
  border-radius: 999px;
  background: var(--nl-paper);
  color: var(--nl-ink);
  font-family: var(--nl-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.nl-motion-btn::before {
  content: "";
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) 1px 0 / 4px 12px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 0 / 4px 12px no-repeat;
}

.nl-page.is-still .nl-motion-btn::before {
  background: currentColor;
  clip-path: polygon(10% 0, 100% 50%, 10% 100%);
}

.nl-motion-btn:hover {
  border-color: var(--nl-blue);
  color: var(--nl-blue-dark-text);
}

/* ---------- Logos ---------- */

.nl-logos {
  padding: var(--space-8) 0 var(--space-12);
}

.nl-logos-title {
  margin-bottom: var(--space-5);
  color: var(--nl-muted);
  font-family: var(--nl-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.nl-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-12);
}

.nl-wordmark {
  color: var(--nl-muted);
  font-size: 1.5rem;
  line-height: 1;
}

.nl-wm-1 { font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.nl-wm-2 { font-family: var(--nl-body); font-weight: 800; letter-spacing: -0.04em; }
.nl-wm-3 { font-family: var(--nl-display); font-weight: 300; letter-spacing: 0.3em; font-size: 1.2rem; }
.nl-wm-4 { font-family: "Palatino Linotype", Palatino, serif; }
.nl-wm-5 { font-family: Consolas, monospace; font-size: 1.25rem; font-weight: 700; }

/* ---------- Product ---------- */

.nl-product {
  padding: var(--space-16) 0;
  background: var(--nl-paper);
}

.nl-tabs {
  display: inline-flex;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
  padding: 6px;
  border-radius: 18px;
  background: var(--nl-ground);
  box-shadow: inset 0 0 0 1px var(--nl-line);
}

.nl-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--nl-muted);
  font-family: var(--nl-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nl-tab:hover {
  color: var(--nl-ink);
}

.nl-tab[aria-selected="true"] {
  background: var(--nl-paper);
  color: var(--nl-blue-text);
  box-shadow: 0 1px 0 var(--nl-line), 0 6px 14px rgba(22, 22, 58, 0.1);
}

.nl-tab-n {
  color: inherit;
  font-size: 0.85rem;
  opacity: 0.85;
}

.nl-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-12);
  border-radius: 20px;
  animation: nl-in var(--transition-slow) ease both;
}

@keyframes nl-in {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

.nl-panel-copy h3 {
  margin-bottom: var(--space-3);
  font-family: var(--nl-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.15;
}

.nl-panel-copy > p {
  margin-bottom: var(--space-5);
  color: var(--nl-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.nl-ticks {
  display: grid;
  gap: var(--space-3);
}

.nl-ticks li {
  position: relative;
  padding-left: 32px;
  line-height: 1.45;
}

.nl-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--nl-blue-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%233b37d6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.nl-mock {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 320px;
  padding: var(--space-8);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 196, 163, 0.5), transparent 50%),
    var(--nl-blue-pale);
}

.nl-mock > span {
  display: block;
}

.nl-gantt {
  height: 30px;
  border-radius: 8px;
  background: var(--nl-blue);
  box-shadow: 0 4px 10px rgba(22, 22, 58, 0.12);
}

.nl-g1 { width: 44%; }
.nl-g2 { width: 36%; margin-left: 30%; background: #6d69e6; }
.nl-g3 { width: 30%; margin-left: 52%; background: var(--nl-amber); }
.nl-g4 { width: 48%; margin-left: 18%; background: #6d69e6; }
.nl-g5 { width: 22%; margin-left: 64%; background: repeating-linear-gradient(135deg, var(--nl-amber) 0 8px, #f2c276 8px 16px); }

.nl-deadline {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 82%;
  width: 2px;
  background: var(--nl-red);
}

.nl-deadline b {
  position: absolute;
  top: -4px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--nl-red);
  color: #fff;
  font-size: 0.8rem;
  white-space: nowrap;
}

.nl-bubble {
  position: relative;
  display: grid !important;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  width: 78%;
  padding: 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--nl-paper);
  box-shadow: 0 4px 12px rgba(22, 22, 58, 0.08);
}

.nl-bubble--b {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  background: var(--nl-night-2);
}

.nl-bubble i {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nl-peach);
}

.nl-bubble--b i {
  background: #6d69e6;
}

.nl-bubble b,
.nl-note-row b {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #dcd8ee;
}

.nl-bubble--b b {
  background: #3d3d74;
}

.nl-short {
  width: 60%;
}

.nl-approve {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--nl-green);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.nl-mock--ship {
  gap: 10px;
}

.nl-note-head {
  margin-bottom: 6px;
  font-family: var(--nl-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.nl-note-row {
  display: grid !important;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--nl-paper);
}

.nl-note-row em {
  padding: 3px 0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.nl-pill-new { background: var(--nl-blue); color: #fff; }
.nl-pill-imp { background: var(--nl-peach); color: var(--nl-on-fill); }
.nl-pill-fix { background: #d9eee2; color: #134a31; }

.nl-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-16);
}

.nl-feature {
  padding: var(--space-6);
  border-radius: 18px;
  background: var(--nl-ground);
  box-shadow: inset 0 0 0 1px var(--nl-line);
}

.nl-feature:nth-child(2) { transition-delay: 80ms; }
.nl-feature:nth-child(3) { transition-delay: 160ms; }
.nl-feature:nth-child(4) { transition-delay: 240ms; }

.nl-icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  padding: 10px;
  border-radius: 12px;
  background: var(--nl-blue);
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nl-feature h3 {
  margin-bottom: var(--space-2);
  font-family: var(--nl-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.nl-feature p {
  color: var(--nl-muted);
  line-height: 1.55;
}

/* ---------- How it works ---------- */

.nl-how {
  padding: var(--space-16) 0;
  background:
    radial-gradient(ellipse 40% 60% at 90% 100%, rgba(255, 196, 163, 0.16), transparent 70%),
    var(--nl-navy);
  color: #fff;
}

.nl-kicker--light {
  color: var(--nl-peach);
}

.nl-how :focus-visible {
  outline-color: var(--nl-peach);
}

.nl-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-8);
  counter-reset: step;
}

.nl-steps::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 27px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 196, 163, 0.6) 0 8px, transparent 8px 16px);
}

.nl-step {
  position: relative;
  text-align: center;
}

.nl-step-n {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  border-radius: 18px;
  background: var(--nl-peach);
  color: var(--nl-on-fill);
  font-family: var(--nl-display);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--nl-navy);
}

.nl-step h3 {
  margin-bottom: var(--space-2);
  font-family: var(--nl-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.nl-step p {
  max-width: 22em;
  margin: 0 auto;
  color: #cfcfe6;
  line-height: 1.55;
}

.nl-step .nl-step-time {
  margin-top: var(--space-3);
  color: var(--nl-peach);
  font-weight: 600;
}

/* ---------- Customers ---------- */

.nl-customers {
  padding: var(--space-16) 0;
}

.nl-customers-in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-8) var(--space-12);
  align-items: center;
}

.nl-quote blockquote {
  margin: 0 0 var(--space-6);
  padding: 0;
  border: 0;
  background: none;
}

.nl-quote blockquote p {
  font-family: var(--nl-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.3;
}

.nl-quote blockquote p::before {
  content: "\201C";
  color: var(--nl-blue-text);
}

.nl-quote blockquote p::after {
  content: "\201D";
  color: var(--nl-blue-text);
}

.nl-quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.35;
}

.nl-quote figcaption span:last-child {
  color: var(--nl-muted);
}

.nl-quote figcaption strong {
  color: var(--nl-ink);
}

.nl-face {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--nl-peach);
  color: var(--nl-on-fill);
  font-family: var(--nl-display);
  font-weight: 700;
}

.nl-stats {
  display: grid;
  gap: var(--space-4);
}

.nl-stats div {
  display: flex;
  flex-direction: column-reverse;
  padding: var(--space-5) var(--space-6);
  border-radius: 18px;
  background: var(--nl-paper);
  box-shadow: inset 0 0 0 1px var(--nl-line);
}

.nl-stats dd {
  color: var(--nl-blue-text);
  font-family: var(--nl-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.nl-stats dt {
  margin-top: var(--space-1);
  color: var(--nl-muted);
}

.nl-footnote {
  grid-column: 1 / -1;
  color: var(--nl-muted);
  font-size: 0.92rem;
}

/* ---------- Pricing ---------- */

.nl-pricing {
  padding: var(--space-16) 0;
  background: var(--nl-paper);
}

.nl-billing {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding: 5px;
  border-radius: 14px;
  background: var(--nl-ground);
  box-shadow: inset 0 0 0 1px var(--nl-line);
}

.nl-billing-label {
  padding: 0 var(--space-3);
  color: var(--nl-muted);
  font-weight: 600;
}

.nl-bill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--nl-muted);
  font-family: var(--nl-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.nl-bill[aria-pressed="true"] {
  background: var(--nl-paper);
  color: var(--nl-ink);
  box-shadow: 0 1px 0 var(--nl-line), 0 4px 10px rgba(22, 22, 58, 0.08);
}

.nl-save {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--nl-peach);
  color: var(--nl-on-fill);
  font-size: 0.82rem;
}

.nl-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: center;
  gap: var(--space-6);
}

.nl-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-radius: 22px;
  background: var(--nl-ground);
  box-shadow: inset 0 0 0 1px var(--nl-line);
}

.nl-plan--pick {
  background: var(--nl-paper);
  box-shadow: inset 0 0 0 2px var(--nl-blue), 0 24px 48px rgba(59, 55, 214, 0.14);
}

.nl-plan-flag {
  position: absolute;
  top: -14px;
  left: var(--space-6);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--nl-blue);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.nl-plan h3 {
  font-family: var(--nl-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.nl-plan-for {
  min-height: 3em;
  margin: var(--space-1) 0 var(--space-5);
  color: var(--nl-muted);
  line-height: 1.45;
}

.nl-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.nl-amount {
  font-family: var(--nl-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.nl-per {
  color: var(--nl-muted);
}

.nl-billed {
  min-height: 1.5em;
  margin: var(--space-2) 0 var(--space-5);
  color: var(--nl-muted);
  font-size: 0.95rem;
}

.nl-plan .nl-ticks {
  margin-bottom: var(--space-6);
}

.nl-plan .nl-btn {
  margin-top: auto;
}

.nl-pricing-note {
  margin-top: var(--space-8);
  color: var(--nl-muted);
  text-align: center;
}

/* ---------- FAQ ---------- */

.nl-faq {
  padding: var(--space-16) 0;
}

.nl-faq-in {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
  gap: var(--space-8);
}

.nl-faq-list details {
  border-bottom: 1px solid var(--nl-line);
}

.nl-faq-list details:first-child {
  border-top: 1px solid var(--nl-line);
}

.nl-faq summary {
  position: relative;
  padding: var(--space-5) var(--space-10) var(--space-5) 0;
  font-family: var(--nl-display);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.nl-faq summary::-webkit-details-marker {
  display: none;
}

.nl-faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2.5px solid var(--nl-blue);
  border-bottom: 2.5px solid var(--nl-blue);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.nl-faq details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.nl-faq summary:hover {
  color: var(--nl-blue-text);
}

.nl-faq details p {
  max-width: 60ch;
  padding-bottom: var(--space-5);
  color: var(--nl-muted);
  line-height: 1.6;
}

/* ---------- Final call to action ---------- */

.nl-final {
  padding: var(--space-16) 0;
}

.nl-final-in {
  padding: var(--space-12) var(--space-8);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(255, 196, 163, 0.35), transparent 70%),
    var(--nl-blue);
  color: #fff;
  text-align: center;
}

.nl-final-title {
  margin-bottom: var(--space-3);
  font-family: var(--nl-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
}

.nl-final-sub {
  margin-bottom: var(--space-8);
  color: #e3e2ff;
  font-size: 1.15rem;
}

.nl-signup--final {
  margin: 0 auto;
  text-align: left;
}

.nl-signup--final .nl-signup-label,
.nl-signup--final .nl-note {
  color: #fff;
}

.nl-signup--final .nl-signup-row:focus-within {
  border-color: var(--nl-peach);
  box-shadow: 0 0 0 4px rgba(255, 196, 163, 0.45);
}

.nl-signup--final .nl-error {
  padding: var(--space-2) var(--space-3);
  border-radius: 10px;
  background: #fff;
}

.nl-final :focus-visible {
  outline-color: var(--nl-peach);
}

/* Inside the white field row the peach ring would vanish, so the
   button's ring is navy there. */
.nl-signup--final .nl-signup-row .nl-btn:focus-visible {
  outline-color: var(--nl-navy);
}

/* ---------- Footer ---------- */

.nl-footer {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--nl-line);
}

.nl-footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
}

.nl-footer-brand {
  font-family: var(--nl-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.nl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.nl-footer-links a {
  color: var(--nl-ink);
  font-weight: 600;
}

.nl-footer-small {
  width: 100%;
  color: var(--nl-muted);
  font-size: 0.92rem;
}

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

@media (max-width: 1080px) {
  .nl-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nl-hero-in,
  .nl-panel,
  .nl-customers-in {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-hero-visual {
    max-width: 640px;
  }

  .nl-faq-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .nl-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nl-header {
    position: static;
  }

  .nl-page section[id] {
    scroll-margin-top: 12px;
  }

  .nl-header-in {
    flex-wrap: wrap;
    gap: var(--space-3);
    min-height: 62px;
    padding: var(--space-2) var(--space-4);
  }

  .nl-menu-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 0 var(--space-4);
    border: 1px solid var(--nl-line);
    border-radius: 12px;
    background: var(--nl-paper);
    color: var(--nl-ink);
    font-family: var(--nl-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
  }

  .nl-menu-btn[aria-expanded="true"] {
    border-color: var(--nl-blue);
    color: var(--nl-blue-text);
  }

  .nl-nav {
    display: none;
    order: 5;
    width: 100%;
    margin: 0;
  }

  .nl-nav.is-open {
    display: block;
  }

  .nl-nav ul {
    flex-direction: column;
    padding: var(--space-2) 0 var(--space-3);
    border-top: 1px solid var(--nl-line);
  }

  .nl-nav a {
    padding: var(--space-3);
  }

  .nl-wrap {
    padding: 0 var(--space-4);
  }

  .nl-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-10);
  }

  .nl-steps::before {
    left: 27px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 196, 163, 0.6) 0 8px, transparent 8px 16px);
  }

  .nl-step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 var(--space-5);
    text-align: left;
  }

  .nl-step-n {
    grid-row: span 3;
    margin: 0;
  }

  .nl-step p {
    margin: 0;
  }

  .nl-plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nl-hero {
    padding: var(--space-10) 0 var(--space-8);
  }

  .nl-lede {
    font-size: 1.1rem;
  }

  .nl-signup-row {
    flex-direction: column;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nl-signup-row:focus-within {
    box-shadow: none;
  }

  .nl-page .nl-input {
    min-height: 52px;
    padding: 0 var(--space-4);
    border: 2px solid var(--nl-line);
    border-radius: 14px;
    background: var(--nl-paper);
  }

  .nl-page .nl-input:focus-visible {
    border-color: var(--nl-blue);
    outline: 3px solid var(--nl-blue);
    outline-offset: 1px;
  }

  .nl-page .nl-input[aria-invalid="true"] {
    border-color: var(--nl-red);
  }

  .nl-signup--final .nl-signup-row:focus-within {
    box-shadow: none;
  }

  .nl-page .nl-signup--final .nl-input:focus-visible {
    border-color: var(--nl-navy);
    outline-color: var(--nl-peach);
  }

  .nl-signup-row .nl-btn {
    width: 100%;
  }

  .nl-board {
    gap: 8px;
    padding: 10px;
  }

  .nl-col {
    min-height: 200px;
    padding: 6px;
    gap: 8px;
  }

  .nl-col-title {
    font-size: 0.68rem;
    letter-spacing: 0;
  }

  .nl-card {
    height: 44px;
  }

  .nl-card--short {
    height: 36px;
  }

  .nl-mover {
    left: calc(10px + (100% - 20px - 24px) / 4 + 8px + 6px);
    top: calc(10px + 6px + 16px + 8px + 44px + 8px);
    width: calc((100% - 20px - 24px) / 4 - 12px);
  }

  @keyframes nl-move {
    0%, 30% { transform: translate(0, 0) rotate(0); }
    38% { transform: translate(4px, -8px) rotate(-3deg); }
    52% { transform: translate(calc(100% + 20px), -8px) rotate(2deg); }
    60%, 88% { transform: translate(calc(100% + 20px), 0) rotate(0); }
    100% { transform: translate(0, 0) rotate(0); }
  }

  .nl-toast-mock {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .nl-app-progress {
    width: 70px;
  }

  .nl-logo-row {
    gap: var(--space-4) var(--space-6);
  }

  .nl-wordmark {
    font-size: 1.2rem;
  }

  .nl-product,
  .nl-how,
  .nl-customers,
  .nl-pricing,
  .nl-faq,
  .nl-final {
    padding: var(--space-12) 0;
  }

  .nl-tabs {
    display: flex;
  }

  .nl-tab {
    flex: 1;
    justify-content: center;
    padding: 0 var(--space-2);
  }

  .nl-mock {
    min-height: 240px;
    padding: var(--space-5);
  }

  .nl-features {
    grid-template-columns: minmax(0, 1fr);
    margin-top: var(--space-12);
  }

  .nl-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .nl-final-in {
    padding: var(--space-8) var(--space-4);
    border-radius: 20px;
  }

  .nl-billing {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nl-billing-label {
    width: 100%;
    padding: var(--space-1) 0;
  }
}

@media (max-width: 400px) {
  .nl-header-cta {
    padding: 0 var(--space-3);
    font-size: 0.95rem;
  }

  .nl-logo {
    font-size: 1.2rem;
  }

  .nl-logo-mark {
    width: 28px;
    height: 28px;
  }

  .nl-menu-btn {
    padding: 0 var(--space-3);
  }

  .nl-tab-n {
    display: none;
  }

  .nl-toast-mock {
    display: none;
  }
}

@media (max-width: 350px) {
  .nl-header-in {
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
  }

  .nl-logo-mark {
    display: none;
  }
}

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

  .nl-mover,
  .nl-toast-mock,
  .nl-app-fill,
  .nl-panel {
    animation: none !important;
  }

  .nl-toast-mock {
    opacity: 1;
  }

  .nl-motion-btn {
    display: none;
  }

  .nl-page .fade-in-up {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .nl-page .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
