:root {
  --blue: #072797;       /* measured from the UCM logo */
  --red: #CE0519;        /* logo accent */
  --ink: #1B1D24;
  --mute: #5D6270;
  --line: #E3E6EE;
  --soft: #F2F4F9;
  --wa: #1FA855;
  --w: 1200px;
  --gut: max(16px, env(safe-area-inset-left));
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: var(--blue); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---- header, row 1: centred brand, icons right ---- */
.top { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line);
       padding-top: env(safe-area-inset-top); }
.row1 { max-width: var(--w); margin: 0 auto; height: 76px; padding: 0 var(--gut);
        display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: block; line-height: 0; }
.brand img { height: 56px; width: auto; }
.icons { display: flex; justify-content: flex-end; gap: 6px; }
.ico { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
       color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.ico:hover { background: var(--soft); }
.ico:focus-visible, .card:focus-visible, .cta:focus-visible, .send:focus-visible, .x:focus-visible, .pick:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent); outline-offset: 2px; }
#btnPhone { background: var(--blue); color: #fff; }
#btnPhone:hover { background: #0B33B8; }
.count { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
         background: var(--red); color: #fff; font: 600 11px/17px system-ui, sans-serif; }
.count[hidden] { display: none; }
.toast { position: absolute; right: var(--gut); top: calc(100% + 8px); margin: 0; max-width: 300px;
         background: var(--ink); color: #fff; font-size: 14px; padding: 10px 14px; border-radius: 10px; }

/* ---- hero placeholder ---- */
.hero { max-width: var(--w); margin: 0 auto; padding: 16px var(--gut) 0; }
.ph { aspect-ratio: 16 / 7; min-height: 220px; border-radius: 14px; display: grid; place-content: center; text-align: center;
      background: repeating-linear-gradient(135deg, var(--soft) 0 14px, #E9ECF4 14px 28px); color: var(--mute); }
.ph span { font-size: 18px; font-weight: 600; }
.ph small { margin-top: 4px; font-size: 14px; }

/* ---- two entry icons ---- */
.entry { max-width: var(--w); margin: 0 auto; padding: 24px var(--gut); display: grid;
         grid-template-columns: 1fr 1fr; gap: 16px; }
.card { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 1px solid var(--line);
        border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff;
        transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--blue); box-shadow: 0 6px 20px rgba(7, 39, 151, .10); }
.card svg { width: 56px; height: 56px; stroke-width: 1.4; color: var(--blue); }
.card b { font-size: 22px; }
.card small { color: var(--mute); font-size: 14px; text-align: center; }

/* ---- placeholders behind the icons ---- */
.soon { max-width: var(--w); margin: 0 auto; padding: 8px var(--gut) 24px; scroll-margin-top: 90px; }
.soon h2 { margin: 16px 0 6px; font-size: 24px; color: var(--blue); }
.soon p { margin: 0 0 14px; color: var(--mute); max-width: 640px; line-height: 1.5; }
.cta { border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: 600 16px/1 system-ui, sans-serif;
       padding: 14px 20px; cursor: pointer; }
.cta:hover { background: #0B33B8; }

.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px var(--gut) calc(20px + env(safe-area-inset-bottom));
        text-align: center; color: var(--mute); font-size: 14px; }
.foot p { margin: 4px 0; }

/* ---- contact sheet: chat bubbles ---- */
dialog#chat { padding: 0; border: 0; background: transparent; max-width: none; max-height: none;
              width: 100%; height: 100%; margin: 0; }
dialog#chat::backdrop { background: rgba(10, 14, 30, .45); }
.sheet { position: absolute; right: 24px; top: 88px; width: 400px; max-height: calc(100% - 112px);
         display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
         box-shadow: 0 18px 50px rgba(0, 0, 0, .25); animation: rise .24s ease-out; }
.chead { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--blue); color: #fff; }
.chead p { margin: 0; flex: 1; font-weight: 600; }
.chead small { display: block; font-weight: 400; opacity: .8; font-size: 12px; }
.chead img { border-radius: 6px; background: #fff; }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 26px; cursor: pointer; }
.log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--soft); min-height: 260px; }
.b { margin: 0; max-width: 84%; padding: 10px 14px; border-radius: 16px; line-height: 1.4; font-size: 15px; animation: pop .2s ease-out; overflow-wrap: anywhere; }
.b.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.b.me  { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.b.err { align-self: flex-start; background: #FDECEE; color: #8A0A16; }
.b a { color: inherit; }
.pick { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; margin-top: 8px; padding: 10px 12px;
        border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.pick .box { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 2px solid var(--blue); display: grid; place-items: center; }
.pick[aria-checked="true"] { border-color: var(--blue); background: #EEF1FB; }
.pick[aria-checked="true"] .box { background: var(--blue); }
.pick[aria-checked="true"] .box::after { content: ""; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.wa { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 14px;
      border: 0; border-radius: 12px; background: var(--wa); color: #fff; font: 600 16px/1 system-ui, sans-serif; cursor: pointer; }
.wa[disabled] { background: #B9C0CC; cursor: not-allowed; }
.say { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.say[hidden] { display: none; }
.say input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 23px; font: 16px system-ui, sans-serif; }
.say input:focus { outline: none; border-color: var(--blue); }
.send { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop  { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 640px) {
  .row1 { height: 64px; }
  .brand img { height: 46px; }
  .icons { gap: 2px; }
  .ico { width: 40px; height: 40px; }
  .side:first-child { min-width: 0; }
  .ph { aspect-ratio: 4 / 3; }
  .entry { gap: 10px; }
  .card { padding: 20px 10px; }
  .card svg { width: 44px; height: 44px; }
  .card b { font-size: 18px; }
  .sheet { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 88%; border-radius: 16px 16px 0 0;
           padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
