/* ============================================================
   Neffico Point — main website (neffico-point.com)
   Pure static site, no framework, no JS.
   Brand source: docs/dev-redesign/main-website/initial-draft/website-dev-design-guide.md
   Fonts: self-hosted IBM Plex, copied from packages/typography/fonts/
   (regenerate there via `yarn workspace @br-portal/typography build:fonts`).
   ============================================================ */

/* ---- fonts (self-hosted, SIL OFL — see fonts/OFL-PLEX.txt) ---- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-var-roman.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-var-italic.woff2") format("woff2");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- brand tokens (design guide §3.1) ----
   Dark is the default; light mode follows the OS via prefers-color-scheme
   (no JS on this site, so no manual toggle). Per the brand rule, the accent
   is surface-dependent: bright amber #FF9F1C on dark, the deep burnt family
   (#E86000 fills / #A04300 text) on light — bright amber fails contrast on
   white, and white text fails on burnt fills (so --ac-ink stays dark ink). */
:root {
  --bg: #0A0A0B;
  --s1: #161618;
  --s2: #1F1F23;
  --bd: #27272A;
  --bd2: #3F3F46;
  --tx: #FAFAFA;
  --tx2: #A1A1AA;
  --tx3: #71717A;          /* decorative / large text only */
  --ac: #FF9F1C;           /* the one owned hue — fills, icons, borders */
  --ac-text: #FF9F1C;      /* accent as text (eyebrows, highlighted words) */
  --ac-ink: #1A1205;       /* text on accent fills */
  --ac-hover: #FFB84D;     /* primary button hover */
  --ac-soft: rgba(255, 159, 28, 0.14); /* faint accent wash (icon wells on card hover) */
  --link: #2DD4BF;         /* links & info only */
  --grid-line: #161619;
  --header-bg: rgba(10, 10, 11, 0.92);
  --logo-stroke: #A1A1AA;
  --card-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAFAFA;
    --s1: #FFFFFF;
    --s2: #F4F4F5;
    --bd: #E4E4E7;
    --bd2: #D4D4D8;
    --tx: #18181B;
    --tx2: #52525B;
    --tx3: #A1A1AA;
    --ac: #E86000;         /* fills, icons, borders — 3.2:1 vs white, fine for non-text */
    --ac-text: #A04300;    /* accent text — 5.9:1 on #FAFAFA, passes AA at any size */
    --ac-ink: #1A1205;     /* dark ink kept: white on #E86000 fails AA */
    --ac-hover: #C85400;
    --ac-soft: rgba(232, 96, 0, 0.10);
    --link: #0F766E;       /* teal-700 — bright teal #2DD4BF is unreadable on white */
    --grid-line: #ECECEF;
    --header-bg: rgba(250, 250, 250, 0.92);
    --logo-stroke: #52525B;
    --card-shadow: 0 10px 28px rgba(24, 24, 27, 0.10);
  }
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { vertical-align: middle; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.grid-bg {
  background-image: linear-gradient(var(--grid-line) 0.5px, transparent 0.5px),
                    linear-gradient(90deg, var(--grid-line) 0.5px, transparent 0.5px);
  background-size: 26px 26px;
  background-position: center;
}

/* logo mark (header/footer SVGs) — strokes + amber point follow the theme */
.logo-mark { color: var(--logo-stroke); }
.logo-point { fill: var(--ac); }

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ac-text);
}
.muted { color: var(--tx2); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ac); color: var(--ac-ink); border: 1px solid var(--ac); }
.btn-primary:hover { background: var(--ac-hover); border-color: var(--ac-hover); }
.btn-ghost { background: transparent; color: var(--tx); border: 1px solid var(--bd2); }
.btn-ghost:hover { border-color: var(--tx3); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--bd);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--tx);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.site-nav a:not(.btn) { color: var(--tx2); font-size: 14px; }
.site-nav a:not(.btn):hover { color: var(--tx); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--tx); }

/* ---- hero ---- */
.hero { text-align: center; padding: 88px 0 56px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 16px 0 0;
}
.hero h1 .point { color: var(--ac-text); }
.hero .sub {
  color: var(--tx2);
  font-size: 17px;
  max-width: 780px; /* wide enough for the full first line — keeps the sub proportionate to the h1 above */
  margin: 22px auto 0;
  line-height: 1.75; /* curated lines — slightly airier than body prose */
}
.hero .actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---- page hero (inner pages) ---- */
.page-hero { text-align: center; padding: 64px 0 48px; }
.page-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; letter-spacing: -0.025em; margin-top: 14px; }
.page-hero .sub { color: var(--tx2); font-size: 16px; max-width: 540px; margin: 16px auto 0; }

/* ---- sections ---- */
.section { padding: 56px 0; }
/* the highlights row inside the hero's grid backdrop belongs to the hero's
   pitch — pull it close so it reads as one unit (and stays above the fold) */
