/* SebScribe — landing pages (home, /avocats/). Loaded after site.css. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-600-italic.woff2') format('woff2');
}

.hx {
  --ink: #14213d;
  --ink-2: #1f2f52;
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --brass: #b0874a;
  --brass-light: #d9b77a;
  --teal: #0f6e7a;
  --line: rgba(20, 33, 61, 0.12);
  --serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
}

.hx h1, .hx h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.hx h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.hx .main-header { margin-bottom: 0; top: 1rem; }
.hx nav ul { gap: 1.6rem; }
.hx .btn-primary { background: var(--ink); }
.hx .btn-primary:hover { background: #0b1427; }
.hx kbd {
  font: 600 0.85em/1 "IBM Plex Sans", sans-serif;
  padding: 0.2em 0.5em; border-radius: 6px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line);
}

.hx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.hx-wrap > *, .sm-stage > * { min-width: 0; }
.hx-section { padding: clamp(4rem, 9vw, 7rem) 0; }
.hx-section-tint { background: var(--paper-2); }
.hx-section-head { max-width: 760px; margin-bottom: 3rem; }
.hx-section-head p { color: #48536b; font-size: 1.1rem; }
.hx-kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.9rem;
}
.hx-kicker-light { color: var(--brass-light); }
.hx-fineprint { font-size: 0.85rem; color: #6b7280; margin-top: 1rem; text-align: center; }

/* ---------- Hero ---------- */
.hx-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(176, 135, 74, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(15, 110, 122, 0.10), transparent 60%);
}
.hx-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--ink-2);
  padding: 0.35rem 0.85rem; border-radius: 99px; background: #fff; border: 1px solid var(--line);
}
.hx-eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(90deg, #000 33%, #fdda24 33% 66%, #ef3340 66%); }
.hx-hero h1 { font-size: clamp(2.1rem, 3.7vw, 3.05rem); line-height: 1.08; margin: 1.25rem 0 1.25rem; }
.hx-hero h1 em { font-style: italic; color: var(--teal); }
[data-page="lawyers"] .hx-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.1; }
.hx-lead { font-size: 1.15rem; color: #3b465e; max-width: 34rem; }
.hx-lead strong { color: var(--ink); }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin: 2rem 0 1.5rem; }
.hx-actions-center { justify-content: center; margin-top: 2.5rem; }
.hx-link-play { font-weight: 600; color: var(--ink); display: inline-flex; gap: 0.5rem; align-items: center; }
.hx-link-play span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 0.7rem; }
.hx-proof { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: #5b6478; }
.hx-proof li::before { content: '✓'; color: var(--teal); font-weight: 700; margin-right: 0.4rem; }

/* ---------- Scene: dictation ---------- */
.hx-scene { margin: 0; position: relative; }
.scene-dictation { padding: 2.4rem 0 0 1.5rem; }
.sd-window {
  background: #fff; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(20, 33, 61, 0.28), 0 8px 18px rgba(20, 33, 61, 0.06);
  overflow: hidden; font-size: 0.9rem;
}
.sd-titlebar { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: #f3f5f9; border-bottom: 1px solid var(--line); font-size: 0.8rem; color: #5b6478; font-weight: 600; }
.sd-dots { display: inline-flex; gap: 6px; }
.sd-dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9dde5; }
.sd-field { display: flex; gap: 1rem; padding: 0.5rem 1.1rem; border-bottom: 1px solid #eef0f4; }
.sd-field > span { min-width: 3.2rem; flex: none; color: #8a93a6; }
.sd-field b { font-weight: 500; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-body { padding: 0.9rem 1.1rem 1.6rem; line-height: 1.5; color: #111827; }
.sd-typed { display: inline; margin: 0; white-space: pre-line; }
.sd-typed mark { background: rgba(15, 110, 122, 0.14); color: inherit; border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--teal); }
.sd-caret { display: inline-block; width: 2px; height: 1.15em; background: var(--teal); vertical-align: text-bottom; margin-left: 1px; animation: sd-blink 1s steps(1) infinite; }
@keyframes sd-blink { 50% { opacity: 0; } }
.sd-reply { min-height: 9.6rem; }
.sd-quote { margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid #e1e4ea; font-size: 0.76rem; color: #4b5563; line-height: 1.45; }
.sd-quote p { margin: 0 0 0.45rem; }
.sd-quote b { font-weight: 600; color: #1f2937; }
.ctx-src { border-radius: 4px; transition: background 0.4s, box-shadow 0.4s; }
.scene-dictation[data-ctx="open"] .ctx-src, .scene-dictation[data-phase="done"] .ctx-src { background: rgba(176, 135, 74, 0.18); box-shadow: inset 0 -2px 0 var(--brass); }

/* Replica of the real SebScribe floating badge (states: Prêt, Écoute en cours, Traitement). */
.sd-badge {
  position: absolute; top: 0.6rem; right: -0.5rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.45rem 0.6rem 0.45rem 1rem; border-radius: 99px; background: #fff; color: #1f2937;
  border: 1px solid rgba(20, 33, 61, 0.08); box-shadow: 0 10px 28px rgba(20, 33, 61, 0.18);
  font-family: "Segoe UI", "IBM Plex Sans", sans-serif; transition: background 0.3s, color 0.3s;
}
.sd-badge-icon { color: #0f8f7e; display: inline-flex; }
.sd-badge-dot { display: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.sd-badge-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid #d6dbe3; border-top-color: #0f8f7e; animation: sd-spin 0.8s linear infinite; }
@keyframes sd-spin { to { transform: rotate(360deg); } }
.sd-badge-text { display: grid; line-height: 1.15; padding-right: 0.4rem; }
.sd-badge-text small { font-size: 0.7rem; color: #8a93a6; font-weight: 500; }
.sd-badge-text b { font-size: 0.95rem; font-weight: 700; }
.sd-badge-ctx { display: none; align-items: center; gap: 0.3rem; font-size: 0.8rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 99px; background: rgba(255, 255, 255, 0.18); }
.scene-dictation[data-phase="listen"] .sd-badge { background: #cf5141; color: #fff; border-color: transparent; box-shadow: 0 12px 34px rgba(207, 81, 65, 0.4); }
.scene-dictation[data-phase="listen"] .sd-badge-icon { display: none; }
.scene-dictation[data-phase="listen"] .sd-badge-dot { display: block; }
.scene-dictation[data-phase="listen"] .sd-badge-text small { color: rgba(255, 255, 255, 0.75); }
.scene-dictation[data-phase="listen"] .sd-badge-ctx { display: inline-flex; }
.scene-dictation[data-phase="clean"] .sd-badge-icon,
.scene-dictation[data-phase="insert"] .sd-badge-icon { display: none; }
.scene-dictation[data-phase="clean"] .sd-badge-spin,
.scene-dictation[data-phase="insert"] .sd-badge-spin { display: block; }

/* The reply and the quoted original live in ONE text field: that whole field is the context source. */
.sd-body { position: relative; outline: 2px dashed transparent; outline-offset: -6px; border-radius: 0 0 16px 16px; transition: outline-color 0.4s; }
.sd-field-tag {
  position: absolute; right: 0.9rem; bottom: 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--teal); padding: 0.2rem 0.55rem; border-radius: 6px; opacity: 0; transition: opacity 0.4s;
}
.scene-dictation[data-phase="listen"] .sd-body { outline-color: var(--teal); }
.scene-dictation[data-phase="listen"] .sd-field-tag { opacity: 1; }

.sd-ctx-panel {
  position: absolute; right: -2rem; top: 3.9rem; z-index: 2; width: 340px; height: auto;
  border-radius: 14px; box-shadow: 0 24px 50px -12px rgba(20, 33, 61, 0.45);
  opacity: 0; transform: translateY(-8px) scale(0.97); transform-origin: top right; transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.scene-dictation[data-ctx="open"] .sd-ctx-panel { opacity: 1; transform: none; }

/* Spoken punctuation commands */
.sd-raw .cmd {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; color: var(--teal);
  background: rgba(15, 110, 122, 0.1); border: 1px solid rgba(15, 110, 122, 0.35); border-radius: 6px; padding: 0 0.35rem; line-height: 1.5;
}
.sd-raw .cmd { quotes: '“' '”'; }
:lang(fr) .sd-raw .cmd { quotes: '« ' ' »'; }
:lang(de) .sd-raw .cmd { quotes: '„' '“'; }
.sd-raw .cmd::before { content: open-quote; }
.sd-raw .cmd::after { content: close-quote; }
.sd-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.35rem; font-size: 0.7rem; color: #6b7280; }
.sd-legend i { font-style: normal; font-weight: 700; }
.sd-legend .lg-f { color: #dc2626; }
.sd-legend .lg-c { color: var(--teal); }
.sd-legend .lg-n { color: var(--ink); }

.sd-raw {
  position: absolute; left: 0; right: 2.5rem; bottom: 0;
  background: var(--paper); border: 1px dashed rgba(20, 33, 61, 0.25); border-radius: 14px;
  padding: 0.7rem 1rem; font-size: 0.85rem; color: #3b465e; box-shadow: 0 14px 30px -14px rgba(20, 33, 61, 0.3);
  min-height: 5.2rem; transition: opacity 0.5s, transform 0.5s;
}
.sd-raw-label { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 0.2rem; }
.sd-raw p { margin: 0; line-height: 1.5; }
.sd-raw .w { opacity: 0; transition: opacity 0.2s; }
.sd-raw .w.on { opacity: 1; }
.sd-raw .ctx { color: var(--ink); font-weight: 600; }
.sd-raw .filler { color: #b45309; transition: color 0.3s, opacity 0.5s; }
.scene-dictation[data-phase="clean"] .sd-raw .filler,
.scene-dictation[data-phase="insert"] .sd-raw .filler,
.scene-dictation[data-phase="done"] .sd-raw .filler { text-decoration: line-through; text-decoration-thickness: 2px; color: #dc2626; opacity: 0.55; }
.scene-dictation[data-phase="done"] .sd-raw { opacity: 0.85; }

/* ---------- Strip ---------- */
.hx-strip { border-block: 1px solid var(--line); background: #fff; }
.hx-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-block: 1.1rem; font-size: 0.9rem; color: #5b6478; }
.hx-strip ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.hx-strip li { font-weight: 600; color: var(--ink-2); }

/* ---------- Split ---------- */
.hx-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hx-split-copy p { font-size: 1.08rem; color: #3b465e; }
.hx-ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.hx-ticks li { padding-left: 1.9rem; position: relative; color: #2b3650; }
.hx-ticks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 1.05rem; height: 0.6rem; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.hx-photo { margin: 0; position: relative; }
.hx-photo img { border-radius: 20px; box-shadow: 0 40px 70px -30px rgba(20, 33, 61, 0.55); aspect-ratio: 16 / 9; object-fit: cover; }
.hx-photo-chip {
  position: absolute; left: -1.25rem; bottom: 1.5rem; max-width: 80%;
  background: #fff; border-radius: 12px; padding: 0.7rem 1rem; font-size: 0.88rem; color: #3b465e;
  box-shadow: 0 18px 40px -12px rgba(20, 33, 61, 0.4); display: flex; gap: 0.5rem; align-items: center;
  animation: hx-float 5s ease-in-out infinite;
}
.hx-photo-chip b { color: #15803d; white-space: nowrap; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex: none; animation: sd-blink 1.2s steps(1) infinite; }
@keyframes hx-float { 50% { transform: translateY(-6px); } }

/* ---------- Scene: meeting ---------- */
.scene-meeting { border-radius: 24px; overflow: hidden; min-height: 520px; box-shadow: 0 40px 80px -30px rgba(20, 33, 61, 0.55); }
.sm-backdrop, .sm-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sm-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 33, 61, 0.9) 0%, rgba(20, 33, 61, 0.72) 45%, rgba(20, 33, 61, 0.35) 100%); }
.sm-stage { position: relative; display: grid; grid-template-columns: 170px 1fr 1.05fr; gap: 1.75rem; padding: clamp(1.5rem, 4vw, 3rem); align-items: center; min-height: 520px; }
.sm-phone {
  background: #0b1222; border-radius: 28px; padding: 1.1rem 0.9rem 1.3rem; border: 3px solid #2a3654; color: #fff; text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45); aspect-ratio: 9 / 17; display: flex; flex-direction: column; justify-content: space-between;
}
.sm-phone-top { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font: 600 1.05rem/1 "IBM Plex Sans", monospace; font-variant-numeric: tabular-nums; }
.sm-rec { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: sd-blink 1.2s steps(1) infinite; }
.sm-bars { display: flex; gap: 3px; align-items: center; justify-content: center; height: 70px; }
.sm-bars i { width: 5px; height: 10px; border-radius: 3px; background: linear-gradient(#7dd3fc, #38bdf8); animation: sd-bar-tall 1.1s ease-in-out infinite; }
.sm-bars i:nth-child(3n) { animation-delay: -0.4s; }
.sm-bars i:nth-child(3n+1) { animation-delay: -0.8s; }
.sm-bars i:nth-child(4n) { animation-duration: 0.8s; }
@keyframes sd-bar-tall { 0%, 100% { height: 10px; } 50% { height: 56px; } }
.sm-phone-note { font-size: 0.72rem; color: #9fb0d0; margin: 0; }

.sm-transcript { display: grid; gap: 0.75rem; }
.sm-line {
  margin: 0; padding: 0.75rem 0.95rem; border-radius: 14px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
  color: #e8edf7; font-size: 0.9rem; line-height: 1.45; border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s;
}
.spk { display: inline-block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 99px; margin-right: 0.5rem; vertical-align: 1px; }
.spk-a { background: var(--brass-light); color: #3a2a0e; }
.spk-b { background: #7dd3fc; color: #082f49; }

.sm-report {
  background: #fff; border-radius: 16px; padding: 1.3rem 1.4rem; color: #1f2937; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateX(20px) scale(0.98); transition: opacity 0.6s, transform 0.6s;
}
.sm-report-head { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.sm-pill { font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 99px; background: var(--ink); color: #fff; }
.sm-pill-ghost { background: var(--paper-2); color: var(--ink); }
.sm-report h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 0.6rem; color: var(--ink); }
.sm-report-head { flex-wrap: wrap; }
.sm-pill-dashed { background: transparent; color: #6b7280; border: 1px dashed #c5cbd6; }
.sm-block { margin: 0.55rem 0 0; font-size: 0.9rem; line-height: 1.55; opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; }

.scene-meeting.is-visible .sm-line[data-line="1"] { transition-delay: 0s; }
.scene-meeting[data-step="1"] .sm-line[data-line="1"],
.scene-meeting[data-step="2"] .sm-line[data-line="1"], .scene-meeting[data-step="2"] .sm-line[data-line="2"],
.scene-meeting[data-step="3"] .sm-line, .scene-meeting[data-step="4"] .sm-line { opacity: 1; transform: none; }
.scene-meeting[data-step="4"] .sm-line { opacity: 0.55; }
.scene-meeting[data-step="4"] .sm-report { opacity: 1; transform: none; }
.scene-meeting[data-step="4"] .sm-block { opacity: 1; transform: none; }
.scene-meeting[data-step="4"] .sm-block[data-block="2"] { transition-delay: 0.5s; }
.scene-meeting[data-step="4"] .sm-block[data-block="3"] { transition-delay: 1s; }
.scene-meeting[data-step="4"] .sm-bars i { animation-play-state: paused; }

/* ---------- Bento ---------- */
.hx-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hx-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hx-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(20, 33, 61, 0.35); }
.hx-tile p { color: #48536b; margin: 0; }
.hx-tile-wide { grid-column: span 2; background: var(--ink); color: #fff; border: 0; }
.hx-tile-wide h3 { color: #fff; font-family: var(--serif); font-size: 1.6rem; }
.hx-tile-wide p { color: #c9d2e4; }
.hx-tile-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--paper-2); color: var(--brass); font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.hx-clean { margin-top: 1.5rem !important; font-family: var(--serif); font-size: 1.35rem; color: #fff !important; }
.hx-clean s { color: #f87171; text-decoration-thickness: 2px; opacity: 0.85; }
.hx-tile.is-visible .hx-clean s { animation: hx-strike-out 5s ease-in-out 1.2s infinite; }
@keyframes hx-strike-out {
  0%, 15% { opacity: 0.85; max-width: 10em; }
  45%, 85% { opacity: 0; max-width: 0; }
  100% { opacity: 0.85; max-width: 10em; }
}
.hx-clean s { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: pre; }
.hx-tile-band { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2.5rem; align-items: center; background: var(--ink-2); border-color: transparent; }
.hx-tile-band h3 { color: #fff; }
.hx-tile-band p { color: #c9d2e4; max-width: 34rem; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.hx-chips li { padding: 0.5rem 1rem; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.hx-chips li:first-child { background: var(--brass-light); }
.hx-chips .hx-chip-add { background: transparent; color: #fff; border: 1px dashed rgba(255, 255, 255, 0.5); }

/* ---------- Smartphone cards ---------- */
.hx-mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.hx-mobile-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.75rem 1.75rem; }
.hx-mobile-card p { color: #48536b; margin: 0; }
.mc-visual { height: 230px; border-radius: 16px; background: var(--paper); margin-bottom: 1.4rem; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.mc-phone { width: 150px; height: 270px; margin-top: 70px; border-radius: 26px; background: #0b1222; border: 3px solid #2a3654; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mc-shade { background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 8px; }
.mc-tile { display: block; font-size: 0.68rem; font-weight: 700; color: #082f49; background: #7dd3fc; border-radius: 10px; padding: 6px 8px; }
.mc-chat { display: grid; gap: 6px; }
.mc-bubble { margin: 0; font-size: 0.62rem !important; line-height: 1.35; color: #e8edf7 !important; background: rgba(255, 255, 255, 0.12); border-radius: 10px 10px 10px 2px; padding: 6px 8px; max-width: 90%; }
.mc-bubble-me { justify-self: end; background: var(--teal); border-radius: 10px 10px 2px 10px; }
.mc-bubble-me span { display: inline-block; }
.hx-mobile-card.is-visible .mc-shade { animation: mc-shade 6s ease-in-out infinite; }
.hx-mobile-card.is-visible .mc-bubble-me span { animation: mc-type 6s steps(24) infinite; }
@keyframes mc-shade { 0% { transform: translateY(-120%); opacity: 0; } 10%, 30% { transform: none; opacity: 1; } 40%, 100% { transform: translateY(-120%); opacity: 0; } }
@keyframes mc-type { 0%, 45% { clip-path: inset(0 100% 0 0); } 70%, 100% { clip-path: inset(0 0 0 0); } }

.hx-mobile-card-accent { border: 2px solid var(--ink); }
.mc-topc { gap: 0.75rem; }
.mc-phone-sm { width: 70px; height: 130px; margin: 0; border-radius: 16px; align-items: center; justify-content: center; }
.mc-mic { width: 26px; height: 26px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
.hx-mobile-card.is-visible .mc-mic { animation: mc-pulse 1.6s ease-out infinite; }
@keyframes mc-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); } 100% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); } }
.mc-beam { display: flex; gap: 8px; }
.mc-beam i { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); opacity: 0.2; }
.hx-mobile-card.is-visible .mc-beam i { animation: mc-dot 1.2s ease-in-out infinite; }
.mc-beam i:nth-child(2) { animation-delay: 0.2s !important; }
.mc-beam i:nth-child(3) { animation-delay: 0.4s !important; }
@keyframes mc-dot { 0%, 100% { opacity: 0.2; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.mc-laptop { width: 190px; padding: 8px 8px 0; border-radius: 10px 10px 0 0; background: #2a3654; position: relative; }
.mc-laptop::after { content: ''; position: absolute; left: -14px; right: -14px; bottom: -10px; height: 10px; background: #c5cbd6; border-radius: 0 0 8px 8px; }
.mc-screen { height: 110px; background: #fff; border-radius: 4px 4px 0 0; padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.mc-line { height: 6px; border-radius: 3px; background: #c8d0dd; width: 100%; }
.hx-mobile-card.is-visible .mc-line { animation: mc-line 5s ease-out infinite; }
.mc-line-2 { animation-delay: 0.4s !important; }
.mc-line-3 { animation-delay: 0.8s !important; max-width: 60%; }
@keyframes mc-line { 0%, 25% { width: 0; } 45%, 90% { width: 100%; } 100% { width: 0; } }
.mc-caret { width: 2px; height: 10px; background: var(--teal); animation: sd-blink 1s steps(1) infinite; }

/* ---------- Lawyers band ---------- */
.hx-lawyers { background: var(--ink); color: #dbe2ef; position: relative; overflow: hidden; }
.hx-lawyers::before { content: '§'; position: absolute; right: -2rem; top: -6rem; font-family: var(--serif); font-size: 28rem; line-height: 1; color: rgba(255, 255, 255, 0.04); pointer-events: none; }
.hx-lawyers h2 { color: #fff; }
.hx-lawyers-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; position: relative; }
.hx-usecases { list-style: none; counter-reset: uc; margin: 0; padding: 0; display: grid; gap: 1px; background: rgba(255, 255, 255, 0.1); border-radius: 18px; overflow: hidden; }
.hx-usecases li { counter-increment: uc; background: var(--ink-2); padding: 1.15rem 1.4rem 1.15rem 4rem; position: relative; display: grid; gap: 0.15rem; }
.hx-usecases li::before { content: counter(uc, decimal-leading-zero); position: absolute; left: 1.4rem; top: 1.15rem; font-family: var(--serif); color: var(--brass-light); font-size: 1.1rem; }
.hx-usecases b { color: #fff; }
.hx-usecases span { color: #aeb9d0; font-size: 0.95rem; }
.hx-btn-light { background: #fff; color: var(--ink); margin-top: 1rem; }
.hx-btn-light:hover { background: var(--brass-light); color: var(--ink); transform: translateY(-2px); }

/* ---------- Demo ---------- */
.hx-demo { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hx-steps { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; }
.hx-steps li { display: flex; gap: 1rem; align-items: baseline; color: #2b3650; }
.hx-steps li p { margin: 0; }
.hx-steps li > span { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.9rem; }
.hx-mascot { width: 140px; height: auto; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.hx .demo-video { border-radius: 20px; box-shadow: 0 40px 70px -30px rgba(20, 33, 61, 0.45); }

/* ---------- Trust ---------- */
.hx-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.hx-trust article { background: #fff; border-radius: 18px; padding: 1.5rem; border: 1px solid var(--line); position: relative; }
.hx-trust article::before { content: ''; display: block; width: 2rem; height: 3px; background: var(--brass); margin-bottom: 1rem; }
.hx-trust p { color: #48536b; margin: 0; font-size: 0.95rem; }

/* ---------- Pricing ---------- */
.hx-pricing { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.hx-price { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2rem; position: relative; }
.hx-price p { color: #48536b; margin: 0; }
.hx-amount { font-family: var(--serif); font-size: 2.8rem; color: var(--ink) !important; margin: 0.25rem 0 0.75rem !important; line-height: 1.1; }
.hx-amount small { font-family: "IBM Plex Sans", sans-serif; font-size: 0.9rem; color: #6b7280; margin-left: 0.4rem; }
.hx-price-featured { border: 2px solid var(--ink); box-shadow: 0 30px 60px -30px rgba(20, 33, 61, 0.45); }
.hx-price-tag { position: absolute; top: -0.85rem; left: 2rem; background: var(--brass); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 99px; }
.hx-price-team { background: var(--paper-2); border-radius: 22px; padding: 2rem; }
.hx-price-team p { color: #48536b; }

/* ---------- FAQ ---------- */
.hx-faq-wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); }
.hx-faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.hx-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brass); transition: transform 0.25s; }
.hx-faq details[open] summary::after { transform: rotate(45deg); }
.hx-faq details p { margin: 0.75rem 0 0; color: #48536b; }

/* ---------- CTA ---------- */
.hx-cta { background: linear-gradient(120deg, var(--ink) 0%, #23395f 100%); color: #dbe2ef; padding: clamp(3rem, 7vw, 5rem) 0; }
.hx-cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.hx-cta img { border-radius: 50%; background: var(--paper); }
.hx-cta h2 { color: #fff; margin-bottom: 0.4rem; }
.hx-cta p { margin: 0; }
.hx-cta-actions { display: grid; gap: 0.75rem; justify-items: center; }
.hx-link-light { color: #fff; }
.hx-link-light:hover { color: var(--brass-light); }

/* ---------- Landing (avocats) extras ---------- */
.hx-hero-photo { margin: 0; }
.hx-hero-photo img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(20, 33, 61, 0.55); }
.hx-prose { max-width: 760px; }
.hx-prose p, .hx-prose li { color: #3b465e; font-size: 1.05rem; }
.hx-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hx-breadcrumb { font-size: 0.85rem; color: #6b7280; margin-bottom: 1rem; }
.hx-breadcrumb a { color: #6b7280; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hx-hero-grid, .hx-split, .hx-lawyers-grid, .hx-demo, .hx-faq-wrap { grid-template-columns: 1fr; }
  .scene-dictation { padding-left: 0; }
  .sm-stage { grid-template-columns: 120px 1fr; }
  .sm-report { grid-column: 1 / -1; }
  .hx-bento, .hx-cards3 { grid-template-columns: 1fr 1fr; }
  .hx-trust { grid-template-columns: 1fr 1fr; }
  .hx-pricing { grid-template-columns: 1fr 1fr; }
  .hx-price-team { grid-column: 1 / -1; }
  .hx-cta-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 640px) {
  .sm-stage { grid-template-columns: 1fr; }
  .sm-phone { display: none; }
  .hx-bento, .hx-trust, .hx-pricing, .hx-cards3 { grid-template-columns: 1fr; }
  .hx-tile-wide { grid-column: auto; }
  .hx-tile-band { grid-template-columns: 1fr; }
  .hx-mobile-grid { grid-template-columns: 1fr; }
  .sd-context { position: relative; margin-bottom: 0.75rem; }
  .hx-photo-chip { left: 0.75rem; }
  .sd-badge { right: 0.5rem; }
  .scene-dictation { padding: 1.5rem 0 0; }
  .sd-raw { position: relative; right: auto; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
}

/* ---------- Real app screenshots ---------- */
.sm-shots { grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.sm-shot { margin: 0; text-align: center; opacity: 1; transform: none; transition: opacity 0.6s, transform 0.6s; }
.sm-shot img { width: 100%; max-width: 250px; margin: 0 auto; border-radius: 26px; border: 6px solid #0b1222; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); background: #f5f1ea; }
.sm-shot figcaption { margin-top: 0.9rem; color: #fff; font-weight: 600; font-size: 0.95rem; }
.scene-meeting.is-visible[data-step] .sm-shot { opacity: 0.25; transform: translateY(14px); }
.scene-meeting.is-visible[data-step="1"] .sm-shot[data-shot="1"],
.scene-meeting.is-visible[data-step="2"] .sm-shot[data-shot="1"], .scene-meeting.is-visible[data-step="2"] .sm-shot[data-shot="2"],
.scene-meeting.is-visible[data-step="3"] .sm-shot { opacity: 1; transform: none; }
.mc-shot { height: 300px; align-items: flex-start; padding-top: 1.25rem; }
.mc-shot img { width: 62%; max-width: 230px; border-radius: 18px 18px 0 0; border: 5px solid #0b1222; border-bottom: 0; box-shadow: 0 20px 40px -10px rgba(20, 33, 61, 0.35); }
@media (max-width: 640px) {
  .sm-shots { grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
  .sm-shot figcaption { font-size: 0.72rem; }
}

/* Hero: the "what you say" panel flows below the email window instead of overlapping it. */
.scene-dictation .sd-raw { position: relative; left: auto; right: auto; bottom: auto; margin: 0.8rem 2rem 0 -1.5rem; }
.sd-reply { min-height: 8.6rem; }
@media (max-width: 980px) { .sd-ctx-panel { width: 280px; right: 0; } }

/* Hero: keyboard visual — a finger presses Ctrl twice to start, and twice again to stop. */
.sd-keys {
  position: absolute; left: -1.4rem; top: 11rem; z-index: 4; display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.8rem 0.55rem 0.7rem; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 16px 34px -12px rgba(20, 33, 61, 0.4); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s;
}
.sd-key { position: relative; font-weight: 700; font-size: 0.95rem; color: var(--ink); padding: 0.35rem 0.8rem; border-radius: 8px; background: #f7f8fa; border: 1px solid #d5dae3; box-shadow: 0 3px 0 #c5cbd6; }
.sd-key-x { font-weight: 800; color: var(--teal); }
.sd-key-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--teal); padding: 0.2rem 0.5rem; border-radius: 6px; margin-left: 0.2rem; }
.scene-dictation[data-keys="stop"] .sd-key-label { background: #cf5141; }
.sd-hand { position: absolute; left: 1.7rem; top: -1.6rem; }
.scene-dictation[data-keys] .sd-keys { opacity: 1; transform: none; }
.scene-dictation[data-keys] .sd-hand { animation: sd-press 0.5s ease-in-out 2; }
.scene-dictation[data-keys] .sd-key { animation: sd-keydown 0.5s ease-in-out 2; }
@keyframes sd-press { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(7px); } }
@keyframes sd-keydown { 0%, 100% { transform: translateY(0); box-shadow: 0 3px 0 #c5cbd6; } 45% { transform: translateY(3px); box-shadow: 0 0 0 #c5cbd6; } }
@media (max-width: 640px) { .sd-keys { left: 0.5rem; top: 9rem; } }

/* Smartphone section: cross-device sync row */
.hx-sync { grid-column: 1 / -1; margin-top: 0; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.75rem; }
.hx-sync-copy p { color: #48536b; margin: 0; }
.hx-sync img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(20, 33, 61, 0.45); }
@media (max-width: 980px) { .hx-sync { grid-template-columns: 1fr; } }

/* ==========================================================================
   Secondary pages (body.hx.hx-page): restyle legacy components with the
   landing-page design system so every page shares the same look.
   ========================================================================== */
.hx-page main.container { max-width: 1100px; padding: 3rem 1.5rem 5rem; }
.hx-page .main-header { margin-bottom: 0; }
.hx-page .hero { padding: 2.5rem 0 3rem; text-align: center; }
.hx-page .hero-compact { padding-bottom: 2rem; }
.hx-page .hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: 1rem auto 1.1rem; max-width: 30ch;
  background: none; -webkit-text-fill-color: currentColor; color: var(--ink);
}
.hx-page .hero .lead, .hx-page .lead { color: #48536b; font-size: 1.15rem; }
.hx-page .hero > .badge, .hx-page .hero .badge:first-child {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
}
.hx-page h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.hx-page .panel h2, .hx-page .card h2 { margin-bottom: 0.75rem; }
.hx-page .panel {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: none;
  padding: clamp(1.5rem, 3.2vw, 2.4rem); margin-bottom: 1.5rem; backdrop-filter: none;
}
.hx-page .card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: none;
  padding: 1.5rem 1.6rem; backdrop-filter: none;
}
.hx-page .card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(20, 33, 61, 0.4); border-color: var(--line); background: #fff; }
.hx-page .panel .card { background: var(--paper); }
.hx-page .panel .card:hover { background: var(--paper); }
.hx-page .card h3 { font-size: 1.08rem; }
.hx-page .card p, .hx-page .panel p, .hx-page .panel li { color: #3b465e; }
.hx-page .section-kicker { color: var(--brass); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hx-page .notice { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; }
.hx-page .notice-warning { border-left-color: var(--brass); background: #fffaf0; }
.hx-page .flat-list li { border-bottom-color: var(--line); padding-left: 1.6rem; position: relative; }
.hx-page .flat-list li::before { content: ''; position: absolute; left: 0.2rem; top: 1.05em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--teal); }
.hx-page .btn-secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.hx-page .btn-primary { background: var(--ink); }
.hx-page a:not(.btn):not(.brand) { color: var(--teal); }
.hx-page .main-header a:not(.btn):not(.brand) { color: inherit; }
.hx-page footer a:not(.btn):not(.brand) { color: inherit; }
.hx-page details.panel summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.hx-page .card-icon { background: var(--paper-2); color: var(--brass); }
.hx-page .badge-version { background: var(--paper-2); color: var(--ink); }
/* Download page */
.hx-page .download-card-desktop { border-top: 4px solid var(--ink); }
.hx-page .download-card-desktop h2 { font-size: 2rem; }
.hx-page .download-secondary-grid .card { display: flex; flex-direction: column; gap: 0.25rem; }
/* Trust center & legal: comfortable reading width */
.hx-page[data-page^="trust"] .panel p, .hx-page[data-page="privacy"] .panel p, .hx-page[data-page="terms"] .panel p,
.hx-page[data-page="legal"] .panel p, .hx-page[data-page="security"] .panel p { max-width: 75ch; }

/* Review pass: trial note, confidentiality Q&A */
.hx-trial-note { margin: -0.6rem 0 1.1rem; font-size: 0.92rem; color: #5b6478; }
.hx-qa { grid-template-columns: repeat(2, 1fr); }
.hx-qa article h3 { font-size: 1.05rem; }
.hx-qa-pack { background: var(--ink) !important; border-color: transparent !important; }
.hx-qa-pack h3 { color: #fff; }
.hx-qa-pack ul { margin: 0; padding-left: 1.1rem; color: #c9d2e4; font-size: 0.95rem; display: grid; gap: 0.3rem; }
.hx-qa-pack::before { background: var(--brass-light) !important; }
@media (max-width: 640px) { .hx-qa { grid-template-columns: 1fr; } }
.hx-qa-pack { grid-column: 1 / -1; }
.hx-qa-pack ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
@media (max-width: 640px) { .hx-qa-pack ul { grid-template-columns: 1fr; } }
.hx-subtitle { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--teal) !important; margin: -0.4rem 0 1rem; }

/* Header: 6 navigation links (longer in NL/DE) do not fit between 768 and ~1200 px.
   Collapse them into the dropdown menu earlier and keep the trial button visible. */
.hx .brand { flex: none; }
.hx .main-header .navbar-inner { gap: 1rem; }
.hx .language-switcher { flex: none; }
@media (max-width: 1200px) and (min-width: 769px) {
  .hx .nav-toggle { display: block; order: 3; }
  .hx .btn-header { display: inline-flex; margin-left: auto; order: 2; }
  .hx .language-switcher { order: 4; }
  .hx nav {
    display: none; position: absolute; top: calc(100% + 0.75rem); right: 1.5rem; left: auto; min-width: 260px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px -20px rgba(20, 33, 61, 0.35);
    padding: 0.75rem 1.25rem; z-index: 200;
  }
  .hx nav.is-open { display: block; }
  .hx nav ul { flex-direction: column; gap: 0; }
  .hx nav ul li { border-bottom: 1px solid var(--line); }
  .hx nav ul li:last-child { border-bottom: none; }
  .hx nav a { display: block; padding: 0.7rem 0; }
}
