/* Vyxo website — self-hosted fonts, no trackers, no external requests */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-latin.woff2) format("woff2-variations"), url(fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-latin-ext.woff2) format("woff2-variations"), url(fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/vazirmatn-arabic.woff2) format("woff2-variations"), url(fonts/vazirmatn-arabic.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --paper: #F4F8F3;
  --ink: #10261A;
  --mint: #B6E6BD;
  --moss: #2C6A43;
  --haze: #D9E7DC;
  --surface: #FFFFFF;
  --muted: #4A6153;
  --panel: #0E1B13;
  --panel-ink: #E8F3EA;
  --panel-soft: #9DB8A6;
  --on-cta: #F4F8F3;
  --cta: #10261A;

  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --app: Roboto, "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;
  --stage: #DCEADF;
  --stage-alt: #E8F2E9;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0C1510;
    --ink: #E6F1E8;
    --moss: #9ED8AA;
    --haze: #22352A;
    --surface: #132119;
    --muted: #A6BCAE;
    --panel: #050B07;
    --panel-soft: #8FAA98;
    --cta: #B6E6BD;
    --on-cta: #0C1510;
    --stage: #1B2C22;
    --stage-alt: #15241B;
  }
}

:lang(fa), :lang(ar) {
  --display: "Vazirmatn", "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: "Vazirmatn", "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --app: "Vazirmatn", Roboto, "Segoe UI", system-ui, sans-serif;
}
:lang(ru), :lang(hi), :lang(ja), :lang(ko), :lang(zh) {
  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--moss); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.3rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 760; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 720; }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 700; }
:lang(fa) h1, :lang(ar) h1, :lang(fa) h2, :lang(ar) h2, :lang(fa) h3, :lang(ar) h3 { letter-spacing: 0; line-height: 1.25; }
:lang(ru) h1, :lang(hi) h1, :lang(ja) h1, :lang(ko) h1, :lang(zh) h1 { letter-spacing: -0.01em; line-height: 1.12; }
h1, h2 { text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
:lang(ja) .hero h1 { word-break: keep-all; }
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh) .hero h1 { max-width: 9em; font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
:lang(ru) .hero h1, :lang(hi) .hero h1, :lang(pl) .hero h1, :lang(fr) .hero h1, :lang(pt) .hero h1 { max-width: 14ch; }
:lang(ru) .hero h1, :lang(hi) .hero h1 { font-size: clamp(2.3rem, 4.8vw, 4.1rem); }
p { margin: 0; }

/* ---------- header ---------- */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: "Bricolage", var(--display); font-weight: 760; font-size: 1.45rem; letter-spacing: -0.02em; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--haze); color: var(--ink);
  background: var(--surface); font-size: 0.95rem;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20;
  margin: 0; padding: 8px; list-style: none; width: min(320px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--surface); border: 1px solid var(--haze); border-radius: 18px;
  box-shadow: 0 18px 40px -18px rgba(16, 38, 26, 0.35);
}
.lang a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.lang a:hover, .lang a[aria-current="true"] { background: var(--paper); }
.lang a[aria-current="true"] { font-weight: 700; }

