/* Homepage hero (business stories), the "who we text" row and the use-case filter chips. Loaded by index.html only. */
/* a system line, as iOS prints one: what the customer did that started the thread */
.hero-sim .hs-msgs .hs-note { color: var(--ios-meta); font-weight: 400; }
.hero-sim .hs-msgs .hs-note b { color: var(--ios-in-ink); font-weight: 500; }
.hero-sim .hs-msgs .hs-stamp + .hs-note, .hero-sim .hs-msgs * + .hs-note { margin-top: calc(10 * var(--kT)); }
/* a photo message: no bubble fill or tail, the image's own rounded corners */
.hero-sim .hs-msgs .chat-bubble.hs-photo { padding: 0; background: none; width: calc(128 * var(--kT)); max-width: none; border-radius: calc(18 * var(--kT)); }
.hero-sim .hs-msgs .hs-photo img { display: block; width: 100%; aspect-ratio: 960 / 723; object-fit: cover; border-radius: calc(18 * var(--kT)); }
.hero-sim .hs-msgs .hs-photo::before, .hero-sim .hs-msgs .hs-photo::after { display: none !important; }
/* the call link beside the demo note */
.imsg-hero .demo-card-note .hero-call { color: var(--accent, #0a6cff); font-weight: 500; text-decoration: none; margin-left: 10px; white-space: nowrap; }
.imsg-hero .demo-card-note .hero-call:hover { text-decoration: underline; }
/* who we text */
.imsg-warm { padding: clamp(56px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); }
.imsg-warm .sec-sub { max-width: 46ch; margin-left: auto; margin-right: auto; }
.imsg-warm .warm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; margin: clamp(32px, 4vw, 48px) auto 0; }
@media (max-width: 860px) { .imsg-warm .warm-steps { grid-template-columns: 1fr; max-width: 520px; } }
/* rows that scroll up pass under the header, as in Messages */
.hero-sim .hs-chat .th-head { z-index: 3; }
.hero-sim .hs-chat .th-head::before { content: ""; position: absolute; inset: 0 0 calc(-22 * var(--th-u)); z-index: -1; background: linear-gradient(var(--ios-bg) 78%, transparent); }
/* who we text: three kinds of contact, not steps */
.imsg-warm .warm-steps li { padding-left: 0; }
.imsg-warm .warm-steps li::before { display: none; }
/* a taller card (4:5): business threads carry a context line and longer messages, so give them room to read */
.imsg-hero .hero-sim { aspect-ratio: 4 / 5; }
/* use-case filter */
.imsg-cases .case-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto clamp(20px, 2.4vw, 32px); padding: 0 16px; }
.imsg-cases .case-chip { font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-2); background: var(--surface, #fff); border: 1px solid var(--hairline-2, rgba(0,0,0,.12)); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.imsg-cases .case-chip:hover { color: var(--ink); border-color: var(--ink-3, rgba(0,0,0,.35)); }
.imsg-cases .case-chip[aria-pressed="true"] { background: var(--ink); color: var(--canvas, #fff); border-color: var(--ink); }
.imsg-cases[data-for]:not([data-for=""]) .case-grid > .case { transition: opacity .3s; }
.imsg-cases[data-for="sales"] .case-grid > .case:not([data-for="sales"]),
.imsg-cases[data-for="marketing"] .case-grid > .case:not([data-for="marketing"]),
.imsg-cases[data-for="classes"] .case-grid > .case:not([data-for="classes"]),
.imsg-cases[data-for="support"] .case-grid > .case:not([data-for="support"]),
.imsg-cases[data-for="apps"] .case-grid > .case:not([data-for="apps"]) { opacity: .35; }
/* a photo message in a use-case thread */
.ucs-msgs .ucs-b.ucs-photo { padding: 0; background: none; width: 30%; }
.ucs-msgs .ucs-b.ucs-photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.ucs-msgs .ucs-b.ucs-photo::before, .ucs-msgs .ucs-b.ucs-photo::after { display: none; }
/* support phone: tall enough for the whole conversation, so no bubble slides under the header; the fade only softens the frame's bottom */
.sa-phone .pg-phc { --pg-fade: .94; height: 590px; }
@media (max-width: 900px) { .sa-phone .pg-phc { height: 640px; } }
/* the call option: a real secondary button under the demo note, left on desktop and centred with the rest on phones */
.imsg-hero .hero-call-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 11px 20px; font-size: 15px; font-weight: 500; }
@media (max-width: 900px) {
  .imsg-hero .demo-card { display: flex; flex-direction: column; align-items: center; }
  .imsg-hero .demo-card > .demo-form { align-self: stretch; }
  .imsg-hero .demo-card-note { text-align: center; }
}
/* filters: tighter chips so they wrap into two short rows on a phone */
@media (max-width: 560px) {
  .imsg-cases .case-filter { gap: 6px; padding: 0 8px; margin-bottom: 18px; }
  .imsg-cases .case-chip { font-size: 13.5px; padding: 7px 12px; }
}
@media (max-width: 900px) { .arc-concept .imsg-hero .demo-card-note { margin-left: 0; } }
.arc-concept .imsg-hero .demo-card-note { margin-left: 0; }
/* carousel dots on phones: round 6 px dots, closer together (13 cards now), the current one a short bar */
@media (max-width: 600px) {
  .arc-concept .imsg-cases .case-controls { margin-inline: 0; gap: 8px; }
  .arc-concept .imsg-cases .case-dots { padding: 0 10px; }
  .arc-concept .imsg-cases .case-dot { width: 16px; }
  .arc-concept .imsg-cases .case-dot.is-on { width: 28px; }
  .arc-concept .imsg-cases .case-dot .track { width: 6px; height: 6px; border-radius: 3px; }
  .arc-concept .imsg-cases .case-dot.is-on .track { width: 100%; }
}
/* one corner radius for every button: the full pill (round icon buttons are the same pill at equal width and height) */
.arc-concept .imsg :is(.btn, .demo-submit, .case-chip, .case-more, .case-link, .faq-expand, .copy-prompt) { border-radius: 999px; }
/* AI support agent: no panel; the section sits on the page like the others, and its eyebrow uses the shared eyebrow colour */
.arc-concept .imsg-support .sa-panel { background: none; box-shadow: none; border-radius: 0; padding: 0; overflow: visible; }
.arc-concept .imsg-support .sec-eyebrow { color: var(--ink); }
/* use-case rail: calmer focus change. The art rises 14px instead of 36px; the spring itself is re-tuned in index.html (damping .58 -> .82) */
.arc-concept .imsg-cases .case-rail .case-media { translate: 0 14px; transition-duration: .8s; }
.arc-concept .imsg-cases .case-rail :is(.case, .case-wide, :is(#agent,.c-agent)) { scale: .92; transition-duration: .8s, .4s; }
/* phones: the carousel shows All and drifts; the filter chips are hidden (js/use-cases.js only binds clicks, so it needs none of them visible) */
@media (max-width: 700px) { .imsg-wide .imsg-cases .case-filter { display: none; } }

/* Homepage headline, demo form and proof row. */
body.arc-concept .imsg section.imsg-hero.hero-with-sim {
  padding-block: clamp(2rem, 4.5vw, 4rem);
  padding-inline: clamp(1rem, 4vw, 3rem);
}
.arc-concept .imsg-hero.hero-with-sim h1 {
  max-width: none; font-size: clamp(2rem, 1.25rem + 3.5vw, 4rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -.04em;
}
.arc-concept .imsg-hero.hero-with-sim .hero-rotator {
  --bf: clamp(1.25rem, .95rem + 1vw, 1.875rem); padding-top: .75rem;
}
.arc-concept .imsg-hero .demo-card .demo-card-note { margin-top: .5rem; font-size: .875rem; }
.arc-concept .imsg-hero .hero-call-btn { margin-top: .75rem; }
.arc-concept .imsg-hero .demo-card .demo-field input[type="tel"],
.arc-concept .imsg-hero .demo-submit { font-size: 1rem; }
.arc-concept .imsg-hero .hero-copy .hero-proof { font-size: .875rem; }

@media (min-width: 901px) {
.arc-concept .imsg-hero.hero-with-sim .imsg-container {
  max-width: 1280px; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start; gap: clamp(2rem, 5vw, 4.5rem);
}
.arc-concept .imsg-hero.hero-with-sim .hero-copy { padding-top: 1rem; }
.arc-concept .imsg-hero.hero-with-sim .demo-card { margin-top: 1.5rem; max-width: 32rem; }
.arc-concept .imsg-hero.hero-with-sim .demo-card .demo-form { height: 3.75rem; }
.arc-concept .imsg-hero.hero-with-sim .hero-sim { width: min(100%, 28rem); margin: 0 auto; --kT: calc(85cqw / 320); }
/* the trust row joins the copy column as a left-aligned stack: Y Combinator and uptime, then the logos */
.arc-concept .imsg-hero .hero-copy .hero-proof {
  justify-content: flex-start; margin: 2rem 0 0; padding: 0; gap: .75rem 1.5rem; max-width: 32rem;
}
.arc-concept .imsg-hero .hero-copy .hero-proof-yc { order: 1; }
.arc-concept .imsg-hero .hero-copy .hero-proof-stat { order: 2; }
.arc-concept .imsg-hero .hero-copy .hero-proof-team { order: 3; flex: 0 0 100%; justify-content: flex-start; gap: 10px 22px; }
.arc-concept .imsg-hero .hero-copy .hero-proof-team::before { display: none; }
.arc-concept .imsg-hero .hero-copy .hero-proof-logos { gap: 24px; }
}

@media (max-width: 900px) {
  .arc-concept .imsg-hero.hero-with-sim .imsg-container { gap: 1.25rem; }
  .arc-concept .imsg-hero.hero-with-sim .demo-card { margin: 0 auto; max-width: 28rem; }
  .arc-concept .imsg-hero.hero-with-sim .hero-sim { width: min(100%, 23rem); margin-inline: auto; }
  .arc-concept .imsg-hero .hero-copy .hero-proof { order: 4; justify-content: center; flex-direction: column; gap: .75rem; margin: 0; padding: 0; max-width: none; }
  .arc-concept .imsg-hero .hero-copy .hero-proof-team { flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 12px; }
  .arc-concept .imsg-hero .hero-copy .hero-proof-yc, .arc-concept .imsg-hero .hero-copy .hero-proof-stat { order: 0; }
  .arc-concept .imsg-hero .hero-copy .hero-proof-team { order: 0; }
  .arc-concept .imsg-hero .hero-copy .hero-proof > .hero-proof-stat::before { display: none; }
}

@media (max-width: 480px) {
  .arc-concept .imsg-hero.hero-with-sim .hero-sim {
    width: min(100% + 2rem, 23rem);
    margin-inline: calc((100% - min(100% + 2rem, 23rem)) / 2);
  }
  .arc-concept .imsg-hero.hero-with-sim .demo-field,
  .arc-concept .imsg-hero.hero-with-sim .demo-submit { height: 3.25rem; }
}

/* Social proof: one centred row along the hero's bottom edge, under both columns */
.arc-concept .imsg-hero.hero-with-sim .imsg-container > .hero-proof {
  grid-column: 1 / -1; width: 100%; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--ink, #111) 8%, transparent); font-size: .875rem;
}
@media (max-width: 900px) {
  .arc-concept .imsg-hero.hero-with-sim .imsg-container > .hero-proof { order: 99; flex-direction: column; gap: .75rem; }
  .arc-concept .imsg-hero.hero-with-sim .imsg-container > .hero-proof .hero-proof-team { flex-direction: column; gap: 12px; }
  .arc-concept .imsg-hero.hero-with-sim .imsg-container > .hero-proof .hero-proof-yc ~ *::before { display: none; }
}

/* Homepage hero: the copy sits centred beside the phone, and each phrase is plain headline text, not a bubble
   (it still rises in and leaves as a send does). */
@media (min-width: 901px) {
  #main.imsg-wide .imsg-hero.hero-with-sim .imsg-container { align-items: center; }
  #main.imsg-wide .imsg-hero.hero-with-sim .hero-copy { padding-top: 0; }
}
#main.imsg-wide .imsg-hero .hero-rotator { --bf: 1em; padding-top: .05em; }
#main.imsg-wide .imsg-hero :is(.hero-bubble, .hero-sizer) {
  padding: 0; border-radius: 0; background: none; color: var(--ink, #111);
  font: inherit; letter-spacing: inherit; line-height: 1.1;
}
#main.imsg-wide .imsg-hero .hero-bubble::after { display: none; }
#main.imsg-wide .imsg-hero .hero-sizer { padding-right: .3em; margin-bottom: .1em; }
#main.imsg-wide .imsg-hero .hero-line { padding-bottom: .1em; }

/* Oct 16 headline: the phrase is typed on two lines in the headline's own weight and colour, with a caret */
#main.imsg-wide .imsg-hero .hero-line { display: block; padding-bottom: 0; clip-path: none; }
#main.imsg-wide .imsg-hero .hero-typed { white-space: pre-line; }
#main.imsg-wide .imsg-hero .hero-sizer { padding-right: .35em; margin-bottom: 0; }
#main.imsg-wide .imsg-hero .hero-caret {
  display: inline-block; width: .055em; height: .82em; margin-left: .05em; vertical-align: -.06em;
  background: var(--imsg-blue, #0a84ff); border-radius: 1px; animation: hero-caret-blink 1.05s steps(1) infinite;
}
@keyframes hero-caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #main.imsg-wide .imsg-hero .hero-caret { animation: none; } }
/* the assistants a group can add, under the headline while its phrase shows; the row keeps its room */
/* the assistants a group can add: small app icons right after the first phrase's text, on its line */
#main.imsg-wide .imsg-hero .hero-line { position: relative; }
#main.imsg-wide .imsg-hero .hero-ai { position: absolute; display: none; width: max-content; align-items: center; gap: .2em; margin-left: .3em; pointer-events: none; }
#main.imsg-wide .imsg-hero .hero-ai.is-on.is-placed { display: inline-flex; animation: hero-ai-in .35s ease both; }
#main.imsg-wide .imsg-hero .hero-ai .brand-tile { --tile: .72em; }
@keyframes hero-ai-in { from { opacity: 0; transform: translateY(.08em); } }

/* a sender's name over a group message */
.hero-sim .hs-msgs .hs-sender { align-self: flex-start; text-align: left; margin: calc(4 * var(--kT)) 0 calc(2 * var(--kT)) calc(14 * var(--kT)); font-weight: 400;
  --tb-label-h: calc(max(11.2px, 13 * var(--kT)) + 2 * var(--kT)); }   /* its line plus the gap to the bubble: css/tapback.css makes the badge's room above the name */

/* a group thread (the first scene): iOS indents every incoming bubble past a 26 pt photo column and shows the sender's photo at the end of
   their run (.has-tail), beside the bubble or the typing pill. Each photo is round by itself, never leaning on a parent's clip (iOS drops
   an overflow clip once the photo is composited), and sits under no filter or mask. The header's member circles are css/thread-head.css;
   their ring takes the card's screen colour. */
.hero-sim .hs-chat { --th-bg: var(--ios-bg); }
.hero-sim .hs-msgs .hs-av {
  display: none; position: absolute; left: calc(-32 * var(--kT)); bottom: 0; width: calc(26 * var(--kT)); height: calc(26 * var(--kT));
  border-radius: 50%; object-fit: cover;
}
.hero-sim .hs-msgs.is-group :is(.chat-in.has-tail, .ty) > .hs-av { display: block; }
.hero-sim .hs-msgs.is-group :is(.chat-in, .ty) { margin-left: calc(32 * var(--kT)); }
.hero-sim .hs-msgs.is-group .ty.is-ghost { left: calc(47.83 * var(--kT)); margin: 0; }
.hero-sim .hs-msgs.is-group .ty.is-ghost > .hs-av { visibility: hidden; }   /* the reply's own photo takes its place */
.hero-sim .hs-msgs.is-group .hs-sender { margin-left: calc(46 * var(--kT)); }

/* the typed phrase in the headline's own weight */
#main.imsg-wide .imsg-hero :is(.hero-rotator, .hero-line, .hero-typed, .hero-sizer) { font-weight: inherit; }
/* every phrase holds to two lines: on desktop the headline scales with the column (64px from 1440 wide) */
@media (min-width: 901px) { #main.imsg-wide .imsg-hero.hero-with-sim h1 { font-size: min(4rem, 4.45vw); } }
/* normal headline leading: the three lines sit as one block */
#main.imsg-wide .imsg-hero.hero-with-sim h1 { line-height: 1.04; }
#main.imsg-wide .imsg-hero .hero-rotator { padding-top: 0; }
#main.imsg-wide .imsg-hero :is(.hero-line, .hero-typed, .hero-sizer) { line-height: inherit; }