.grid-bg .hero + .section { padding-top: 8px; }
/* same seam on inner pages: the first section after a page-hero's backdrop
   is that hero's payoff — don't let the two paddings stack to ~104px */
.grid-bg:has(.page-hero) + .section { padding-top: 12px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 4vw, 30px); font-weight: 700; margin-top: 12px; }
.section-head p { color: var(--tx2); margin-top: 12px; }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--s1);
  border: 0.5px solid var(--bd);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--bd2);
  box-shadow: var(--card-shadow);
}
.card:hover .icon-well { background: var(--ac-soft); }
.card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 13px; color: var(--tx2); line-height: 1.55; margin: 0; }
.icon-well {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac);
  margin-bottom: 14px;
  transition: background 0.18s ease;
}

/* ---- pricing ---- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.tier {
  background: var(--s1);
  border: 0.5px solid var(--bd);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier.popular { border: 2px solid var(--ac); }
.tier .badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ac);
  color: var(--ac-ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.tier .tier-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--tx3); margin-bottom: 10px; }
.tier.popular .tier-eyebrow { color: var(--ac-text); }
.tier h3 { font-size: 16px; font-weight: 600; }
.tier .blurb { font-size: 13px; color: var(--tx2); margin: 6px 0 14px; line-height: 1.45; min-height: 38px; }
.tier .price { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.tier .price .per { font-size: 13px; color: var(--tx3); font-weight: 400; }
.tier ul { list-style: none; margin: 16px 0 18px; padding: 0; }
.tier li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  color: var(--tx2);
  margin-bottom: 9px;
  line-height: 1.45;
}
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  background-color: var(--ac);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5L20 7"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5L20 7"/></svg>') no-repeat center / contain;
}
.tier .btn { margin-top: auto; text-align: center; }

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--tx2);
  text-align: center;
}
.pricing-note svg { color: var(--ac); flex: none; }

/* ---- feature rows (product page) ---- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 0.5px solid var(--bd);
}
.feature-row:last-child { border-bottom: none; }
.feature-row h3 { font-size: 20px; font-weight: 600; margin: 10px 0 10px; }
.feature-row p { color: var(--tx2); font-size: 14px; }
.feature-row ul { list-style: none; padding: 0; margin: 12px 0 0; }
.feature-row li { position: relative; padding-left: 24px; font-size: 13px; color: var(--tx2); margin-bottom: 8px; }
.feature-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px;
  height: 15px;
  background-color: var(--ac);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5L20 7"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12l5 5L20 7"/></svg>') no-repeat center / contain;
}
/* product screenshots, framed in the brand browser-chrome device */
.feature-shot {
  margin: 0;
  background: var(--s1);
  border: 0.5px solid var(--bd);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--s2);
  border-bottom: 0.5px solid var(--bd);
}
.feature-shot-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bd2);
}
.feature-shot img { display: block; width: 100%; height: auto; }

/* ---- faq (details/summary, zero JS) ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--s1);
  border: 0.5px solid var(--bd);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 15px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ac);
  font-weight: 400;
  font-size: 18px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--tx2); font-size: 14px; padding-bottom: 16px; margin: 0; }

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  background: var(--s1);
  border: 0.5px solid var(--bd);
  border-radius: 16px;
  padding: 48px 28px;
  /* no own margins — every usage sits inside a .section, whose padding
     already provides the page's standard 56px separation */
}
.cta-band h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; }
.cta-band p { color: var(--tx2); margin: 12px auto 0; max-width: 480px; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ---- prose (legal pages) ---- */
.prose { max-width: 720px; margin: 0 auto; padding: 48px 0 80px; }
.prose h1 { font-size: 30px; margin-bottom: 8px; }
.prose h2 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--tx2); font-size: 15px; }
.prose .updated { font-family: var(--mono); font-size: 12px; color: var(--tx3); }

/* ---- footer ---- */
.site-footer {
  border-top: 0.5px solid var(--bd);
  padding: 44px 0 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer-grid .tagline { color: var(--tx2); font-size: 13px; margin-top: 12px; max-width: 260px; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tx3);
  font-weight: 400;
  margin: 0 0 12px;
}
.footer-col a { display: block; color: var(--tx2); font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--tx); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 0.5px solid var(--bd);
  font-size: 12px;
  color: var(--tx3);
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .cards, .tiers { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* The hero sub uses curated <br> line breaks so each key point owns a line;
   below the width where the long first line fits, the forced breaks would
   fight the viewport, so let the text wrap naturally instead. */
@media (max-width: 840px) {
  .hero .sub br { display: none; }
}

@media (max-width: 560px) {
  .cards, .tiers { grid-template-columns: 1fr; }
  .site-nav a.nav-link-secondary { display: none; } /* keep header to logo + 2 links + CTA on phones */
  .hero { padding: 64px 0 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; } /* keep the border/shadow feedback, drop the motion */
}
