.hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
}
.hero-figure {
  container-type: inline-size;
}
.meeting-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 0 0 20px;
  overflow: hidden;
  border: 1px solid #d3ded5;
  border-radius: 16px;
  background: linear-gradient(145deg, #f3f6ef 8%, #e6eee3 72%, #deeadf);
}
.meeting-discussion {
  padding: 20px clamp(16px, 4cqw, 26px) 0;
  color: var(--text-primary);
}
.meeting-discussion > span,
.company-context strong {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}
.meeting-discussion p {
  margin: 4px 0 0;
  max-width: 40ch;
  font-size: clamp(17px, 3.5cqw, 21px);
  line-height: 1.35;
  letter-spacing: -.02em;
}
.meeting-quote-unspoken {
  visibility: hidden;
}
.company-context {
  margin: 10px 2px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}
.company-context strong {
  color: var(--text-primary);
  margin-right: .45em;
}
.meeting-scene .widget-shell {
  position: relative;
  align-self: center;
  flex: none;
  aspect-ratio: auto;
  box-shadow: 0 10px 26px #173b3126, 0 2px 6px #173b3117;
}
.meeting-scene[data-positioned] {
  display: block;
  height: 500px;
  /* Leave room to try dragging even when the widget nearly fills the screen. */
  min-height: calc(var(--demo-min-height, 0px) + 56px);
  padding: 0;
}
.meeting-scene[data-positioned] .widget-shell {
  position: absolute;
}
.meeting-scene[data-positioned]:has(.widget-shell[hidden]) {
  height: auto;
  min-height: 0;
  padding-bottom: 20px;
}
.meeting-scene .native-cue-label {
  margin-bottom: 4px;
}
.widget-move-handle {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #a2b79b;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.widget-move-handle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.widget-move-handle:hover,
.widget-move-handle[aria-expanded='true'],
.widget-shell[data-demo-grip] .widget-move-handle,
.widget-shell[data-dragging] .widget-move-handle {
  background: #d4eeaf25;
  color: #d4eeaf;
}
.widget-shell[data-dragging] .widget-move-handle {
  cursor: grabbing;
}
.widget-shell[data-dragging] {
  user-select: none;
}
/* The illustrative cursor is decorative. Real pointer input passes through it. */
.demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 22px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.demo-cursor svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  fill: #f8fbf2;
  stroke: #274737;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 2px #173b3155);
}
.demo-cursor-press {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 1.5px solid #a9c795;
  border-radius: 50%;
  background: #a9c79535;
  opacity: 0;
}
.demo-cursor[data-held] .demo-cursor-press {
  opacity: 1;
}
.widget-position-controls {
  position: absolute;
  top: 44px;
  left: 8px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  grid-template-rows: repeat(3, 44px);
  gap: 4px;
  padding: 8px;
  background: #203e37;
  border: 1px solid #657f73;
  border-radius: 9px;
  box-shadow: 0 8px 24px #0005;
}
.widget-position-controls button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: #2d4b40;
  color: #e3edd6;
  font-size: 12px;
  padding: 0;
}
.widget-position-controls button:hover {
  background: #3f604b;
}
.widget-position-controls button:focus-visible {
  outline: 2px solid #d4eeaf;
  outline-offset: 1px;
}
.widget-position-controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-widget-move='up'] {
  grid-column: 2;
  grid-row: 1;
}
[data-widget-move='left'] {
  grid-column: 1;
  grid-row: 2;
}
[data-widget-move='reset'] {
  grid-column: 2;
  grid-row: 2;
}
[data-widget-move='right'] {
  grid-column: 3;
  grid-row: 2;
}
[data-widget-move='down'] {
  grid-column: 2;
  grid-row: 3;
}
@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-copy {
    max-width: 600px;
  }
  .hero-figure {
    width: 100%;
    max-width: 650px;
    justify-self: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-cursor {
    display: none;
  }
  .meeting-scene .widget-shell {
    scroll-behavior: auto;
  }
}

