/* Three equally weighted ways to use Hands. All styling stays inside this
   existing homepage section; illustrations are static, not interactive UI. */
.sage-home .talk.ai-ways { padding-block: clamp(2rem, 3vw, 2.5rem); }
.sage-home .ai-ways .talk-intro { max-width: 58rem; margin-bottom: 1.4rem; }
.sage-home .ai-ways .talk-intro h2 { font-size: clamp(2.1rem, 3.5vw, 3.2rem); line-height: 1.08; }
.sage-home .ai-ways .talk-intro p { max-width: 49rem; margin: .85rem auto 0; font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.sage-home .ai-ways .aw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sage-home .ai-ways .aw-card {
  --aw-border: color-mix(in srgb, var(--ink) 17%, transparent);
  display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: .9rem; min-width: 0; padding: 1.1rem;
  border: 1px solid var(--aw-border); border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 74%, var(--paper));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent), 0 6px 24px -18px color-mix(in srgb, var(--ink) 18%, transparent);
}
.sage-home .ai-ways .aw-card h3 { font-size: clamp(1.24rem, 1.6vw, 1.45rem); line-height: 1.2; font-weight: 630; letter-spacing: -.035em; text-wrap: balance; }
.sage-home .ai-ways .aw-description { min-width: 0; font-size: .94rem; line-height: 1.48; color: var(--muted); text-wrap: pretty; }
/* Opposite containment without captions or window chrome: a Hands plugin
   inside the existing AI; connected AI inside a Hands workspace. */
