/* =========================================================================
   NOURFOCUS — design system
   Paper + navy + measured gold. No framework, no build step.
   Written mobile-first; all spacing/colour decisions live in the tokens below.
   ========================================================================= */

/* 1. Tokens ------------------------------------------------------------- */

:root {
  /* Brand — sampled from the NOURFOCUS logo */
  --nf-navy:        #0C314C;
  --nf-navy-deep:   #071F31;
  --nf-navy-soft:   #163F5E;
  --nf-gold:        #FBCE0A;
  --nf-gold-warm:   #E8B80A;
  --nf-gold-ink:    #7A5B00;   /* gold used as text on paper: AA contrast */

  /* Neutrals — warm paper, not cold grey */
  --nf-paper:       #FBFAF7;
  --nf-paper-deep:  #F4F2EC;
  --nf-white:       #FFFFFF;
  --nf-ink:         #11222E;
  --nf-body:        #41525F;
  --nf-muted:       #6E7F8C;
  --nf-line:        #E4E1D8;
  --nf-line-soft:   #EFEDE6;

  /* Support */
  --nf-sea:         #0E6E6B;
  --nf-sea-soft:    #E6F2F1;
  --nf-danger:      #B3261E;
  --nf-success:     #156A3F;

  /* Typography */
  --nf-font-display: 'Bricolage Grotesque', 'Epilogue', 'Segoe UI', sans-serif;
  --nf-font-body:    'Epilogue', 'Segoe UI', sans-serif;
  --nf-font-mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --nf-container: 1180px;
  --nf-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nf-section: clamp(4rem, 9vw, 7.5rem);
  --nf-radius: 14px;
  --nf-radius-lg: 24px;

  --nf-shadow-sm: 0 1px 2px rgba(12, 49, 76, .06), 0 4px 14px rgba(12, 49, 76, .05);
  --nf-shadow-md: 0 2px 6px rgba(12, 49, 76, .07), 0 18px 46px rgba(12, 49, 76, .09);

  --nf-ease: cubic-bezier(.22, .61, .36, 1);
}

[lang="ar"] {
  --nf-font-display: 'IBM Plex Sans Arabic', 'Bricolage Grotesque', sans-serif;
  --nf-font-body:    'IBM Plex Sans Arabic', 'Epilogue', sans-serif;
}

/* 2. Reset -------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--nf-paper);
  color: var(--nf-body);
  font-family: var(--nf-font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--nf-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--nf-navy-soft); }

h1, h2, h3, h4 {
  font-family: var(--nf-font-display);
  color: var(--nf-ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.18rem, 2vw, 1.45rem); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-inline-start: 1.15em; }
li { margin-bottom: .4em; }

strong { color: var(--nf-ink); font-weight: 600; }

hr { border: 0; border-top: 1px solid var(--nf-line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--nf-gold-warm);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--nf-gold); color: var(--nf-navy-deep); }

/* 3. Layout ------------------------------------------------------------- */

.nf-container {
  width: 100%;
  max-width: var(--nf-container);
  margin-inline: auto;
  padding-inline: var(--nf-gutter);
}

.nf-section { padding-block: var(--nf-section); }
.nf-section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

.nf-section--paper  { background: var(--nf-paper-deep); }
.nf-section--white  { background: var(--nf-white); }
.nf-section--navy   { background: var(--nf-navy); color: #C9D8E3; }
.nf-section--navy h2, .nf-section--navy h3, .nf-section--navy h4 { color: var(--nf-white); }

.nf-skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--nf-navy);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
}
.nf-skip:focus { inset-inline-start: 0; }

.nf-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.nf-grid--2 { grid-template-columns: 1fr; }
.nf-grid--3 { grid-template-columns: 1fr; }
.nf-grid--split { grid-template-columns: 1fr; align-items: start; }

@media (min-width: 760px) {
  .nf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .nf-grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(2.5rem, 5vw, 5rem); }
}

.nf-measure { max-width: 62ch; }
.nf-measure-sm { max-width: 48ch; }

/* 4. Section headers ---------------------------------------------------- */

