/* CLIP⌝ · clipstandard.com.br · tokens do DNA v1.0 */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #F7F7F4;
  --paper-deep: #EFEFEA;
  --line: #DEDED8;
  --stone: #B9B9B1;
  --ink: #111111;
  --ink-soft: #2E2E2B;
  --ink-muted: #5C5C56;
  --blue: #115CFF;
  --blue-hover: #0A47D1;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px; --s7: 144px;
  --max: 1200px;
  --text: 680px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

code {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--ink);
}

h1, h2, h3 { font-weight: 500; margin: 0; color: var(--ink); }
p { margin: 0 0 var(--s2); color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s2); top: var(--s2); background: var(--paper); padding: var(--s1) var(--s2); z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--s3);
}

.blend { mix-blend-mode: multiply; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-header__logo { display: inline-flex; }
.site-nav { display: flex; gap: var(--s3); }
.site-nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: var(--s1);
  background: var(--blue); color: var(--paper);
  font-family: var(--sans); font-size: 17px; font-weight: 500;
  padding: 16px 24px; border-radius: 2px; text-decoration: none;
  border: 0; cursor: pointer;
}
.button:hover { background: var(--blue-hover); color: var(--paper); }
.button--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
.button[aria-disabled="true"] { background: var(--stone); color: var(--ink); cursor: not-allowed; }

/* Sections */
.section { padding: var(--s6) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--deep { background: var(--paper-deep); }
.section--night { background: var(--ink); color: var(--paper); border-top: 0 !important; }
.section--night h2, .section--night h3 { color: var(--paper); }
.section--night p, .section--night li { color: #D8D8D2; }
.section--night .label { color: var(--stone); }

.h-xl { font-size: clamp(56px, 9vw, 120px); line-height: .98; letter-spacing: -.035em; }
.h-l { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.03em; }
.h-m { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.h-s { font-size: 22px; line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--ink); max-width: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: center; }
.split--5-7 { grid-template-columns: 5fr 7fr; }
.split--7-5 { grid-template-columns: 7fr 5fr; }

/* Home · abertura */
.opening { padding: var(--s6) 0 var(--s6); }
.opening__stat { color: var(--blue); display: block; }
.opening__copy { margin-top: var(--s3); }
.opening__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.opening__photo img, .photo-fill img { width: 100%; height: 100%; object-fit: cover; }
.photo--desaturate { filter: saturate(.55) brightness(1.04) contrast(1.02); }
.source { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-muted); margin-top: var(--s3); }

/* Home · tese */
.thesis { position: relative; min-height: min(78vh, 760px); display: flex; align-items: center; overflow: hidden; padding: var(--s6) 0; }
.thesis__bg { position: absolute; top: 0; bottom: 0; right: 0; left: 46%; }
.thesis__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.thesis > .wrap { width: 100%; }
.thesis__content { position: relative; max-width: 500px; }
.thesis__content .lead { margin-top: var(--s4); }

/* Dados */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
.stat { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.stat__num { font-size: clamp(56px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; font-weight: 500; color: var(--blue); }
.stat__text { margin-top: var(--s2); color: var(--ink-soft); }
.stat__n { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); margin-top: var(--s1); }

/* Princípios */
.principles { margin-top: var(--s5); border-top: 1px solid var(--ink); }
.principle { display: grid; grid-template-columns: 120px 5fr 7fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.principle__num { font-family: var(--mono); font-size: 14px; color: var(--ink-muted); padding-top: 6px; }
.principle p { margin: 0; }

/* Steps */
.steps { list-style: none; margin: var(--s4) 0 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: var(--s2); padding: var(--s2) 0; border-top: 1px solid rgba(247, 247, 244, .16); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 13px; color: var(--stone); padding-top: 3px; }
.section:not(.section--night) .steps li { border-top-color: var(--line); }
.section:not(.section--night) .steps li::before { color: var(--ink-muted); }
.steps strong { font-weight: 500; color: inherit; }
.section--night .steps strong { color: var(--paper); }

.mark-corner { width: 96px; mix-blend-mode: normal; }

/* Listas */
.list { list-style: none; margin: var(--s3) 0 0; padding: 0; max-width: var(--text); }
.list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list--check li { padding-left: 32px; position: relative; }
.list--check li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 10px;
  border-top: 3px solid var(--blue); border-right: 3px solid var(--blue);
}

/* Modo CLIP · hero */
.page-hero { padding: var(--s6) 0 var(--s5); }
.page-hero .h-l { max-width: 980px; margin-top: var(--s2); }
.page-hero .lead { margin-top: var(--s4); }
.page-hero .button { margin-top: var(--s4); }

.prose { max-width: var(--text); }
.prose h2 { margin-bottom: var(--s3); }

.example { border-left: 0; background: var(--paper-deep); padding: var(--s4); }

.price { font-size: clamp(56px, 7vw, 88px); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--paper); }
.pending-note { font-family: var(--mono); font-size: 12px; color: var(--stone); margin-top: var(--s2); }

.faq dt { font-weight: 500; color: var(--ink); padding-top: var(--s3); border-top: 1px solid var(--line); }
.faq dd { margin: var(--s1) 0 var(--s3); color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s5) 0; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }

.site-footer p { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); margin: 0; }

/* Responsivo */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .section { padding: var(--s5) 0; }
  .split, .split--5-7, .split--7-5 { grid-template-columns: 1fr; gap: var(--s4); }
  .stats { grid-template-columns: 1fr; gap: var(--s4); }
  .principle { grid-template-columns: 1fr; gap: var(--s1); }
  .thesis { min-height: auto; padding: 0; display: block; }
  .thesis__bg { position: relative; aspect-ratio: 16 / 10; }
  .thesis__content { padding: var(--s5) 0; }
  .site-nav { gap: var(--s2); }
  .site-nav a:first-child { display: none; }
  .thesis__bg { left: 0; }
  .opening__photo { aspect-ratio: 4 / 3; }
}


/* Logo SVG inline (paths originais da marca) */
.logo-svg { display: block; height: 48px; width: calc(48px * 1640 / 430); }
.logo-svg--footer { height: 64px; width: calc(64px * 1640 / 430); }
.logo-svg__text { fill: #404040; font-family: "Inter", sans-serif; font-size: 100.81px; font-weight: 500; }

/* Abertura com a tese */
.thesis--opening { min-height: min(84vh, 820px); }
.thesis--opening .h-l { margin-top: var(--s2); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

/* Camadas: protocolo e produtos */
.layers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.layer { background: var(--paper); border: 1px solid var(--line); padding: var(--s4); position: relative; }
.layer p { margin-top: var(--s2); }
.layer a { display: inline-block; margin-top: var(--s3); font-weight: 500; }
.layer--base::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 20px; height: 20px;
  border-top: 6px solid var(--blue); border-right: 6px solid var(--blue);
}

/* Preço de/por */
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.price-from { font-size: 22px; color: var(--ink-muted); }
.price-to { font-size: clamp(48px, 6vw, 72px); font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.price-note { font-family: var(--mono); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; }
.section--night .price-to { color: var(--paper); }
.section--night .price-from, .section--night .price-note { color: var(--stone); }

/* Disclaimer */
.disclaimer { font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--ink-muted); margin: var(--s5) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); }

@media (max-width: 860px) {
  .layers { grid-template-columns: 1fr; }
  .logo-svg { height: 36px; width: calc(36px * 1640 / 430); }
  .logo-svg--footer { height: 48px; width: calc(48px * 1640 / 430); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
