/* Homepage styles. brand.css and convo.css must load first. */

  /* ── Hero ── */
  .home-hero {
    padding: clamp(40px, 4.5vw, 64px) 0 clamp(48px, 5vw, 72px);
  }
  .home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 5vw, 64px);
    align-items: center;
  }
  @media (min-width: 940px) {
    .home-hero-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(56px, 6vw, 96px); }
  }
  .home-hero .eyebrow { margin-bottom: clamp(24px, 3vw, 36px); }
  .home-hero .h1 {
    max-width: 14ch;
    margin-bottom: clamp(24px, 3vw, 36px);
  }
  .home-hero .lede {
    color: var(--mute-dark);
    margin-bottom: clamp(36px, 4vw, 52px);
  }
  .home-hero .lede strong { color: var(--bone); font-weight: 600; }
  .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* ── Hero carousel (journey diagrams from the design file) ── */
  .hero-carousel {
    width: min(460px, 100%);
    justify-self: end;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  @media (min-width: 940px) { .hero-carousel { margin-top: 64px; } }
  @media (max-width: 939px) { .hero-carousel { justify-self: start; } }
  /* Stack: every slide shares the same grid cell and stretches, so the
     carousel is always the height of its tallest card — no jumping. */
  .hero-carousel-stack { display: grid; align-items: stretch; }
  .hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    display: flex;
  }
  .hero-slide > * { width: 100%; }
  .hero-slide.active { opacity: 1; transform: none; pointer-events: auto; }
  .hero-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .hero-carousel-arrow {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(242,237,226,0.25);
    background: transparent;
    color: var(--mute-dark);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
  }
  .hero-carousel-arrow:hover {
    color: var(--signal);
    border-color: var(--signal);
  }
  .hero-carousel-dots { display: flex; gap: 9px; justify-content: center; }
  .hero-carousel-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(242,237,226,0.25);
    border: 0; padding: 0; cursor: pointer;
    transition: background 0.15s, transform 0.15s;
  }
  .hero-carousel-dot:hover { background: rgba(242,237,226,0.5); }
  .hero-carousel-dot.active { background: var(--signal); transform: scale(1.2); }

  /* Message entrance animations — gated on .active so they replay on
     every rotation. Delay tiers via .d1–.d6. */
  .cm { opacity: 0; }
  .hero-slide.active .cm {
    animation: hcIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0.2s) forwards;
  }
  .d1 { --d: 0.25s; }
  .d2 { --d: 1s; }
  .d3 { --d: 2.4s; }
  .d4 { --d: 3s; }
  .d5 { --d: 3.15s; }
  .d6 { --d: 3.3s; }
  /* Typing indicator: a BARE row of dots (no bubble). It shows at the
     message's --d delay, pulses, then collapses; the real message bubble
     (.cm-after) fades in 1.5s later, so you see "…" then the message. */
  .cm-typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 9px 4px;
    opacity: 0;
    overflow: hidden;
  }
  .hero-slide.active .cm-typing {
    animation: cmTyping 1.5s ease var(--d, 0.2s) forwards;
  }
  .cm-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(7, 24, 46, 0.4);
    animation: scDot 1.1s ease-in-out infinite;
  }
  .cm-typing span:nth-child(2) { animation-delay: 0.15s; }
  .cm-typing span:nth-child(3) { animation-delay: 0.3s; }
  .hchat-body .cm-typing span { background: rgba(21, 50, 74, 0.45); }
  .wa-body .cm-typing span { background: rgba(17, 27, 33, 0.45); }
  /* Message bubble that follows a typing indicator: reveal after it. */
  .hero-slide.active .cm-after {
    animation-delay: calc(var(--d, 0.2s) + 1.5s);
  }

  /* Shared card atoms */
  .card-foot {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    border-top: 1px solid rgba(17, 27, 33, 0.08);
    background: #F7F5F0;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(17, 27, 33, 0.5);
  }
  .card-foot-dot { width: 5px; height: 5px; border-radius: 1px; background: var(--signal); flex: none; }
  .pdf-badge {
    width: 26px; height: 26px;
    border-radius: 6px;
    background: var(--signal);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 8px; font-weight: 700;
    flex: none;
  }
  .pdf-mini { font-family: var(--mono); font-size: 8px; color: var(--signal); font-weight: 700; }

  /* Web-chat card — Float Insure's light-blue widget styling */
  .hchat {
    background: linear-gradient(180deg, #DCEDFE 0%, #F2F9FF 100%);
    color: #15324A;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
  }
  .hchat-head {
    background: #2F93F0;
    color: #fff;
    display: flex; align-items: center; gap: 11px;
    padding: 13px 18px;
  }
  .hchat-head-name { font-weight: 600; font-size: 13px; }
  .hchat-head-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
  }
  .hchat-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
  .hc-msg { font-size: 13.5px; line-height: 1.55; padding: 10px 14px; }
  .hc-user {
    align-self: flex-end;
    background: #2F93F0;
    color: #fff;
    border-radius: 14px 14px 3px 14px;
    max-width: 84%;
    box-shadow: 0 8px 18px -10px rgba(47, 147, 240, 0.6);
  }
  .hc-agent {
    position: relative;
    align-self: flex-start;
    background: #fff;
    border: 1px solid rgba(21, 50, 74, 0.1);
    border-radius: 14px 14px 14px 3px;
    max-width: 86%;
  }
  .hc-pills { display: flex; gap: 8px; flex-wrap: wrap; align-self: flex-start; max-width: 92%; }
  .hc-pill {
    display: flex; align-items: center; gap: 8px;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 12.5px; font-weight: 600;
  }
  .hc-wa    { background: #25D366; color: #fff; box-shadow: 0 6px 16px -8px rgba(37, 211, 102, 0.7); }
  .hc-sms   { background: #007AFF; color: #fff; box-shadow: 0 6px 16px -8px rgba(0, 122, 255, 0.7); }
  .hc-email { background: #fff; color: #07182E; border: 1px solid rgba(7, 24, 46, 0.18); box-shadow: 0 6px 16px -8px rgba(7, 24, 46, 0.35); }

  /* WhatsApp card */
  .wa {
    background: #ECE5DD;
    color: #111B21;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
  }
  .wa-body { flex: 1; }
  .wa-head {
    background: #008069;
    color: #fff;
    display: flex; align-items: center; gap: 11px;
    padding: 12px 16px;
  }
  .wa-head-id { line-height: 1.25; display: flex; flex-direction: column; }
  .wa-head-name { font-weight: 600; font-size: 14px; }
  .wa-head-status { font-size: 11px; color: rgba(255,255,255,0.85); }
  .wa-head-icons { margin-left: auto; display: flex; align-items: center; gap: 18px; color: rgba(255,255,255,0.9); font-size: 15px; }
  .wa-head-menu { letter-spacing: 2px; font-weight: 700; }
  .wa-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px 14px; }
  .wa-day {
    align-self: center;
    background: #fff;
    color: #54656F;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 10.5px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  }
  .wa-msg { font-size: 13.5px; line-height: 1.5; padding: 7px 10px 8px; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); }
  .wa-agent {
    align-self: flex-start;
    background: #fff;
    border-radius: 0 10px 10px 10px;
    max-width: 86%;
  }
  .wa-user {
    align-self: flex-end;
    background: #D9FDD3;
    border-radius: 10px 0 10px 10px;
    max-width: 84%;
  }
  .wa-time { display: inline-block; margin-left: 8px; font-size: 10px; color: #8696A0; transform: translateY(2px); }
  .wa-ticks { color: #53BDEB; }
  .wa-quote { border-radius: 10px; padding: 12px 14px; max-width: 86%; width: 100%; }
  .wa-quote-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--signal);
    font-weight: 700;
  }
  .wa-price { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
  .wa-price-num { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
  .wa-price-unit { font-size: 12px; color: rgba(17, 27, 33, 0.6); }
  .wa-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
  .wa-chips span { font-size: 10.5px; border: 1px solid rgba(17, 27, 33, 0.2); border-radius: 999px; padding: 3px 9px; }
  .wa-quote-time { text-align: right; font-size: 10px; color: #8696A0; margin-top: 6px; }
  .wa-docs { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; max-width: 86%; width: 100%; }
  .wa-doc {
    display: flex; align-items: center; gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 12.5px; font-weight: 500;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  }
  .wa-doc-meta { margin-left: auto; font-size: 10px; color: #8696A0; }
  .wa-call {
    background: var(--ink);
    color: var(--bone);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  }
  .wa-call-id { line-height: 1.3; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .wa-call-title { font-weight: 600; font-size: 13.5px; }
  .wa-call-tag {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(242,237,226,0.6);
  }
  .wa-call-wave { margin-left: auto; display: flex; align-items: center; gap: 2.5px; height: 22px; flex: none; }
  .wa-call-wave span {
    width: 3px; height: 100%;
    border-radius: 2px;
    background: #42E07F;
    animation: scWave 1s ease-in-out infinite;
  }
  .wa-call-wave span:nth-child(2) { animation-delay: 0.15s; }
  .wa-call-wave span:nth-child(3) { animation-delay: 0.3s; }
  .wa-call-wave span:nth-child(4) { animation-delay: 0.45s; }
  .wa-call-wave span:nth-child(5) { animation-delay: 0.6s; }

  /* Email card */
  .em {
    background: #fff;
    color: #111B21;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
  }
  .em-body { flex: 1; }
  .em-head { background: #F5F3EE; border-bottom: 1px solid rgba(17, 27, 33, 0.1); padding: 14px 18px; }
  .em-subject { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
  .em-from { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
  .em-from-id { line-height: 1.3; min-width: 0; display: flex; flex-direction: column; }
  .em-from-name { font-size: 12.5px; font-weight: 600; }
  .em-from-meta { font-size: 11px; color: rgba(17, 27, 33, 0.55); }
  .em-tag {
    margin-left: auto;
    display: flex; align-items: center; gap: 6px;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(17, 27, 33, 0.5);
    flex: none;
  }
  .em-body { padding: 18px; }
  .em-letter { font-size: 13px; line-height: 1.65; color: rgba(17, 27, 33, 0.85); }
  .em-sig { color: rgba(17, 27, 33, 0.55); font-size: 12px; }
  .em-confirm {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px;
    background: #F5F3EE;
    border: 1px solid rgba(17, 27, 33, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
  }
  .em-check {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(66, 224, 127, 0.2);
    border: 1px solid rgba(11, 122, 62, 0.3);
    display: flex; align-items: center; justify-content: center;
    color: #0B7A3E;
    font-size: 13px; font-weight: 700;
    flex: none;
  }
  .em-confirm-id { display: flex; flex-direction: column; }
  .em-confirm-title { font-weight: 800; font-size: 14px; }
  .em-confirm-ref { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(17, 27, 33, 0.5); }
  .em-confirm-price { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
  .em-confirm-amount { font-weight: 800; font-size: 17px; }
  .em-confirm-amount span { font-size: 10.5px; font-weight: 600; color: rgba(17, 27, 33, 0.55); }
  .em-confirm-terms { font-size: 10px; color: rgba(17, 27, 33, 0.55); }
  .em-docchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
  .em-docchips > span {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 500;
    border: 1px solid rgba(17, 27, 33, 0.15);
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
  }

  /* Keyframes */
  @keyframes hcIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes cmTyping {
    0%   { opacity: 0; max-height: 30px; }
    14%  { opacity: 1; }
    80%  { opacity: 1; max-height: 30px; }
    100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
  }
  @keyframes scPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
  @keyframes scWave  { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
  @media (prefers-reduced-motion: reduce) {
    .cm { animation: none !important; opacity: 1 !important; }
    .cm-typing { display: none !important; }
    .pulse-dot, .wa-call-wave span { animation: none !important; }
    .hero-slide { transition: none; }
  }

  /* ── "As seen in" strip ── */
  .seen-in {
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 24px;
    border-top: 1px solid var(--hairline-dark);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px 36px;
  }
  .seen-in-label {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute-dark);
    flex: none;
  }
  .seen-in-names {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 36px;
  }
  .seen-in-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(15px, 1.3vw, 18px);
    letter-spacing: -0.025em;
    color: var(--bone);
    opacity: 0.8;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s, color 0.15s;
  }
  .seen-in-name:hover { opacity: 1; color: var(--signal); }
  .seen-in-more {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute-dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
  }
  .seen-in-more::after { content: " →"; }
  .seen-in-more:hover { color: var(--signal); }

  /* ── Use-case teaser cards ── */
  .home-usecases .eyebrow { margin-bottom: 20px; }
  .home-usecases .h2 {
    max-width: none;
    margin-bottom: clamp(36px, 4.5vw, 56px);
  }
  /* Keep the heading on one line where it fits; wrap only when narrow. */
  @media (min-width: 620px) {
    .home-usecases .h2 { white-space: nowrap; }
  }
  .uc-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  @media (min-width: 640px) {
    .uc-cards { grid-template-columns: repeat(2, 1fr); }
  }
  @media (min-width: 1000px) {
    .uc-cards { grid-template-columns: repeat(4, 1fr); }
  }
  .uc-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    border: 1px solid rgba(12, 34, 64, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 14px 40px -30px rgba(12, 34, 64, 0.4);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s;
  }
  .uc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 50px -28px rgba(12, 34, 64, 0.45);
  }
  .uc-card-index {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--signal);
  }
  .uc-card-headline {
    font-family: var(--display);
    font-weight: 800;
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-top: 12px;
  }
  .uc-card-rule {
    width: 34px;
    height: 3px;
    background: var(--signal);
    border-radius: 2px;
    margin-top: 14px;
  }
  .uc-card-gist {
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(12, 34, 64, 0.7);
    margin-top: 12px;
  }
  .uc-card-link {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--signal);
    margin-top: auto;
    padding-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .uc-card-link::after {
    content: "→";
    font-family: var(--mono);
    font-weight: 400;
    transition: transform 0.15s;
  }
  .uc-card:hover .uc-card-link::after { transform: translateX(3px); }

  .uc-more {
    margin-top: clamp(20px, 2.4vw, 28px);
    font-family: var(--sans);
    font-size: 14px;
    color: var(--mute-light);
    max-width: 56ch;
  }
  .uc-more a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--signal);
    padding-bottom: 1px;
    transition: color 0.15s;
  }
  .uc-more a:hover { color: var(--signal); }

  /* ── Float Insure callout — deliberately off-brand: Float's sky ── */
  .float-callout {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #cbe7ff 0%, #e8f4ff 70%, #f7fbff 100%);
    color: #15324a;
    border-top: none;
    padding: clamp(80px, 9vw, 128px) 0;
  }
  .float-sun {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 122, 0.55), rgba(255, 210, 122, 0) 65%);
    pointer-events: none;
    filter: blur(4px);
  }
  .float-clouds {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .float-cloud {
    position: absolute;
    animation: float-drift linear infinite;
  }
  .float-cloud svg {
    display: block;
    filter: drop-shadow(0 18px 28px rgba(70, 130, 190, 0.14));
  }
  @keyframes float-drift {
    from { transform: translateX(-60vw); }
    to   { transform: translateX(110vw); }
  }
  @media (prefers-reduced-motion: reduce) {
    .float-cloud { animation: none; }
  }
  .float-inner {
    position: relative;
    z-index: 1;
    text-align: center;
  }
  .float-eyebrow {
    display: inline-block;
    font-family: "Plus Jakarta Sans", var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f93f0;
    background: #ffffff;
    padding: 8px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 28px -14px rgba(36, 104, 176, 0.32);
    margin-bottom: clamp(24px, 3vw, 32px);
  }
  .float-title {
    font-family: "Bricolage Grotesque", var(--sans);
    font-weight: 800;
    font-size: clamp(34px, 4.5vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: clamp(16px, 2vw, 24px);
  }
  .float-title b { font-weight: 800; }
  .float-title-suffix { color: #2f93f0; font-weight: 700; }
  .float-copy {
    font-family: "Plus Jakarta Sans", var(--sans);
    font-weight: 500;
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.6;
    color: #6a8298;
    max-width: 52ch;
    margin: 0 auto clamp(28px, 3.5vw, 40px);
  }
  .float-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Plus Jakarta Sans", var(--sans);
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    background: #2f93f0;
    padding: 15px 28px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 24px 60px -28px rgba(36, 104, 176, 0.4);
    transition: background 0.15s, transform 0.15s cubic-bezier(0.22, 0.8, 0.27, 1);
  }
  .float-btn::after { content: "↗"; font-weight: 600; }
  .float-btn:hover {
    background: #1f7ad6;
    transform: translateY(-2px);
  }

  /* ── Differentiators ── */
  .home-diff .eyebrow { margin-bottom: 20px; }
  .home-diff .h2 {
    max-width: 20ch;
    margin-bottom: clamp(36px, 4.5vw, 56px);
  }
  .diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 3vw, 40px);
  }
  @media (min-width: 900px) {
    .diff-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 3.5vw, 56px); }
  }
  .diff-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 20px;
    background-image: linear-gradient(90deg, rgba(229,39,60,0.9), var(--hairline-dark) 30%, var(--hairline-dark) 100%);
    background-repeat: no-repeat;
    background-size: 100% 1px;
  }
  .diff-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .diff-copy {
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.55;
    color: var(--mute-dark);
    max-width: 44ch;
  }
  .diff-copy a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--signal);
    padding-bottom: 1px;
    transition: color 0.15s;
  }
  .diff-copy a:hover { color: var(--signal); }
  .diff-channels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 36px;
    margin-top: clamp(40px, 4.5vw, 56px);
    padding-top: 24px;
    border-top: 1px solid var(--hairline-dark);
  }
  .diff-channels-label {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute-dark);
    flex: none;
  }
  .diff-channels-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 32px;
  }
  .chan {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.008em;
    color: var(--bone);
    opacity: 0.85;
    white-space: nowrap;
  }

  /* ── End-to-end AI-native (platform bridge) ── */
  .home-e2e-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 48px);
    align-items: center;
  }
  @media (min-width: 900px) {
    .home-e2e-grid { grid-template-columns: 1.3fr 1fr; gap: clamp(56px, 6vw, 96px); }
  }
  .home-e2e .eyebrow { margin-bottom: 20px; }
  .home-e2e .h2 {
    max-width: 22ch;
    margin-bottom: clamp(20px, 2.4vw, 28px);
  }
  .home-e2e-copy {
    font-family: var(--sans);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.55;
    color: var(--mute-dark);
    max-width: 56ch;
    margin-bottom: 0;
  }
  .home-e2e-side {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .home-e2e-side .metric {
    gap: 6px;
    padding: 22px 0 26px;
    border-top: 3px solid var(--signal);
  }
  .home-e2e-side .metric:last-of-type {
    border-bottom: 3px solid var(--signal);
  }
  .home-e2e-side .metric-value {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(48px, 5vw, 64px);
    letter-spacing: -0.035em;
    line-height: 1;
    color: var(--bone);
  }
  .home-e2e-side .metric-label {
    max-width: none;
    font-size: 14px;
    color: rgba(242, 237, 226, 0.68);
  }
  .home-e2e .home-book-link { margin-top: clamp(24px, 3vw, 32px); }

  /* ── Re-engage the book ── */
  .home-book-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 4vw, 56px);
    align-items: center;
  }
  @media (min-width: 900px) {
    .home-book-grid { grid-template-columns: 1fr 1.15fr; gap: clamp(56px, 6vw, 96px); }
    /* Text reads on the right; the book figure illustrates on the left. */
    .home-book-grid > .book-figure { order: -1; }
  }

  /* Book figure: white "today's touches" panel → dashed stem → agent
     bubble → caption (from the design file). */
  .book-figure { margin: 0; max-width: 460px; }
  .book-panel {
    background: #fff;
    border: 1px solid rgba(12, 34, 64, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -30px rgba(12, 34, 64, 0.4);
  }
  .book-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(12, 34, 64, 0.08);
    background: #F7F5F0;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(12, 34, 64, 0.55);
  }
  .book-dot { width: 5px; height: 5px; border-radius: 1px; background: var(--signal); flex: none; }
  .book-body { padding: 8px 18px 14px; }
  .book-row {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    gap: 8px;
    padding: 9px 10px;
    font-size: 12.5px;
    color: var(--ink);
    border-top: 1px solid rgba(12, 34, 64, 0.08);
  }
  .book-row-head {
    border-top: none;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(12, 34, 64, 0.45);
    font-weight: 700;
  }
  .book-row-hit {
    background: rgba(229, 39, 60, 0.06);
    border-radius: 8px;
  }
  .book-muted { color: rgba(12, 34, 64, 0.6); }
  .book-strong { font-weight: 600; }
  .book-flag { color: var(--signal); font-weight: 600; }
  .book-stem {
    width: 2px;
    height: 26px;
    margin: 0 auto;
    background: repeating-linear-gradient(rgba(12, 34, 64, 0.3) 0 5px, transparent 5px 10px);
  }
  .book-bubble {
    align-self: flex-start;
    background: var(--ink);
    color: var(--bone);
    border-radius: 14px 14px 14px 3px;
    padding: 13px 17px;
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 52ch;
    box-shadow: 0 18px 45px -24px rgba(12, 34, 64, 0.5);
  }
  .book-caption {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(12, 34, 64, 0.5);
    margin-top: 12px;
  }
  .light .book-caption { color: var(--mute-light); }
  .home-book .eyebrow { margin-bottom: 20px; }
  .home-book .h2 {
    max-width: 22ch;
    margin-bottom: clamp(20px, 2.4vw, 28px);
  }
  .home-book-copy {
    font-family: var(--sans);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.55;
    color: var(--mute-light);
    max-width: 56ch;
    margin-bottom: clamp(24px, 3vw, 32px);
  }
  .home-book-link {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.005em;
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s;
  }
  .home-book-link::after {
    content: "→";
    font-family: var(--mono);
    font-weight: 400;
    transition: transform 0.15s;
  }
  .home-book-link:hover { color: var(--signal); }
  .home-book-link:hover::after { transform: translateX(3px); }

  /* ── Compliance callout ── */
  .home-comp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw, 48px);
    align-items: center;
  }
  @media (min-width: 900px) {
    .home-comp-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(56px, 6vw, 96px); }
  }
  .home-comp .eyebrow { margin-bottom: 20px; }
  .home-comp .h2 {
    max-width: 20ch;
    margin-bottom: clamp(16px, 2vw, 24px);
  }
  .home-comp-copy {
    font-family: var(--sans);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.55;
    color: var(--mute-dark);
    max-width: 52ch;
    margin-bottom: clamp(24px, 3vw, 32px);
  }

