/* NexaFlow website styles. Brand: Royal Blue #1A56DB and white only. */
:root {
  color-scheme: light;
  --blue: #1A56DB;
  --blue-dark: #0E3BA8;
  --ink: #0E1A3A;
  --text: #3A4766;
  --muted: #55607D;
  --tag: #3F63B8;
  --line: #D5DEF3;
  --line-soft: #E6ECF9;
  --tint: #F3F6FD;
  --white: #FFFFFF;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
section[id] { scroll-margin-top: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }

/* Type */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase; color: var(--blue);
}
h1 {
  font-size: clamp(38px, 5.4vw, 74px); line-height: 1.03;
  letter-spacing: -0.035em; font-weight: 800;
}
h1 span { color: var(--blue); }
h2 {
  font-size: clamp(29px, 3.6vw, 48px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800; text-wrap: balance;
}
h3 { font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text); max-width: 600px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.section-head p { font-size: 18px; color: var(--text); }

/* Buttons */
.btn {
  display: inline-block; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 17px; padding: 16px 28px;
  background: var(--blue); color: var(--white); border: 2px solid var(--blue);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(14, 26, 58, .2); }
.btn:active { transform: none; box-shadow: none; }
.btn-outline { background: var(--white); color: var(--blue); }
.btn-outline:hover { color: var(--blue); }
.btn-white { background: var(--white); color: var(--blue); border-color: var(--white); font-weight: 800; }
.btn-white:hover { color: var(--blue); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-small { font-size: 15px; padding: 11px 18px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-block: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.brand svg { flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 26px; letter-spacing: -0.9px; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.nav-link {
  color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 14px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link[aria-current="page"] {
  background: var(--blue); color: var(--white);
}
.nav-link:hover, .nav-link:focus-visible { transform: scale(1.12); }
.main-nav .btn { margin-left: 10px; }

/* Hero */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-block: 72px 88px;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.book-stage { background: var(--blue); padding: 40px 32px 32px 0; margin-left: 24px; }
.book {
  background: var(--white); margin-left: -24px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(14, 26, 58, .16);
}
.book-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.book-title { font-weight: 800; font-size: 16px; }
.book-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--tag); border: 1px solid #B9CAF2; padding: 4px 8px; white-space: nowrap;
}
.book-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
}
.book-row > div { min-width: 0; }
.book-row .amount { text-align: right; flex-shrink: 0; }
.book-row strong { display: block; font-size: 15px; font-weight: 700; }
.book-row small { display: block; font-size: 13px; color: var(--muted); }
.book-row .status { font-size: 12px; font-weight: 700; color: var(--blue); }
.book-row .status.due { color: var(--ink); }
.book-ticks {
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px 20px;
  background: var(--tint); font-size: 13px; font-weight: 600;
}
.book-ticks li { display: flex; align-items: center; gap: 6px; }
.book-note { margin: 20px 0 0 32px; font-size: 15px; line-height: 1.5; color: var(--white); max-width: 380px; }

/* Who we work with */
.audience { background: var(--tint); border-block: 1px solid var(--line); }
.audience .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px;
  padding-block: 22px; font-size: 15px; font-weight: 700;
}
.audience .label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--tag); }
.audience ul { display: contents; }
.audience .any { color: var(--blue); }

/* Sections */
.section .wrap { padding-block: 96px; display: flex; flex-direction: column; gap: 48px; }
.section-blue { background: var(--blue); color: var(--white); }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }

/* Services */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 2px solid var(--ink); border-left: 1px solid var(--line);
}
.service {
  padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.service .num { font-size: 44px; font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--blue); }
.service h3 { font-size: 24px; letter-spacing: -0.02em; }
.service p { color: var(--text); }
.service ul { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.service li { padding-left: 18px; border-left: 3px solid var(--blue); }

/* Two paths */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.path { background: var(--white); color: var(--ink); padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; }
.path .eyebrow { font-size: 12px; letter-spacing: 2px; }
.path h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.path p { color: var(--text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--blue); padding-top: 20px; }
.step .step-no { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--blue); }
.step h3 { font-size: 21px; }
.step p { font-size: 16px; color: var(--text); }

