:root {
  --nm-ground: #0a0a0a;
  --nm-panel: #111111;
  --nm-panel-alt: #161616;
  --nm-border: #262626;
  --nm-input-border: #333333;
  --nm-text: #f5f5f5;
  --nm-secondary: #a1a1a1;
  --nm-muted: #8a8a8a;
  --nm-primary-bg: #ebebeb;
  --nm-primary-fg: #171717;
  --nm-secondary-bg: #262626;
  --nm-protein: #8ec5ff;
  --nm-carbs: #f2a93b;
  --nm-fat: #a66bf0;
  --nm-bar-track: #2a2a2a;
  --nm-accent: #c8f169;
  --nm-error: #ff8a80;
  --nm-mobile-link: #c8c8c8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nm-ground);
  color: var(--nm-text);
  font-family: "Geist", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--nm-secondary);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 2px;
}

input::placeholder {
  color: var(--nm-muted);
}

summary {
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.nm-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nm-ground);
  color: var(--nm-text);
}

.nm-shell > main {
  flex: 1 0 auto;
  width: 100%;
}

.nm-mono {
  font-family: "Geist Mono", monospace;
}

/* Header */
.nm-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.nm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--nm-text);
  font-weight: 500;
  font-size: 15px;
}

.nm-brand:hover {
  color: var(--nm-text);
}

.nm-brand b {
  font-weight: 700;
}

/* Centre nav on the page width (not between logo and CTA). */
.nm-nav-center {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nm-nav-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.nm-nav-link[aria-current="page"] {
  color: var(--nm-text);
}

.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.nm-btn-primary {
  background: var(--nm-primary-bg);
  color: var(--nm-primary-fg);
}

.nm-btn-primary:hover {
  color: var(--nm-primary-fg);
}

.nm-btn-secondary {
  background: var(--nm-secondary-bg);
  color: var(--nm-text);
}

.nm-btn-secondary:hover {
  color: var(--nm-text);
}

.nm-nav-mobile {
  display: none;
}

.nm-nav-mobile .ico-close {
  display: none;
}

.nm-nav-mobile[open] .ico-open {
  display: none;
}

.nm-nav-mobile[open] .ico-close {
  display: block;
}

.nm-menu-toggle {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nm-text);
}

.nm-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 10;
  padding: 0 16px 20px;
  border-top: 1px solid var(--nm-border);
  border-bottom: 1px solid var(--nm-border);
  background: var(--nm-ground);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.nm-mobile-link {
  box-sizing: content-box; /* 56px content + 1px border = 57px, matching the design */
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  border-bottom: 1px solid var(--nm-border);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--nm-mobile-link);
}

.nm-mobile-link[aria-current="page"] {
  color: var(--nm-text);
}

.nm-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 16px;
  border-radius: 8px;
  background: var(--nm-primary-bg);
  color: var(--nm-primary-fg);
  font-size: 15px;
  font-weight: 500;
}

.nm-mobile-cta:hover {
  color: var(--nm-primary-fg);
}

@media (max-width: 640px) {
  .nm-desktop-only {
    display: none !important;
  }

  .nm-nav-mobile {
    display: block;
  }
}

/* Footer */
.nm-footer {
  border-top: 1px solid var(--nm-border);
  padding: 56px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nm-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nm-footer nav a {
  padding: 12px 10px;
}

.nm-footer-copy {
  color: var(--nm-muted);
}

/* Forms */
.nm-input {
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--nm-input-border);
  border-radius: 8px;
  background: var(--nm-ground);
  color: var(--nm-text);
  font-family: inherit;
  font-size: 14px;
}

.nm-input[aria-invalid="true"] {
  border-color: var(--nm-error);
}

.nm-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nm-form-error {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--nm-error);
}

.nm-form-success {
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--nm-text);
}

.nm-card {
  border: 1px solid var(--nm-border);
  border-radius: 12px;
  background: var(--nm-panel);
  padding: 24px;
}

.nm-card-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.nm-card-support {
  margin: 2px 0 16px;
  color: var(--nm-secondary);
}

/* Content columns */
.nm-col {
  max-width: 672px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.nm-col-calc {
  max-width: 864px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Post row */
.nm-post-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--nm-border);
}

.nm-post-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: 20px 0;
  border-top: 1px solid var(--nm-border);
  color: var(--nm-text);
}

.nm-post-row:hover {
  color: var(--nm-text);
}

.nm-post-meta {
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--nm-secondary);
}

.nm-post-body {
  flex: 1 1 320px;
}

