/* Agendar demonstração: intro on the left, Cal.com calendar on the right. Uses the colour tokens from styles.css (#topo). */
/* Desktop: heading and details on the left, calendar on the right. Phones: heading, calendar, then details. */
.ag{max-width:1200px;margin:0 auto;padding:72px 24px 0;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"intro cal" "more cal";grid-template-rows:auto 1fr;column-gap:56px;align-items:start}
.ag-intro{grid-area:intro}
/* The bottom space lives inside the grid (not as .ag padding) so the sticky calendar stays put until the footer. */
.ag-more{grid-area:more;padding-bottom:140px}
.ag-kicker{margin:0 0 14px;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--acc);font-weight:600}
.ag-intro h1{margin:0;font-size:clamp(34px,4.4vw,52px);line-height:1.05;letter-spacing:-0.035em;font-weight:700}
.ag-lead{margin:20px 0 0;font-size:18px;line-height:1.65;color:var(--mu)}
.ag-points{margin:28px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.ag-points li{display:flex;gap:12px;align-items:flex-start;font-size:16px;line-height:1.5;color:var(--fg2)}
.ag-points li::before{content:"";flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;background:var(--bluebg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.2' fill='none' stroke='%232B74FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;border:1px solid var(--blueline)}
.ag-alt{margin-top:36px;padding:18px 20px;border:1px solid var(--l3);border-radius:14px;background:var(--card)}
.ag-alt p{margin:0 0 12px;font-size:15px;color:var(--mu)}
.ag-alt-links{display:flex;flex-wrap:wrap;gap:10px}
.ag-alt-links a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--l5);border-radius:8px;color:var(--fg);font-size:15px;font-weight:500;text-decoration:none;transition:border-color .2s,background-color .2s}
.ag-alt-links a:hover{border-color:#2470FF;background:var(--bluebg);color:var(--fg)}
.ag-alt-links a:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.ag-trust{margin-top:36px}
.ag-trust p{margin:0 0 14px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--mu2);font-weight:600}
.ag-logos{display:flex;flex-wrap:wrap;align-items:center;gap:28px}

.ag-cal{grid-area:cal;position:sticky;top:96px}
/* Below ~820px wide Cal.com stacks details, month and every time slot (~2400px tall), so on desktop the box
   is capped to the screen height and the calendar scrolls inside it. */
.ag-cal-embed{min-height:620px;max-height:calc(100vh - 120px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
/* Cal.com resizes the iframe between steps (picking a time, the form); a visible scrollbar would flash in and out. It still scrolls with wheel/touch. */
.ag-cal-embed{scrollbar-width:none}
.ag-cal-embed::-webkit-scrollbar{display:none}
#topo.thl .ag-cal-dark,#topo:not(.thl) .ag-cal-light{display:none}
.ag-cal-loading{margin:0;padding:48px 24px;text-align:center;font-size:15px;color:var(--mu2)}

/* Wide screens: give Cal.com the 800px it needs for its month + times layout (570px tall), text keeps the left. */
@media (min-width:1240px){
  .ag{max-width:1320px;grid-template-columns:minmax(0,1fr) 800px;column-gap:48px}
  .ag-cal-embed{min-height:570px;max-height:none}
}

@media (max-width:960px){
  .ag{grid-template-columns:1fr;grid-template-areas:"intro" "cal" "more";grid-template-rows:auto;row-gap:32px;padding-top:48px}
  .ag-cal{position:static}
  .ag-cal-embed{max-height:none;overflow:hidden}
}
