:root {
  --navy: #0b3f6e; --navy-2: #0c4b80; --blue: #1873c3; --water: #2aa7e0; --water-soft: #e3f3fb;
  --ink: #0f2236; --ink-2: #3c5168; --ink-3: #74869a;
  --line: #e2e8ef; --line-2: #cdd7e2; --bg: #f5f8fb; --surface: #ffffff;
  --ok: #14936c; --warn: #d1452f; --amber: #c2701e;
  --head: "Barlow Condensed", "Open Sans Condensed", system-ui, sans-serif;
  --sans: "Open Sans", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-3); font-size: 14px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.wordmark img { height: 33px; width: auto; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.oficio-mark { display: flex; align-items: baseline; gap: 8px; text-decoration: none; padding-left: 16px; border-left: 1px solid var(--line-2); }
.om-by { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.om-logo, .oficio-mark-foot { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 23px; line-height: 1; letter-spacing: -.01em; color: #10221e; text-decoration: none; }
.om-logo span, .oficio-mark-foot span { color: #8a6a2f; }
.oficio-mark-foot { font-size: 18px; margin-left: 4px; }

/* website teaser */
.webteaser { display: block; text-decoration: none; color: #fff; background: linear-gradient(90deg, var(--navy) 0%, #0e5a96 60%, var(--navy) 100%); }
.webteaser-inner { display: flex; align-items: center; gap: 18px; padding-block: 10px; }
.wt-thumb { position: relative; flex: 0 0 auto; width: 132px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,20,40,.35); background: #0a3359; }
.wt-thumb img { width: 100%; height: 100%; object-fit: cover; animation: wtzoom 9s ease-in-out infinite alternate; }
@keyframes wtzoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.wt-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wt-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8fd3f5; font-weight: 600; }
.wt-text { font-size: 14px; line-height: 1.4; }
.wt-cta { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; transition: transform .3s; }
.webteaser:hover .wt-cta { transform: translateX(3px); }

/* hero */
.hero { padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); background: radial-gradient(1200px 500px at 85% -10%, var(--water-soft), transparent 60%), var(--surface); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
h1 { font: 700 clamp(44px, 6.4vw, 92px)/.95 var(--head); letter-spacing: -.01em; text-transform: uppercase; color: var(--navy); }
h1 em { display: block; margin-top: 10px; font-style: normal; font-weight: 500; font-size: .52em; line-height: 1.05; color: var(--blue); text-transform: none; }
.lede { margin-top: 24px; max-width: 560px; font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); }
.cta { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; padding: 15px 26px; border-radius: 999px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; transition: background .3s, color .3s; }
.cta:hover { background: transparent; color: var(--navy); }
.hero-visual { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16/11; background: #0a3359; box-shadow: 0 30px 60px -30px rgba(11,63,110,.55); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-visual figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: baseline; gap: 12px; color: #fff; font-size: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hv-num { font: 700 46px/1 var(--head); }
.hero-facts { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.hero-facts div { padding: 22px 24px 4px 0; }
.hero-facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-facts dt { font: 700 clamp(34px, 3.6vw, 52px)/1 var(--head); color: var(--navy); }
.hero-facts dd { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* sections */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font: 700 clamp(34px, 4vw, 54px)/1 var(--head); text-transform: uppercase; color: var(--navy); }
.section-head p { color: var(--ink-2); max-width: 520px; }
.demo { padding: clamp(48px, 7vw, 96px) 0; background: var(--bg); }
.demo-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 24px; align-items: start; }
.col-call { display: grid; gap: 16px; position: sticky; top: 84px; }
.col-team { display: grid; gap: 16px; min-width: 0; }
.team-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.count { background: var(--navy); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.count:empty { display: none; }

/* phone */
.phone { --level: 0; border-radius: 22px; padding: 26px 22px 22px; text-align: center; background: linear-gradient(180deg, #0c4b80 0%, #0a3c67 100%); color: #fff; box-shadow: 0 24px 50px -28px rgba(11,63,110,.7); }
.phone-label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #9fcbea; }
.orb-wrap { position: relative; width: 180px; height: 180px; margin: 18px auto 14px; display: grid; place-items: center; }
.orb { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #8fe0ff 0%, #2aa7e0 45%, #136bb0 100%); box-shadow: 0 18px 40px -14px rgba(0,0,0,.5), inset 0 -10px 24px rgba(0,40,80,.35); transform: scale(calc(1 + var(--level) * .22)); transition: transform .08s linear; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(143,211,245,.8); opacity: 0; }
.phone[data-state="idle"] .orb, .phone[data-state="ended"] .orb { animation: breathe 5s ease-in-out infinite; }
.phone[data-state="connecting"] .orb-ring { animation: ring 1.6s ease-out infinite; }
.phone[data-state="connecting"] .r2 { animation-delay: .8s; }
.phone[data-state="speaking"] .orb-ring, .phone[data-state="listening"] .orb-ring { opacity: 1; transform: scale(calc(.72 + var(--level) * .35)); transition: transform .1s linear; }
.phone[data-state="speaking"] .r2, .phone[data-state="listening"] .r2 { transform: scale(calc(.86 + var(--level) * .2)); opacity: .45; }
@keyframes breathe { 0%,100% { transform: scale(.97); } 50% { transform: scale(1.03); } }
@keyframes ring { from { transform: scale(.65); opacity: .9; } to { transform: scale(1.05); opacity: 0; } }
.start-lang { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 2px 0 14px; font-size: 12.5px; color: #b9d8ef; }
.start-lang > span { width: 100%; margin-bottom: 2px; }
.start-lang button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.start-lang button[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; font-weight: 600; }
.start-lang button:disabled { opacity: .5; cursor: default; }
.call-status { font: 600 24px/1.2 var(--head); letter-spacing: .02em; min-height: 30px; }
.call-btn { margin-top: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; border: 0; background: #1fb37f; color: #fff; font-weight: 700; transition: transform .2s, background .3s; }
.call-btn:hover { transform: translateY(-1px); }
.call-btn.live { background: var(--warn); }
.call-btn.live svg { transform: rotate(135deg); }
.call-btn svg { transition: transform .3s; }
.call-hint { margin-top: 12px; font-size: 13px; color: #b9d8ef; max-width: 300px; margin-inline: auto; }

.transcript { max-height: 320px; overflow-y: auto; display: grid; gap: 10px; padding-right: 4px; }
.msg { max-width: 92%; }
.msg p { padding: 9px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; }
.msg-who { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 4px 3px; }
.msg-agent p { background: var(--bg); border: 1px solid var(--line); }
.msg-user { justify-self: end; text-align: right; }
.msg-user p { background: var(--water-soft); text-align: left; }

/* team side */
.team-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #1fb37f; box-shadow: 0 0 0 4px rgba(31,179,127,.18); animation: live 2s infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(31,179,127,.06); } }
.ghost { margin-left: auto; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
.context { min-height: 120px; }
.ctx-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ctx-name { font: 700 26px/1.1 var(--head); color: var(--navy); }
.ctx-intent { margin-top: 4px; font-weight: 600; font-size: 14.5px; }
.ctx-sym { margin-top: 8px; font-size: 14px; color: var(--ink-2); font-style: italic; }
.ctx-pills { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.pill-ok { background: #e6f6ef; border-color: #bfe6d5; color: #0f6f52; }
.pill-lang { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.urg { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; background: var(--bg); color: var(--ink-2); }
.urg-priority { background: #fff3e2; color: var(--amber); }
.urg-water_escaping { background: var(--warn); color: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .65; } }

.map { width: 100%; height: auto; border-radius: 10px; display: block; }
.map .town text { font: 600 12.5px var(--sans); fill: var(--ink-2); }
.map .town.active text, .map .town.pinned text { fill: var(--navy); font-size: 12.5px; font-weight: 700; }
.map .sea-label { font: italic 500 12px var(--sans); fill: #5f93bd; letter-spacing: .1em; }
.map .ping { fill: none; stroke: var(--water); stroke-width: 2; animation: ping 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.map .town.active .dot { r: 5; fill: var(--water) !important; }
.map .pin { stroke: #fff; stroke-width: 2.5; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map-note { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

.week-switch { display: flex; gap: 4px; margin-left: 6px; }
.week-switch button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink-2); }
.week-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.legend { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line-2); }
.lg.free { background: #fff; }
.lg.offered { background: var(--water-soft); border-color: var(--water); }
.lg.booked { background: var(--navy); border-color: var(--navy); }
.team-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.team-tabs button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--ink-2); }
.team-tabs button i { width: 8px; height: 8px; border-radius: 50%; }
.team-tabs button b { background: var(--navy); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 6px; }
.team-tabs button[aria-selected="true"] { border-color: var(--navy); color: var(--navy); font-weight: 600; box-shadow: inset 0 0 0 1px var(--navy); }
.team-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; flex-wrap: wrap; }
.team-who i { width: 10px; height: 10px; border-radius: 50%; }
.agenda { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day { display: grid; gap: 6px; align-content: start; }
.day-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.day.today .day-head { color: var(--blue); }
.slot { display: flex; justify-content: space-between; gap: 4px; font-size: 12.5px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); min-width: 0; transition: background .4s, border-color .4s; }
.slot-time { font-variant-numeric: tabular-nums; }
.slot-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.busy { background: repeating-linear-gradient(135deg, #e8edf3 0 4px, #f2f5f8 4px 8px); color: var(--ink-3); border-color: transparent; }
.slot.past { opacity: .45; }
.slot.offered { background: var(--water-soft); border-color: var(--water); color: var(--navy); font-weight: 600; }
.slot.booked { background: var(--tc, var(--navy)); border-color: var(--tc, var(--navy)); color: #fff; font-weight: 600; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(42,167,224,.7); } 100% { box-shadow: 0 0 0 12px transparent; } }

.inbox { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 10px; padding: 12px 14px; animation: slideIn .6s cubic-bezier(.2,.7,.2,1); }
.ticket-visit { border-left-color: var(--ok); }
.ticket-callback { border-left-color: var(--blue); }
.ticket-urgent { border-left-color: var(--warn); background: #fff4f2; }
.ticket-top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ticket-urgent .ticket-type { color: var(--warn); }
.ticket-visit .ticket-type { color: var(--ok); }
.ticket-name { font-weight: 600; margin-top: 4px; }
.ticket-body { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.ticket-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.log li { display: grid; grid-template-columns: 62px auto 1fr; gap: 10px; font-size: 13px; align-items: baseline; animation: slideIn .5s ease-out; }
.log-time { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-kind { font-weight: 600; }
.log-detail { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pulse { animation: pulse 1.2s ease-out; }
.pulse-strong { animation: pulseStrong 1.6s ease-out; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(42,167,224,.45); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes pulseStrong { 0%,40% { box-shadow: 0 0 0 0 rgba(209,69,47,.5); } 100% { box-shadow: 0 0 0 18px transparent; } }

/* scenarios */
.scenarios { padding: clamp(56px, 8vw, 110px) 0; background: var(--surface); }
.scenario-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.scenario-list li { padding: 24px 20px 24px 0; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 12px; }
.scenario-list li + li { padding-left: 20px; }
.scenario-list li:last-child { border-right: 0; }
.sc-num { font: 700 30px/1 var(--head); color: var(--water); }
.scenario-list h3 { font: 700 22px/1.1 var(--head); text-transform: uppercase; color: var(--navy); }
.sc-say { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.sc-see { font-size: 13.5px; color: var(--ink-3); }

.how { padding: clamp(56px, 8vw, 110px) 0; background: var(--navy); color: #fff; }
.how-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 72px); }
.how h2 { font: 700 clamp(34px, 4vw, 54px)/1 var(--head); text-transform: uppercase; }
.how-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.how-list h3 { font: 700 20px/1.15 var(--head); text-transform: uppercase; color: #8fd3f5; margin-bottom: 8px; }
.how-list p { color: #d4e6f4; font-size: 15px; }

.footer { padding: 28px 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.powered { font-size: 13px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .demo-grid { grid-template-columns: 1fr; }
  .col-call { position: static; grid-template-columns: 1fr 1fr; }
  .scenario-list { grid-template-columns: 1fr 1fr; }
  .scenario-list li, .scenario-list li + li { padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .team-row, .col-call { grid-template-columns: 1fr; }
  .how-grid, .how-list { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div, .hero-facts div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .om-by { display: none; }
  .oficio-mark { padding-left: 12px; }
  .om-logo { font-size: 20px; }
  .wordmark img { height: 26px; }
  .topbar-right { gap: 10px; }
  .lang-switch button { padding: 4px 8px; }
  .webteaser-inner { gap: 12px; flex-wrap: wrap; }
  .wt-thumb { width: 96px; }
  .wt-copy { flex: 1 1 0; }
  .wt-text { font-size: 13px; }
  .wt-cta { margin-left: 0; width: 100%; justify-content: center; padding: 9px 16px; }
  .scenario-list { grid-template-columns: 1fr; }
  .agenda { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .legend { margin-left: 0; width: 100%; }
  .card { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
