/* /pt/saldada demo sections on the Tally template: calculator, reminders, chat and pilot card.
   Uses the template's tokens (--paper, --card, --green, --mustard, --coral, --ink, --line) and its .sec, .container, .kicker, .h2 and .btn. */
.card__deadline, .card__saved { display: none !important; }
.fm { font-size: clamp(4rem, 17vw, 16rem); }  /* "Saldada." is longer than the template's wordmark */
.tag__nums dt { white-space: nowrap; }
/* Saldada mark: three slices of a settled disc, in place of the template's folded square */
.brand__fold { width: 26px; height: 26px; background: url(saldada-mark.svg) center / contain no-repeat; border-radius: 0; box-shadow: none; filter: drop-shadow(0 1.5px 0 #0000001f); }
.cob .sec__head { margin-bottom: clamp(20px, 3vw, 36px); }
.cob-intro { max-width: 60ch; font-size: 17px; opacity: .8; margin: 0 0 28px; }
.cob-note { max-width: 72ch; margin-top: 22px; font-size: 13.5px; opacity: .7; }
.cob-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cob--alt { background: var(--card); border-block: 1px solid var(--line); }

/* calculator: a ledger sheet beside the totals card */
.cob-calc { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cob-sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2.4vw, 28px); box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(to bottom, transparent 0 51px, color-mix(in srgb, var(--line) 55%, transparent) 51px 52px); background-position: 0 66px; }
.cob-head, .cob-row { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr .8fr 34px; gap: 12px; align-items: center; min-height: 52px; }
.cob-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); border-bottom: 1.5px solid var(--ink); min-height: 40px; }
.cob-row input { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px dashed transparent; padding: 6px 0; border-radius: 0; }
.cob-row input:hover { border-color: var(--line); }
.cob-row input:focus { outline: none; border-color: var(--green); }
.cob-row input[name=amount] { font-variant-numeric: tabular-nums; }
.cob-row .late { font-family: var(--font-mono); font-size: 13px; color: var(--coral); }
.cob-row .late.nl { color: var(--green); }
.cob-row .remove { width: 30px; height: 30px; border-radius: 50%; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink); opacity: .45; cursor: pointer; }
.cob-row .remove:hover { opacity: 1; background: var(--paper); }
.cob-row label { display: contents; }
.cob-row .lbl { display: none; }
.cob-results { margin: 0; background: var(--green-deep); color: var(--card); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 18px; box-shadow: var(--shadow); position: sticky; top: 110px; }
.cob-results div { display: grid; gap: 2px; }
.cob-results dt { font-size: 13px; opacity: .75; }
.cob-results dd { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 34px); font-variant-numeric: tabular-nums; }
.cob-results small { font-family: var(--font-mono); font-size: 11.5px; opacity: .65; }
.cob-results .total { border-top: 1px dashed color-mix(in srgb, var(--card) 35%, transparent); padding-top: 18px; }
.cob-results .total dd { font-size: clamp(40px, 4vw, 58px); color: var(--mustard); }

/* reminders: four paper slips */
.cob-fields { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; margin-bottom: 28px; }
.cob-fields label { display: grid; gap: 6px; }
.cob-fields span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.cob-fields input, .cob-fields select { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.cob-fields input:focus, .cob-fields select:focus { outline: none; border-color: var(--green); }
.cob-reminders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: rem; }
.rem { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.rem:nth-child(odd) { transform: rotate(-.6deg); } .rem:nth-child(even) { transform: rotate(.5deg); }
.rem:hover { transform: none; }
.rem-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rem-top .num { font-family: var(--font-mono); font-size: 12px; color: var(--coral); }
.rem-top b { font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.rem .chan { margin-inline-start: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); border: 1px solid var(--sage); border-radius: 99px; padding: 2px 8px; }
.rem.wa .chan { background: #dcefe3; }
.rem-date { margin: 0; font-size: 13px; font-weight: 600; color: var(--green); }
.rem-subject { margin: 0; font-size: 14px; font-weight: 700; }
.rem-body { margin: 0; font-size: 14px; line-height: 1.55; opacity: .85; white-space: pre-line; }
.rem.off { opacity: .5; box-shadow: none; }
.rem.off .rem-subject, .rem.off .rem-body { display: none; }

/* chat */
.cob-chat-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.cob-replay { background: none; border: 0; padding: 0; margin-top: 18px; font: inherit; cursor: pointer; color: var(--green); }
.cob-phone { background: #efeae2; border: 10px solid var(--ink); border-radius: 36px; overflow: hidden; max-width: 420px; width: 100%; justify-self: center; box-shadow: var(--shadow); }
.cob-phone header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #075e54; color: #fff; font-weight: 600; font-size: 15px; }
.cob-phone header i { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); flex: none; }
.cob-chat { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px; min-height: 360px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; color: #111b21; box-shadow: 0 1px 1px #0000001a; animation: cob-in .35s var(--ease) both; }
.msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 3px; }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.msg.agent { align-self: center; max-width: 94%; background: var(--card); border: 1.5px dashed var(--mustard); font-size: 13.5px; box-shadow: none; }
.msg.agent::before { content: 'Só para si · '; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.msg.typing.agent::before { content: none; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #667781; animation: cob-blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cob-blink { 50% { opacity: .2; } }
@keyframes cob-in { from { opacity: 0; transform: translateY(6px); } }

/* pilot card in place of the contact form */
.cob-pilot .cob-price { font-size: 14.5px; opacity: .75; }

@media (max-width: 1000px) {
  .cob-calc, .cob-chat-grid { grid-template-columns: 1fr; }
  .cob-results { position: static; }
  .cob-reminders { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cob-sheet { background-image: none; }
  .cob-head { display: none; }
  .cob-row { grid-template-columns: 1fr 1fr 34px; grid-template-areas: 'c c x' 'a d d' 'l l l'; row-gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cob-row label { display: grid; gap: 0; }
  .cob-row .lbl { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
  .cob-row label:nth-of-type(1) { grid-area: c; } .cob-row label:nth-of-type(2) { grid-area: a; } .cob-row label:nth-of-type(3) { grid-area: d; }
  .cob-row .late { grid-area: l; }
  .cob-row .late:not(:empty):not(.nl)::before { content: 'Dias em atraso: '; }
  .cob-row .remove { grid-area: x; justify-self: end; }
  .cob-row input { border-bottom-color: var(--line); }
  .cob-fields, .cob-reminders { grid-template-columns: 1fr; }
  .rem { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } .rem { transform: none; } }
