/* Nofy landing page. Self-contained (no Tailwind build needed) and driven
 * by the Nofy brand palette from the logo kit:
 *   Navy #243950  Teal #43938D  Mint #86BCA3  Mist #EEF5F2
 * Teal is darkened to --teal-strong wherever white text sits on it, so
 * button labels clear WCAG AA. Dark mode follows the console's shared
 * `ens-theme` preference via the .dark class on <html>. */
:root {
  --navy: #243950;
  --navy-deep: #1a2a3c;
  --navy-ink: #122030;
  --teal: #43938d;
  --teal-strong: #347a75;
  --mint: #86bca3;
  --mist: #eef5f2;

  --bg: #ffffff;
  --bg-soft: var(--mist);
  --surface: #ffffff;
  --text: var(--navy);
  --text-muted: #56697c;
  --line: #d9e6e0;
  --accent-text: var(--teal-strong);
  --shadow: 0 1px 2px rgba(36, 57, 80, 0.06), 0 8px 24px -12px rgba(36, 57, 80, 0.18);

  --font-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.dark {
  --bg: #0f1a26;
  --bg-soft: #13212f;
  --surface: #182a3b;
  --text: #eef5f2;
  --text-muted: #a3b8b0;
  --line: #24384b;
  --accent-text: var(--mint);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.nf {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:where(.nf) a { color: inherit; text-decoration: none; }
.nf img { display: block; max-width: 100%; }
.nf h1, .nf h2, .nf h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }
.nf p { margin: 0; }
.nf :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.nf-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .nf-wrap { padding: 0 32px; } }

/* ---- Buttons ---- */
.nf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}
.nf-btn:hover { transform: translateY(-1px); }
.nf-btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.nf-btn-primary { background: var(--teal-strong); color: #fff; }
.nf-btn-primary:hover { background: #2c6a65; }
.nf-btn-light { background: var(--mist); color: var(--navy); }
.nf-btn-light:hover { background: #fff; }
.nf-btn-ghost { color: #fff; border-color: rgba(238, 245, 242, 0.3); }
.nf-btn-ghost:hover { background: rgba(238, 245, 242, 0.08); border-color: rgba(238, 245, 242, 0.5); }
.nf-link { color: rgba(238, 245, 242, 0.78); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; transition: color .2s; }
.nf-link:hover { color: #fff; }

/* ---- Header ---- */
.nf-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(36, 57, 80, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(238, 245, 242, 0.08);
}
.nf-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.nf-logo { display: flex; align-items: center; }
.nf-logo img { height: 42px; width: auto; }
.nf-nav { display: none; gap: 4px; }
.nf-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 860px) { .nf-nav { display: flex; } }
.nf-hide-sm { display: none; }
@media (min-width: 640px) { .nf-hide-sm { display: inline-flex; } }

/* ---- Hero ---- */
.nf-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(40rem 24rem at 8% -10%, rgba(67, 147, 141, 0.35), transparent 60%),
    radial-gradient(34rem 22rem at 100% 100%, rgba(134, 188, 163, 0.16), transparent 60%),
    var(--navy);
}
.nf-hero-mark {
  position: absolute; right: -60px; top: 40px; width: 420px; opacity: 0.05; pointer-events: none;
}
.nf-hero-grid { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 80px; }
.nf-hero-grid > * { min-width: 0; }
@media (min-width: 960px) { .nf-hero-grid { grid-template-columns: 1.05fr 1fr; padding-top: 96px; padding-bottom: 112px; } }
.nf-hero h1 { margin-top: 0; font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; line-height: 1.04; }
.nf-hero h1 .nf-mint { color: var(--mint); }
.nf .nf-lede { margin-top: 20px; max-width: 34rem; font-size: 18px; line-height: 1.65; color: rgba(238, 245, 242, 0.8); }
.nf-cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
/* Channel row: names the four channels and switches the code example */
.nf-channels { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(238, 245, 242, 0.12); max-width: 34rem; }
.nf-channels-label { font-size: 13px; color: rgba(238, 245, 242, 0.6); }
.nf-channels-list { display: flex; flex-wrap: wrap; margin-top: 12px; }
.nf-channel {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 0 10px; margin-right: 28px;
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  font: 500 15px/1.2 var(--font-display); color: rgba(238, 245, 242, 0.68);
  transition: color .2s ease, border-color .2s ease;
}
.nf-channel:last-child { margin-right: 0; }
.nf-channel svg { width: 20px; height: 20px; color: var(--mint); flex: none; }
.nf-channel:hover { color: #fff; }
.nf-channel[aria-pressed="true"] { color: #fff; border-bottom-color: var(--mint); }

/* Hero visual: code window + floating receipts */
.nf-visual { position: relative; padding: 0 0 36px; }
@media (min-width: 960px) { .nf-visual { padding: 76px 0 44px 24px; } }
.nf-code {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--navy-ink); border: 1px solid rgba(238, 245, 242, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}
.nf-code-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(238, 245, 242, 0.08); overflow-x: auto; }
.nf-code-bar .nf-endpoint { font-family: var(--font-mono); font-size: 12px; color: rgba(238, 245, 242, 0.55); white-space: nowrap; }
.nf-tabs { display: flex; gap: 4px; margin-left: auto; }
.nf-tab {
  font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 8px;
  background: transparent; border: 0; color: rgba(238, 245, 242, 0.55); cursor: pointer; transition: color .2s, background-color .2s;
}
.nf-tab:hover { color: #fff; }
.nf-tab[aria-selected="true"] { background: rgba(134, 188, 163, 0.16); color: var(--mint); }
.nf-code pre {
  margin: 0; padding: 20px 22px 26px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #dbe7e2;
}
.nf-code .k { color: var(--mint); }
.nf-code .s { color: #f3d58a; }
.nf-code .m { color: #8fc6ff; }
.nf-code .p { color: rgba(238, 245, 242, 0.5); }

.nf-receipt {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: #fff; color: var(--navy); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45);
  font-size: 13px; line-height: 1.35; min-width: 220px; z-index: 2;
}
.nf-receipt strong { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.nf-receipt small { color: #5f7285; font-size: 12px; }
.nf-receipt img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.nf-receipt .nf-tick { margin-left: auto; color: var(--teal-strong); font-weight: 700; font-size: 12px; padding-left: 8px; white-space: nowrap; }
.nf-receipt-a { right: 8px; bottom: -6px; animation: nf-float 8s ease-in-out infinite; }
.nf-receipt-b { left: -18px; top: 0; display: none; animation: nf-float 10s ease-in-out infinite reverse; }
@media (min-width: 960px) { .nf-receipt-b { display: flex; } .nf-receipt-a { right: -24px; } }

/* ---- Sections ---- */
.nf-section { padding: 88px 0; }
.nf-section-soft { background: var(--bg-soft); }
.nf-kicker { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.nf-section h2 { margin-top: 10px; font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.15; }
.nf .nf-sub { margin-top: 12px; max-width: 40rem; color: var(--text-muted); font-size: 17px; }
.nf-grid { display: grid; gap: 18px; margin-top: 40px; }
@media (min-width: 640px) { .nf-grid-4, .nf-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nf-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .nf-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.nf-card {
  position: relative; padding: 26px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
a.nf-card:hover, .nf-card-lift:hover { transform: translateY(-4px); border-color: var(--mint); }
.nf-card h3 { font-size: 18px; font-weight: 600; }
.nf-card p { margin-top: 8px; font-size: 15px; color: var(--text-muted); }
.nf-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
  background: var(--mist); color: var(--navy);
}
.dark .nf-icon { background: rgba(134, 188, 163, 0.12); color: var(--mint); }
.nf-icon svg { width: 22px; height: 22px; }

/* Steps: the bell's arch + dot, reused as the step marker */
.nf-step-num {
  position: relative; display: inline-flex; align-items: flex-end; justify-content: center;
  width: 44px; height: 52px; margin-bottom: 20px;
  border: 5px solid var(--navy); border-bottom: 0; border-radius: 22px 22px 0 0;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--navy); padding-bottom: 6px;
}
.nf-step-num::after {
  content: ""; position: absolute; left: 50%; bottom: -14px; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--teal);
}
.dark .nf-step-num { border-color: var(--mist); color: var(--mist); }
.dark .nf-step-num::after { background: var(--mint); }

/* Delivery timeline */
.nf-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .nf-split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.nf-features { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 640px) { .nf-features { grid-template-columns: 1fr 1fr; } }
.nf-feature h3 { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.nf-feature h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; }
.nf-feature p { margin-top: 6px; font-size: 15px; color: var(--text-muted); padding-left: 18px; }
.nf-timeline { padding: 28px; border-radius: 24px; background: var(--navy); color: #fff; box-shadow: 0 30px 60px -28px rgba(36, 57, 80, 0.6); }
.nf-timeline-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(238, 245, 242, 0.1); }
.nf-timeline-head strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.nf-timeline-head span { font-family: var(--font-mono); font-size: 12px; color: rgba(238, 245, 242, 0.55); }
.nf-timeline ol { list-style: none; margin: 0; padding: 18px 0 0; }
.nf-timeline li { position: relative; display: flex; gap: 16px; padding: 0 0 20px; }
.nf-timeline li:last-child { padding-bottom: 0; }
.nf-timeline li::before {
  content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: rgba(134, 188, 163, 0.25);
}
.nf-timeline li:last-child::before { display: none; }
.nf-timeline .nf-node { flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(134, 188, 163, 0.18); }
.nf-timeline .nf-node-teal { background: var(--teal); }
.nf-timeline .nf-node-pending { background: transparent; border: 2px solid rgba(134, 188, 163, 0.5); box-shadow: none; }
.nf-timeline b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.nf-timeline small { display: block; color: rgba(238, 245, 242, 0.6); font-size: 13px; }
.nf-timeline time { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: rgba(238, 245, 242, 0.5); white-space: nowrap; }

/* Staff notice */
.nf-notice { margin-top: 32px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--surface); box-shadow: var(--shadow); }
.nf-notice h2 { font-size: 17px; font-weight: 600; margin: 0; }
.nf-notice p { margin-top: 6px; color: var(--text-muted); font-size: 15px; }
.nf-notice a { color: var(--accent-text); font-weight: 600; }

/* CTA band */
.nf-cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 44px 32px; color: #fff;
  background: radial-gradient(30rem 18rem at 0% 0%, rgba(67, 147, 141, 0.45), transparent 60%), var(--navy);
}
@media (min-width: 768px) { .nf-cta { padding: 56px; } }
.nf-cta-mark { position: absolute; right: 40px; bottom: -40px; width: 200px; opacity: 0.08; pointer-events: none; }
.nf-cta-row-inner { position: relative; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 860px) { .nf-cta-row-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.nf-cta h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; margin: 0; }
.nf-cta p { margin-top: 10px; color: rgba(238, 245, 242, 0.78); }
.nf-cta .nf-cta-row { margin-top: 0; }

.nf-entry h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nf-entry h3 span { color: var(--accent-text); transition: transform .2s; }
a.nf-entry:hover h3 span { transform: translateX(4px); }

/* Footer */
.nf-footer { position: relative; overflow: hidden; background: var(--navy-deep); color: rgba(238, 245, 242, 0.7); padding: 72px 0 0; font-size: 14.5px; }
.nf-footer-mark { position: absolute; right: -40px; bottom: -70px; width: 260px; opacity: 0.04; pointer-events: none; }
.nf-footer-grid { position: relative; display: grid; gap: 40px 32px; grid-template-columns: 1fr 1fr; }
.nf-footer-brand, .nf-footer-col:last-child { grid-column: 1 / -1; }
.nf-footer-brand { max-width: 22rem; }
@media (min-width: 900px) {
  .nf-footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .nf-footer-brand, .nf-footer-col:last-child { grid-column: auto; }
}
.nf-footer-brand img { height: 52px; width: auto; }
.nf .nf-footer-brand p { margin-top: 20px; line-height: 1.65; }
.nf-footer-col h2 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #fff; }
.nf-footer-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.nf-footer-col li + li { margin-top: 10px; }
.nf-footer a { transition: color .2s ease; }
.nf-footer a:hover { color: #fff; }
.nf-footer-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--mint) !important; font-weight: 500; white-space: nowrap; }
.nf-footer-mail:hover { color: #fff !important; }
.nf-footer-mail svg { width: 16px; height: 16px; flex: none; }
.nf-footer-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 56px; padding: 22px 0 28px; border-top: 1px solid rgba(238, 245, 242, 0.1); font-size: 13px; color: rgba(238, 245, 242, 0.55);
}
.nf-footer-top { color: rgba(238, 245, 242, 0.7); }

/* Motion */
@keyframes nf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes nf-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes nf-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.nf-rise { opacity: 0; animation: nf-rise .8s cubic-bezier(.22, 1, .36, 1) forwards; }
.nf-rise-1 { animation-delay: .08s; }
.nf-rise-2 { animation-delay: .2s; }
.nf-rise-3 { animation-delay: .32s; }
.nf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1); }
.nf-reveal.nf-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nf-rise, .nf-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .nf-receipt { animation: none; }
}

/* ---- Content sections added with the copy rewrite ---- */
.nf code { font-family: var(--font-mono); font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--text); }
.nf-section-soft code { background: var(--surface); }
.nf-hero code, .nf-timeline code { background: rgba(238, 245, 242, 0.1); color: var(--mist); }
.nf-inline-link { color: var(--accent-text); font-weight: 600; }
.nf-inline-link:hover { text-decoration: underline; }
.nf-btn-outline { color: var(--text); border-color: var(--line); background: var(--surface); }
.nf-btn-outline:hover { border-color: var(--mint); }

/* Why Nofy: navy statement band under the hero */
.nf-problem { padding: 72px 0; background: var(--navy-deep); color: #fff; }
.nf-problem-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .nf-problem-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; } }
.nf-problem .nf-kicker { color: var(--mint); }
.nf-problem h2 { margin-top: 10px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; line-height: 1.2; }
.nf-problem-copy p { font-size: 17px; line-height: 1.75; color: rgba(238, 245, 242, 0.78); }
.nf-problem-copy p + p { margin-top: 16px; color: #fff; }



.nf-timeline-foot { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid rgba(238, 245, 242, 0.1); font-size: 13px; color: rgba(238, 245, 242, 0.65); }

/* Developers */
.nf-code-static pre { font-size: 12.5px; }
.nf-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.nf-langs span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); background: var(--surface); }
.nf-langs span:first-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.dark .nf-langs span:first-child { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.nf-checks { list-style: none; margin: 24px 0 0; padding: 0; }
.nf-checks li { position: relative; padding-left: 28px; margin-top: 10px; font-size: 15px; color: var(--text-muted); }
.nf-checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23347a75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
#developers .nf-cta-row { margin-top: 28px; }
@media (max-width: 959px) { #developers .nf-code-static { order: 2; } }

/* FAQ */
.nf-faq-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .nf-faq-grid { grid-template-columns: 1fr 1.6fr; gap: 64px; } }
.nf-faq details { border-bottom: 1px solid var(--line); }
.nf-faq details:first-child { border-top: 1px solid var(--line); }
.nf-faq summary {
  position: relative; cursor: pointer; list-style: none; padding: 20px 40px 20px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); font-size: 16px; line-height: 1;
}
.nf-faq details[open] summary::after { content: "\2212"; }
.nf-faq details p { padding: 0 40px 20px 0; color: var(--text-muted); font-size: 15px; }
.nf-split > * { min-width: 0; }
@media (max-width: 480px) {
  .nf-channels-list { flex-wrap: nowrap; justify-content: space-between; }
  .nf-channel { margin-right: 0; gap: 7px; font-size: 14px; }
  .nf-channel svg { width: 18px; height: 18px; }
}

