/* ==========================================================================
   agenda.cnine — Site institucional (C9 Company)
   Static build converted from the "Cadência design system" Claude Design.
   ========================================================================== */

:root {
  --cream:        #FBFBF8;
  --white:        #FFFFFF;
  --navy:         #111B4E;
  --blue:         #2740E8;
  --blue-dark:    #1B2FBF;
  --yellow:       #FFE84D;
  --yellow-dark:  #C9B424;
  --yellow-hover: #F5DC3A;
  --ink:          #111B4E;
  --ink-2:        #3A4372;
  --muted:        #686E8B;
  --muted-2:      #6B7089;
  --border:       #E4E4DB;
  --border-gray:  #C9CAD8;
  --tint:         #EBEEFE;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Figtree", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Motion — calm, decisive deceleration */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

p { margin: 0; }

/* Keyboard focus: visible ring everywhere, inverted on dark surfaces. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}
.site-header :focus-visible,
.section-navy :focus-visible { outline-color: var(--white); }

/* Header CTA shortens to fit small phones. */
.cta-short { display: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.measure { max-width: 720px; }

/* Reading measure: cap prose to a comfortable line length (~62–70 characters).
   Figtree's "0" is wide, so `ch` overestimates badly here; a rem cap is
   predictable and respects the user's base font size. 34rem lands the 17px body
   at ~69 CPL and the 19px lead at ~62 CPL. `pretty` prevents orphan last words. */
.lead,
.sublead,
.commitment-text,
.dont-list p,
.closing-text {
  max-width: 34rem;
  text-wrap: pretty;
}

/* Editorial split: section heading in a left rail, content in the right
   reading column. Fills the width instead of stranding a lone left column
   with a dead void beside it. Stacks on tablet/mobile. */
.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px 72px;
  align-items: start;
}
.split-head > .display { margin-top: 0; }
.split-body > :first-child { margin-top: 0; }
@media (max-width: 1023px) {
  .section-split { grid-template-columns: 1fr; gap: 28px; }
}

/* --------------------------------------------------------------------------
   Yellow highlight marker (was style-before)
   -------------------------------------------------------------------------- */
.hl {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.14em;
  right: -0.10em;
  top: 0.16em;
  bottom: 0;
  background: var(--yellow);
  border-radius: 0.16em;
  transform: rotate(-0.8deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: 12px;
  font: 700 16px var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 160ms var(--ease-out-quart),
              border-color 160ms var(--ease-out-quart),
              color 160ms var(--ease-out-quart),
              transform 110ms var(--ease-out-quart),
              box-shadow 110ms var(--ease-out-quart);
}
/* Tactile press: the raised buttons sink onto their bottom shadow. */
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 0 var(--blue-dark);
}
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-primary:active { box-shadow: 0 1px 0 var(--blue-dark); }
.btn-yellow:active { box-shadow: 0 1px 0 var(--yellow-dark); }

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-gray);
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-light {
  height: 42px;
  padding: 0 20px;
  font-size: 15px;
  background: var(--white);
  color: var(--navy);
}
.btn-light:hover { background: var(--tint); color: var(--navy); }