.nm-post-title {
  display: block;
  font-weight: 500;
}

.nm-post-excerpt {
  display: block;
  margin-top: 2px;
  color: var(--nm-secondary);
}

/* Segmented / chips */
.nm-seg {
  display: flex;
  gap: 8px;
}

.nm-seg-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: var(--nm-secondary-bg);
  color: var(--nm-text);
}

.nm-seg-btn[aria-pressed="true"],
.nm-chip[aria-current="true"] {
  background: var(--nm-primary-bg);
  color: var(--nm-primary-fg);
}

.nm-chip {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: var(--nm-secondary-bg);
  color: var(--nm-text);
}

.nm-chip:hover {
  color: var(--nm-text);
}

.nm-chip[aria-current="true"]:hover {
  color: var(--nm-primary-fg);
}

.nm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Field labels in calculator */
.nm-field-label {
  display: block;
  font-size: 14px;
  color: var(--nm-secondary);
  margin-bottom: 8px;
}

.nm-field-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--nm-input-border);
  border-radius: 8px;
  background: var(--nm-ground);
  color: var(--nm-text);
  font-family: "Geist Mono", monospace;
  font-size: 14px;
}

.nm-field-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--nm-input-border);
  border-radius: 8px;
  background: var(--nm-ground);
  color: var(--nm-text);
  font-family: inherit;
  font-size: 14px;
}

.nm-hidden {
  display: none !important;
}

.nm-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Article body (rendered Markdown) */
.nm-article {
  font-size: 17px;
  line-height: 28px;
  color: #d4d4d4;
}

.nm-article > :first-child {
  margin-top: 0;
}

.nm-article > :last-child {
  margin-bottom: 0;
}

.nm-article p {
  margin: 0 0 20px;
}

.nm-article h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--nm-text);
}

.nm-article h3 {
  margin: 32px 0 10px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--nm-text);
}

.nm-article a {
  color: var(--nm-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nm-article a:hover {
  color: #ffffff;
}

.nm-article ul,
.nm-article ol {
  margin: 0 0 20px;
  padding-left: 1.25em;
}

.nm-article li {
  margin: 0 0 8px;
}

.nm-article li:last-child {
  margin-bottom: 0;
}

.nm-article img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid var(--nm-border);
  border-radius: 12px;
}

.nm-article code {
  font-family: "Geist Mono", monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--nm-panel-alt);
  color: var(--nm-text);
}

.nm-article pre {
  margin: 0 0 20px;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--nm-border);
  border-radius: 12px;
  background: var(--nm-panel);
}

.nm-article pre code {
  padding: 0;
  background: transparent;
  font-size: 14px;
  line-height: 22px;
}

.nm-article .nm-pullquote {
  margin: 32px 0;
  padding: 0;
  border: none;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--nm-text);
}

.nm-article .nm-pullquote p {
  margin: 0;
}

.nm-article .nm-callout {
  margin: 32px 0;
  border: 1px solid var(--nm-border);
  border-radius: 12px;
  background: var(--nm-panel);
  padding: 20px 24px;
}

.nm-article .nm-callout-title {
  font-size: 13px;
  line-height: 20px;
  color: var(--nm-secondary);
}

.nm-article .nm-callout-title + .nm-callout-body {
  margin-top: 12px;
}

.nm-article .nm-callout-body > :first-child {
  margin-top: 0;
}

.nm-article .nm-callout-body > :last-child {
  margin-bottom: 0;
}

.nm-article .nm-callout-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
  color: var(--nm-text);
}

.nm-article .nm-callout-body li {
  display: flex;
  gap: 12px;
  margin: 0;
}

.nm-article .nm-callout-body li > strong:first-child {
  flex: 0 0 72px;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--nm-protein);
}

.nm-results-blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.nm-link-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--nm-secondary);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nm-link-btn:hover {
  color: #ffffff;
}

/* Calculator redesign */
.nm-calc {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.nm-calc-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.nm-calc-title {
  margin: 0;
  font-size: 48px;
  line-height: 52px;
  font-weight: 600;
  letter-spacing: -1.5px;
}

.nm-calc-lede {
  margin: 0;
  max-width: 460px;
  font-size: 20px;
  line-height: 30px;
  color: var(--nm-secondary);
}

.nm-calc-checks {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 15px;
}

.nm-calc-check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--nm-mobile-link);
}

.nm-calc-check svg {
  flex: none;
  color: var(--nm-primary-bg);
}

.nm-calc-alert {
  padding: 12px 16px;
  border: 1px solid #5c2b2b;
  border-radius: 8px;
  background: #1a1010;
  color: var(--nm-error);
  font-size: 14px;
  line-height: 20px;
}