.nf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--nf-font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--nf-gold-ink);
  margin: 0 0 1rem;
}
.nf-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--nf-gold);
  border-radius: 2px;
}
.nf-section--navy .nf-eyebrow { color: var(--nf-gold); }

.nf-section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); max-width: 60ch; }
.nf-section-head p { font-size: 1.125rem; color: var(--nf-muted); }
.nf-section--navy .nf-section-head p { color: #A7BCCB; }

.nf-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--nf-body);
}

/* 5. Buttons ------------------------------------------------------------ */

.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--nf-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--nf-ease), background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.nf-btn:hover { transform: translateY(-1px); }
.nf-btn:active { transform: translateY(0); }

.nf-btn--primary { background: var(--nf-navy); color: #fff; box-shadow: var(--nf-shadow-sm); }
.nf-btn--primary:hover { background: var(--nf-navy-soft); color: #fff; }

.nf-btn--gold { background: var(--nf-gold); color: var(--nf-navy-deep); }
.nf-btn--gold:hover { background: var(--nf-gold-warm); color: var(--nf-navy-deep); }

.nf-btn--ghost { border-color: var(--nf-line); color: var(--nf-navy); background: transparent; }
.nf-btn--ghost:hover { border-color: var(--nf-navy); background: rgba(12, 49, 76, .04); }

.nf-section--navy .nf-btn--ghost,
.nf-product .nf-btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.nf-section--navy .nf-btn--ghost:hover,
.nf-product .nf-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* External BOOKASFAR product link — logo + label on navy bands */
.nf-btn--bookasfar {
  gap: .9rem;
  padding: .78rem 1.4rem .78rem 1.1rem;
  border-color: rgba(255,255,255,.32);
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nf-btn--bookasfar picture {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}
.nf-btn--bookasfar img {
  height: 26px;
  width: auto;
  display: block;
}
.nf-btn--bookasfar span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-inline-start: 1px solid rgba(255,255,255,.22);
  padding-inline-start: .9rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.nf-btn--bookasfar span::after {
  content: "↗";
  font-size: .95em;
  opacity: .85;
  transition: transform .18s var(--nf-ease), opacity .18s;
}
.nf-btn--bookasfar:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.15);
  color: #fff;
}
.nf-btn--bookasfar:hover span::after {
  transform: translate(2px, -2px);
  opacity: 1;
}
[dir="rtl"] .nf-btn--bookasfar:hover span::after {
  transform: translate(-2px, -2px);
}

.nf-btn--sm { padding: .62rem 1.1rem; font-size: .9rem; }

.nf-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.nf-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nf-navy);
  border-bottom: 1.5px solid var(--nf-gold);
  padding-bottom: 2px;
}
.nf-link-arrow::after { content: "→"; transition: transform .18s var(--nf-ease); }
.nf-link-arrow:hover::after { transform: translateX(3px); }
[dir="rtl"] .nf-link-arrow::after { content: "←"; }
[dir="rtl"] .nf-link-arrow:hover::after { transform: translateX(-3px); }
.nf-section--navy .nf-link-arrow { color: #fff; }

/* 6. Header ------------------------------------------------------------- */

.nf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, .88);
  backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.nf-header[data-scrolled="true"] {
  border-bottom-color: var(--nf-line);
  box-shadow: 0 6px 24px rgba(12, 49, 76, .06);
}

.nf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.nf-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nf-logo img { height: 40px; width: auto; }
@media (min-width: 760px) { .nf-logo img { height: 44px; } }

.nf-nav { display: none; }
@media (min-width: 1080px) {
  .nf-nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.9rem); }
}
.nf-nav a {
  font-size: .975rem;
  font-weight: 500;
  color: var(--nf-body);
  text-decoration: none;
  padding: .35rem 0;
  position: relative;
  white-space: nowrap;
}
.nf-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--nf-gold);
  border-radius: 2px;
  transition: width .22s var(--nf-ease);
}
.nf-nav a:hover { color: var(--nf-ink); }
.nf-nav a:hover::after, .nf-nav a[aria-current="page"]::after { width: 100%; }
.nf-nav a[aria-current="page"] { color: var(--nf-ink); font-weight: 600; }

