/* SAWT by Asayl: product-page additions on top of ../ai-platform/styles.css (shared Asayl tokens).
   Hard-edged, light only, teal = live/verified, amber = preview/waiting. No pills, no soft shadows. */

:root { --font-ar: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }
.ar { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; }
.kbd { font-family: var(--font-mono); font-size: .78em; border: 1px solid var(--ink); border-bottom-width: 2px; padding: .05em .4em; background: var(--white); border-radius: 2px; white-space: nowrap; }

/* ---------- hero stage: a desktop app with the SAWT bar ---------- */
.desk { margin: clamp(16px, 2vw, 28px); border: 1px solid var(--ink); background: var(--paper-2); display: flex; flex-direction: column; min-height: 470px; position: relative; overflow: hidden;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 28px 28px; }
.win { margin: 22px 22px 0; background: var(--white); border: 1px solid var(--ink); display: flex; flex-direction: column; flex: 1; }
.win-bar { display: flex; align-items: center; justify-content: space-between; padding: .55rem .9rem; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.win-bar b { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: .9rem; }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border: 1px solid var(--line); display: block; }
.chat { flex: 1; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; justify-content: flex-end; }
.msg { max-width: 78%; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--paper); font-size: .92rem; line-height: 1.45; }
.msg.them { align-self: flex-start; }
.msg.me { align-self: flex-end; background: color-mix(in srgb, var(--teal) 9%, var(--white)); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); }
.msg small { display: block; font-family: var(--font-mono); font-size: .66rem; color: var(--muted); margin-top: .25rem; }
.composer { display: flex; align-items: center; gap: .6rem; border-top: 1px solid var(--line); padding: .7rem .9rem; min-height: 64px; }
.composer-field { flex: 1; min-height: 40px; border: 1px solid var(--line); padding: .55rem .75rem; font-size: .95rem; line-height: 1.45; background: var(--white); position: relative; }
.composer-field .ph { color: var(--muted); }
.composer-field .typed { display: none; }
.composer-field .caret { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.composer-send { width: 40px; height: 40px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 1rem; }

/* the SAWT bar (adopted overlay language: flat, hairline, hard-edged) */
.sbar { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 8px); opacity: 0; display: flex; align-items: stretch; background: var(--ink); color: var(--white); border: 1px solid var(--ink); transition: opacity .35s var(--ease), transform .35s var(--ease); font-size: .78rem; z-index: 2; }
.sbar > * { display: flex; align-items: center; padding: .55rem .75rem; }
.sbar > * + * { border-left: 1px solid #3a3a36; }
.sbar-mark { font-family: var(--font-display); font-weight: 700; letter-spacing: .06em; }
.sbar-mark i { width: 7px; height: 7px; background: #3CC2B1; display: inline-block; margin-right: .5rem; }
.sbar-wave { gap: 3px; height: 34px; }
.sbar-wave b { width: 3px; height: 4px; background: var(--white); transition: height .12s linear; display: block; }
.sbar-state { font-family: var(--font-mono); font-size: .7rem; color: #D8D3C7; min-width: 15ch; }
.sbar-lang { font-family: var(--font-mono); font-size: .7rem; color: #3CC2B1; }
.desk.is-rec .sbar, .desk.is-work .sbar, .desk.is-sent .sbar { opacity: 1; transform: translate(-50%, 0); }
.desk .st-rec, .desk .st-work, .desk .st-sent { display: none; }
.desk.is-rec .st-rec, .desk.is-work .st-work, .desk.is-sent .st-sent { display: inline; }
.desk.is-sent .st-sent { color: #3CC2B1; }
.desk.has-text .composer-field .ph { display: none; }
.desk.has-text .composer-field .typed { display: inline; }
.desk.is-rec .composer-field { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }

/* what you said, floating above the window while recording */
.said { position: absolute; left: 50%; bottom: 152px; transform: translateX(-50%); max-width: min(92%, 520px); background: var(--white); border: 1px dashed var(--ink); padding: .5rem .8rem; font-size: .92rem; opacity: 0; transition: opacity .3s var(--ease); z-index: 2; }
.said .k { font-family: var(--font-mono); font-size: .64rem; color: var(--muted); display: block; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.desk.is-rec .said, .desk.is-work .said { opacity: 1; }

/* mode switch under the stage */
.mode { display: flex; gap: 0; margin: 0 clamp(16px, 2vw, 28px) clamp(16px, 2vw, 28px); border: 1px solid var(--ink); }
.mode button { flex: 1; font: 500 .82rem var(--font-display); padding: .6rem .8rem; background: var(--white); border: 0; cursor: pointer; color: var(--ink); text-align: left; }
.mode button + button { border-left: 1px solid var(--ink); }
.mode button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.mode button small { display: block; font-family: var(--font-mono); font-size: .66rem; font-weight: 400; opacity: .75; }

/* ---------- before / after ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ba-col { padding: clamp(28px, 3vw, 44px) var(--pad); }
.ba-col + .ba-col { border-left: 1px solid var(--line); background: var(--white); }
.ba-col .kicker { margin-bottom: .8rem; }
.ba-col.before .kicker::before { color: var(--muted); }
.ba-sample { border: 1px solid var(--line); padding: 1rem 1.1rem; font-size: 1.02rem; line-height: 1.55; background: var(--paper); min-height: 120px; }
.ba-col.after .ba-sample { background: var(--white); border-color: var(--ink); }
.ba-sample .typo { text-decoration: underline wavy var(--amber); text-underline-offset: 3px; }
.ba-sample .ar { display: block; font-size: 1.12rem; }
.ba-sample .fr { display: block; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); color: var(--ink-soft); }
.ba-list { list-style: none; margin-top: 1.1rem; display: grid; gap: .45rem; font-size: .94rem; color: var(--ink-soft); }
.ba-list li::before { content: "— "; color: var(--muted); }
.ba-col.after .ba-list li::before { content: "→ "; color: var(--teal); }

/* ---------- three steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.s3 { padding: clamp(24px, 3vw, 40px) var(--pad) clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: .8rem; }
.s3 + .s3 { border-left: 1px solid var(--line); }
.s3-n { font-family: var(--font-mono); font-size: .72rem; color: var(--teal-deep); }
.s3 p { color: var(--muted); font-size: .95rem; max-width: 36ch; }
.s3-art { margin-top: auto; border: 1px solid var(--line); background: var(--white); min-height: 120px; display: grid; place-items: center; padding: 1rem; }
.s3-art .keys { display: flex; gap: .4rem; align-items: center; font-size: 1.3rem; }
.s3-art .wave { display: flex; gap: 4px; align-items: center; height: 48px; }
.s3-art .wave b { width: 4px; background: var(--ink); display: block; }
.s3-art .ins { font-size: .95rem; border-left: 2px solid var(--teal); padding-left: .7rem; }

/* ---------- translation spotlight ---------- */
.tr { display: grid; grid-template-columns: 5fr 7fr; border-top: 1px solid var(--line); }
.tr-copy { padding: clamp(40px, 5vw, 72px) var(--pad); border-right: 1px solid var(--line); }
.tr-copy p { margin-top: 1.2rem; color: var(--ink-soft); max-width: 42ch; }
.tr-pairs { display: flex; flex-direction: column; }
.pair { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.pair:last-child { border-bottom: 0; }
.pair > div { padding: 1.2rem var(--pad); font-size: 1rem; line-height: 1.5; }
.pair .ar { font-size: 1.12rem; text-align: right; }
.pair .arrow-c { color: var(--teal); text-align: center; padding: 0; font-family: var(--font-mono); }
.pair .ctx { display: block; font-family: var(--font-mono); font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; direction: ltr; text-align: left; }

/* ---------- personas ---------- */
.who { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.who-c { padding: 1.6rem var(--pad) 1.8rem; display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: inherit; min-height: 230px; }
.who-c + .who-c { border-left: 1px solid var(--line); }
.who-c p { color: var(--muted); font-size: .94rem; }
.who-c .go { margin-top: auto; font-family: var(--font-display); font-size: .9rem; }
a.who-c:hover { background: var(--white); }
a.who-c:hover .go { color: var(--teal-deep); }
.who-c .soon { margin-top: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }

/* ---------- founders / proof band ---------- */
.founders { display: grid; grid-template-columns: 7fr 5fr; border-top: 1px solid var(--line); }
.founders-copy { padding: clamp(40px, 5vw, 72px) var(--pad); border-right: 1px solid var(--line); }
.founders-copy p { margin-top: 1.2rem; color: var(--ink-soft); max-width: 52ch; }
.founders-list { list-style: none; padding: clamp(40px, 5vw, 72px) var(--pad); display: grid; gap: 1rem; align-content: center; background: var(--white); }
.founders-list li { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; font-size: .96rem; }
.founders-list li b { font-family: var(--font-mono); color: var(--teal-deep); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 4fr 8fr; border-top: 1px solid var(--line); }
.faq-head { padding: clamp(40px, 5vw, 72px) var(--pad); border-right: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; list-style: none; padding: 1.2rem var(--pad); font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-mono); color: var(--teal); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 var(--pad) 1.3rem; color: var(--ink-soft); max-width: 70ch; }

/* ---------- comparison table (pourquoi) ---------- */
.ctable { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 1.1rem var(--pad); border-bottom: 1px solid var(--line); font-size: .96rem; }
.ctable th { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--paper-2); }
.ctable th.us { color: var(--teal-deep); }
.ctable td + td, .ctable th + th { border-left: 1px solid var(--line); }
.ctable td:first-child { font-family: var(--font-display); font-weight: 500; width: 22%; }
.ctable td.us { background: var(--white); font-weight: 500; }
.ctable .no { color: var(--muted); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.plan { padding: 1.8rem var(--pad) 2rem; display: flex; flex-direction: column; gap: .9rem; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.pick { background: var(--white); box-shadow: inset 0 3px 0 var(--teal); }
.plan-name { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.plan-for { color: var(--muted); font-size: .9rem; }
.plan-price { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; line-height: 1; }
.plan-price small { font-family: var(--font-body); font-size: .82rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; display: grid; gap: .45rem; font-size: .92rem; color: var(--ink-soft); }
.plan li::before { content: "✓ "; color: var(--teal); }
.plan .btn { margin-top: auto; justify-content: center; }
.note-band { padding: 1.1rem var(--pad); border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); background: color-mix(in srgb, var(--amber) 10%, var(--paper)); }
.note-band b { font-family: var(--font-mono); font-weight: 500; font-size: .72rem; color: var(--amber-deep); margin-right: .6rem; letter-spacing: .06em; }

/* ---------- persona hero quote ---------- */
.pull { padding: clamp(40px, 5vw, 72px) var(--pad); border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.pull blockquote { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.15; max-width: 30ch; }
.pull cite { display: block; margin-top: 1rem; font-style: normal; font-family: var(--font-mono); font-size: .74rem; color: #9d998e; }

/* section heads reused across pages */
.sec-head { padding: clamp(48px, 6vw, 88px) var(--pad) clamp(28px, 3vw, 40px); }
.sec-head p { margin-top: 1rem; color: var(--ink-soft); max-width: 60ch; }
.sec { border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  .who { grid-template-columns: 1fr 1fr; }
  .who-c:nth-child(3) { border-left: 0; }
  .who-c:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .ba, .steps3, .tr, .founders, .faq, .who, .plans { grid-template-columns: 1fr; }
  .ba-col + .ba-col, .s3 + .s3, .who-c + .who-c, .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .tr-copy, .founders-copy, .faq-head { border-right: 0; border-bottom: 1px solid var(--line); }
  .pair { grid-template-columns: 1fr; }
  .pair .arrow-c { padding: 0; transform: rotate(90deg); }
  .desk { min-height: 430px; margin: 12px; }
  .win { margin: 12px 12px 0; }
  .sbar-state { min-width: 0; }
  .sbar .sbar-lang { display: none; }
  .mode { margin: 0 12px 12px; flex-direction: column; }
  .mode button + button { border-left: 0; border-top: 1px solid var(--ink); }
  .ctable { display: block; overflow-x: auto; }
  .ctable td:first-child { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sbar, .said { transition: none; }
}
