/* ORCA Voice AI demo page (protected preview). Colours and layout follow demo-ui-mockup.png. */
@font-face {
  font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/nunito-sans-latin.woff2) format('woff2');
}
:root {
  --green: #134e45;        /* call panel, active tab */
  --green-2: #0f4038;
  --green-ink: #17594d;    /* eyebrow, links on light */
  --mint: #ddefea;         /* Alisha's bubbles */
  --bg: #f4f5f4;
  --card: #ffffff;
  --line: #e1e4e2;
  --ink: #111614;
  --muted: #5c6562;        /* 5.9:1 on white */
  --soft: #eef0ef;
  --red: #c8342b;
  --amber: #f0b429;
  --ok: #3fc47a;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #2a8f7a; outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, p { margin: 0; }

.page { max-width: 1440px; margin: 0 auto; padding: 32px clamp(16px, 3.5vw, 52px) 40px; }

/* ---------------------------------------------------------------- header */
.hero { position: relative; display: flex; justify-content: space-between; align-items: flex-end; min-height: 214px; }
.hero-text { position: relative; z-index: 1; padding-bottom: 28px; }
.eyebrow { color: var(--green-ink); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { margin: 0 .35em; }
h1 { font-size: clamp(36px, 5.2vw, 76px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 18px 0 14px; color: #0c0f0e; }
.sub { font-size: clamp(17px, 1.9vw, 26px); color: #3b4240; }
.hero-cubes { width: min(560px, 42vw); height: auto; margin-right: -20px; align-self: flex-start; margin-top: -30px; }
.hero-cubes, .agent-cubes { stroke: none; }
.hero-cubes .hero-headset, .agent-cubes .cube-icon { fill: none; }
.hero-headset { stroke: #fff; stroke-width: 1.3; }

/* ---------------------------------------------------------------- industry tabs */
.industries { display: grid; grid-template-columns: 1.05fr 1fr 1fr 1fr .9fr 1fr 1.08fr .9fr .9fr; gap: 10px; margin: 6px 0 34px; }
.ind { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 104px;
       padding: 14px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
       font-size: 19px; line-height: 1.15; color: #1e2422; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.ind svg { width: 32px; height: 32px; stroke-width: 1.4; }
.ind small { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.ind.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(19,78,69,.25); }
.ind[aria-disabled="true"] { cursor: not-allowed; }
.ind[aria-disabled="true"] span { color: #2c3331; }

/* ---------------------------------------------------------------- main card */
.card { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); background: var(--card);
        border: 1px solid #d5dad7; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04); }

/* left: call panel */
.call { background: var(--green); color: #fff; padding: 36px clamp(20px, 2.6vw, 38px) 30px; display: flex; flex-direction: column; align-items: center; }
.persona { display: flex; align-items: center; gap: 18px; width: 100%; justify-content: center; }
.agent-cubes { width: 170px; height: 150px; }
.cube-icon { stroke: #134e45; stroke-width: 1.8; }
.who { border-left: 1px solid rgba(255,255,255,.28); padding: 8px 0 8px 36px; }
.who h2 { font-size: 44px; line-height: 1.1; font-weight: 700; }
.role { font-size: 21px; color: #e2efeb; margin: 6px 0 12px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 19px; color: #e8f2ef; }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); flex: none; }
.status.connecting .dot { background: #9fb8b1; animation: blink 1s infinite; }
.status.listening .dot { animation: pulse 1.6s ease-out infinite; }
.status.thinking .dot { background: var(--amber); }
.status.speaking .dot { background: #8fe0c9; }
.status.busy .dot { background: var(--amber); animation: blink 1.4s infinite; }
.status.ended .dot { background: #9aa8a4; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,196,122,.7); } 70% { box-shadow: 0 0 0 10px rgba(63,196,122,0); } 100% { box-shadow: 0 0 0 0 rgba(63,196,122,0); } }
@keyframes blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none !important; } }

#wave { width: min(360px, 100%); height: 84px; margin: 26px 0 24px; display: block; }
.start { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(396px, 100%); min-height: 64px;
         background: #fff; color: var(--green); border: 0; border-radius: 999px; font-size: 23px; font-weight: 700;
         box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.start svg { width: 28px; height: 28px; stroke-width: 1.7; color: #1e2422; }
.start:disabled { background: rgba(255,255,255,.16); color: rgba(255,255,255,.75); box-shadow: none; cursor: default; }
.start:disabled svg { color: inherit; }
.round { display: flex; gap: 52px; margin-top: 18px; }
.round > div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 16px; color: #e8f2ef; }
.rb { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.rb svg { width: 26px; height: 26px; stroke-width: 1.5; }
.mute { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85); }
.mute[aria-pressed="true"] { background: #fff; color: var(--green); }
.end { background: var(--red); border: 0; color: #fff; }
.end svg { fill: #fff; stroke: #fff; stroke-width: 1; }
.rb:disabled { opacity: .8; cursor: default; }
.alert { margin-top: 16px; background: #fff4e0; color: #5b3b00; border-radius: 10px; padding: 10px 14px; font-size: 15px; width: 100%; max-width: 440px; }
.call hr { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.3); margin: 22px 0 16px; }
.tag { font-size: 18px; }
.notice { font-size: 14px; color: #cfe4de; margin-top: 6px; text-align: center; }

/* right: conversation */
.talk { padding: 26px clamp(20px, 2.6vw, 38px) 30px; min-width: 0; display: flex; flex-direction: column; }
.talk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.talk h2 { font-size: 26px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 8px; padding: 8px 14px; font-size: 16px; color: #2b3230; }
.badge svg { width: 22px; height: 22px; }
.chat { display: flex; flex-direction: column; gap: 22px; margin: 26px 0 30px; max-height: 360px; overflow-y: auto; scroll-behavior: smooth; }
.msg { display: flex; gap: 16px; align-items: flex-start; }
.av { width: 64px; height: 62px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.av svg { width: 34px; height: 34px; stroke-width: 1.4; }
.msg.caller .av { background: #f2f3f2; border: 1px solid var(--line); color: #2b3230; }
.msg.agent .av { background: var(--green); color: #fff; }
.msg p { padding: 16px 26px; border-radius: 14px; font-size: 22px; line-height: 1.35; min-height: 62px; display: flex; align-items: center; }
.msg.caller p { background: #efefef; flex: 1; }
.msg.agent p { background: var(--mint); }
.msg.partial p { color: var(--muted); font-style: italic; }
.talk hr { border: 0; border-top: 1px solid #d3d9d6; margin: 0 0 22px; width: 100%; }
.summary { margin: 16px 0 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 28px 140px 1fr; align-items: center; gap: 0 16px; background: #f5f6f5; border-radius: 8px; padding: 10px 22px; font-size: 21px; min-height: 44px; }
.row svg { width: 28px; height: 28px; stroke-width: 1.4; color: #1e2422; }
.row dt { font-weight: 700; }
.row dd { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.row dd.pending, .row .val.inferred { color: var(--muted); }
.row .state { font-size: 15px; color: var(--muted); }
.row .ok { color: #1f8a52; width: 22px; height: 22px; stroke-width: 2.4; }
.row dd.missing { color: #8a3b12; }
.row dd.empty { color: var(--muted); }

.rate fieldset { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 10px 14px; align-items: center; }
.rate legend { font-weight: 700; font-size: 18px; margin-bottom: 10px; float: left; grid-column: 1 / -1; }
.rate hr { margin-top: 22px; }
.thumbs { display: flex; gap: 8px; }
.thumb { width: 48px; height: 48px; border-radius: 10px; border: 1px solid #c9d0cd; background: #fff; display: grid; place-items: center; padding: 0; color: #2b3230; }
.thumb[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.rate textarea { font: inherit; font-size: 16px; border: 1px solid #c9d0cd; border-radius: 10px; padding: 10px 12px; min-height: 48px; resize: vertical; width: 100%; }
.send { min-height: 48px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--green); background: var(--green); color: #fff; font-weight: 700; }
.done { grid-column: 1 / -1; color: var(--green-ink); font-size: 15px; }
.done:empty { display: none; }

.cta { text-align: right; margin-top: 30px; }
.cta a { display: inline-flex; align-items: center; gap: 10px; color: var(--green-ink); font-weight: 700; font-size: 22px; text-decoration: none; border-bottom: 2px solid var(--green-ink); padding-bottom: 4px; min-height: 44px; }
.cta a:hover { color: var(--green-2); }
.cta svg { width: 26px; height: 26px; stroke-width: 2; }

/* ---------------------------------------------------------------- login */
.login-card { max-width: 440px; background: var(--card); border: 1px solid #d5dad7; border-radius: 16px; padding: 30px; margin-top: 10px; }
.login-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-card p { color: var(--muted); margin-bottom: 18px; }
.login-card label { display: block; font-weight: 700; margin: 14px 0 6px; }
.login-card input { width: 100%; font: inherit; padding: 12px 14px; min-height: 48px; border: 1px solid #b9c2be; border-radius: 10px; }
.login-card button { margin-top: 22px; width: 100%; min-height: 52px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 18px; }
.login-card .err { color: #a52a1f; background: #fdeceb; border-radius: 8px; padding: 10px 12px; margin: 0 0 6px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .industries { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .ind { flex: 0 0 132px; scroll-snap-align: start; }
  .card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page { padding-top: 22px; }
  .hero { min-height: 0; }
  .hero-cubes { display: none; }
  .hero-text { padding-bottom: 20px; }
  .eyebrow { font-size: 12.5px; }
  h1 { margin: 12px 0 10px; }
  .industries { margin-bottom: 20px; gap: 8px; }
  .ind { flex-basis: 104px; min-height: 88px; font-size: 15px; }
  .ind svg { width: 26px; height: 26px; }
  .ind small { font-size: 11px; }
  .call { padding: 24px 18px 22px; }
  .persona { gap: 8px; }
  .agent-cubes { width: 112px; height: 100px; }
  .who { padding: 4px 0 4px 16px; }
  .who h2 { font-size: 32px; }
  .role { font-size: 17px; margin: 2px 0 8px; }
  .status { font-size: 16px; }
  .dot { width: 14px; height: 14px; }
  #wave { height: 64px; margin: 16px 0; }
  .start { font-size: 20px; min-height: 56px; }
  .tag { font-size: 16px; }
  .talk { padding: 22px 16px 24px; }
  .talk h2 { font-size: 21px; }
  .badge { font-size: 14px; padding: 6px 10px; }
  .chat { gap: 14px; margin: 18px 0 22px; }
  .av { width: 44px; height: 44px; }
  .av svg { width: 26px; height: 26px; }
  .msg { gap: 10px; }
  .msg p { font-size: 17px; padding: 11px 15px; min-height: 44px; }
  .row { grid-template-columns: 24px 82px 1fr; padding: 9px 12px; gap: 0 10px; font-size: 16px; }
  .row svg { width: 22px; height: 22px; }
  .rate fieldset { grid-template-columns: auto 1fr; }
  .send { grid-column: 1 / -1; }
  .cta { text-align: left; }
  .cta a { font-size: 18px; }
}