/* Why */
.why .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.why-head { display: flex; flex-direction: column; gap: 14px; }
.why-body { display: flex; flex-direction: column; gap: 20px; }
.why-body p { font-size: 18px; color: var(--text); }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px;
  margin-top: 8px; border-top: 2px solid var(--ink); padding-top: 22px;
}
.facts strong { display: block; font-weight: 800; font-size: 30px; letter-spacing: -1px; line-height: 1.1; color: var(--blue); }
.facts span { font-size: 15px; color: var(--text); }
.text-link { align-self: flex-start; font-weight: 700; padding: 12px 0; text-underline-offset: 4px; }

/* Questions */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-head { display: flex; flex-direction: column; gap: 14px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 20px; }
.faq-list summary::after {
  content: "+"; flex-shrink: 0; font-size: 26px; font-weight: 500; line-height: 1; color: var(--blue);
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 22px; color: var(--text); max-width: 640px; }

/* Contact */
.contact .wrap {
  display: flex; flex-wrap: wrap; flex-direction: row; align-items: center;
  justify-content: space-between; gap: 40px;
}
.contact-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-copy h2 { font-size: clamp(31px, 4.2vw, 56px); line-height: 1.05; }
.contact-copy p { font-size: 19px; max-width: 560px; }
.contact-actions { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 24px 40px; padding-block: 44px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { font-size: 22px; letter-spacing: -0.8px; color: var(--blue); line-height: 1.1; display: block; }
.footer-brand .tagline { font-size: 11px; font-weight: 600; letter-spacing: 1.9px; text-transform: uppercase; color: var(--tag); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 15px; }
.copyright { font-size: 14px; color: var(--muted); }

/* About page */
.page-hero .wrap { padding-block: 72px 56px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-size: clamp(36px, 4.8vw, 66px); max-width: 900px; }
.page-hero .lead { max-width: 720px; }
.founder .wrap { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: start; padding-block: 80px; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-bottom: 6px solid var(--blue); }
.founder-photo figcaption { margin-top: 14px; }
.founder-photo strong { display: block; font-weight: 800; font-size: 20px; }
.founder-photo span { font-size: 15px; color: var(--text); }
.founder figure { margin: 0; }
.founder-story { display: flex; flex-direction: column; gap: 20px; }
.founder-story h2 { font-size: clamp(27px, 3.2vw, 42px); }
.founder-story p { font-size: 18px; color: var(--text); }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.promise { border-top: 2px solid var(--blue); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.promise h3 { font-size: 21px; }
.promise p { font-size: 16px; color: var(--text); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .page-hero .wrap > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2), .page-hero .wrap > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3), .page-hero .wrap > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }

.js .reveal, .js .stagger > * {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.in, .js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: .1s; }
.js .stagger.in > *:nth-child(3) { transition-delay: .2s; }
.js .stagger.in > *:nth-child(4) { transition-delay: .3s; }