.play {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--cta); color: var(--on-cta); text-decoration: none; font-weight: 700; font-size: 1.02rem;
  transition: transform 0.15s ease;
}
.play:hover { transform: translateY(-1px); text-decoration: none; }
.play svg { width: 20px; height: 20px; flex: none; }
.play.small { min-height: 44px; padding: 0 16px 0 13px; font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 420px) { .lang summary span { display: none; } .lang summary { padding: 0 12px; } }
.top .play.small span.long { display: none; }
@media (min-width: 720px) { .top .play.small span.long { display: inline; } .top .play.small span.short { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(24px, 6vw, 72px) clamp(40px, 6vw, 80px); }
.hero .wrap { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { max-width: 11ch; }
.hero .lead { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 34ch; }
.hero .actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.hero .note { color: var(--muted); font-size: 0.95rem; }

/* the wire: what happens to one message */
.wire {
  margin: 0; position: relative; background: var(--panel); color: var(--panel-ink);
  border-radius: 30px; padding: clamp(22px, 3.4vw, 34px); overflow: hidden;
}
.wire .who { display: block; font-size: 0.86rem; color: var(--panel-soft); margin-bottom: 8px; }
.station.them { text-align: end; }
.station.them .who { text-align: end; }
.bubble {
  display: inline-block; max-width: 85%; padding: 12px 16px; border-radius: 20px;
  font-size: 1.15rem; line-height: 1.35; unicode-bidi: plaintext;
}
.bubble.out { background: var(--mint); color: #0C1A11; border-end-start-radius: 6px; }
.bubble.in { background: #1E3226; color: var(--panel-ink); border-end-end-radius: 6px; }
.line { position: relative; height: 46px; margin-inline-start: 26px; border-inline-start: 2px dashed #2D4636; }
.line.second { margin-inline-start: auto; margin-inline-end: 26px; border-inline-start: 0; border-inline-end: 2px dashed #2D4636; width: 0; }
.packet {
  position: absolute; inset-inline-start: -6px; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--mint); opacity: 0;
}
.line.second .packet { inset-inline-start: auto; inset-inline-end: -6px; }
.station.srv {
  border: 1px solid #23392B; border-radius: 18px; padding: 14px 16px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 8px, transparent 8px 16px);
}
.cipher {
  font-family: "Bricolage", ui-sans-serif, system-ui, sans-serif; font-optical-sizing: auto;
  font-size: clamp(1rem, 1.7vw, 1.2rem); letter-spacing: 0.04em; color: #CFE9D4;
  word-break: break-all; direction: ltr; text-align: left; line-height: 1.45; min-height: 2.9em;
}
.wire figcaption { margin-top: 18px; color: var(--panel-soft); font-size: 0.95rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.replay {
  font: inherit; font-size: 0.92rem; color: var(--panel-ink); background: transparent; cursor: pointer;
  border: 1px solid #2D4636; border-radius: 999px; min-height: 40px; padding: 0 14px; display: none;
}
.js .replay { display: inline-flex; align-items: center; gap: 8px; }
.replay:hover { border-color: var(--mint); }
.replay svg { width: 16px; height: 16px; }

/* animation states (only when JS runs and motion is fine) */
.wire.run .station.you .bubble { animation: pop 0.45s ease-out both; }
.wire.run .line.first .packet { animation: travel 0.7s 0.45s ease-in-out both; }
.wire.run .line.second .packet { animation: travel 0.7s 1.75s ease-in-out both; }
.wire.run .station.srv { animation: glow 1.3s 0.9s ease-in-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes travel { 0% { opacity: 0; top: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 10px); } }
@keyframes glow { 0%, 100% { border-color: #23392B; } 40% { border-color: var(--mint); } }

/* ---------- features ---------- */
.features { padding-block: clamp(20px, 4vw, 40px) clamp(56px, 8vw, 110px); }
.features > .wrap > h2 { max-width: 16ch; margin-bottom: clamp(28px, 5vw, 56px); }
.feature { display: grid; gap: 26px; align-items: center; padding-block: clamp(30px, 5vw, 58px); border-top: 1px solid var(--haze); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
  .feature:nth-of-type(even) .stage { order: -1; }
}
.feature > div:first-child > p { margin-top: 14px; color: var(--muted); max-width: 42ch; font-size: 1.1rem; }

.mock {
  background: var(--surface); border: 1px solid var(--haze); border-radius: 26px;
  padding: clamp(18px, 2.6vw, 26px); justify-self: center; width: min(100%, 440px);
}
.mock .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--haze); }
.mock .row:last-child { border-bottom: 0; }
.mock .state { color: var(--muted); }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--mint); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-end: 3px; width: 22px; height: 22px; border-radius: 50%; background: #0C1A11; }
.mock .head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--haze); font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(140deg, #C9E9CF, #7DBB8C); }
.avatar.b { background: linear-gradient(140deg, #D7D3F2, #8E86C7); }
.avatar.c { background: linear-gradient(140deg, #F4D9C5, #D79C74); }
.ghost-ico { width: 26px; height: 26px; color: var(--ink); flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--haze); font-size: 0.95rem; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.mini-bubble { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px; background: var(--mint); color: #0C1A11; border-end-start-radius: 6px; }
.mini-bubble svg { width: 16px; height: 16px; }
.label { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }

.near { display: flex; align-items: center; gap: 10px; padding: 6px 0 16px; }
.near .wave { flex: 1; height: 2px; background-image: linear-gradient(90deg, var(--moss) 0 6px, transparent 6px 12px); background-size: 12px 2px; opacity: 0.55; }
.near .bt { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #0C1A11; flex: none; }
.near .bt svg { width: 22px; height: 22px; }
.offline-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }
.offline-tag svg { width: 18px; height: 18px; }

.call { display: flex; align-items: center; gap: 14px; }
.call .meta { flex: 1; }
.call .meta b { display: block; }
.call .meta span { color: var(--muted); font-size: 0.95rem; }
.lockline { display: inline-flex; align-items: center; gap: 6px; color: var(--moss); font-size: 0.92rem; font-weight: 700; margin-top: 14px; }
.lockline svg { width: 15px; height: 15px; }
.code { direction: ltr; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 6px 10px; margin-top: 10px; font-family: "Bricolage", ui-sans-serif, system-ui, sans-serif; font-size: 1.05rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

.radio { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--haze); }
.radio:last-child { border-bottom: 0; }
.radio i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); flex: none; position: relative; }
.radio.on i { border-color: var(--moss); }
.radio.on i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--moss); }

.product .pic { position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, transparent 0 62%, #EDE3D3 62% 100%), radial-gradient(circle at 50% 30%, rgba(255, 214, 140, 0.35), transparent 45%), linear-gradient(160deg, #2E4A3A, #16271D); }
.product .pic::before { content: ""; position: absolute; left: 50%; top: 12%; width: 6%; aspect-ratio: 1; transform: translateX(-50%) rotate(-45deg); border-radius: 50% 0 50% 50%; background: radial-gradient(circle at 60% 60%, #FFF4D6 0 25%, #FFC75A 60%, #F29A2E 100%); box-shadow: 0 0 24px 6px rgba(255, 190, 90, 0.45); }
.product .pic::after { content: ""; position: absolute; left: 50%; top: 30%; width: 22%; height: 48%; transform: translateX(-50%); border-radius: 8px 8px 12px 12px; background: linear-gradient(90deg, #E9DFCD, #FBF7EF 45%, #E2D5BF); box-shadow: 0 10px 18px -8px rgba(0,0,0,0.35); }
.product .wick { position: absolute; left: 50%; top: 21%; width: 2px; height: 10%; transform: translateX(-50%); background: #3B2E22; border-radius: 1px; }
.product .info { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; }
.product .info b { font-size: 1.1rem; }
.product .price { font-weight: 700; color: var(--moss); white-space: nowrap; }
.btn-ghost { margin-top: 14px; display: block; text-align: center; padding: 11px; border-radius: 14px; border: 1px solid var(--haze); font-weight: 700; }

.duel .score { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 0 16px; font-family: "Bricolage", ui-sans-serif, system-ui, sans-serif; font-size: 2.4rem; font-weight: 760; direction: ltr; }
.duel .score small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.duel .turn { display: block; text-align: center; padding: 11px; border-radius: 14px; background: var(--mint); color: #0C1A11; font-weight: 700; }
.badge { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 0.95rem; text-align: center; unicode-bidi: plaintext; }

/* ---------- everyday ---------- */
.more { padding-block: clamp(48px, 7vw, 96px); background: var(--surface); border-block: 1px solid var(--haze); }
.more h2 { max-width: 18ch; }
.more ul { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0 48px; }
@media (min-width: 760px) { .more ul { grid-template-columns: 1fr 1fr; } }
.more li { padding: 16px 0; border-bottom: 1px solid var(--haze); display: flex; gap: 14px; align-items: baseline; font-size: 1.08rem; }
.more li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); flex: none; transform: translateY(-2px); }

/* ---------- trust ---------- */
.trust { padding-block: clamp(56px, 8vw, 110px); }
.trust .grid { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 860px) { .trust .grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.trust .item { border-top: 3px solid var(--ink); padding-top: 16px; }
.trust .item h3 { font-size: 1.35rem; }
.trust .item p { margin-top: 10px; color: var(--muted); }
.trust .fine { margin-top: 34px; color: var(--muted); max-width: 70ch; font-size: 0.98rem; }
.trust .links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* ---------- end ---------- */
.end { background: var(--mint); color: #0C1A11; padding-block: clamp(56px, 8vw, 100px); }
.end .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .end .wrap { grid-template-columns: auto 1fr auto; gap: 40px; } }
.end img { width: clamp(84px, 10vw, 120px); height: auto; }
.end h2 { color: #0C1A11; max-width: 22ch; }
.end p { margin-top: 10px; color: #23402D; font-size: 1.1rem; }
.end .play { background: #0C1A11; color: #F4F8F3; }

/* ---------- footer ---------- */
.foot { padding-block: 34px 44px; font-size: 0.95rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-inline-end: auto; }
.foot a { color: var(--ink); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 60px; }
.nf .wrap { display: grid; justify-items: center; gap: 18px; }
.nf img { width: 96px; height: 96px; }
.nf p { color: var(--muted); max-width: 38ch; }

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

/* ================= v2: phone pictures drawn after the app's own layouts ================= */
[dir="rtl"] .flip { transform: scaleX(-1); }

.phone {
  --w: 272px;
  position: relative; width: var(--w); aspect-ratio: 9 / 19.5; flex: none;
  font-size: calc(var(--w) * 0.0485); line-height: 1.3; letter-spacing: 0;
  padding: 0.55em; border-radius: 3.1em; background: #131915; color: #131313;
  font-family: var(--app); text-align: start;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 44px 80px -34px rgba(16, 38, 26, 0.6), 0 14px 28px -14px rgba(16, 38, 26, 0.35);
}
.phone svg { display: block; flex: none; }
.phone .scr { position: relative; height: 100%; border-radius: 2.6em; overflow: hidden; background: #F0F0F0; display: flex; flex-direction: column; }
.phone .scr::before { content: ""; position: absolute; z-index: 3; top: 0.6em; left: 50%; width: 0.72em; height: 0.72em; border-radius: 50%; background: #131915; transform: translateX(-50%); }
.phone .sb { display: flex; justify-content: space-between; align-items: center; padding: 0.55em 1.7em 0.3em; font-size: 0.72em; min-height: 2.6em; }
.phone .sb b { font-weight: 600; }
.phone .sys { display: flex; gap: 0.3em; align-items: center; }
.phone .sb .sys svg { width: 1.25em; height: 1.25em; }

/* toolbar + search, as on the chats tab */
.phone .tb { display: flex; gap: 0.4em; padding: 0.4em 0.9em 0.5em; }
.phone .ib { width: 2.6em; height: 2.6em; border-radius: 0.95em; background: #B6E6BD; display: grid; place-items: center; color: #3F5C46; flex: none; }
.phone .ib svg { width: 1.3em; height: 1.3em; }
.phone .ib.gh { color: #5D7563; }
.phone .ib.gh svg { width: 1.45em; height: 1.45em; }
.phone .ib.gh.on { background: #10261A; color: #B6E6BD; box-shadow: 0 0 0 0.22em rgba(182, 230, 189, 0.9); }
.phone .sr { flex: 1; min-width: 0; display: flex; align-items: center; height: 2.6em; border-radius: 0.95em; background: #B6E6BD; overflow: hidden; }
.phone .sq { width: 2.6em; height: 2.6em; border-radius: 0.95em; background: #A3D1AA; display: grid; place-items: center; color: #2F4A36; flex: none; }
.phone .sq svg { width: 1.35em; height: 1.35em; }
.phone .ph { padding-inline: 0.7em; color: #56695A; font-size: 0.86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* avatars and story rings */
.phone .av, .ch .av { display: block; width: 3.2em; height: 3.2em; border-radius: 50%; overflow: hidden; flex: none; background: #D9D9D9; }
.phone .av img, .ch .av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.phone .av.ring, .ch .av.ring { padding: 0.19em; background: linear-gradient(180deg, #CA5151, #B1B826); }
.phone .av.ring img, .ch .av.ring img { border: 0.13em solid #F0F0F0; }
.phone .av.own { display: grid; place-items: center; background: #A9D9B1; }
.phone .av.own svg { width: 62%; height: 62%; }
.phone .st { display: flex; gap: 0.6em; padding: 0.35em 0.95em 0.55em; }
.phone .st .av { width: 3.9em; height: 3.9em; }
.phone .st .av.own { box-shadow: inset 0 0 0 0.19em #D6B76A, inset 0 0 0 0.32em #F0F0F0; }

/* chat list rows */
.phone .list { display: flex; flex-direction: column; gap: 0.5em; padding: 0.25em 0.8em; }
.ch { display: flex; align-items: center; gap: 0.6em; background: #E6E6E6; border-radius: 1.55em; padding: 0.55em; color: #131313; font-family: var(--app); text-align: start; }
.ch > .av { width: 3.6em; height: 3.6em; }
.ch .cd { position: relative; flex: 1; min-width: 0; background: #F3F3F3; border-radius: 1em; padding: 0.5em 0.7em 0.55em; }
.ch .nm { display: flex; align-items: center; gap: 0.25em; font-size: 1em; font-weight: 700; white-space: nowrap; overflow: hidden; padding-inline-end: 1.8em; }
.ch .vf { width: 1.05em; height: 1.05em; flex: none; }
.ch .ln { display: flex; align-items: center; gap: 0.35em; font-size: 0.74em; color: #474747; margin-top: 0.15em; }
.ch .ln i { width: 5.4em; height: 1px; background: #474747; opacity: 0.75; }
.ch .lm { display: flex; align-items: center; gap: 0.3em; font-size: 0.8em; color: #474747; margin-top: 0.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline-end: 1.6em; }
.ch .lm svg { width: 1.1em; height: 1.1em; }
.ch .un { position: absolute; top: 0.5em; inset-inline-end: 0.55em; min-width: 1.6em; height: 1.6em; padding: 0 0.3em; border-radius: 1em; background: #A6DBAE; color: #fff; font-size: 0.72em; font-weight: 700; display: grid; place-items: center; }
.ch .tk { position: absolute; bottom: 0.5em; inset-inline-end: 0.55em; width: 1.3em; height: 1.3em; color: #7C8B7F; }
.ch .store { width: 2.3em; height: 2.3em; color: #2E2E2E; flex: none; margin-inline-end: 0.35em; }
.ch .store svg { width: 100%; height: 100%; }

/* one chat */
.phone .hd { display: flex; align-items: center; gap: 0.5em; padding: 0.35em 0.8em 0.65em; background: #fff; border-bottom: 1px solid #ECECEC; }
.phone .bk svg { width: 1.5em; height: 1.5em; }
.phone .hd .av { width: 2.6em; height: 2.6em; }
.phone .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phone .who b { font-size: 0.98em; }
.phone .who small { font-size: 0.7em; color: #5C5C5C; display: flex; align-items: center; gap: 0.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .who small svg { width: 1.15em; height: 1.15em; }
.phone .who small.on { color: #2E7D32; }
.phone .who small.bt { color: #1E6FD9; }
.phone .hd .ic { display: flex; gap: 0.65em; color: #333; }
.phone .hd .ic svg { width: 1.35em; height: 1.35em; }
.phone .msgs { flex: 1; display: flex; flex-direction: column; gap: 0.6em; padding: 1em 0.85em; background: #fff; }
.phone .msgs .sys { align-self: center; display: flex; gap: 0.35em; align-items: center; font-size: 0.7em; background: #EAF5EC; color: #2C6A43; padding: 0.45em 0.85em; border-radius: 1em; text-align: center; margin-bottom: 0.3em; }
.phone .msgs .sys svg { width: 1.2em; height: 1.2em; }
.phone .bb { max-width: 82%; display: flex; flex-direction: column; }
.phone .bb.you { align-self: flex-start; }
.phone .bb.me { align-self: flex-end; }
.phone .bb p { padding: 0.55em 0.85em; border-radius: 1em; font-size: 0.9em; display: flex; gap: 0.35em; align-items: center; unicode-bidi: plaintext; }
.phone .bb p svg { width: 1.05em; height: 1.05em; color: #2C6A43; }
.phone .bb.you p { background: #E6E6E6; border-end-start-radius: 0.2em; }
.phone .bb.me p { background: #B2DDB8; border-end-end-radius: 0.2em; }
.phone .bb small { font-size: 0.62em; color: #8A8A8A; margin-top: 0.25em; display: flex; gap: 0.2em; align-items: center; }
.phone .bb.me small { justify-content: flex-end; }
.phone .bb small .tk { width: 1.4em; height: 1.4em; color: #4FA35E; }
.phone .in { display: flex; gap: 0.5em; padding: 0.5em 0.8em 1.3em; background: #fff; }
.phone .fld { flex: 1; min-width: 0; background: #F0F0F0; border-radius: 1.4em; padding: 0.65em 0.95em; font-size: 0.8em; color: #8A8A8A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .mic { width: 2.4em; height: 2.4em; border-radius: 50%; background: #B6E6BD; display: grid; place-items: center; color: #2F4A36; flex: none; }
.phone .mic svg { width: 1.2em; height: 1.2em; }

/* the duel card inside a chat */
.phone .duelmsg { align-self: flex-start; width: 84%; background: #fff; border: 1px solid #E3E3E3; border-radius: 1.1em; padding: 0.75em; box-shadow: 0 0.5em 1.2em -0.8em rgba(0, 0, 0, 0.35); }
.phone .dh { display: flex; gap: 0.4em; align-items: center; font-size: 0.9em; }
.phone .vs { display: flex; align-items: center; justify-content: space-between; margin: 0.65em 0.2em; }
.phone .vs .av { width: 2.7em; height: 2.7em; }
.phone .vs b { font-family: "Bricolage", var(--app); font-size: 1.7em; font-weight: 760; }
.phone .go { display: block; text-align: center; background: #B6E6BD; border-radius: 0.8em; padding: 0.55em; font-weight: 700; font-size: 0.85em; color: #0C1A11; }

/* a story */
.phone.dark .scr { background: radial-gradient(120% 70% at 20% 10%, #3F8A5A 0%, transparent 60%), linear-gradient(165deg, #2C6A43, #0E1B13 75%); color: #fff; }
.phone.dark .scr::before { background: #000; }
.phone .story { flex: 1; display: flex; flex-direction: column; padding: 0.2em 0.9em 1.3em; }
.phone .bars { display: flex; gap: 0.3em; }
.phone .bars i { flex: 1; height: 0.2em; border-radius: 0.2em; background: rgba(255, 255, 255, 0.32); }
.phone .bars i.done { background: #fff; }
.phone .bars i.now { background: linear-gradient(90deg, #fff 58%, rgba(255, 255, 255, 0.32) 58%); }
[dir="rtl"] .phone .bars i.now { background: linear-gradient(270deg, #fff 58%, rgba(255, 255, 255, 0.32) 58%); }
.phone .sh { display: flex; align-items: center; gap: 0.5em; margin-top: 0.75em; }
.phone .sh .av { width: 2.4em; height: 2.4em; box-shadow: 0 0 0 0.12em #fff; }
.phone .sh b { font-size: 0.92em; }
.phone .txt { flex: 1; display: grid; place-items: start center; text-align: center; font-family: var(--display); font-size: 1.85em; font-weight: 760; line-height: 1.12; letter-spacing: -0.02em; padding: 0.9em 0.3em 2.5em; unicode-bidi: plaintext; }
.phone .rp { display: flex; align-items: center; gap: 0.6em; }
.phone .rp .fld { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.phone .rp svg { width: 1.6em; height: 1.6em; }

/* the business tab */
.phone.biz .sb, .phone .bz { background: #B6E6BD; }
.phone .bz { display: flex; align-items: center; gap: 0.6em; padding: 0.7em 0.95em 1.2em; margin-bottom: 0.5em; }
.phone .bz b { font-size: 1.08em; font-weight: 600; }

/* a video call photo */
.vcall { position: relative; width: min(330px, 70%); aspect-ratio: 720 / 1054; border-radius: 30px; overflow: hidden; flex: none; background: #2A2A2A;
  box-shadow: 0 44px 80px -34px rgba(16, 38, 26, 0.6), 0 14px 28px -14px rgba(16, 38, 26, 0.35); font-family: var(--app); }
.vcall img { width: 100%; height: 100%; object-fit: cover; }
.vcall .top { position: absolute; inset: 0 0 auto; padding: 16px 18px 46px; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); color: #fff; display: flex; flex-direction: column; gap: 3px; }
.vcall .top b { font-size: 1.05rem; display: flex; justify-content: space-between; gap: 10px; }
.vcall .top b bdi { font-weight: 500; font-size: 0.85rem; opacity: 0.9; }
.vcall .top span { font-size: 0.8rem; display: inline-flex; gap: 6px; align-items: center; }
.vcall .top svg { width: 13px; height: 13px; }
.vcall .ctl { position: absolute; bottom: 16px; left: 16px; display: flex; gap: 10px; }
.vcall .ctl span { width: 42px; height: 42px; border-radius: 50%; background: rgba(20, 20, 20, 0.38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center; color: #fff; }
.vcall .ctl .end { background: #E5484D; }
.vcall .ctl svg { width: 21px; height: 21px; }

.stage .codecard { width: min(300px, 68%); }
.codecard .code { font-size: 0.95rem; letter-spacing: 0.03em; gap: 6px 8px; }

/* stages: a phone rising from the bottom with one card from the app on top */
.stage {
  position: relative; width: 100%; height: clamp(470px, 44vw, 540px); border-radius: 34px; overflow: hidden;
  background: var(--stage);
}
.stage.alt { background: var(--stage-alt); }
.stage .phone, .stage .vcall { position: absolute; top: 46px; inset-inline-start: 11%; }
.stage.alt .phone, .stage.alt .vcall { inset-inline-start: auto; inset-inline-end: 11%; }
.stage .float { position: absolute; z-index: 2; inset-inline-end: 5%; bottom: 7%; width: min(272px, 60%); box-shadow: 0 30px 60px -26px rgba(16, 38, 26, 0.5), 0 6px 14px -8px rgba(16, 38, 26, 0.2); }
.stage.alt .float { inset-inline-end: auto; inset-inline-start: 5%; }
.stage .phone.dark + .float { bottom: 4%; }
.mock.float { justify-self: auto; }
.label.first, .lockline.first { margin-top: 0; }
.mock .head:only-child { border: 0; }

.pav { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(140deg, #C9E9CF, #7DBB8C); }
.pav img { width: 100%; height: 100%; object-fit: cover; }
.pav.big { width: 78px; height: 78px; }
.profile { display: grid; justify-items: center; gap: 6px; text-align: center; }
.profile .pname { font-size: 1.15rem; }
.profile .badge { margin-top: 4px; }
.btcard .near { padding-top: 2px; }

/* hero picture */
.hero-art { --w: 300px; --em: calc(var(--w) * 0.0485); position: relative; display: flex; justify-content: center; padding-block: 12px; }
.hero-art .phone { --w: inherit; }
.hero-art .disc { position: absolute; width: min(540px, 96%); aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--mint); opacity: 0.6; }
@media (prefers-color-scheme: dark) {
  .hero-art .disc { opacity: 0.16; }
  .phone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 44px 80px -34px rgba(0, 0, 0, 0.7); }
}
.hero-art .lift {
  position: absolute; z-index: 2; font-size: calc(var(--em) * 1.12); width: calc(var(--w) * 1.02);
  top: calc(12px + var(--em) * 10.6); inset-inline-start: calc(50% - var(--w) * 0.5 - var(--em) * 2.6);
  box-shadow: 0 0 0 0.22em #fff, 0 30px 50px -22px rgba(16, 38, 26, 0.55);
}

/* trust: the wire sits next to what we can't read */
.tgrid { display: grid; gap: 40px; }
@media (min-width: 980px) { .tgrid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.trust .items { display: grid; gap: 22px; margin-top: 30px; }

@media (max-width: 980px) {
  .hero-art { --w: 270px; }
}
@media (max-width: 560px) {
  .stage { height: 470px; border-radius: 28px; }
  .stage .phone { --w: 232px; top: 36px; inset-inline-start: 6%; }
  .stage.alt .phone { inset-inline-end: 6%; }
  .stage .vcall { width: 62%; top: 36px; inset-inline-start: 6%; }
  .stage.alt .vcall { inset-inline-end: 6%; }
  .stage .float { width: 66%; inset-inline-end: 4%; bottom: 5%; font-size: 0.95rem; padding: 16px; }
  .stage.alt .float { inset-inline-start: 4%; }
  .hero-art { --w: 248px; }
  .hero-art .lift { inset-inline-start: calc(50% - var(--w) * 0.5 - var(--em) * 1.4); }
}

/* ================= v5: the live message demo sits under the button: three boxes one under the other ================= */
.hero { padding-top: clamp(20px, 4vw, 44px); }
.hero .wire { margin-top: 32px; border-radius: 26px; max-width: 600px; }
.hero .wire .line { height: 30px; }
@media (min-width: 980px) { .hero-art { --w: 284px; } }
