/* Self-hosted fonts.
 *
 * These used to come from fonts.googleapis.com, which cost two cross-origin
 * round trips on the critical path — one to fetch the CSS, then another to
 * fetch the files it named, neither of which could start until the first
 * finished. Serving them from our own origin removes both: the connection is
 * already open and the bytes are discovered as soon as this file parses.
 *
 * It also stops sending every visitor's IP to Google on page load, which for
 * an app whose whole argument is "we can't see what you do" was a bad look.
 *
 * Variable fonts, so one file covers every weight we use:
 *   Archivo         400–800 + italic   (--display)
 *   Inter Tight     400–600            (--body / --sans)
 *   JetBrains Mono  400–500            (--mono)
 *
 * Latin subset only. Every accent the site needs (ã õ ç ñ á é í ó ú) lives
 * below U+00FF, and the arrows in the legal pages (← →) fall outside what
 * Google's latin subset carried either — so this is not a regression.
 *
 * `swap` keeps text visible during load: the fallback paints immediately and
 * the real face swaps in. The hero h1 is the LCP element, so blocking on the
 * font would be the wrong trade.
 *
 * format('woff2') not 'woff2-variations': the latter is legacy syntax that
 * strict parsers skip outright, which would silently drop the face back to
 * Helvetica. The weight range above is what marks these as variable.
 *
 * Refresh: see docs/seo/fonts.md for the fetch command.
 */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/archivo-italic-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-tight-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* @norte/brand — design tokens (Light v2.0)
 *
 * Single source of truth for the Norte palette and typography.
 * Imported by both apps/web and apps/landing.
 *
 * Do not duplicate these values into app-specific stylesheets — extend by
 * composing on top of these vars instead.
 */

:root {
  /* Surface.
   *
   * --bg / --linen are the same value (#EFEDE8 — Linen). --bg is the
   * positional name (paired with --bg-2, --bg-3); --linen is the
   * semantic name. Prefer --linen in landing/marketing contexts where the
   * surface is a deliberate brand choice; prefer --bg in app contexts
   * where it's just "the page background".
   */
  --paper: #F6F4EF;
  --bg: #EFEDE8;
  --linen: #EFEDE8;
  --bg-1: #F6F4EF;          /* Paper — lightest */
  --bg-2: #E6E3DC;          /* Panel */
  --bg-3: #DCD8D0;          /* Deeper panel */

  /* Ink scale.
   *
   * Two flavours coexist:
   *   - Positional (--ink, --ink-1 .. --ink-4): the canonical 5-stop scale,
   *     for general-purpose ink. Pick by visual weight.
   *   - Semantic (--ink-lead): named for a specific use-site. Reach for these
   *     when the positional scale doesn't have a stop that reads right at
   *     larger sizes against larger panels of Linen.
   *
   * Add semantic ink tokens sparingly — only when a concrete repeated
   * use-site needs a value the positional scale lacks.
   */
  --ink: #1A1A1A;           /* near-black */
  --ink-1: #2A2A2A;
  --ink-2: #6F6C66;         /* warm mid grey */
  --ink-3: #A8A49C;         /* soft ghosted */
  --ink-4: #C9C5BD;
  --ink-lead: #4A4844;      /* body lead text against Linen panels */

  /* Lines */
  --line: #D3CFC6;
  --line-2: #BFBAB0;

  /* Accents */
  --accent: #7A8B6F;        /* Sage — muted wellness green */
  --accent-2: #C4AE7A;      /* Dune — warm soft tan */
  --sage: #7A8B6F;          /* alias for --accent */
  --sage-soft: #DDE4D6;
  --dune: #C4AE7A;
  --dune-soft: #E6DDC5;

  /* Chama (brand book v3) — the single "active" accent. Burnt orange,
   * reserved for live/streak moments: the flame, an active dot, a live
   * counter tick. It is the only color that is allowed to shout; if a
   * surface already has chama on it, nothing else on that surface may. */
  --chama: #E8923C;
  --chama-soft: #F5DDC2;

  /* Functional tones */
  --rose: #B5685F;          /* clay — warning / danger */
  --rose-soft: #E8C9C4;

  /* Type families.
   *
   * --body / --sans are the same value. Prefer --body in landing/marketing
   * contexts where it's "the body text"; prefer --sans in app contexts
   * where it's "the sans-serif (vs --display, --mono)".
   */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Comparison pages — /compare/ and /compare/norte-vs-*/
 *
 * Editorial long-form, closer to the legal pages than to the landing hero:
 * these are read, not scrolled past. Brand tokens and @font-face are
 * prepended at build time (see the compare emitter in the i18n plugin), so
 * this file holds only layout.
 */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ─ header ─ */

.cmp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.cmp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.cmp-brand svg {
  display: block;
}

.cmp-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}

