/* WhatBoss public pages: landing, privacy, terms and the create account form.
   Type steps, spacing steps and motion curve follow the Elaya landing page skill.
   Corners stay square by house rule; only avatars are round. */
@font-face {
  font-family: "Geist";
  src: url("/media/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #14201b;
  --muted: #55615b;
  --green: #00694d;
  --tint: #f2f5f1;
  --rule: #d5dcd6;
  --night: #181818;
  --curve: cubic-bezier(0.22, 1, 0.36, 1);
  font: 400 16px/24px "Geist", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(100% - 48px, 1120px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 5; padding: 8px 12px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; color: #fff; }

/* Text styles */
h1 { font-size: 60px; line-height: 60px; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
h3 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { margin-bottom: 12px; color: var(--green); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; gap: 40px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.bar nav { display: flex; gap: 24px; margin-inline-end: auto; }
.bar nav a { position: relative; display: inline-flex; align-items: center; min-height: 64px; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; transition: color 300ms var(--curve); }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--curve); }
.bar nav a[aria-current]::after { transform: scaleX(1); }
.signin { margin-inline-start: auto; padding: 8px 12px; border: 1px solid var(--ink); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; transition: background-color 300ms var(--curve), color 300ms var(--curve); }
.bar nav + .signin { margin-inline-start: 0; }
/* Language switcher: the current one is ink with the green underline, like the section links. */
.langs { display: flex; gap: 12px; margin-inline-start: auto; }
.brand, .brand img, .langs, .signin { flex: none; }
.langs[hidden] { display: none; }
.bar nav + .langs { margin-inline-start: 0; }
.langs + .signin { margin-inline-start: -16px; }
.langs[hidden] + .signin { margin-inline-start: auto; }
.langs button { appearance: none; position: relative; min-height: 64px; padding: 0 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: color 300ms var(--curve); }
.langs button:hover, .langs button[aria-pressed="true"] { color: var(--ink); }
.langs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--curve); }
.langs button[aria-pressed="true"]::after { transform: scaleX(1); }
.signin:hover { background: var(--ink); color: #fff; }
.signin:active, .google:active, .steps button:active, .icon-button:active { transform: translateY(1px); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; padding-block: 64px 48px; }
.hero h1, .lead { max-width: 680px; }
.brandword { position: relative; display: inline-block; color: var(--green); }
.brandword::after { content: ""; position: absolute; left: 0; right: 12px; bottom: -4px; height: 5px; background: var(--green); transform: rotate(-1.2deg); transform-origin: left; }
.brandword sup { font-size: 16px; line-height: 16px; letter-spacing: 0; vertical-align: top; position: relative; top: 4px; }
.typing .brandword::after { transform: rotate(-1.2deg) scaleX(0); }
.typed .brandword::after { transition: transform 500ms var(--curve); }
.typing .ch { opacity: 0; }
.typing .ch.on { opacity: 1; }
.caret { display: inline-block; width: 3px; height: 0.8em; margin-inline-start: 2px; background: var(--green); vertical-align: baseline; animation: blink 900ms steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 28px; }
.google { display: inline-block; margin-top: 32px; line-height: 0; transition: opacity 300ms var(--curve); }
.google img { width: 216px; height: 48px; }
.google:hover { opacity: 0.86; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 4px; }
.checks svg { width: 16px; height: 16px; color: var(--green); }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.mascot { width: 100%; height: auto; mix-blend-mode: multiply; }
.chip { position: absolute; display: grid; place-items: center; width: 64px; height: 64px; background: #fff; border: 1px solid var(--rule); animation: float 5s var(--curve) infinite alternate; }
.chip svg { width: 32px; height: 32px; color: var(--green); }
.chip-a { inset-inline-start: 0; top: 16%; }
.chip-b { inset-inline-end: 0; top: 4%; animation-delay: -2.5s; }
@keyframes float { to { transform: translateY(-8px); } }

/* Recording and animation */
.demo { padding-bottom: 96px; }
.demo-row { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 24px; align-items: stretch; }
.window, .flow { display: flex; flex-direction: column; border: 1px solid #b9c3bc; background: #fff; }
.window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 48px; padding-inline: 16px; background: var(--tint); border-bottom: 1px solid #b9c3bc; }
.flow-bar { grid-template-columns: 1fr auto; }
.window-name { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; line-height: 16px; font-weight: 500; }
.window-name img { border-radius: 50%; }
.steps { display: flex; gap: 24px; }
.steps button, .icon-button { appearance: none; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.steps button { position: relative; min-height: 48px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 500; transition: color 300ms var(--curve); }
.steps button:hover, .steps button[aria-pressed="true"] { color: var(--ink); }
.steps button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--curve); }
.steps button[aria-pressed="true"]::after { transform: scaleX(1); }
.icon-button { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; }
.icon-button:hover { color: var(--ink); }
.icon-button svg { width: 20px; height: 20px; }
.window video { flex: 1; width: 100%; min-height: 0; aspect-ratio: 960 / 696; object-fit: cover; object-position: left top; background: #f7f8f6; }
.window figcaption, .flow figcaption { margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; line-height: 20px; }

/* The animation draws a phone and a chat, which are round in real life. The page's own boxes stay square. */
.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 212px) 48px minmax(0, 1fr); align-items: center; gap: 12px; padding: 24px 16px; background: #fbfcfa; }
.phone { display: flex; flex-direction: column; aspect-ratio: 9 / 17; border: 6px solid #1b1f1d; border-radius: 28px; background: #efeae2; overflow: hidden; font-size: 12px; line-height: 16px; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 4px 16px 2px; background: #008069; color: #fff; font-size: 10px; line-height: 12px; font-weight: 600; }
.phone-status i { width: 36px; height: 8px; border-radius: 4px; background: #1b1f1d; }
.chat-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px; background: #008069; color: #fff; }
.chat-head svg { width: 16px; height: 16px; }
.chat-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: #f4c95d; color: #3a2a00; font-size: 10px; font-weight: 700; }
.chat-name { display: grid; min-width: 0; margin-inline-end: auto; }
.chat-name b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; }
.chat-name small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; line-height: 12px; opacity: 0.85; }
.chat-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 8px; }
.msg { position: relative; max-width: 88%; padding: 5px 8px 14px; border-radius: 0 8px 8px 8px; background: #fff; color: #111b21; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.msg b { display: block; font-size: 11px; font-weight: 600; }
.msg time { position: absolute; inset-inline-end: 8px; bottom: 2px; color: #667781; font-size: 9px; line-height: 12px; }
.msg.mine { align-self: flex-end; border-radius: 8px 0 8px 8px; background: #d9fdd3; }
.who-a { color: #c2410c; }
.who-b { color: #7a5c00; }
.slot { display: grid; width: 100%; }
.slot > * { grid-area: 1 / 1; justify-self: start; align-self: start; }
.msg.spam { outline: 2px solid transparent; outline-offset: 2px; }
.msg.gone { display: flex; align-items: center; gap: 4px; padding-inline-end: 36px; color: #667781; font-size: 11px; }
.msg.gone svg { width: 14px; height: 14px; }
.sys { align-self: center; padding: 3px 8px; border-radius: 6px; background: #fff; color: #54656f; font-size: 10px; line-height: 14px; box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13); }
.chat-input { display: flex; align-items: center; gap: 6px; margin: 0 6px 6px; padding-block: 5px; padding-inline: 8px 4px; border-radius: 16px; background: #fff; color: #667781; font-size: 11px; }
.chat-input span { margin-inline-end: auto; }
.chat-input svg { width: 14px; height: 14px; }
.chat-input em { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #00a884; color: #fff; }
.wire { display: grid; gap: 28px; }
.wire span { position: relative; display: flex; align-items: center; height: 16px; color: #9aa6a0; }
.wire span::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; border-top: 2px dashed currentColor; }
.wire svg { position: relative; width: 16px; height: 16px; background: #fbfcfa; }
.wire-out svg { margin-inline-start: auto; }
.wire i { position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; opacity: 0; }
.wire-out i { inset-inline-start: 0; background: #d97706; }
.wire-back i { inset-inline-end: 0; background: #d92d20; }
.server { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 8px; border: 1px solid var(--rule); background: #fff; text-align: center; }
.server img { border-radius: 50%; }
.server b { font-size: 14px; line-height: 20px; font-weight: 600; }
.states { display: grid; }
.state { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; opacity: 0; transition: opacity 300ms var(--curve); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-watch { color: var(--green); }
.state-check { color: #b45309; }
.state-block { color: #b42318; }
.stamp { position: absolute; inset-inline-end: -8px; top: -12px; padding: 2px 8px; border: 2px solid #b42318; background: #fff; color: #b42318; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transform: rotate(-6deg) scale(1.6); transition: opacity 300ms var(--curve), transform 500ms var(--curve); }

/* Phases: 0 quiet, 1 spam lands, 2 sent to the server, 3 verdict, 4 deleted, 5 sender removed. */
.spam, .gone, .sys { transition: opacity 500ms var(--curve), transform 500ms var(--curve); }
.flow[data-phase="0"] .spam { opacity: 0; transform: translateY(8px); }
.flow:not([data-phase="4"]):not([data-phase="5"]) .gone, .flow:not([data-phase="5"]) .sys { opacity: 0; transform: translateY(8px); }
.flow[data-phase="4"] .spam, .flow[data-phase="5"] .spam { opacity: 0; transform: scale(0.96); }
.flow[data-phase="2"] .spam { outline-color: #d97706; }
.flow[data-phase="3"] .spam { outline-color: #d92d20; }
.flow[data-phase="0"] .state-watch, .flow[data-phase="1"] .state-watch, .flow[data-phase="5"] .state-watch { opacity: 1; }
.flow[data-phase="2"] .state-check { opacity: 1; }
.flow[data-phase="3"] .state-block, .flow[data-phase="4"] .state-block { opacity: 1; }
.flow[data-phase="3"] .stamp, .flow[data-phase="4"] .stamp { opacity: 1; transform: rotate(-6deg); }
.flow[data-phase="2"] .wire-out { color: #d97706; }
.flow[data-phase="3"] .wire-back, .flow[data-phase="4"] .wire-back { color: #d92d20; }
.flow[data-phase="2"] .wire-out i { animation: wire-out 1200ms var(--curve) both; }
.flow[data-phase="3"] .wire-back i { animation: wire-back 1000ms var(--curve) both; }
@keyframes wire-out { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(36px); } }
@keyframes wire-back { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(-36px); } }

/* Tips under the row follow the animation. */
.tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.tip { padding: 16px; transition: opacity 500ms var(--curve), transform 500ms var(--curve); }
.tip b { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 8px; color: #fff; font-size: 12px; line-height: 16px; font-weight: 700; }
.tip h3 { font-size: 16px; line-height: 24px; }
.tip p { color: var(--ink); font-size: 14px; line-height: 20px; }
.tip-amber { background: #fff3d1; } .tip-amber b { background: #b45309; } .tip-amber h3 { color: #8a3f04; }
.tip-blue { background: #e4eeff; } .tip-blue b { background: #1d4ed8; } .tip-blue h3 { color: #173b9c; }
.tip-red { background: #ffe7e3; } .tip-red b { background: #b42318; } .tip-red h3 { color: #8f1c12; }
.tip-green { background: #dff3e8; } .tip-green b { background: var(--green); } .tip-green h3 { color: #004d39; }
.tips.running .tip:not(.lit) { opacity: 0.45; }
.tips.running .tip.lit { transform: translateY(-4px); }

/* Problem */
.problem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 64px; padding-bottom: 96px; }
.problem-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); }
.stat { display: grid; gap: 8px; margin-block: 32px 16px; }
.stat b { color: var(--green); font-size: 60px; line-height: 60px; font-weight: 700; letter-spacing: -0.035em; }
.stat span { color: var(--ink); font-size: 18px; line-height: 28px; }
.source, .credit-figure figcaption, .fine, .credits, .legal-line { font-size: 12px; line-height: 16px; color: var(--muted); }
.source { margin-top: 16px; }
.credit-figure img { width: 100%; height: auto; border: 1px solid var(--rule); }
.credit-figure figcaption { margin-top: 8px; }

/* Why */
.why { padding-bottom: 96px; }
.why-lead { max-width: 680px; margin-top: 16px; color: var(--muted); font-size: 18px; line-height: 28px; }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.proof { padding: 24px; }
.proof b { display: block; margin-bottom: 16px; font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.035em; }
.proof p, .way p, .facts p, .steps-list p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
.proof p { color: var(--ink); }
.proof-green { background: #dff3e8; } .proof-green b { color: var(--green); }
.proof-amber { background: #fff3d1; } .proof-amber b { color: #b45309; }
.proof-blue { background: #e4eeff; } .proof-blue b { color: #1d4ed8; }

/* Tagline */
.tagline { padding-bottom: 96px; }
.tagline p { max-width: 680px; margin-inline: auto; text-align: center; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
.tagline .word { opacity: 0.3; transition: opacity 500ms var(--curve); }
.tagline .word.on { opacity: 1; }

/* Security */
.security { margin-bottom: 96px; padding-block: 80px; background: var(--tint); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 40px; }
.more { margin-top: 40px; font-size: 14px; line-height: 20px; font-weight: 600; }

/* How */
.how { padding-bottom: 96px; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.way { position: relative; padding: 24px; border: 1px solid var(--ink); }
.way svg, .facts svg { width: 28px; height: 28px; margin-bottom: 16px; color: var(--green); }
.way h3 { font-size: 20px; line-height: 28px; }
.badge { position: absolute; inset-inline-end: 16px; top: 16px; padding: 4px 12px; background: var(--green); color: #fff; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 48px; }
.num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; background: var(--ink); color: #fff; font-size: 18px; line-height: 28px; font-weight: 600; }

/* Pricing and questions */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-bottom: 96px; }
.plan { margin-top: 32px; padding: 24px; border: 1px solid var(--ink); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.plan-head h3, .plan-head b { font-size: 20px; line-height: 28px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 4px 12px; background: var(--tint); font-size: 14px; line-height: 20px; }
.pricing .google { margin-top: 24px; }
.fine { margin-top: 12px; }
.questions details { margin-top: 8px; background: var(--tint); }
.questions h2 + details { margin-top: 32px; }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 500; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary svg { width: 16px; height: 16px; color: var(--green); transition: transform 500ms var(--curve); }
.questions details[open] summary svg { transform: rotate(45deg); }
.questions details p { padding: 0 16px 16px; color: var(--muted); font-size: 14px; line-height: 20px; }

/* Closing band */
.closing { padding-block: 64px; background: var(--night); color: #fff; }
.closing-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 32px; }
.closing p { max-width: 520px; margin-top: 12px; color: #c9cfcb; }
.closing .google { margin-top: 0; }
.closing-face { width: 96px; height: 96px; border-radius: 50%; }

/* Footer */
.foot { padding-block: 32px; font-size: 14px; line-height: 20px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-row + .foot-row { margin-top: 12px; color: var(--muted); }
.credits { max-width: 760px; margin-top: 24px; }
.credits b { color: var(--ink); font-weight: 600; }
.legal-line { margin-top: 8px; }

/* Privacy, terms and the create account form */
.doc main { width: min(100% - 48px, 680px); margin-inline: auto; padding-block: 64px 96px; }
.doc h1 { font-size: 48px; line-height: 48px; margin-bottom: 24px; }
.doc h2 { margin-top: 40px; font-size: 24px; line-height: 32px; letter-spacing: -0.02em; }
.doc p { margin-top: 12px; color: var(--muted); }
.doc form p { color: var(--ink); }
.doc [role="alert"] { color: #a3261a; font-weight: 500; }
.doc .note { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 20px; }
.field { display: grid; gap: 4px; max-width: 400px; font-weight: 500; }
.field input { padding: 8px 12px; border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.plain { margin-top: 16px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; line-height: 20px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.plain:hover { color: var(--green); }
.cf-turnstile { max-width: 400px; margin-top: 16px; }
.action { display: inline-block; margin-top: 24px; padding: 8px 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 300ms var(--curve); }
.action:hover { background: var(--green); color: #fff; }

/* Languages. The script sets lang and dir on <html> before the body is drawn and hides the body until the words are in. */
.i18n-wait body { visibility: hidden; }
/* Arabic letters join and Chinese has no tracking: no letter spacing, and taller lines for Arabic. */
html[lang="ar"] *, html[lang="zh"] * { letter-spacing: 0 !important; }
html[lang="ar"] h1, html[lang="ar"] .stat b, html[lang="ar"] .proof b { line-height: 1.3; }
html[lang="ar"] h2, html[lang="ar"] .tagline p { line-height: 1.4; }
html[lang="ar"] .proof b { font-size: 30px; }
/* The Chinese headline breaks only at the spaces written into it, so no word is cut in two. */
html[lang="zh"] h1 { line-height: 1.15; word-break: keep-all; overflow-wrap: anywhere; }
/* Right to left: the page mirrors through logical properties; these are the few things they cannot reach. */
[dir="rtl"] .bar nav a::after, [dir="rtl"] .langs button::after, [dir="rtl"] .steps button::after { transform-origin: right; }
[dir="rtl"] .msg { border-radius: 8px 0 8px 8px; }
[dir="rtl"] .msg.mine { border-radius: 0 8px 8px 8px; }
[dir="rtl"] .chat-head svg:first-child, [dir="rtl"] .wire svg { transform: scaleX(-1); }
[dir="rtl"] .flow[data-phase="2"] .wire-out i { animation-name: wire-back; }
[dir="rtl"] .flow[data-phase="3"] .wire-back i { animation-name: wire-out; }

/* Scroll reveals are opt in: the script adds .js once it runs. */
.js .rise { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--curve), transform 700ms var(--curve); }
.js .rise.in { opacity: 1; transform: none; }

/* The top bar tightens, then drops the section links, before the longest language (French) runs out of room. */
@media (max-width: 1000px) {
  .bar { gap: 24px; }
  .bar nav { gap: 16px; }
  .langs + .signin { margin-inline-start: 0; }
}
@media (max-width: 920px) {
  .bar nav { display: none; }
  .bar nav + .langs { margin-inline-start: auto; }
}
@media (max-width: 960px) {
  h1 { font-size: 48px; line-height: 48px; }
  .hero { gap: 24px; }
  .facts, .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-row { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: minmax(0, 248px) 56px minmax(0, 220px); justify-content: center; }
  .proof b { font-size: 36px; line-height: 40px; }
  .problem { gap: 40px; }
  .plans { gap: 40px; }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 72px; }
  .shell { width: min(100% - 32px, 1120px); }
  .doc main { width: min(100% - 32px, 680px); padding-block: 40px 64px; }
  h1, .doc h1, .stat b { font-size: 36px; line-height: 40px; }
  h2, .tagline p { font-size: 30px; line-height: 36px; }
  .landing .bar { gap: 10px; }
  .landing .brand { gap: 6px; font-size: 18px; }
  .landing .brand img { width: 32px; height: 32px; }
  .landing .signin { padding-inline: 10px; }
  .langs { gap: 0; }
  .langs button { padding-inline: 5px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 40px 32px; }
  .hero-art { width: min(64%, 240px); justify-self: start; margin-top: 8px; }
  .chip { width: 48px; height: 48px; }
  .chip svg, .chip img { width: 24px; height: 24px; }
  .chip-a { inset-inline: auto -64px; top: 52%; }
  .chip-b { inset-inline-end: -64px; top: 12%; }
  .lead { margin-top: 16px; font-size: 16px; line-height: 24px; }
  .google { margin-top: 24px; }
  .demo, .problem, .why, .tagline, .plans { padding-bottom: 64px; }
  .security { padding-block: 64px; }
  .how { padding-bottom: 64px; }
  .window-bar { grid-template-columns: 1fr auto; padding-inline: 12px; }
  .window .window-name { display: none; }
  .phone { aspect-ratio: auto; }
  .chat-body { min-height: 236px; }
  .steps { gap: 16px; }
  .window figcaption, .flow figcaption { padding: 12px; }
  .stage { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 104px); gap: 8px; padding: 16px 12px; }
  .server { padding: 12px 4px; }
  .server img { width: 40px; height: 40px; }
  .server b { font-size: 12px; line-height: 16px; }
  .state { font-size: 10px; line-height: 12px; gap: 4px; }
  .stamp { inset-inline-end: -4px; font-size: 10px; }
  @keyframes wire-out { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(16px); } }
  @keyframes wire-back { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(-16px); } }
  .problem, .plans, .proofs, .ways, .facts, .steps-list { grid-template-columns: minmax(0, 1fr); }
  .facts, .steps-list { gap: 32px; }
  .credit-figure { max-width: 420px; }
  .closing { padding-block: 48px; }
  .closing-row { grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
  .closing-row > div { grid-column: 1 / -1; }
}
/* The narrowest phones keep the face, the four languages and Sign in; the home link keeps its name for screen readers. */
/* The drawn phone is about 100px wide there: it drops its small icons so the group name and the message box can be read. */
@media (max-width: 384px) {
  .landing .brand span { display: none; }
  .chat-head svg, .chat-input > svg { display: none; }
  .msg { overflow-wrap: anywhere; }
  html[lang="zh"] h1 { font-size: 32px; }
}
/* French has the longest sign in label ("Connexion"), so its name goes a little earlier. */
@media (max-width: 410px) {
  html[lang="fr"] .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .chip, .caret, .wire i { animation: none !important; }
  .js .rise { transform: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}
.badge-trial { background: #b45309; }