.sage-home .ai-ways .aw-visual { min-width: 0; height: 116px; margin: 0; border-radius: 14px; background: radial-gradient(ellipse at 50% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 85%), var(--paper); border: 1px solid var(--aw-border); }
.sage-home .ai-ways .aw-art { height: 100%; display: flex; align-items: center; justify-content: center; padding: .5rem; }
.sage-home .ai-ways .aw-window { display: flex; flex-direction: column; justify-content: center; gap: .4rem; width: 100%; max-width: 260px; min-width: 0; height: 96px; border: 1px solid var(--aw-border); border-radius: 11px; background: var(--surface); padding: .45rem .6rem; box-shadow: 0 4px 12px -7px color-mix(in srgb, var(--ink) 26%, transparent); }
.sage-home .ai-ways .aw-provider-row { display: flex; align-items: center; justify-content: center; gap: .5rem; min-width: 0; }
.sage-home .ai-ways .aw-provider { display: flex; align-items: center; justify-content: center; gap: .25rem; min-width: 0; color: var(--muted); font-size: .68rem; line-height: 1.1; }
.sage-home .ai-ways .aw-provider img { flex: none; width: 20px; height: 20px; object-fit: contain; }
.sage-home .ai-ways .aw-plugin { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .2rem; padding: .3rem .4rem; border: 1px solid color-mix(in srgb, var(--color-accent-fill) 50%, var(--aw-border)); border-radius: 7px; background: color-mix(in srgb, var(--color-accent-fill) 10%, var(--paper)); font-size: .73rem; line-height: 1; }
.sage-home .ai-ways .aw-plugin img { width: 19px; height: 19px; object-fit: contain; }
.sage-home .ai-ways .aw-plus { color: var(--accent); font-size: 1rem; }
.sage-home .ai-ways .aw-plugin-label { margin-left: auto; color: var(--muted); font-size: .64rem; }
.sage-home .ai-ways .aw-workspace { border-color: color-mix(in srgb, var(--color-accent-fill) 42%, var(--aw-border)); }
.sage-home .ai-ways .aw-workspace .aw-provider-row { gap: .4rem; }
.sage-home .ai-ways .aw-workspace .aw-provider { flex: 1; flex-direction: column; gap: .25rem; padding: .3rem .2rem; border: 1px solid var(--aw-border); border-radius: 7px; background: var(--paper); }
.sage-home .ai-ways .aw-chat { gap: .15rem; }
.sage-home .ai-ways .aw-wave { align-self: center; flex: 1; min-height: 0; width: 112px; max-width: 90%; height: 32px; color: var(--accent); margin-block: .15rem; }
.sage-home .ai-ways .aw-composer { display: flex; align-items: center; gap: .4rem; min-height: 24px; padding: .2rem .35rem; border: 1px solid var(--aw-border); border-radius: 7px; background: var(--paper); color: var(--muted); font-size: .67rem; line-height: 1; }
.sage-home .ai-ways .aw-voice { display: grid; place-items: center; flex: none; margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent-fill); color: var(--brand-button-ink); }
.sage-home .ai-ways .aw-voice svg { width: 13px; height: 13px; }
.sage-home .ai-ways .aw-brand-mark { flex: none; align-self: center; width: 23px; height: 23px; object-fit: contain; }
/* Only the three communication links sit below the informational cards. */
.sage-home .ai-ways .aw-communication { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 780px; margin: .75rem auto 0; gap: .5rem; }
.sage-home .ai-ways .aw-communication > a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .3rem .4rem; border-radius: 10px; font-size: .93rem; line-height: 1.3; font-weight: 600; }
.sage-home .ai-ways .aw-communication > a:hover { background: var(--surface); }
.sage-home .ai-ways .aw-communication > a > svg { flex: none; width: 23px; height: 23px; color: var(--accent); }
/* Preserve the same reading order without subgrid support. */
@supports not (grid-template-rows: subgrid) {
  .sage-home .ai-ways .aw-card { display: flex; flex-direction: column; }
  .sage-home .ai-ways .aw-card h3 { min-height: 2.4em; }
  .sage-home .ai-ways .aw-visual { flex: none; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .sage-home .ai-ways .aw-card { padding: .9rem; }
  .sage-home .ai-ways .aw-provider > span { display: none; }
  .sage-home .ai-ways .aw-description { font-size: .9rem; }
}
/* A full-width title above a compact visual/text row, not a tall mobile image. */
@media (max-width: 900px) {
  .sage-home .talk.ai-ways { padding-block: 2.5rem; }
  .sage-home .ai-ways .talk-intro { margin-bottom: 1.35rem; }
  .sage-home .ai-ways .talk-intro h2 { font-size: clamp(2rem, 6.8vw, 2.8rem); }
  .sage-home .ai-ways .talk-intro p { font-size: .95rem; }
  .sage-home .ai-ways .aw-grid { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .sage-home .ai-ways .aw-card { display: grid; grid-row: auto; grid-template-columns: 100px minmax(0, 1fr); grid-template-rows: auto auto; gap: .75rem 1rem; padding: 1rem; border-radius: 18px; }
  .sage-home .ai-ways .aw-visual { grid-column: 1; grid-row: 2; height: 114px; align-self: center; }
  .sage-home .ai-ways .aw-art { padding: .35rem; }
  .sage-home .ai-ways .aw-window { height: 98px; padding: .35rem; border-radius: 8px; }
  .sage-home .ai-ways .aw-provider-row { gap: .3rem; }
  .sage-home .ai-ways .aw-provider > span, .sage-home .ai-ways .aw-plugin-label { display: none; }
  .sage-home .ai-ways .aw-provider img { width: 17px; height: 17px; }
  .sage-home .ai-ways .aw-plugin { gap: .2rem; padding: .3rem .15rem; margin-top: .3rem; }
  .sage-home .ai-ways .aw-plugin strong { font-size: .63rem; }
  .sage-home .ai-ways .aw-plugin img { width: 16px; height: 16px; }
  .sage-home .ai-ways .aw-workspace .aw-provider-row { gap: .2rem; }
  .sage-home .ai-ways .aw-workspace .aw-provider { padding: .35rem .1rem; }
  .sage-home .ai-ways .aw-wave { width: 65px; }
  .sage-home .ai-ways .aw-composer { gap: .2rem; padding: .15rem; min-height: 23px; }
  .sage-home .ai-ways .aw-composer > span:not(.aw-voice):not(.aw-composer-plus) { display: none; }
  .sage-home .ai-ways .aw-composer-plus { margin-left: .2rem; }
  .sage-home .ai-ways .aw-card h3 { grid-column: 1 / -1; grid-row: 1; min-height: 0; font-size: 1.2rem; line-height: 1.2; text-wrap: initial; }
  .sage-home .ai-ways .aw-description { grid-column: 2; grid-row: 2; align-self: center; font-size: .9rem; line-height: 1.45; }
}
@media (max-width: 480px) {
  .sage-home .ai-ways .aw-card { grid-template-columns: 82px minmax(0, 1fr); gap: .7rem; padding: .8rem; }
  .sage-home .ai-ways .aw-art { padding: .3rem; }
  .sage-home .ai-ways .aw-window { padding-inline: .2rem; }
  .sage-home .ai-ways .aw-plugin > strong { display: none; }
  .sage-home .ai-ways .aw-card h3 { font-size: 1.13rem; }
  .sage-home .ai-ways .aw-communication { gap: .2rem; }
  .sage-home .ai-ways .aw-communication > a { font-size: .8rem; gap: .3rem; padding-inline: .1rem; }
  .sage-home .ai-ways .aw-communication > a > svg { width: 20px; height: 20px; }
}
@media (max-width: 360px) {
  .sage-home .ai-ways .aw-communication > a { flex-direction: column; gap: .25rem; font-size: .76rem; }
}
