:root {
  --ink: #1b1d1a;
  --muted: #585e57;
  --paper: #ffffff;
  --warm: #f8f7f3;
  --sand: #efeee8;
  --line: #d8d8d1;
  --line-strong: #a7aba4;
  --accent: #a65300;
  --accent-ink: #733900;
  --accent-soft: #fff0da;
  --inverse: #17201d;
  --max: 1200px;
  --radius: 12px;
  --radius-small: 4px;
  --shadow: 0 16px 48px rgba(24, 30, 27, 0.09);
  --font-display: "Arvo", Georgia, "Times New Roman", serif;
  --font-body: "Lato", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--inverse);
  color: #fff;
  border-radius: var(--radius-small);
}
.skip-link:focus { top: 16px; }

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { position: relative; padding: 96px 0; overflow: clip; }
.section--warm { background: var(--warm); }
.section--ink { background: var(--inverse); color: #fff; }
.section--compact { padding: 64px 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow::before { width: 32px; height: 1px; flex: 0 0 auto; content: ""; background: currentColor; }
.section--ink .eyebrow { color: #f0b27d; }
.h1, .h2, .h3 {
  font-family: var(--font-display);
  letter-spacing: -.018em;
  line-height: 1.08;
  margin: 0;
}
.h1 { font-size: clamp(42px, 6.6vw, 78px); max-width: 15ch; }
.h2 { font-size: clamp(32px, 4vw, 54px); max-width: 17ch; }
.h3 { font-size: clamp(21px, 2.2vw, 30px); }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 760px; color: var(--muted); }
.section--ink .lead, .section--ink .muted { color: rgba(255,255,255,.72); }
.muted { color: var(--muted); }
.kicker { max-width: 720px; margin-top: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216,216,209,.92);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}
.brand-mark {
  width: 116px;
  height: 62px;
  flex: 0 0 auto;
  background: url("/assets/logo-trebien.png") center / contain no-repeat;
}
.brand-mark + span { display: none; }
.brand-logo { width:116px; height:62px; object-fit:contain; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: 800; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent-ink); }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-small);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn:hover { background-color: var(--sand); }
.btn--primary { background: var(--inverse); color: #fff; border-color: var(--inverse); }
.btn--primary:hover { background:#25312d; border-color:#25312d; }
.btn--soft { background: transparent; border-color: var(--line-strong); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-ink); border-color:var(--accent-ink); }
.section--ink .btn--primary { background: #fff; color: var(--ink); border-color: #fff; }
.section--ink .btn--soft { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

.hero { padding: 72px 0 84px; background: linear-gradient(180deg,#fff 0%,var(--warm) 100%); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}
.hero-copy { min-width: 0; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}
.proof {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.76);
}
.proof strong { display:block; font-size:13px; }
.proof span { display:block; margin-top:3px; font-size:12px; color:var(--muted); }
.hero-media { position: relative; min-height: 560px; }
.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  background: var(--sand);
  box-shadow: var(--shadow);
}
.hero-card img { width:100%; height:100%; object-fit:cover; }
.hero-card--main { inset: 0 13% 15% 0; }
.hero-card--small { width: 46%; height: 45%; right:0; bottom:0; border:8px solid var(--warm); }
.hero-note {
  position:absolute;
  top:7%;
  right:0;
  width: 220px;
  padding: 18px;
  background: var(--inverse);
  color:#fff;
  border-radius:var(--radius);
  font-size:13px;
  box-shadow:var(--shadow);
}

.trust-strip { border-block: 1px solid var(--line); background:#fff; }
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); }
.trust-item { padding:18px 20px; text-align:center; font-weight:900; font-size:13px; border-right:1px solid var(--line); }
.trust-item:last-child { border-right:0; }

.principle-band { background:var(--inverse); color:#fff; }
.principle-grid { display:grid; grid-template-columns:.7fr 1.3fr; gap:clamp(34px,6vw,84px); align-items:center; }
.principle-word { font-family:var(--font-display); font-size:clamp(48px,8vw,100px); line-height:.92; letter-spacing:-.04em; color:#fff; }
.principle-copy { max-width:700px; }
.principle-copy p { color:rgba(255,255,255,.72); font-size:clamp(17px,1.8vw,21px); }

.section-head { display:flex; justify-content:space-between; align-items:end; gap:28px; margin-bottom:46px; }
.section-head > * { min-width:0; }
.section-head .lead { margin:0; max-width:540px; }

.grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.card {
  min-width:0;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  background:#fff;
}
.card--warm { background:var(--warm); }
.card--ink { background:var(--inverse); color:#fff; border-color:var(--inverse); }
.card-number { font-size:12px; font-weight:900; letter-spacing:.12em; color:var(--accent); }
.card p:last-child { margin-bottom:0; }
.card-link { display:inline-flex; margin-top:16px; font-weight:900; text-decoration:none; color:var(--accent-ink); border-bottom:1px solid currentColor; }
.card--ink .card-link { color:#fff; }

.media-card { position:relative; min-height:380px; overflow:hidden; border-radius:16px; background:var(--sand); }
.media-card img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.media-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.74)); }
.media-card__copy { position:absolute; z-index:2; inset:auto 24px 24px; color:#fff; }
.media-card__copy p { margin:8px 0 0; color:rgba(255,255,255,.8); }

.feature-list { display:grid; gap:0; border-top:1px solid var(--line); }
.feature-row { display:grid; grid-template-columns:70px minmax(0,1fr) minmax(260px,.7fr); gap:22px; align-items:start; padding:26px 0; border-bottom:1px solid var(--line); }
.feature-index { font-size:12px; font-weight:900; color:var(--accent); }
.feature-row p { margin:0; color:var(--muted); }
.section--ink .feature-row { border-color:rgba(255,255,255,.15); }
.section--ink .feature-index { color:#f0b27d; }

.route-list { display:grid; border-top:1px solid var(--line); }
.route-item { display:grid; grid-template-columns:180px 1fr auto; gap:24px; align-items:center; padding:24px 0; border-bottom:1px solid var(--line); text-decoration:none; }
.route-item strong { font-family:var(--font-display); font-size:22px; }
.route-item span { color:var(--muted); }
.route-item b { color:var(--accent-ink); font-size:14px; }

.process { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; counter-reset:step; }
.step { min-height:190px; padding:20px; border-radius:var(--radius); background:#fff; border:1px solid var(--line); }
.step::before { counter-increment:step; content:"0" counter(step); display:block; margin-bottom:34px; font-size:12px; font-weight:900; color:var(--accent); }
.step strong { display:block; line-height:1.25; }

.stat-band { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:stretch; }
.stat-panel { padding:42px; border-radius:var(--radius); background:var(--inverse); color:#fff; }
.stat-panel .big { font-family:var(--font-display); font-size:clamp(38px,6vw,68px); line-height:1; letter-spacing:-.03em; }
.stat-panel p { color:rgba(255,255,255,.72); }
.stat-panel--light { background:var(--sand); color:var(--ink); }
.stat-panel--light p { color:var(--muted); }

.quote-panel { display:grid; grid-template-columns:minmax(0,.8fr) minmax(320px,1.2fr); gap:30px; align-items:stretch; }
.quote-copy { padding:40px; border-radius:var(--radius); background:var(--inverse); color:#fff; }
.quote-frame-wrap { min-height:820px; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--warm); }
.quote-frame { width:100%; height:100%; min-height:820px; border:0; display:block; background:#fff; }
.quote-fallback { padding:30px; }
.quote-context { margin:0 0 24px; padding:14px 16px; border-left:3px solid #f0b27d; background:rgba(255,255,255,.08); color:rgba(255,255,255,.86); font-size:14px; }

.faq { border-top:1px solid var(--line); }
details { border-bottom:1px solid var(--line); padding:20px 0; }
summary { cursor:pointer; list-style:none; font-weight:800; display:flex; justify-content:space-between; gap:20px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; font-size:22px; font-weight:400; }
details[open] summary::after { content:"–"; }
details p { max-width:760px; color:var(--muted); }

.cta-band { padding:72px 0; background:var(--sand); }
.cta-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:32px; align-items:end; }

.breadcrumbs { padding-top:26px; font-size:13px; color:var(--muted); }
.breadcrumbs a { text-decoration:none; }
.page-hero { padding:56px 0 72px; background:var(--warm); }
.page-hero .h1 { max-width:16ch; }
.page-hero__grid { display:grid; grid-template-columns:1.1fr .9fr; gap:50px; align-items:end; }
.page-hero__aside { padding:26px; border-left:1px solid var(--line); }
.page-hero__aside p { margin:0 0 10px; color:var(--muted); }

.footer { padding:54px 0 26px; background:#111613; color:#fff; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:38px; }
.footer h3 { margin:0 0 14px; font-size:13px; text-transform:uppercase; letter-spacing:.1em; }
.footer a { display:block; color:rgba(255,255,255,.74); text-decoration:none; margin:8px 0; }
.footer a:hover { color:#fff; }
.footer .brand { display:inline-flex; }
.footer-brand p { max-width:330px; color:rgba(255,255,255,.68); }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; margin-top:42px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); color:rgba(255,255,255,.55); font-size:12px; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity:1; transform:none; }

@media (max-width: 1040px) {
  .nav-links { gap:14px; }
  .nav-links a { font-size:13px; }
}

@media (max-width: 980px) {
  .hero-grid, .page-hero__grid, .quote-panel, .cta-grid, .stat-band, .principle-grid { grid-template-columns:1fr; }
  .hero-media { min-height:500px; }
  .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .process { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .footer-grid { grid-template-columns:1.2fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column:2 / 4; }
  .feature-row { grid-template-columns:50px minmax(0,1fr); }
  .feature-row > :last-child { grid-column:2; }
  .route-item { grid-template-columns:150px 1fr auto; }
}

@media (max-width: 820px) {
  .nav-toggle { display:block; }
  .nav-links {
    position:absolute;
    top:78px;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:14px;
    background:#fff;
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 35px rgba(0,0,0,.08);
  }
  .nav-links.is-open { display:flex; }
  .nav-links a { padding:13px 10px; font-size:14px; }
  .nav-links .btn { margin-top:8px; }
}

@media (max-width: 760px) {
  .shell { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:68px 0; }
  .section--compact { padding:48px 0; }
  .nav { min-height:70px; }
  .brand-mark, .brand-logo { width:98px; height:54px; }
  .nav-links { top:70px; }
  .hero { padding:54px 0 64px; }
  .hero-grid { gap:38px; }
  .hero-media { min-height:410px; }
  .hero-card--main { inset:0 8% 16% 0; }
  .hero-card--small { width:48%; height:42%; border-width:5px; }
  .hero-note { width:176px; top:4%; font-size:11px; }
  .hero-proof { grid-template-columns:1fr; }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .trust-item:nth-child(2) { border-right:0; }
  .trust-item:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .section-head { display:block; }
  .section-head .lead { margin-top:18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .process { grid-template-columns:1fr 1fr; }
  .feature-row { grid-template-columns:38px minmax(0,1fr); gap:12px; }
  .media-card { min-height:330px; }
  .quote-frame-wrap, .quote-frame { min-height:980px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column:1 / -1; }
  .footer-bottom { flex-direction:column; }
  .btn-row .btn { width:100%; }
  .route-item { grid-template-columns:1fr; gap:8px; }
  .route-item b { justify-self:start; }
}

@media (max-width: 430px) {
  .h1 { font-size:clamp(38px,12vw,52px); }
  .h2 { font-size:34px; }
  .process { grid-template-columns:1fr; }
  .hero-media { min-height:360px; }
  .hero-note { display:none; }
  .hero-card--main { inset:0 0 12% 0; }
  .hero-card--small { width:46%; height:35%; }
  .page-hero { padding:42px 0 56px; }
  .card, .quote-copy, .stat-panel { padding:24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
  .reveal { opacity:1; transform:none; }
}

/* Storefront footer — exact visual parity with loja.trebien.com.br */
.site-footer{
  --store-footer-gutter:clamp(1rem,4vw,2rem);
  --store-footer-wide:75rem;
  display:grid;
  gap:2rem;
  padding-inline:var(--store-footer-gutter);
  padding-block:2.5rem;
  color:#d8ddd9;
  background:#17201d;
  font-family:"Lato",Arial,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:.875rem;
  line-height:1.65;
}
.site-footer>*{
  width:min(100%,var(--store-footer-wide));
  margin-inline:0;
}
.site-footer .brand{
  display:inline-flex;
  align-items:center;
  justify-self:start;
  width:fit-content;
  gap:0;
  padding:.5rem;
  background:#fff;
  border-radius:.25rem;
  font-family:"Arvo",Georgia,"Times New Roman",serif;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
}
.site-footer .brand-logo{
  display:block;
  width:9rem;
  height:auto;
  max-width:100%;
}
.site-footer p{
  margin:.75rem 0 0;
  max-width:none;
  color:#d8ddd9;
  font:inherit;
}
.site-footer nav{
  display:grid;
  gap:.75rem;
}
.site-footer nav a{
  color:inherit;
  text-decoration-thickness:.08em;
  text-underline-offset:.2em;
}
.site-footer .footer-button{
  min-height:2.75rem;
  padding:0;
  color:inherit;
  background:none;
  border:0;
  cursor:pointer;
  font:inherit;
  text-align:left;
  text-decoration:underline;
  text-underline-offset:.2em;
}
.site-footer small{
  color:inherit;
}
@media(hover:hover){
  .site-footer a:hover,
  .site-footer .footer-button:hover{color:#a65300}
}
@media(min-width:48rem){
  .site-footer{grid-template-columns:minmax(0,1fr) auto}
  .site-footer small{grid-column:1/-1}
}
@media(min-width:64rem){
  .site-footer{
    grid-template-columns:minmax(0,1fr) auto auto;
    padding-inline:max(var(--store-footer-gutter),calc((100vw - var(--store-footer-wide))/2));
  }
  .site-footer small{grid-column:auto}
}

