/* =========================================================
   NARFIM — base compartilhada (landing, privacidade, manual)
   Tokens · base · componentes · header · footer
   ========================================================= */
:root{
  --bg:#f7f6f3; --surface:#ffffff; --subtle:#efede8;
  --border:#e4e1da; --border-strong:#d3cfc6;
  --fg:#1c1a17; --fg-2:#4a4640; --fg-3:#6b665d;          /* 16:1 · 9:1 · 5.6:1 sobre --bg */
  --primary:#242019; --primary-hover:#3a352c; --primary-fg:#ffffff;
  --accent:#b8912f; --accent-text:#8a6a1c; --accent-soft:#f4eedc;
  --success:#2f7a4f; --success-soft:#e5f1e9;
  --warn-soft:#fbece6; --warn-text:#9a3f1c;
  --ink-900:#17150f; --ink-800:#201d17; --ink-line:rgba(255,255,255,.12); --ink-fg:#f3f0e8; --ink-fg-2:#b9b2a2;
  --r-sm:8px; --r:12px; --r-lg:16px;
  --shadow-xs:0 1px 2px rgba(28,26,23,.06);
  --shadow-sm:0 1px 2px rgba(28,26,23,.05),0 2px 8px -2px rgba(28,26,23,.08);
  --shadow-lg:0 1px 2px rgba(28,26,23,.06),0 24px 56px -24px rgba(28,26,23,.32);
  --ring:0 0 0 2px var(--bg),0 0 0 4px var(--accent);
  --font:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --wrap:1160px; --gutter:24px; --nav-h:64px;
}
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 16px);-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit}
:focus-visible{outline:none;box-shadow:var(--ring);border-radius:var(--r-sm)}
.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}
.skip{position:absolute;left:16px;top:-60px;z-index:200;background:var(--primary);color:#fff;padding:10px 16px;border-radius:var(--r-sm);font-weight:600;font-size:14px}
.skip:focus{top:12px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}
h1,h2,h3{font-weight:600;letter-spacing:-.025em;line-height:1.1;text-wrap:balance;color:var(--fg)}
p{text-wrap:pretty}
.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.i-sm{width:16px;height:16px}

/* ---- Button ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border-radius:var(--r-sm);border:1px solid transparent;font-size:15px;font-weight:550;letter-spacing:-.005em;white-space:nowrap;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s}
.btn .i{width:18px;height:18px}
.btn-sm{height:36px;padding:0 13px;font-size:14px}
.btn-lg{height:48px;padding:0 22px;font-size:16px}
.btn-primary{background:var(--primary);color:var(--primary-fg);box-shadow:var(--shadow-xs)}
.btn-primary:hover{background:var(--primary-hover)}
.btn-secondary{background:var(--surface);border-color:var(--border-strong);color:var(--fg);box-shadow:var(--shadow-xs)}
.btn-secondary:hover{background:var(--subtle)}
.btn-ghost{background:transparent;color:var(--fg-2)}
.btn-ghost:hover{background:var(--subtle);color:var(--fg)}
.btn-accent{background:var(--accent);color:#1f1806}
.btn-accent:hover{background:#c9a13c}
.btn .arrow{transition:transform .15s}
.btn:hover .arrow,.link:hover .arrow{transform:translateX(2px)}

/* ---- Link com seta ---- */
.link{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:550;color:var(--fg);min-height:44px}
.link:hover{color:var(--accent-text)}
.link .arrow{width:16px;height:16px;transition:transform .15s}

/* ---- Badge de status ---- */
.badge{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.02em;border:1px solid var(--border);background:var(--surface);color:var(--fg-2);white-space:nowrap}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.badge-live{color:var(--success);background:var(--success-soft);border-color:transparent}
.badge-soon{color:var(--fg-3)}
.badge-soon::before{background:var(--border-strong)}

/* ---- Rótulo técnico (mono) ---- */
.label{font-family:var(--mono);font-size:12.5px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-3)}
.label b{color:var(--accent-text);font-weight:500}

/* ---- Icon box ---- */
.ibox{width:40px;height:40px;border-radius:10px;border:1px solid var(--border);background:var(--surface);display:grid;place-items:center;color:var(--fg);box-shadow:var(--shadow-xs);flex:none}

/* ---- Header ---- */
.header{position:sticky;top:0;z-index:50;background:rgba(247,246,243,.86);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid transparent;transition:border-color .2s}
.header.scrolled{border-bottom-color:var(--border)}
.header-in{display:flex;align-items:center;gap:8px;height:var(--nav-h)}
.brand{display:inline-flex;align-items:center;gap:10px;height:44px;padding-right:6px;border-radius:var(--r-sm)}
.brand img{width:28px;height:auto}
.brand .word{font-family:"Montserrat",var(--font);font-weight:600;letter-spacing:.16em;font-size:16px;color:var(--fg);line-height:1}
.brand-sep{width:1px;height:20px;background:var(--border-strong);margin:0 8px 0 4px}
.brand-sub{font-size:14.5px;font-weight:500;color:var(--fg-2)}
.nav{display:flex;gap:2px;margin-left:28px}
.nav a{display:inline-flex;align-items:center;height:36px;padding:0 12px;border-radius:var(--r-sm);font-size:14.5px;font-weight:500;color:var(--fg-2);transition:background-color .15s,color .15s}
.nav a:hover{color:var(--fg);background:var(--subtle)}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.menu-btn{display:none;width:44px;height:44px;border:0;background:none;border-radius:var(--r-sm);cursor:pointer;place-items:center;color:var(--fg)}
.menu-btn:hover{background:var(--subtle)}

/* ---- Footer ---- */
.footer{padding:72px 0 40px;border-top:1px solid var(--border);margin-top:112px}
.foot-grid{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:40px}
.foot-brand p{font-size:14.5px;color:var(--fg-3);margin-top:14px;max-width:24em}
.foot-col h2{font-family:var(--mono);font-size:12.5px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-3);margin-bottom:10px}
.foot-col ul{list-style:none;padding:0}
.foot-col a{display:inline-flex;align-items:center;min-height:36px;font-size:14.5px;color:var(--fg-2)}
.foot-col a:hover{color:var(--fg)}
.foot-bottom{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:56px;padding-top:24px;border-top:1px solid var(--border);font-size:13.5px;color:var(--fg-3)}
.foot-bottom a:hover{color:var(--fg)}
.footer.compact{padding:32px 0;margin-top:96px}
.footer.compact .foot-bottom{margin-top:0;padding-top:0;border-top:0;align-items:center}

@media (max-width:900px){
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1/-1}
}
@media (max-width:720px){
  :root{--gutter:20px}
  .footer{margin-top:80px;padding-top:56px}
  .footer.compact{margin-top:64px;padding-top:28px}
  .brand-sub{font-size:14px}
}
/* utilitários de visibilidade responsiva */
@media (max-width:560px){ .hide-sm{display:none} .btn-icon-sm{width:44px;padding:0} }
@media (max-width:420px){ .hide-xs{display:none} }
@media (pointer:coarse){
  .btn-sm{height:44px}
  .foot-col a,.foot-bottom a{min-height:44px;display:inline-flex;align-items:center}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