.nm-calc-form {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--nm-border);
  border-radius: 16px;
  background: var(--nm-panel);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nm-calc-section {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.nm-calc-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.nm-calc-section-title {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--nm-text);
}

.nm-calc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nm-calc-units {
  margin: 0;
}

.nm-calc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nm-calc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nm-field-input-lg {
  height: 48px;
  padding: 0 48px 0 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
}

.nm-field-affix {
  position: relative;
}

.nm-field-suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--nm-muted);
  pointer-events: none;
}

.nm-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nm-radio-option {
  position: relative;
  flex: 1;
  min-width: 0;
}

.nm-radio-seg,
.nm-radio-pill {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--nm-border);
  background: var(--nm-ground);
  box-sizing: border-box;
}

.nm-radio-seg {
  height: 48px;
  border-radius: 10px;
}

.nm-radio-pill {
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
}

.nm-radio-seg-label,
.nm-radio-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--nm-secondary);
  cursor: pointer;
}

.nm-radio-pill-label {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  height: auto;
}

.nm-radio:checked + .nm-radio-seg-label,
.nm-radio:checked + .nm-radio-pill-label {
  background: var(--nm-primary-bg);
  color: var(--nm-primary-fg);
}

.nm-radio:focus-visible + .nm-radio-seg-label,
.nm-radio:focus-visible + .nm-radio-pill-label,
.nm-radio:focus-visible + .nm-radio-card {
  outline: 2px solid var(--nm-text);
  outline-offset: 2px;
}

.nm-radio-cards {
  display: grid;
  gap: 10px;
}

.nm-radio-cards-2 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.nm-radio-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nm-radio-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--nm-border);
  border-radius: 12px;
  background: var(--nm-ground);
  color: var(--nm-text);
  cursor: pointer;
  box-sizing: border-box;
}

.nm-radio-card:hover {
  border-color: #4a4a4a;
}

.nm-radio-card-center {
  align-items: center;
  padding: 14px 12px;
  text-align: center;
}

.nm-radio:checked + .nm-radio-card {
  border-color: var(--nm-primary-bg);
  background: var(--nm-panel-alt);
}

.nm-radio-card-title {
  font-weight: 500;
  font-size: 15px;
}

.nm-radio-card-desc {
  font-size: 13px;
  line-height: 18px;
  color: var(--nm-secondary);
}

.nm-radio-card-meta {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--nm-secondary);
}

.nm-calc-submit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nm-calc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--nm-primary-bg);
  color: var(--nm-primary-fg);
  font-weight: 600;
  font-size: 16px;
}

.nm-calc-cta:hover {
  filter: brightness(1.06);
  color: var(--nm-primary-fg);
}

.nm-calc-disclaimer {
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--nm-muted);
}

@media (max-width: 640px) {
  .nm-calc-title {
    font-size: 34px;
    line-height: 40px;
    letter-spacing: -1px;
  }

  .nm-calc-grid-2,
  .nm-radio-cards-3 {
    grid-template-columns: 1fr;
  }

  .nm-calc-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nm-calc-grid-3 > :last-child {
    grid-column: 1 / -1;
  }
}

/* Results redesign */
.nm-results-noscript {
  max-width: 880px;
  margin: 72px auto;
  padding: 0 24px;
  color: var(--nm-secondary);
}

.nm-results-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.nm-results-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nm-results-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 14px;
  color: var(--nm-secondary);
}

.nm-results-back:hover {
  color: #ffffff;
}

.nm-results-title {
  margin: 0;
  font-size: 40px;
  line-height: 46px;
  font-weight: 600;
  letter-spacing: -1.2px;
  outline: none;
}

.nm-results-chips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nm-results-chip {
  padding: 4px 12px;
  border: 1px solid var(--nm-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--nm-mobile-link);
}

.nm-results-card {
  border: 1px solid var(--nm-border);
  border-radius: 20px;
  background: var(--nm-panel);
  overflow: hidden;
}

.nm-results-card-top {
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
  align-items: end;
}

.nm-results-label {
  margin: 0;
  font-size: 14px;
  color: var(--nm-secondary);
}

.nm-results-kcal-row {
  margin: 6px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.nm-results-kcal {
  font-size: 80px;
  line-height: 80px;
  font-weight: 600;
  letter-spacing: -3px;
  color: var(--nm-primary-bg);
}

.nm-results-kcal-unit {
  font-size: 18px;
  color: var(--nm-secondary);
}

.nm-results-goal-note {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--nm-secondary);
}