/* Logo: the N writes itself once on load, and again when the mouse is on it */
@keyframes n-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes n-draw-again { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.n-draw { stroke-dasharray: 1; animation: n-draw 1.4s ease-in-out .25s both; }
.brand:hover .n-draw { animation: n-draw-again 1.1s ease-in-out both; }

@keyframes row1 { 0% { opacity: 0; transform: translateY(10px); } 5%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes row2 { 0%, 10% { opacity: 0; transform: translateY(10px); } 15%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes row3 { 0%, 20% { opacity: 0; transform: translateY(10px); } 25%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes tick1 { 0%, 33% { opacity: .18; } 38%, 94% { opacity: 1; } 100% { opacity: .18; } }
@keyframes tick2 { 0%, 43% { opacity: .18; } 48%, 94% { opacity: 1; } 100% { opacity: .18; } }
@keyframes tick3 { 0%, 53% { opacity: .18; } 58%, 94% { opacity: 1; } 100% { opacity: .18; } }
.book-row.r1 { animation: row1 10s ease infinite; }
.book-row.r2 { animation: row2 10s ease infinite; }
.book-row.r3 { animation: row3 10s ease infinite; }
.book-ticks li:nth-child(1) { animation: tick1 10s ease infinite; }
.book-ticks li:nth-child(2) { animation: tick2 10s ease infinite; }
.book-ticks li:nth-child(3) { animation: tick3 10s ease infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .stagger > * { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 940px) {
  .hero .wrap, .why .wrap, .faq .wrap, .founder .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { gap: 40px; padding-block: 48px 56px; }
  .section .wrap { padding-block: 64px; gap: 36px; }
  .why .wrap, .faq .wrap { gap: 28px; }
  .founder .wrap { padding-block: 56px; gap: 32px; }
  .founder-photo { max-width: 340px; }
}

/* Phone */
@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.55; }
  .wrap { padding-inline: 20px; }
  .site-header .wrap { padding-block: 12px; }
  .site-header svg { width: 38px; height: 38px; }
  .brand-name { font-size: 22px; }
  .main-nav .nav-link { display: none; }
  .main-nav .btn { margin-left: 0; }
  .eyebrow { font-size: 12px; letter-spacing: 2px; }
  .hero-copy { gap: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .book-stage { margin-inline: -20px; padding: 24px 20px 28px; }
  .book { margin-left: 0; }
  .book-head { padding: 14px 16px; }
  .book-row { padding: 12px 16px; }
  .book-row strong { font-size: 14px; }
  .book-row small { font-size: 12px; }
  .book-ticks { padding: 12px 16px; gap: 6px 14px; font-size: 12px; }
  .book-note { margin: 18px 0 0; }
  .hero .wrap { padding-bottom: 0; }
  .audience .wrap { gap: 8px; padding-block: 24px; font-size: 14px; }
  .audience .label { width: 100%; margin-bottom: 4px; }
  .audience li { background: var(--white); border: 1px solid var(--line); padding: 7px 10px; }
  .audience li.any { background: var(--blue); color: var(--white); border-color: var(--blue); }
  .section .wrap { padding-block: 52px; gap: 28px; }
  .section-head p, .why-body p, .founder-story p { font-size: 16px; }
  .services { border-left: 0; }
  .service { padding: 24px 0; border-right: 0; gap: 10px; }
  .service .num { font-size: 30px; letter-spacing: -1px; }
  .service h3 { font-size: 21px; }
  .service ul { font-size: 15px; }
  .path { padding: 24px 20px; }
  .path h3 { font-size: 22px; }
  .steps { gap: 22px; }
  .facts { gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts strong { font-size: 21px; letter-spacing: -0.6px; }
  .facts span { font-size: 12px; }
  .faq-list summary { padding: 16px 0; }
  .faq-list summary h3 { font-size: 17px; }
  .contact-copy p { font-size: 16px; }
  .contact-actions { flex-basis: 100%; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; padding-block: 32px 40px; gap: 18px; }
  .footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-top: 1px solid var(--line); padding-top: 8px; }
  .footer-nav .nav-link { padding: 12px 0; }
  .footer-nav .nav-link:hover, .footer-nav .nav-link:focus-visible { background: transparent; color: var(--blue); transform: none; }
  .page-hero .wrap { padding-block: 40px; }
}

/* Contact window */
.contact-dialog { border: 0; padding: 0; width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--white); color: var(--text); box-shadow: 0 30px 80px rgba(14, 26, 58, .35); }
.contact-dialog::backdrop { background: rgba(14, 26, 58, .6); }
.contact-form { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 32px 28px 24px; }
.contact-form h2 { margin: 0 36px 4px 0; font-size: 26px; color: var(--ink); }
.dialog-lead { margin: 0 0 12px; font-size: 16px; }
.contact-form label { font-weight: 700; font-size: 15px; color: var(--ink); margin-top: 8px; }
.contact-form label span { font-weight: 500; color: var(--muted); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); background: var(--white); color: var(--ink); width: 100%; box-sizing: border-box; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(26, 86, 219, .25); border-color: var(--blue); }
.contact-form .btn { margin-top: 16px; cursor: pointer; font-family: inherit; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }
.dialog-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.dialog-note.ok { color: #0B6B3A; font-weight: 700; }
.dialog-note.err { color: #B42318; font-weight: 700; }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; font-size: 30px; line-height: 1; background: none; border: 0; color: var(--ink); cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Legal page */
.legal { max-width: 760px; }
.legal h2 { font-size: 24px; margin: 32px 0 8px; color: var(--ink); }
.legal p, .legal li { font-size: 17px; }
.legal ul { padding-left: 22px; }