.nf-header__actions { display: flex; align-items: center; gap: .6rem; }
.nf-header__cta { display: none; }
@media (min-width: 1080px) { .nf-header__cta { display: inline-flex; } }

/* Language switcher */
.nf-lang { position: relative; }
.nf-lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--nf-font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--nf-navy);
  background: transparent;
  border: 1.5px solid var(--nf-line);
  border-radius: 999px;
  padding: .5rem .85rem;
  cursor: pointer;
}
.nf-lang__toggle:hover { border-color: var(--nf-navy); }
.nf-lang__toggle svg { width: 14px; height: 14px; }

.nf-lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .5rem);
  min-width: 170px;
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 12px;
  box-shadow: var(--nf-shadow-md);
  padding: .4rem;
  margin: 0;
  list-style: none;
  display: none;
}
.nf-lang[data-open="true"] .nf-lang__menu { display: block; }
.nf-lang__menu li { margin: 0; }
.nf-lang__menu a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem .7rem;
  border-radius: 8px;
  font-size: .925rem;
  text-decoration: none;
  color: var(--nf-body);
}
.nf-lang__menu a:hover { background: var(--nf-paper-deep); color: var(--nf-ink); }
.nf-lang__menu a[aria-current="true"] { color: var(--nf-ink); font-weight: 600; }
.nf-lang__menu a span { color: var(--nf-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }

/* Mobile menu */
.nf-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1.5px solid var(--nf-line);
  border-radius: 12px;
  cursor: pointer;
}
.nf-burger span {
  display: block;
  height: 2px;
  background: var(--nf-navy);
  border-radius: 2px;
  transition: transform .22s var(--nf-ease), opacity .18s;
}
@media (min-width: 1080px) { .nf-burger { display: none; } }

body[data-menu="open"] { overflow: hidden; }
body[data-menu="open"] .nf-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body[data-menu="open"] .nf-burger span:nth-child(2) { opacity: 0; }
body[data-menu="open"] .nf-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nf-mobile-nav {
  display: none;
  border-top: 1px solid var(--nf-line);
  background: var(--nf-paper);
  padding-block: 1.25rem 2rem;
}
body[data-menu="open"] .nf-mobile-nav { display: block; }
.nf-mobile-nav ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.nf-mobile-nav li { margin: 0; border-bottom: 1px solid var(--nf-line-soft); }
.nf-mobile-nav ul a {
  display: block;
  padding: .95rem .2rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--nf-ink);
  text-decoration: none;
}
@media (min-width: 1080px) { .nf-mobile-nav { display: none !important; } }

/* 7. Hero --------------------------------------------------------------- */

.nf-hero {
  position: relative;
  overflow: hidden;
  background: var(--nf-paper);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem);
}
.nf-hero__inner { position: relative; z-index: 2; }

.nf-hero h1 { margin-bottom: 1.1rem; }
.nf-hero h1 em {
  font-style: normal;
  color: var(--nf-navy);
  background: linear-gradient(transparent 68%, rgba(251, 206, 10, .55) 68%);
  padding-inline: .06em;
}
.nf-hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.33rem); color: var(--nf-body); max-width: 56ch; }

/* The brand motif: concentric gold arcs echoing the logo mark. */
.nf-arcs {
  position: absolute;
  inset-block: 0;
  inset-inline-end: -14%;
  width: min(760px, 86vw);
  z-index: 1;
  pointer-events: none;
  opacity: .9;
}
.nf-arcs svg { width: 100%; height: 100%; }
.nf-arcs circle {
  fill: none;
  stroke: var(--nf-gold);
  stroke-linecap: round;
  opacity: .5;
}
@media (max-width: 760px) { .nf-arcs { opacity: .35; inset-inline-end: -40%; } }
[dir="rtl"] .nf-arcs { transform: scaleX(-1); }