.nm-results-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nm-results-split-bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  gap: 3px;
}

.nm-results-split-seg {
  display: block;
  height: 100%;
  min-width: 0;
}

.nm-results-split-protein { background: var(--nm-protein); }
.nm-results-split-carbs { background: var(--nm-carbs); }
.nm-results-split-fat { background: var(--nm-fat); }

.nm-results-split-labels {
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  color: var(--nm-secondary);
}

.nm-results-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--nm-border);
}

.nm-results-tile {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--nm-border);
}

.nm-results-tile:last-child {
  border-right: 0;
}

.nm-results-tile-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--nm-mobile-link);
}

.nm-results-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
}

.nm-results-dot-protein { background: var(--nm-protein); }
.nm-results-dot-carbs { background: var(--nm-carbs); }
.nm-results-dot-fat { background: var(--nm-fat); }

.nm-results-tile-g {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.8px;
}

.nm-results-tile-sub {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--nm-muted);
}

.nm-results-strip {
  padding: 18px 32px;
  border-top: 1px solid var(--nm-border);
  background: #0e0e0e;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: 14px;
  color: var(--nm-secondary);
}

.nm-results-strip-item .nm-mono {
  margin-left: 8px;
  color: var(--nm-text);
}

.nm-results-how-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.nm-results-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nm-results-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--nm-border);
}

.nm-results-step:last-child {
  border-bottom: 1px solid var(--nm-border);
}

.nm-results-step-n {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--nm-muted);
  padding-top: 2px;
}

.nm-results-step-title {
  margin: 0 0 4px;
  font-weight: 500;
}

.nm-results-step-copy {
  margin: 0;
  color: var(--nm-secondary);
}

.nm-results-step-copy b {
  color: var(--nm-text);
  font-weight: 500;
}

.nm-results-updates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--nm-border);
  border-radius: 16px;
  background: var(--nm-panel);
}

.nm-results-updates-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nm-results-updates-title {
  font-weight: 500;
}

.nm-results-updates-support {
  font-size: 14px;
  color: var(--nm-secondary);
}

.nm-results-updates-btn {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--nm-input-border);
  border-radius: 10px;
  background: transparent;
  color: var(--nm-text);
  font-size: 15px;
  font-weight: 500;
}

.nm-results-updates-btn:hover {
  border-color: #4a4a4a;
  color: #ffffff;
}

.nm-results-confirmation {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  outline: none;
}

.nm-results-confirmation svg {
  color: var(--nm-primary-bg);
  flex: none;
}

.nm-results-disclaimer {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--nm-muted);
}

@media (max-width: 640px) {
  .nm-results-title {
    font-size: 30px;
    line-height: 36px;
  }

  .nm-results-kcal {
    font-size: 56px;
    line-height: 56px;
    letter-spacing: -2px;
  }

  .nm-results-tile {
    border-right: 0;
    border-bottom: 1px solid var(--nm-border);
  }

  .nm-results-tile:last-child {
    border-bottom: 0;
  }
}

/* Email popup */
.nm-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 10, 10, 0.55);
}

.nm-popup-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  background: var(--nm-panel);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nm-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--nm-secondary);
}

.nm-popup-close:hover {
  color: var(--nm-text);
  background: var(--nm-secondary-bg);
}

.nm-popup-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nm-popup-heading {
  margin: 0;
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nm-popup-support {
  margin: 0;
  color: var(--nm-secondary);
}

.nm-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.nm-popup-input {
  height: 52px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--nm-input-border);
  border-radius: 12px;
  background: var(--nm-ground);
  color: var(--nm-text);
  font: inherit;
  font-size: 16px;
}

.nm-popup-input[aria-invalid="true"] {
  border-color: var(--nm-error);
}

.nm-popup-submit {
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--nm-primary-bg);
  color: var(--nm-primary-fg);
  font-size: 16px;
  font-weight: 600;
}

.nm-popup-submit:hover {
  filter: brightness(1.06);
  color: var(--nm-primary-fg);
}

.nm-popup-skip {
  align-self: center;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--nm-secondary);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nm-popup-skip:hover {
  color: #ffffff;
}

.nm-popup-fineprint {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--nm-border);
  text-align: center;
  font-size: 13px;
  line-height: 20px;
  color: var(--nm-muted);
}

@media (max-width: 480px) {
  .nm-popup-dialog {
    padding: 28px 20px 24px;
  }

  .nm-popup-heading {
    font-size: 24px;
    line-height: 30px;
  }
}
