/* Journal Club · primeira prévia (2026-12-01)
   Sem marca ainda. A vibe vem das referências de boné do Caio (journal_club/referencias/Merch):
   azul-marinho, laranja queimado, creme, serifa clássica. Serifa = New York (ui-serif) no iPhone. */

:root {
  --paper: #F4F1EA;
  --paper-2: #EAE4D6;
  --card: #FFFFFF;
  --ink: #141B2D;
  --navy: #1C2A4A;
  --navy-2: #24345A;
  --cream: #F4F1EA;
  --muted: #6B6F7A;
  --soft: #3B4152;
  --line: rgba(20, 27, 45, .12);
  --orange: #C9541F;
  --green: #2E8B57;

  --serif: ui-serif, "New York", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;

  --gutter: 18px;
  --top: max(env(safe-area-inset-top), 22px);
  --bottom: max(env(safe-area-inset-bottom), 14px);
  --tabbar: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.balance { text-wrap: balance; }

/* ---------- As três seções, lado a lado ---------- */
.pager {
  position: fixed; inset: 0;
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.pager::-webkit-scrollbar { display: none; }
.pane {
  flex: 0 0 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: calc(var(--top) + 6px) var(--gutter) calc(var(--tabbar) + var(--bottom) + 34px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pane::-webkit-scrollbar { display: none; }

.pane-head { padding: 6px 2px 22px; }
.pane-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 44px; line-height: .92; letter-spacing: -.025em;
}
.pane-sub { margin-top: 10px; font-size: 15px; color: var(--muted); }

.section-h {
  margin: 30px 2px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Feed ---------- */
.masthead { text-align: center; padding: 0 0 18px; }
.mast-line {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.mast-name {
  margin: 10px 0 12px;
  font-family: var(--serif); font-weight: 500;
  font-size: 52px; line-height: .9; letter-spacing: -.03em;
}
.mast-edition {
  padding: 10px 0 0;
  border-top: 4px double var(--ink);
  color: var(--ink);
}

.card {
  display: block; width: 100%; text-align: left;
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(20, 27, 45, .05), 0 10px 28px -18px rgba(20, 27, 45, .35);
  transition: transform .18s ease;
}
.card:active { transform: scale(.985); }
.card-in { padding: 18px 18px 20px; }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--orange);
}
.title {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em;
  text-wrap: balance;
}
.dek { font-size: 15.5px; line-height: 1.38; color: var(--soft); text-wrap: pretty; }
.meta { font-size: 12.5px; color: var(--muted); }

.hero .title { font-size: 34px; line-height: .95; margin: 8px 0 12px; }
.hero .dek { margin-bottom: 14px; }
.medium .title { font-size: 26px; line-height: .98; margin: 8px 0 10px; }
.medium .dek { margin-bottom: 12px; }
.text .title { font-size: 27px; line-height: .98; margin: 8px 0 10px; }
.text .dek { margin-bottom: 12px; }

.row .card-in { display: grid; grid-template-columns: 1fr 92px; gap: 14px; align-items: start; }
.row .title { font-size: 20px; line-height: 1.04; margin: 7px 0 10px; }
.row .art { width: 92px; height: 92px; border-radius: 14px; aspect-ratio: auto; }

/* Arte das matérias: carrega informação (gráfico, número, data), nunca é só um bloco de cor */
.art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: grid; place-items: center; }
.art-chart { background: var(--navy); }
.art-chart svg { width: 100%; height: 100%; display: block; }
.art-number { color: var(--cream); font-family: var(--serif); font-weight: 700; letter-spacing: -.04em; }
.art-number.orange { background: var(--orange); }
.art-number.navy { background: var(--navy); }
.art-number .big { font-size: 128px; line-height: .8; }
.art-number .lab { position: absolute; left: 16px; bottom: 14px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.row .art-number .big { font-size: 36px; }
.art-cal { background: var(--paper-2); color: var(--ink); text-align: center; }
.art-cal .m { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.art-cal .d { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: .9; letter-spacing: -.03em; }

.briefing .card-in { padding-bottom: 8px; }
.briefing .title { font-size: 24px; line-height: 1; margin: 8px 0 6px; }
.brief-list { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: b; }
.brief-list li {
  counter-increment: b;
  display: grid; grid-template-columns: 26px 1fr; gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.36; text-wrap: pretty;
}
.brief-list li::before {
  content: counter(b);
  font-family: var(--serif); font-weight: 700; font-size: 20px; line-height: 1; color: var(--orange);
}

.letter { background: var(--paper-2); box-shadow: none; }
.letter .quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 25px; line-height: 1.08; letter-spacing: -.01em;
  margin: 12px 0 14px; text-wrap: balance;
}
.letter .sign { font-size: 13px; color: var(--soft); }

/* ---------- Oportunidades ---------- */
.opp {
  background: var(--navy);
  color: var(--cream);
  border-radius: 22px;
  padding: 18px 18px 18px;
  margin-bottom: 14px;
  box-shadow: 0 14px 30px -20px rgba(20, 27, 45, .7);
}
.opp-top { display: flex; align-items: center; gap: 8px; }
.tag {
  display: inline-block;
  padding: 5px 10px 4px;
  border-radius: 999px;
  background: var(--orange); color: var(--cream);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.fresh { font-size: 12px; font-weight: 600; color: rgba(244, 241, 234, .7); }
.opp .title { font-size: 25px; line-height: .98; margin: 14px 0 8px; color: var(--cream); }
.opp-when { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: rgba(244, 241, 234, .75); }
.opp-detail { margin-top: 12px; font-size: 15px; line-height: 1.4; color: rgba(244, 241, 234, .88); text-wrap: pretty; }
.opp-deadline { margin-top: 12px; font-size: 12.5px; color: rgba(244, 241, 234, .6); }
.opp-actions { display: flex; gap: 10px; margin-top: 16px; }
.btn {
  flex: 1;
  height: 46px; border-radius: 999px;
  font-size: 15.5px; font-weight: 650;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s ease, opacity .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-ghost { border: 1px solid rgba(244, 241, 234, .3); color: var(--cream); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink[disabled] { opacity: .3; }
.opp-done {
  margin-top: 16px; padding: 12px 14px;
  border-radius: 16px; background: rgba(244, 241, 234, .1);
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px; line-height: 1.35;
}
.opp-done svg { flex: 0 0 20px; width: 20px; height: 20px; stroke: #8FD3A8; fill: none; stroke-width: 2.2; margin-top: 1px; }
.opp.passed { opacity: .45; }
.opp.passed .opp-detail, .opp.passed .opp-deadline, .opp.passed .opp-actions { display: none; }

/* ---------- Serviços ---------- */
.call {
  background: var(--orange); color: var(--cream);
  border-radius: 22px; padding: 20px 18px 18px;
  box-shadow: 0 14px 30px -20px rgba(201, 84, 31, .9);
}
.call .title { font-size: 30px; line-height: .95; color: var(--cream); }
.call p { margin: 10px 0 18px; font-size: 15px; line-height: 1.4; opacity: .92; }
.call .btn { width: 100%; }

.crisis {
  margin-top: 14px;
  background: var(--navy); color: var(--cream);
  border-radius: 22px; padding: 16px 16px 16px 18px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
}
.crisis h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.crisis p { margin-top: 4px; font-size: 13.5px; color: rgba(244, 241, 234, .75); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #5BD38A; box-shadow: 0 0 0 4px rgba(91, 211, 138, .2); }
.crisis .btn { flex: none; height: 40px; padding: 0 16px; font-size: 14.5px; }

.list { background: var(--card); border-radius: 22px; padding: 4px 18px; box-shadow: 0 1px 0 rgba(20, 27, 45, .05); }
.list-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row h3 { font-size: 16px; font-weight: 650; }
.list-row p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
.list-row .small-btn { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 650; }
.bar { margin-top: 9px; height: 5px; border-radius: 9px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 9px; }
.state { font-size: 12.5px; font-weight: 650; color: var(--green); display: flex; align-items: center; gap: 6px; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.when-box { text-align: center; min-width: 58px; padding: 6px 8px; border-radius: 12px; background: var(--paper); }
.when-box b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1; }
.when-box span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }

.team { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.avatars { display: flex; }
.avatars i {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  margin-left: -8px; border: 2px solid var(--card);
  background: var(--navy); color: var(--cream);
  font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.avatars i:first-child { margin-left: 0; }
.avatars i:nth-child(2n) { background: var(--orange); }
.avatars i.empty { background: var(--paper); color: var(--muted); border-style: dashed; border-color: var(--line); }

/* ---------- Barra das seções ---------- */
.tabbar {
  position: fixed; z-index: 10;
  left: 50%; bottom: calc(var(--bottom) + 2px);
  transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(20, 27, 45, .07);
  box-shadow: 0 12px 34px -14px rgba(20, 27, 45, .45);
}
.tab {
  position: relative;
  width: 104px; height: 54px;
  border-radius: 999px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 650; color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tab.on { background: rgba(20, 27, 45, .09); color: var(--ink); }
.tab.on svg { stroke-width: 2; }
.tab-dot { position: absolute; top: 8px; right: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; display: none; }
.tab-dot.show { display: block; }

/* ---------- Matéria aberta ---------- */
.reader {
  position: fixed; inset: 0; z-index: 20;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.reader.open { transform: none; box-shadow: -20px 0 40px -20px rgba(0, 0, 0, .3); }
.reader-bar {
  flex: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--top) 10px 6px;
}
.reader-back, .reader-share { height: 40px; display: inline-flex; align-items: center; gap: 2px; padding: 0 8px; font-size: 16px; font-weight: 600; }
.reader-back svg, .reader-share svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reader-scroll { flex: 1; overflow-y: auto; padding: 8px 22px calc(var(--bottom) + 40px); }
.reader .kicker { display: block; margin-top: 6px; }
.reader .title { font-size: 38px; line-height: .94; margin: 10px 0 14px; }
.reader .dek { font-size: 18px; line-height: 1.38; margin-bottom: 14px; }
.reader .byline { font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.reader .art { border-radius: 18px; margin: 20px 0 6px; }
.reader .art-number .big { font-size: 150px; }
.reader .art-cal .d { font-size: 96px; }
.reader .art-cal .m { font-size: 16px; }
.reader-body { margin-top: 18px; }
.reader-body p { font-family: var(--serif); font-size: 19px; line-height: 1.5; margin: 0 0 16px; text-wrap: pretty; }
.reader-body p.first::first-letter {
  float: left; font-weight: 700; font-size: 62px; line-height: .82; padding: 6px 8px 0 0; color: var(--orange);
}
.reader-body h2 { font-size: 17px; font-weight: 750; margin: 26px 0 8px; }
.reader-quote { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.08; margin: 22px 0 10px; text-wrap: balance; }
.reader-cta {
  margin-top: 28px; padding: 18px;
  border-radius: 20px; background: var(--card);
}
.reader-cta h3 { font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: -.01em; }
.reader-cta p { margin: 8px 0 14px; font-size: 14.5px; color: var(--soft); }
.reader-cta .btn { width: 100%; }

/* ---------- Marcar conversa ---------- */
.sheet-veil { position: fixed; inset: 0; z-index: 30; background: rgba(10, 14, 25, .38); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.sheet-veil.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 31; left: 0; right: 0; bottom: 0;
  max-height: 90vh; overflow-y: auto;
  background: var(--card);
  border-radius: 28px 28px 0 0;
  padding: 8px 20px calc(var(--bottom) + 18px);
  transform: translateY(105%);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.sheet.open { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 2px auto 16px; }
.sheet h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: .95; letter-spacing: -.02em; }
.step { margin-top: 22px; }
.step-h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); font-size: 15px; font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
.chip.day { height: 62px; width: 62px; padding: 0; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.chip.day small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chip.day b { font-family: var(--serif); font-size: 22px; line-height: 1; }
.chip.on { background: var(--ink); color: var(--cream); }
.chip.on small { color: rgba(244, 241, 234, .7); }
.chip[disabled] { opacity: .35; text-decoration: line-through; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.times .chip { width: 100%; }
.sheet .btn-ink { width: 100%; margin-top: 24px; height: 52px; font-size: 16px; }
.done { text-align: center; padding: 18px 4px 4px; }
.done-mark { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.done-mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.done p { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--soft); }
.done .when { margin-top: 14px; font-family: var(--serif); font-size: 22px; color: var(--ink); }

/* ---------- Aviso curto ---------- */
.toast {
  position: fixed; z-index: 40; left: 0; right: 0; top: calc(var(--top) + 6px);
  margin: 0 auto; width: fit-content;
  transform: translateY(-16px);
  max-width: calc(100% - 32px);
  padding: 11px 16px; border-radius: 16px;
  background: var(--ink); color: var(--cream);
  font-size: 14px; line-height: 1.35; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.on { opacity: 1; transform: none; }
