/* Responsive density and layout polish for the personal phone-double demo. */
.workline-header {
  height: 64px;
}

main {
  min-height: calc(100vh - 64px);
}

.shell {
  padding-block: 48px 76px;
}

.hero {
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  gap: 56px;
  min-height: 540px;
}

.hero h1,
.page-title {
  max-width: 680px;
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.hero h1 {
  white-space: nowrap;
}

.hero .lede {
  margin-block: 22px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid #dce4ff;
  border-radius: 18px;
  background: #f0f4ff;
}

.hero-action-copy {
  display: grid;
  gap: 2px;
  padding-left: 8px;
}

.hero-action-copy strong {
  font-size: .98rem;
  line-height: 1.35;
}

.hero-action-copy span {
  color: #52627d;
  font-size: .82rem;
}

.hero #start-demo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 262px;
  min-height: 62px;
  padding: 15px 21px;
  border-radius: 14px;
  font-size: 1.05rem;
  line-height: 1.25;
  box-shadow: 0 12px 24px rgba(49, 94, 251, .23);
}

.hero #start-demo span {
  font-size: 1.35rem;
  line-height: 1;
}

.hero #start-demo:disabled {
  cursor: wait;
  opacity: .7;
}

.primary,
.secondary {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 11px;
}

.promotion {
  margin-top: 14px;
  padding: 6px 10px;
  font-size: .78rem;
}

.trust {
  margin-top: 22px;
  font-size: .82rem;
}

.phone {
  width: 100%;
  max-width: 350px;
  padding: 16px;
  border-radius: 30px;
}

.phone-screen {
  min-height: 450px;
  padding: 28px 23px;
  border-radius: 21px;
}

.caller-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  font-size: 1.65rem;
}

.caller h2 {
  font-size: 1.55rem;
}

.lead-preview {
  padding: 16px;
  border-radius: 15px;
}

.use-cases div {
  padding: 18px 20px;
}

.progress-wrap {
  margin-bottom: 34px;
}

.question {
  padding-block: 32px;
}

.option {
  min-height: 100px;
  padding: 16px;
  border-radius: 15px;
}

.option.selected {
  padding: 15px;
}

.question > .sample {
  margin-top: 20px;
}

.setup-actions {
  z-index: 5;
  padding-block: 14px calc(14px + env(safe-area-inset-bottom));
}

@media (max-width: 1100px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-action-copy {
    padding: 0 4px;
  }

  .hero #start-demo {
    width: 100%;
  }
}

@media (min-width: 821px) {
  .setup {
    padding-top: 40px;
  }

  .setup h1 {
    margin-block: 0 10px;
  }

  .setup .question {
    padding-block: 24px;
  }

  .setup .question h2 {
    font-size: 1.24rem;
  }

  .setup .options {
    gap: 10px;
  }

  .setup .option {
    min-height: 82px;
    padding: 13px 15px;
  }

  .setup .option.selected {
    padding: 12px 14px;
  }
}

@media (max-width: 820px) {
  .workline-header {
    height: 60px;
  }

  main {
    min-height: calc(100vh - 60px);
  }

  .shell {
    padding: 28px 18px 72px;
  }

  .hero,
  .call-grid,
  .result-grid {
    gap: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero h1,
  .page-title {
    font-size: clamp(1.3rem, 6.7vw, 2.3rem);
    line-height: 1.06;
    letter-spacing: -.048em;
  }

  .hero .lede {
    margin-block: 17px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .hero #start-demo {
    order: -1;
    min-width: 0;
    min-height: 58px;
    font-size: 1rem;
  }

  .hero-action-copy {
    gap: 0;
    padding: 0 4px 2px;
    text-align: center;
  }

  .hero-action-copy strong {
    font-size: .82rem;
  }

  .hero-action-copy span {
    font-size: .75rem;
  }

  .promotion {
    margin-top: 12px;
    font-size: .75rem;
  }

  .trust {
    margin-top: 17px;
    line-height: 1.55;
  }

  .phone {
    max-width: 330px;
    padding: 13px;
    border-radius: 27px;
  }

  .hero .phone {
    max-width: none;
    padding: 11px;
    border-radius: 20px;
  }

  .hero .phone-screen {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 9px 12px;
    min-height: 158px;
    padding: 13px 14px;
    border-radius: 13px;
  }

  .hero .phone-meta {
    grid-column: 1 / -1;
    font-size: .67rem;
  }

  .hero .caller {
    margin: 0;
  }

  .hero .caller-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    font-size: 1rem;
  }

  .hero .caller h2 {
    font-size: .94rem;
  }

  .hero .caller p {
    margin: 2px 0 0;
    font-size: .73rem;
    line-height: 1.35;
  }

  .hero .voice-waveform {
    display: none;
  }

  .hero .lead-preview {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 9px;
    border-radius: 10px;
  }

  .hero .lead-preview small {
    font-size: .67rem;
    line-height: 1.3;
  }

  .hero .lead-preview strong {
    margin: 4px 0;
    font-size: .77rem;
    line-height: 1.35;
  }

  .phone-screen {
    min-height: 365px;
    padding: 23px 20px;
    border-radius: 19px;
  }

  .caller-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
    font-size: 1.45rem;
  }

  .caller h2 {
    font-size: 1.35rem;
  }

  .caller p {
    margin-block: 6px;
  }

  .lead-preview {
    padding: 13px 14px;
  }

  .use-cases div {
    padding: 14px 12px;
  }

  .use-cases strong {
    font-size: .92rem;
  }

  .use-cases span {
    font-size: .8rem;
  }

  .setup {
    padding-top: 22px;
    padding-bottom: 104px;
  }

  .progress-wrap {
    margin-bottom: 26px;
  }

  .setup h1 {
    margin-block: 0 8px;
    font-size: clamp(1.8rem, 7.8vw, 2.3rem);
    line-height: 1.16;
  }

  .question {
    padding-block: 24px;
  }

  .question h2 {
    font-size: 1.18rem;
  }

  .question > p {
    margin-bottom: 13px;
    font-size: .9rem;
  }

  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .option {
    min-height: 82px;
    padding: 13px;
    border-radius: 13px;
  }

  .option.selected {
    padding: 12px;
  }

  .option strong {
    font-size: .92rem;
    line-height: 1.35;
  }

  .option span {
    margin-top: 4px;
    font-size: .76rem;
    line-height: 1.4;
  }

  .sample {
    margin-top: 10px;
    padding: 11px 12px;
    font-size: .86rem;
  }

  .question > .sample {
    margin-top: 16px;
  }

  .field input {
    min-height: 46px;
  }

  .setup-actions {
    margin-inline: -4px;
    padding-top: 11px;
  }

  .setup-actions .primary {
    width: 100%;
  }

  .facts-panel {
    order: 0;
  }

  .call-phone {
    order: 1;
  }

  .call-phone .phone-screen {
    min-height: 270px;
  }

  .call-phone .voice-waveform {
    height: 48px;
  }

  .facts-panel h1,
  .lead-summary h1 {
    font-size: 1.65rem;
  }

  .fact-list {
    margin-block: 18px;
  }

  .lead-summary,
  .claim {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .use-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-cases div {
    border-right: 1px solid var(--work-line);
    border-bottom: 1px solid var(--work-line);
  }

  .use-cases div:nth-child(2n) {
    border-right: 0;
  }

  .use-cases div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 350px) {
  body {
    min-width: 0;
  }

  .shell {
    padding-inline: 14px;
  }

  .options {
    grid-template-columns: 1fr;
  }
}