.nf-hero__panel {
  position: relative;
  background: var(--nf-navy);
  color: #CBDAE5;
  border-radius: var(--nf-radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  box-shadow: var(--nf-shadow-md);
  overflow: hidden;
}
.nf-hero__panel::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,206,10,.22), transparent 65%);
}
.nf-hero__panel h2 {
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nf-gold);
  margin-bottom: 1.5rem;
}
.nf-hero__panel ul { list-style: none; margin: 0; padding: 0; }
.nf-hero__panel li {
  display: flex;
  gap: .9rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 1rem;
}
.nf-hero__panel li:last-child { border-bottom: 0; padding-bottom: 0; }
.nf-hero__panel li strong { display: block; color: #fff; font-weight: 600; }
.nf-hero__panel li span { color: #9FB6C7; font-size: .95rem; }
.nf-hero__panel .nf-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(251,206,10,.14);
  color: var(--nf-gold);
  font-size: .8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: .15rem;
}

/* 8. Pillars / feature lists -------------------------------------------- */

.nf-pillar { position: relative; padding-top: 1.75rem; border-top: 2px solid var(--nf-navy); }
.nf-pillar__index {
  font-family: var(--nf-font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--nf-gold-ink);
  margin-bottom: .75rem;
  display: block;
}
.nf-pillar h3 { margin-bottom: .6rem; }
.nf-pillar p { color: var(--nf-body); }
.nf-pillar ul { margin-top: 1rem; padding: 0; list-style: none; }
.nf-pillar li {
  position: relative;
  padding-inline-start: 1.4rem;
  font-size: .975rem;
  color: var(--nf-muted);
}
.nf-pillar li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--nf-gold);
}
.nf-pillar .nf-link-arrow { margin-top: 1.1rem; }

/* Fact rows — qualitative proof, no invented numbers */
.nf-facts { display: grid; gap: 0; border-top: 1px solid var(--nf-line); }
.nf-fact {
  display: grid;
  gap: .35rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--nf-line);
}
@media (min-width: 760px) {
  .nf-fact { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: baseline; }
}
.nf-fact dt {
  font-family: var(--nf-font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--nf-ink);
}
.nf-fact dd { margin: 0; color: var(--nf-muted); }

/* Cards — used sparingly */
.nf-card {
  background: var(--nf-white);
  border: 1px solid var(--nf-line);
  border-radius: var(--nf-radius);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--nf-ease);
}
.nf-card:hover { border-color: #D4CFBF; box-shadow: var(--nf-shadow-sm); }
.nf-card h3 { margin-bottom: .5rem; }
.nf-card p:last-child { margin-bottom: 0; }
.nf-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--nf-paper-deep);
  color: var(--nf-navy);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.nf-card__icon svg { width: 21px; height: 21px; }

/* 9. Product band (BOOKASFAR) ------------------------------------------- */

.nf-product {
  position: relative;
  overflow: hidden;
  background: var(--nf-navy);
  color: #BFD2E0;
}
.nf-product::before {
  content: "";
  position: absolute;
  inset-inline-start: -10%;
  top: -40%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,206,10,.14), transparent 62%);
  pointer-events: none;
}
.nf-product__inner { position: relative; z-index: 2; }
.nf-product h2 { color: #fff; }
.nf-product__wordmark {
  margin: .15rem 0 .85rem;
  line-height: 0;
}
.nf-product__wordmark picture { display: contents; }
.nf-product__wordmark img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, .28));
}
.nf-product__kicker {
  color: var(--nf-gold);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nf-product__list { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.nf-product__list li {
  padding: .7rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: #C7D7E3;
}
.nf-product__list li::before { content: "▸"; color: var(--nf-gold); line-height: 1.6; }

/* 10. Steps / process --------------------------------------------------- */

.nf-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.nf-step {
  counter-increment: step;
  position: relative;
  padding-inline-start: 3.4rem;
  padding-block: 0 2rem;
  margin: 0;
}
.nf-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: -.15rem;
  font-family: var(--nf-font-mono);
  font-size: .82rem;
  font-weight: 600;
  color: var(--nf-navy);
  background: var(--nf-paper-deep);
  border-radius: 50%;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
}
.nf-step::after {
  content: "";
  position: absolute;
  inset-inline-start: 1.15rem;
  top: 2.4rem;
  bottom: .4rem;
  width: 1px;
  background: var(--nf-line);
}
.nf-step:last-child::after { display: none; }
.nf-step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.nf-step p { color: var(--nf-muted); margin: 0; }

/* 11. FAQ --------------------------------------------------------------- */

.nf-faq { border-top: 1px solid var(--nf-line); }
.nf-faq details {
  border-bottom: 1px solid var(--nf-line);
  padding: 0;
}
.nf-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 2.5rem 1.5rem 0;
  position: relative;
  font-family: var(--nf-font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-weight: 600;
  color: var(--nf-ink);
  line-height: 1.4;
}
[dir="rtl"] .nf-faq summary { padding: 1.5rem 0 1.5rem 2.5rem; }
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: .35rem;
  top: 1.85rem;
  width: 13px;
  height: 13px;
  /* Physical borders on purpose: the chevron points down/up in both
     reading directions, where logical borders would mirror it sideways. */
  border-right: 2px solid var(--nf-navy);
  border-bottom: 2px solid var(--nf-navy);
  transform: rotate(45deg);
  transition: transform .22s var(--nf-ease);
}
.nf-faq details[open] summary::after { transform: rotate(-135deg); top: 2.15rem; }
.nf-faq__answer { padding: 0 0 1.6rem; color: var(--nf-body); max-width: 70ch; }