.cmp-back:hover {
  color: var(--ink);
}

/* ─ breadcrumb ─ */

.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 26px 0 0;
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--ink);
}

/* ─ headings ─ */

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 14px 0 0;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(23px, 4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin: 30px 0 8px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-lead);
  margin: 18px 0 0;
}

/* ─ the direct answer, first thing after the h1 ─
 *
 * Same component as .legal-callout in public/legal/legal.css — matched to it
 * exactly (2px sage on linen, 4px radius) rather than approximated, so the
 * two callouts on the site stay one thing. The body font is the deliberate
 * difference: legal-callout carries a one-line italic tagline, this carries a
 * five-line answer, and display italic at that length reads as shouting.
 */

.answer {
  margin: 30px 0 0;
  padding: 22px 24px;
  background: var(--bg);
  border-left: 2px solid var(--sage);
  border-radius: 4px;
}

.answer .label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 9px;
}

.answer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

/* ─ origin badge ─
 *
 * Deliberately quiet: a row of text with a small flag, not a rosette. The
 * claim earns attention by being specific — real pt-BR, real BRL pricing —
 * so shouting would undercut it.
 */

.origin {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-1);
}

.origin-flag svg {
  display: block;
  border-radius: 2px;
  margin-top: 2px;
}

.origin-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-lead);
}

.origin-text strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

/* ─ table ─ */

.table-scroll {
  overflow-x: auto;
  margin: 20px 0 10px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

/* The h2 above each table already names it; the caption stays for screen
   readers, which announce it when entering the table. */
.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;
}

th,
td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1.5px solid var(--line-2);
  white-space: nowrap;
}

tbody th {
  font-weight: 500;
  color: var(--ink-lead);
}

/* Norte's own column, so a reader can see at a glance which one is ours. */
.col-norte {
  color: var(--ink);
  font-weight: 600;
}

.yes {
  color: var(--accent);
  font-weight: 600;
}

.no {
  color: var(--ink-3);
}

.note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 6px 0 0;
}

/* ─ verdict columns ─ */

.verdicts {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

@media (min-width: 720px) {
  .verdicts {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

.verdict {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-1);
}

.verdict h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.verdict p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-lead);
}

ul.points {
  margin: 14px 0 0;
  padding-left: 20px;
}

ul.points li {
  margin: 0 0 11px;
  color: var(--ink-lead);
}

ul.points li::marker {
  color: var(--ink-3);
}

/* ─ hub cards ─ */

.picks {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.pick {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-1);
}

.pick .tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pick h3 {
  margin: 0 0 8px;
}

.pick p {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--ink-lead);
}

.pick .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

.pick a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.pick a:hover {
  text-decoration-color: var(--ink);
}

/* ─ faq ─ */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  position: relative;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--ink-3);
}

.faq details[open] summary::after {
  content: '–';
}

.faq .a {
  padding: 0 0 18px;
  color: var(--ink-lead);
}

.faq .a p {
  margin: 0;
}

/* ─ cta ─ */

.cta {
  margin: 60px 0 0;
  padding: 34px 28px;
  background: var(--ink);
  border-radius: 5px;
  text-align: center;
}

.cta h2 {
  color: var(--paper);
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 28px);
}

.cta p {
  color: var(--ink-4);
  margin: 0 0 20px;
  font-size: 16px;
}

.btn {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 100px;
  text-decoration: none;
}

.btn:hover {
  background: #fff;
}

/* ─ footer ─ */

.cmp-foot {
  margin-top: 54px;
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}

.cmp-foot p {
  margin: 0 0 10px;
}

.cmp-foot a {
  color: var(--ink-2);
}

/* ─ focus, for keyboard users ─ */

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