/* ---- Channels: one card per channel, then the webhooks panel ---- */
.nf-section-head { display: grid; gap: 12px; }
@media (min-width: 960px) { .nf-section-head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; } }
.nf .nf-section-head .nf-sub { margin-top: 0; }
.nf-channel-grid { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 1000px) { .nf-channel-grid { grid-template-columns: 1fr 1fr; } }
.nf-ch {
  display: flex; flex-direction: column; gap: 20px; padding: 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.nf-ch:hover { transform: translateY(-4px); border-color: var(--mint); }
.nf-ch-head { display: flex; align-items: center; gap: 14px; }
.nf-ch-head h3 { font-size: 19px; font-weight: 600; }
.nf-ch-via { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.nf-ch-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px; background: var(--mist); color: var(--navy);
}
.nf-ch-icon svg { width: 20px; height: 20px; }
.dark .nf-ch-icon { background: rgba(134, 188, 163, 0.12); color: var(--mint); }

/* What the recipient sees */
.nf-ch-preview {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  min-height: 150px; padding: 18px 20px; border-radius: 14px; background: var(--mist);
  font-size: 13px; line-height: 1.45; color: var(--navy);
}
.dark .nf-ch-preview { background: rgba(238, 245, 242, 0.06); }
.nf-pv-mail { padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(36, 57, 80, 0.08); }
.nf .nf-pv-mail-row { padding: 3px 0; border-bottom: 1px solid #e3ece8; }
.nf-pv-mail-row span { display: inline-block; width: 58px; color: #6a7c8c; }
.nf .nf-pv-mail-body { margin-top: 8px; color: #4b5d6e; }
.nf-pv-wa, .nf-pv-sms { align-self: flex-start; max-width: 92%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; }
.nf-pv-wa { background: #d5ebe1; }
.nf-pv-wa span { display: block; margin-top: 4px; text-align: right; font-size: 11px; color: #6a7c8c; }
.nf-pv-wa b { color: #2f7ab8; font-weight: 600; }
.nf-pv-sms { background: #fff; box-shadow: 0 1px 2px rgba(36, 57, 80, 0.08); }
.nf-pv-sms-from { font-size: 11px; color: #6a7c8c; }
.dark .nf-pv-sms-from { color: var(--text-muted); }
.nf-pv-push { display: flex; gap: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px -8px rgba(36, 57, 80, 0.35); }
.nf-pv-app { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.nf-pv-push p:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #6a7c8c; }
.nf-pv-push p:first-child b { color: #4b5d6e; font-weight: 600; letter-spacing: .02em; }
.nf .nf-pv-push-title { margin-top: 2px; font-weight: 600; }
.nf-pv-push div { flex: 1; min-width: 0; }

/* Channel details */
.nf-ch-spec { margin: 0; }
.nf-pv-mail, .nf-pv-push { max-width: 340px; width: 100%; }
.nf-ch-spec div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.nf-ch-spec div:first-child { border-top: 0; padding-top: 0; }
.nf-ch-spec dt { font-size: 13px; color: var(--text-muted); padding-top: 1px; }
.nf-ch-spec dd { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* Webhooks */
.nf-hooks {
  display: grid; gap: 32px; margin-top: 20px; padding: 32px; border-radius: 24px;
  background: var(--navy); color: #fff; scroll-margin-top: 90px;
}
@media (min-width: 960px) { .nf-hooks { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; padding: 44px; align-items: center; } }
.dark .nf-hooks { background: var(--surface); border: 1px solid var(--line); }
.nf-ch-icon-dark { background: rgba(134, 188, 163, 0.16) !important; color: var(--mint) !important; }
.nf-hooks h3 { margin-top: 18px; font-size: 26px; font-weight: 700; }
.nf .nf-hooks-copy > p { margin-top: 10px; color: rgba(238, 245, 242, 0.8); }
.nf-hooks code { background: rgba(238, 245, 242, 0.1) !important; color: #fff !important; }
.nf-hooks-list { list-style: none; margin: 22px 0 0; padding: 0; }
.nf-hooks-list li { padding: 12px 0; border-top: 1px solid rgba(238, 245, 242, 0.12); font-size: 15px; color: rgba(238, 245, 242, 0.75); }
.nf-hooks-list b { color: #fff; font-weight: 600; }
.nf-hooks-link { display: inline-block; margin-top: 18px; color: var(--mint) !important; font-weight: 600; font-size: 15px; }
.nf-hooks-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nf-hooks-code { border-radius: 16px; overflow: hidden; background: var(--navy-ink); border: 1px solid rgba(238, 245, 242, 0.1); }
.nf .nf-hooks-code-bar { padding: 12px 18px; border-bottom: 1px solid rgba(238, 245, 242, 0.08); font-family: var(--font-mono); font-size: 12px; color: rgba(238, 245, 242, 0.6); overflow-x: auto; white-space: nowrap; }
.nf-hooks-code pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: #dbe7e2; }
.nf-hooks-code .k { color: var(--mint); }
.nf-hooks-code .s { color: #f3d58a; }
.nf-hooks-code .m { color: #8fc6ff; }
.nf-hooks-code .p { color: rgba(238, 245, 242, 0.5); }

/* ---- How it works: step list + request/response panel ---- */
.nf-flow { display: grid; gap: 28px; margin-top: 44px; }
@media (min-width: 1000px) { .nf-flow { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; } }
.nf-flow-steps { list-style: none; margin: 0; padding: 0; }
.nf-flow-steps li { position: relative; }
/* The line joining each bell marker to the next */
.nf-flow-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 41px; top: 90px; bottom: -24px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--mint) 0 5px, transparent 5px 10px); opacity: .7;
}
.nf-flow-step {
  display: flex; gap: 20px; width: 100%; margin: 0 0 8px; padding: 20px; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 18px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nf-flow-step:hover { background: rgba(255, 255, 255, 0.55); }
.dark .nf-flow-step:hover { background: rgba(238, 245, 242, 0.04); }
.nf-flow-step[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.nf-flow-step .nf-step-num { flex: none; margin-bottom: 0; }
.nf-flow-step[aria-selected="false"] .nf-step-num { border-color: var(--text-muted); color: var(--text-muted); }
.nf-flow-step[aria-selected="false"] .nf-step-num::after { background: var(--line); }
.nf-flow-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nf-flow-text b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.nf-flow-text span { font-size: 15px; color: var(--text-muted); }
.nf-flow-text code { margin-top: 6px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-text); background: none !important; padding: 0 !important; }
.nf-flow-step[aria-selected="false"] .nf-flow-text b { color: var(--text-muted); }

.nf-flow-panel {
  border-radius: 18px; overflow: hidden; background: var(--navy-ink); color: #dbe7e2;
  border: 1px solid rgba(238, 245, 242, 0.08); box-shadow: 0 30px 60px -30px rgba(18, 32, 48, 0.55);
}
@media (min-width: 1000px) { .nf-flow-panel { position: sticky; top: 96px; } }
.nf .nf-flow-label {
  display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px;
  border-bottom: 1px solid rgba(238, 245, 242, 0.08); font-family: var(--font-mono); font-size: 12px; color: rgba(238, 245, 242, 0.55);
}
.nf-flow-pane pre + .nf-flow-label { border-top: 1px solid rgba(238, 245, 242, 0.08); }
.nf-flow-code { color: var(--mint); }
.nf-flow-pane pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; }
.nf-flow-pane .k { color: var(--mint); }
.nf-flow-pane .s { color: #f3d58a; }
.nf-flow-pane .m { color: #8fc6ff; }
.nf-flow-pane .p { color: rgba(238, 245, 242, 0.5); }

/* ---- Large screens: grow the layout instead of the side margins ----
 * Below 1600px nothing changes. Above it the content column widens and
 * type steps up a notch; paragraph measures stay capped (.nf-lede,
 * .nf-sub max-width) so extra width goes to cards, code and gutters,
 * not to longer lines. */
@media (min-width: 1600px) {
  .nf-wrap { max-width: 1400px; padding: 0 48px; }
  body.nf { font-size: 17px; }
  .nf-hero-grid { gap: 72px; padding-top: 120px; padding-bottom: 136px; }
  .nf-hero h1 { font-size: 76px; }
  .nf .nf-lede { font-size: 19px; max-width: 36rem; }
  .nf-code pre, .nf-flow-pane pre, .nf-hooks-code pre { font-size: 14px; }
  .nf-section { padding: 112px 0; }
  .nf-section h2 { font-size: 44px; }
  .nf-hero-mark { width: 520px; right: -40px; }
  .nf-problem-copy { max-width: 40rem; justify-self: end; }
}
@media (min-width: 1920px) {
  .nf-wrap { max-width: 1520px; }
  .nf-hero h1 { font-size: 84px; }
}

/* ---- Account menu (signed-in header) ---- */
.nf-account { position: relative; }
.nf-account-trigger {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 4px;
  background: rgba(238, 245, 242, 0.06); border: 1px solid rgba(238, 245, 242, 0.14); border-radius: 999px;
  color: #fff; font: 500 14px/1 var(--font-body); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.nf-account-trigger:hover, .nf-account-trigger[aria-expanded="true"] { background: rgba(238, 245, 242, 0.12); border-color: rgba(238, 245, 242, 0.28); }
.nf-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mint); color: var(--navy); font: 700 13px/1 var(--font-display);
}
.nf-avatar-lg { width: 42px; height: 42px; font-size: 17px; }
.nf-account-name { display: none; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) { .nf-account-name { display: inline; } }
.nf-account-chevron { width: 16px; height: 16px; color: rgba(238, 245, 242, 0.7); transition: transform .2s ease; }
.nf-account-trigger[aria-expanded="true"] .nf-account-chevron { transform: rotate(180deg); }

.nf-account-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 288px; max-width: calc(100vw - 32px);
  padding: 8px; border-radius: 16px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(18, 32, 48, 0.35), 0 2px 6px rgba(18, 32, 48, 0.08);
  animation: nf-menu-in .16s ease-out;
}
.nf-account-menu[hidden] { display: none; }
@keyframes nf-menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.nf-account-head { display: flex; gap: 12px; align-items: flex-start; padding: 12px 12px 14px; border-bottom: 1px solid var(--line); }
.nf-account-head > div { min-width: 0; }
.nf .nf-account-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf .nf-account-sub { margin-top: 1px; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf .nf-account-role { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 500; }
.nf-account-role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.nf-role-ok { color: var(--accent-text); }
.nf-role-ok::before { background: var(--teal); }
.nf-role-pending { color: #a86a12; }
.nf-role-pending::before { background: #d49a3a; }
.dark .nf-role-pending { color: #e0ac5c; }
.nf-account-items { display: grid; padding: 6px 0; }
.nf-account-items a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--text); outline: none;
}
.nf-account-items a:hover, .nf-account-items a:focus-visible { background: var(--bg-soft); }
.nf-account-items svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.nf-account-foot { border-top: 1px solid var(--line); padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .nf-account-menu { animation: none; } .nf-account-chevron { transition: none; } }