/* 12. Forms ------------------------------------------------------------- */

.nf-form { display: grid; gap: 1.1rem; }
@media (min-width: 680px) { .nf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }

.nf-field { display: grid; gap: .4rem; }
.nf-field label { font-size: .9rem; font-weight: 600; color: var(--nf-ink); }
.nf-field .nf-hint { font-size: .82rem; color: var(--nf-muted); }

.nf-field input,
.nf-field select,
.nf-field textarea {
  font-family: var(--nf-font-body);
  font-size: 1rem;
  color: var(--nf-ink);
  background: var(--nf-white);
  border: 1.5px solid var(--nf-line);
  border-radius: 10px;
  padding: .8rem .95rem;
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.nf-field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.nf-field input:focus,
.nf-field select:focus,
.nf-field textarea:focus {
  outline: none;
  border-color: var(--nf-navy);
  box-shadow: 0 0 0 3px rgba(12, 49, 76, .12);
}
.nf-field--error input,
.nf-field--error select,
.nf-field--error textarea { border-color: var(--nf-danger); }

.nf-error { color: var(--nf-danger); font-size: .85rem; }

.nf-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .92rem;
  color: var(--nf-muted);
}
.nf-checkbox input { width: 18px; height: 18px; margin-top: .22rem; flex: 0 0 auto; accent-color: var(--nf-navy); }

.nf-honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nf-alert {
  border-radius: var(--nf-radius);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  margin-bottom: 1.5rem;
  border: 1px solid;
}
.nf-alert--success { background: #EDF7F1; border-color: #BFE0CC; color: var(--nf-success); }
.nf-alert--error { background: #FDF0EF; border-color: #F0C8C5; color: var(--nf-danger); }

/* 13. Contact details --------------------------------------------------- */

.nf-contact-list { list-style: none; margin: 0; padding: 0; }
.nf-contact-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--nf-line); }
.nf-contact-list li:first-child { padding-top: 0; }
.nf-contact-list dt, .nf-contact-list .nf-label {
  display: block;
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nf-muted);
  margin-bottom: .3rem;
}
.nf-contact-list a { font-weight: 600; text-decoration: none; }
.nf-contact-list a:hover { text-decoration: underline; }

/* 14. CTA band ---------------------------------------------------------- */

.nf-cta {
  background: var(--nf-paper-deep);
  border-top: 1px solid var(--nf-line);
}
.nf-cta__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}
@media (min-width: 900px) {
  .nf-cta__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; }
}
.nf-cta h2 { margin-bottom: .5rem; }
.nf-cta p { color: var(--nf-muted); margin: 0; max-width: 54ch; }
.nf-cta .nf-actions { margin-top: 0; }

/* 15. Footer ------------------------------------------------------------ */