.btn-yellow {
  padding: 0 28px;
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 2px 0 var(--yellow-dark);
}
.btn-yellow:hover { background: var(--yellow-hover); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.60); color: var(--white); }

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17,27,78,.96);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: box-shadow 220ms var(--ease-out-quart);
}
/* Quiet feedback that you've left the top of the page. */
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(17,27,78,.55); }
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--navy);
  border: 1.5px solid rgba(255,255,255,.28);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 15px var(--font-display);
  letter-spacing: -0.02em;
}
.brand-mark-sm { width: 32px; height: 32px; font-size: 13px; border-color: transparent; }
.dot { color: var(--yellow); }
.brand-name {
  font: 800 17px var(--font-display);
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font: 600 15px var(--font-body);
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 140ms var(--ease-out-quart);
}
.nav-toggle:hover { background: rgba(255,255,255,.10); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out-quart), opacity 120ms var(--ease-out-quart);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel — drops under the sticky header */
.mobile-nav { display: none; }
.mobile-nav[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Sections & typography
   -------------------------------------------------------------------------- */
.section {
  padding: 112px 0;
  scroll-margin-top: 64px;
}
.section-cream { background: var(--cream); }
.section-white { background: var(--white); border-top: 1px solid var(--border); }
.section-navy  { background: var(--navy); }
/* first section (hero) has no top border even though cream */
#inicio { border-top: none; }

.eyebrow {
  font: 600 15px/1.3 var(--font-body);
  color: var(--blue);
}

.display {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.display-1 {
  margin: 16px 0 0;
  font-weight: 800;
  font-size: 58px;
  line-height: 1.0;
}
.display-2 {
  margin: 12px 0 0;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -0.022em;
}
.on-dark { color: var(--white); }

.lead {
  margin: 20px 0 0;
  font: 400 19px/1.6 var(--font-body);
  color: var(--ink-2);
}
.sublead {
  margin: 14px 0 0;
  font: 400 17px/1.65 var(--font-body);
  color: var(--ink-2);
}
.on-dark-muted { color: rgba(255,255,255,.70); }
.sublead strong { color: var(--ink); font-weight: 700; }

.fineprint {
  margin: 24px 0 0;
  font: 400 13px/1.4 var(--font-body);
  color: var(--muted);
}
.caption {
  margin: 12px 4px 0;
  font: 400 13px/1.4 var(--font-body);
  color: var(--muted);
}
.caption-wide { max-width: 420px; }

.mono { font: 600 13px var(--font-mono); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .display-1 { margin-top: 0; }

.agenda-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 28px 60px -30px rgba(17,27,78,.35);
}
.agenda-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.agenda-day {
  font: 800 15px var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.agenda-badge {
  font: 600 12.5px/1 var(--font-mono);
  color: var(--blue);
  background: var(--tint);
  padding: 5px 9px;
  border-radius: 8px;
}
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
}
.slot-filled { border: 1.5px solid var(--border); background: var(--white); }
.slot-empty  { border: 1.5px dashed #D8D8CE; }
.slot-time { font: 600 12.5px/1 var(--font-mono); color: var(--ink); }
.slot-empty .slot-time { font-weight: 500; color: var(--muted-2); }
.slot-name { font: 600 12.5px/1 var(--font-body); color: var(--ink); }
.slot-check { margin-left: auto; font: 700 13px/1 var(--font-body); color: var(--blue); }

/* --------------------------------------------------------------------------
   O que fazemos — feature cards
   -------------------------------------------------------------------------- */
/* "Um produto. Três peças." — one panel, three divisions (not three
   detached cards): the structure echoes the copy. Hairline dividers are the
   1.5px grid gap showing the panel's border colour through. */
.pieces {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.piece {
  background: var(--white);
  padding: 28px 28px 32px;
}
.feature-num {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: var(--tint);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 17px var(--font-display);
}
.feature-title {
  margin: 16px 0 0;
  font: 800 20px/1.25 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.feature-text {
  margin: 10px 0 0;
  font: 400 15px/1.6 var(--font-body);
  color: var(--ink-2);
}
.closing-block {
  margin-top: 40px;
  max-width: 720px;
}
.closing-block .btn { margin-top: 24px; }
.closing-text {
  font: 500 17px/1.65 var(--font-body);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Compromissos
   -------------------------------------------------------------------------- */
.commitments {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.commitment-title {
  margin: 0;
  font: 800 20px/1.25 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.commitment-text {
  margin: 10px 0 0;
  font: 400 17px/1.65 var(--font-body);
  color: var(--ink-2);
}
.commitment-note {
  border-top: 1.5px solid var(--border);
  padding-top: 32px;
}
.commitment-note .closing-text { font-size: 19px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   Teste a gente — WhatsApp chat
   -------------------------------------------------------------------------- */
.test-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}
.test-grid .btn-primary { margin-top: 32px; }

.chat {
  background: #EFEAE2;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 420px;
}
.chat-head {
  background: #075E54;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 13px var(--font-display);
}
.chat-meta { display: flex; flex-direction: column; }
.chat-name { font: 600 14px/1.2 var(--font-body); color: var(--white); }
.chat-status { font: 400 11.5px/1.2 var(--font-body); color: rgba(255,255,255,.70); }
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.msg {
  max-width: 84%;
  border-radius: 12px;
  padding: 8px 10px 6px;
}
.msg p { font: 400 14px/1.45 var(--font-body); color: var(--ink); }
.msg-time {
  display: block;
  margin-top: 2px;
  font: 400 10px/1 var(--font-body);
  color: var(--muted-2);
  text-align: right;
}
.msg-out {
  align-self: flex-end;
  background: #D9FDD3;
  border-top-right-radius: 4px;
}
.msg-in {
  align-self: flex-start;
  background: var(--white);
  border-top-left-radius: 4px;
}

/* --------------------------------------------------------------------------
   O que não fazemos
   -------------------------------------------------------------------------- */
.dont-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
}
.dont-list p {
  font: 400 17px/1.65 var(--font-body);
  color: var(--ink-2);
}
#nao-fazemos .closing-text { margin-top: 32px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 40px;
  align-items: start;
}
.footer-brand-name {
  font: 800 16px var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.footer-tagline {
  margin: 10px 0 0;
  font: 400 15px/1.6 var(--font-body);
  color: var(--ink-2);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-info p {
  font: 400 13px/1.5 var(--font-body);
  color: var(--muted);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font: 400 13px/1.4 var(--font-body);
  color: var(--muted);
}
.footer-bottom a {
  font: 400 13px/1.4 var(--font-body);
  color: var(--muted);
  text-decoration: underline;
}
.footer-bottom a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Motion — calm & minimal.
   All page content is visible by default; the classes below only take effect
   once JS adds `.motion` to <html> (never under prefers-reduced-motion).
   So no-JS, reduced-motion, and headless renders always show a static page.
   -------------------------------------------------------------------------- */

/* --- Signature moment: the hero agenda "turning on" ---------------------- */
@keyframes slot-in  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes check-in { from { opacity: 0; transform: scale(.55); }      to { opacity: 1; transform: none; } }
@keyframes badge-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes marker-wipe { from { transform: rotate(-0.8deg) scaleX(0); } to { transform: rotate(-0.8deg) scaleX(1); } }

.motion .agenda-badge {
  opacity: 0;
  animation: badge-in 420ms var(--ease-out-expo) 260ms both;
}
.motion .agenda-list .slot {
  opacity: 0;
  animation: slot-in 460ms var(--ease-out-expo) both;
  animation-delay: calc(360ms + var(--i) * 120ms);
}
.motion .agenda-list .slot-check {
  opacity: 0;
  animation: check-in 320ms var(--ease-out-quint) both;
  animation-delay: calc(360ms + var(--i) * 120ms + 200ms);
}
/* Only the hero's yellow marker wipes in; the others stay static. */
.motion .hero-copy .hl::before {
  transform-origin: left center;
  animation: marker-wipe 620ms var(--ease-out-expo) 560ms both;
}

/* --- WhatsApp chat: staggered arrival (a real list, not a section fade) --- */
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.motion .chat .msg { opacity: 0; }
.motion .chat.is-playing .msg {
  animation: msg-in 360ms var(--ease-out-quart) both;
  animation-delay: calc(var(--i, 0) * 150ms);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero-grid,
  .test-grid,
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .display-1 { font-size: 38px; }
  .display-2 { font-size: 30px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  /* Let long button labels wrap instead of forcing horizontal scroll. */
  .btn {
    white-space: normal;
    height: auto;
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
    max-width: 100%;
    text-align: center;
  }
  .btn-light { min-height: 44px; }

  /* Stack the "três peças" panel; dividers become horizontal automatically. */
  .pieces { grid-template-columns: 1fr; }

  /* Keep the header on one line down to 320px. */
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 15px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }

  /* Header shows brand + hamburger only; the CTA moves into the menu. */
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-light { display: none; }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 4px 20px 16px;
    border-top: 1px solid rgba(255,255,255,.14);
    background: rgba(17,27,78,.98);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a:not(.nav-cta) {
    font: 600 16px var(--font-body);
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: 13px 2px;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }
  .mobile-nav a:not(.nav-cta):hover { color: var(--white); }
  .mobile-nav .nav-cta { width: 100%; margin-top: 14px; }
}

/* Small phones (≤360px): shrink the hero display so the nowrap highlight
   ("marca horário") can't force the h1 past the viewport. */
@media (max-width: 360px) {
  .display-1 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}