/* Keep the demo widget at desktop Default and Compact sizes. */
.meeting-scene .widget-shell {
  width: 400px;
  height: 360px;
  max-width: calc(100% - 28px);
}
.meeting-scene .widget-shell[data-preset='compact'] {
  width: 340px;
  height: 240px;
}
.meeting-scene .widget-shell[data-view='compact'] {
  height: 240px;
}
.meeting-scene .native-header {
  height: 43px;
  min-height: 43px;
  padding: 4px 8px;
  gap: clamp(4px, 1.5cqw, 8px);
}
.meeting-scene .native-header img {
  width: 23px;
  height: 23px;
}
.meeting-scene .native-brand {
  font-size: 11px;
}
.native-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #b5c6b0;
  background: transparent;
  flex-shrink: 0;
}
.native-close svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.meeting-scene .native-content {
  padding: 11px 13px 8px;
  gap: 8px;
}
.native-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 18px;
  flex-shrink: 0;
  gap: 5px;
  font-size: 10px;
  color: var(--widget-muted);
  align-items: center;
}
.native-audio-check {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
}
.native-audio-check:hover,
.native-compact-status:hover {
  color: var(--widget-text);
}
.native-status > span {
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.native-status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.widget-shell[data-suggestion-held] .native-audio-check .native-status-dot {
  background: var(--widget-muted);
}
.native-compact-status {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  background: transparent;
  border: 0;
  padding: 4px;
  color: #b4c8aa;
}
.meeting-scene .native-cue {
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--widget-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.native-cue-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.native-advice-controls {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--widget-surface);
  color: var(--widget-muted);
  font-size: 11px;
  margin-bottom: 8px;
  min-height: 28px;
}
.meeting-scene .native-demo-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: static;
  width: auto;
  min-width: 28px;
  height: 28px;
  margin: 0;
  padding: 4px 7px;
  border: 0;
  border-radius: 6px;
  background: var(--widget-control);
  color: var(--widget-text);
  font-size: 11px;
  flex-shrink: 0;
}
.meeting-scene .native-demo-toggle .pause-icon {
  display: none;
  width: 14px;
  height: 14px;
}
.meeting-scene .native-cue-label {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
  margin: 0;
  letter-spacing: 0.08em;
}
.meeting-scene .native-cue-text {
  font-size: var(--text-advice);
  line-height: 1.45;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 0;
  color: var(--widget-text);
  overflow-wrap: anywhere;
}
.meeting-scene .native-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.meeting-scene .native-quick button {
  min-width: 0;
  min-height: 30px;
  padding: 6px 7px;
  line-height: 1.25;
  font-size: var(--text-help);
  background: var(--widget-control);
  color: var(--widget-muted);
  border: 1px solid var(--widget-line);
  border-radius: 8px;
}
.native-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 5px 13px;
  flex-shrink: 0;
}
.native-footer button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #b5c6b0;
  font-size: 10px;
  padding: 5px 0;
  min-height: 28px;
  border-radius: 6px;
}
.native-footer .native-end {
  margin-left: auto;
  color: #ddb2ae;
  font-size: 12px;
  padding: 5px 8px;
}
.native-footer button:hover,
.native-close:hover {
  background: #ffffff0b;
}
.native-widget button:focus-visible {
  outline: 2px solid #d4eeaf;
  outline-offset: 1px;
}
.widget-shell[data-view='compact'] .native-header {
  height: 37px;
  min-height: 37px;
  padding: 3px 8px;
  gap: 6px;
}
.widget-shell[data-view='compact']
  :is(
    .native-logo,
    .native-brand,
    .native-status,
    .native-quick,
    .pause-text
  ) {
  display: none;
}
.widget-shell[data-view='compact'] .native-compact-status {
  display: flex;
  min-width: 0;
}
.native-compact-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.meeting-scene .widget-shell[data-view='compact'] .native-content {
  padding: 5px 10px;
  gap: 0;
}
.meeting-scene .widget-shell[data-view='compact'] .native-cue {
  padding: 9px 11px;
}
.widget-shell[data-view='compact'] .native-advice-controls {
  margin-bottom: 3px;
}
.meeting-scene .widget-shell[data-view='compact'] .native-demo-toggle {
  width: 28px;
  height: 28px;
  padding: 6px;
}
.meeting-scene .widget-shell[data-view='compact'] .native-demo-toggle .pause-icon {
  display: block;
}
.widget-shell[data-view='compact'] .native-footer {
  padding: 5px 10px;
}
.show-widget {
  padding: 5px 9px;
  border: 1px solid #ccd6ca;
  border-radius: 5px;
  background: #fff;
  color: #40594a;
  font-size: 11px;
}
@media (max-width: 860px) {
  .meeting-scene .widget-shell[data-view='compact'] {
    height: 260px;
  }
  .native-footer button {
    min-height: 36px;
  }
  .meeting-scene .native-quick button {
    min-height: 36px;
  }
}
@media (max-width: 420px) {
  .native-footer {
    gap: 6px;
  }
}
.native-footer button:disabled {
  cursor: default;
  opacity: 0.6;
}


@media (pointer: coarse) {
  .meeting-scene .native-header,
  .widget-shell[data-view='compact'] .native-header {
    min-height: 48px;
    padding-block: 2px;
  }
  .widget-move-handle {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 720px) {
  .meeting-scene[data-positioned] {
    height: auto;
  }
  .meeting-discussion {
    padding: 14px 14px 0;
  }
  .meeting-discussion p {
    /* Reserve two lines so rotating quotes do not move the widget. */
    min-height: 2.7em;
  }
  .meeting-scene .widget-shell {
    width: calc(100% - 32px);
    height: 316px;
    max-width: 400px;
  }
  .meeting-scene .widget-shell[data-view='compact'] {
    height: 240px;
  }
  .meeting-scene .native-cue-text {
    font-size: var(--text-advice);
    line-height: 1.45;
  }
  .meeting-scene .native-quick button {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .meeting-discussion p {
    min-height: 4.05em;
  }
}