.nf-footer {
  background: var(--nf-navy-deep);
  color: #93A9B9;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .95rem;
}
.nf-footer a { color: #C3D3DF; text-decoration: none; }
.nf-footer a:hover { color: #fff; text-decoration: underline; }

.nf-footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 680px) { .nf-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .nf-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; } }

.nf-footer__brand img { height: 42px; width: auto; margin-bottom: 1.1rem; }
.nf-footer__brand p { max-width: 36ch; color: #8EA4B4; }

.nf-footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.nf-footer ul { list-style: none; margin: 0; padding: 0; }
.nf-footer li { margin-bottom: .62rem; }

.nf-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.11);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
  color: #7F95A6;
}
.nf-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.nf-footer__bottom li { margin: 0; }

.nf-footer__langs { display: flex; flex-wrap: wrap; gap: .5rem; }
.nf-footer__langs a {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .82rem;
}
.nf-footer__langs a[aria-current="true"] { background: rgba(251,206,10,.14); border-color: rgba(251,206,10,.4); color: var(--nf-gold); }

/* 16. Legal / prose ----------------------------------------------------- */

.nf-prose { max-width: 70ch; }
.nf-prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 2.5rem; }
.nf-prose h2:first-child { margin-top: 0; }
.nf-prose h3 { font-size: 1.1rem; margin-top: 1.75rem; }
.nf-prose ul { padding-inline-start: 1.2rem; }

.nf-page-head {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--nf-line);
  background: var(--nf-paper);
}
.nf-page-head h1 { margin-bottom: .75rem; }
.nf-page-head p { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--nf-muted); max-width: 58ch; }

.nf-breadcrumb { font-size: .85rem; color: var(--nf-muted); margin-bottom: 1.25rem; }
.nf-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.nf-breadcrumb li { margin: 0; display: flex; gap: .5rem; align-items: center; }
.nf-breadcrumb li + li::before { content: "/"; color: var(--nf-line); }
.nf-breadcrumb a { color: var(--nf-muted); text-decoration: none; }
.nf-breadcrumb a:hover { color: var(--nf-navy); text-decoration: underline; }

/* 17. Error pages ------------------------------------------------------- */

.nf-error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 10vw, 7rem);
}
.nf-error-page__code {
  font-family: var(--nf-font-mono);
  font-size: .85rem;
  letter-spacing: .3em;
  color: var(--nf-gold-ink);
  margin-bottom: 1rem;
}

/* 18. Motion ------------------------------------------------------------ */

/* Gated on .js: without JavaScript nothing is ever hidden. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--nf-ease), transform .7s var(--nf-ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal][data-reveal-delay="1"] { transition-delay: .09s; }
.js [data-reveal][data-reveal-delay="2"] { transition-delay: .18s; }
.js [data-reveal][data-reveal-delay="3"] { transition-delay: .27s; }

@keyframes nf-arc-in {
  from { opacity: 0; transform: scale(.88) rotate(-6deg); }
  to   { opacity: .5; transform: none; }
}
.nf-arcs circle { animation: nf-arc-in 1.3s var(--nf-ease) both; transform-origin: 70% 55%; }
.nf-arcs circle:nth-child(2) { animation-delay: .1s; }
.nf-arcs circle:nth-child(3) { animation-delay: .2s; }
.nf-arcs circle:nth-child(4) { animation-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* 19. Utilities --------------------------------------------------------- */

.nf-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nf-mt-0 { margin-top: 0; }
.nf-mb-0 { margin-bottom: 0; }
.nf-text-center { text-align: center; }

/* 20. RTL --------------------------------------------------------------- */

[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.3; }
[dir="rtl"] .nf-eyebrow { letter-spacing: 0; }
[dir="rtl"] .nf-product__wordmark,
[dir="rtl"] .nf-footer h4,
[dir="rtl"] .nf-hero__panel h2,
[dir="rtl"] .nf-product__kicker { letter-spacing: 0; }
[dir="rtl"] .nf-pillar__index { font-family: var(--nf-font-body); }
[dir="rtl"] .nf-step::before { font-family: var(--nf-font-body); }
