/* Typeflip landing page.
   Concept: the page talks like a chat. Huge type, one line per idea, and real bubbles in eleven scripts.
   White page, a soft mist for panels, the keyboard's grey where keyboards are, and a dark ending.
   The brand gradient (#FF6A3D → #FF2D7A) only on things you'd tap: the arrow, the chips, the store button's key. */

:root {
  --paper: #FFFFFF;
  --mist: #F3F4F7;
  --grey: #D5D7DD;      /* the keyboard */
  --rule: #E3E5EA;
  --cap: #FFFFFF;
  --ink: #15161C;
  --muted: #6A6E79;
  --night: #0E0F14;
  --start: #FF6A3D;
  --end: #FF2D7A;
  --bubble: #0A84FF;
  --end-text: #C41F5E;
  --link: #0066CC;
  --shadow: 0 1px 0 rgba(35, 37, 47, 0.28);
  --lift: 0 1px 2px rgba(21, 22, 28, .05), 0 18px 40px -16px rgba(21, 22, 28, .22);
  --display: "Rubik", system-ui, sans-serif;
  --text: "Rubik", system-ui, sans-serif;
  --ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ar: "Noto Sans Arabic", var(--text);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --wide: 76rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[lang="ar"] { font-family: var(--ar); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(3rem, 8.4vw, 7.4rem); line-height: .98; font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.3rem, 4.8vw, 4rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
[lang="he"] h1, [lang="he"] h2, [lang="ar"] h1, [lang="ar"] h2 { letter-spacing: -0.015em; line-height: 1.05; }
[lang="ru"] h1 { font-size: clamp(2.7rem, 7.2vw, 6.4rem); }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--bubble); outline-offset: 3px; border-radius: 6px; }

main > section { padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); max-width: var(--wide); margin: 0 auto; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
}
.top-in, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--wide); margin: 0 auto; padding: .8rem var(--gutter); }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 700 1.1875rem var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo-key { display: inline-grid; place-items: center; width: 2.4rem; height: 1.55rem; border-radius: 1rem; background: linear-gradient(135deg, var(--start), var(--end)); }
.logo-key svg, .arrow svg, .store svg, .finale-key svg { width: 1rem; height: 1rem; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.logo.small { font-size: 1rem; }
.tagline { display: none; }
.top-end { display: flex; align-items: center; gap: .6rem; }

.lang { position: relative; }
.lang summary {
  list-style: none; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  font-size: .875rem; font-weight: 500; padding: .45rem .8rem; border-radius: 999px; background: var(--mist);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 1rem; height: 1rem; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); z-index: 30; list-style: none; margin: 0; padding: .35rem;
  min-width: 9.5rem; background: var(--paper); border-radius: .9rem; border: 1px solid var(--rule); box-shadow: var(--lift);
}
.lang a { display: block; padding: .5rem .75rem; border-radius: .55rem; color: var(--ink); text-decoration: none; }
.lang a:hover { background: var(--mist); }
.lang a[aria-current="page"] { color: var(--end-text); font-weight: 600; }

/* The App Store button: a dark pill with the arrow key in it. */
.store {
  display: inline-flex; align-items: center; gap: .7rem; padding: .5rem 1.25rem .5rem .5rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .2s cubic-bezier(.2, .8, .3, 1.2);
}
[dir="rtl"] .store { padding: .5rem .5rem .5rem 1.25rem; }
.store svg { box-sizing: content-box; padding: .5rem .75rem; border-radius: 999px; background: linear-gradient(135deg, var(--start), var(--end)); }
a.store:hover { transform: translateY(-2px); }
.store.soon { cursor: default; }
.store.big { font-size: 1.0625rem; }
.store.light { background: #fff; color: var(--ink); }
.store.top-store { font-size: .875rem; gap: .5rem; padding: .3rem .9rem .3rem .3rem; }
[dir="rtl"] .store.top-store { padding: .3rem .3rem .3rem .9rem; }
.store.top-store svg { width: .8rem; height: .8rem; padding: .3rem .55rem; }

/* ---------- Hero: centered, the type does the talking ---------- */
.hero { text-align: center; padding-top: clamp(2.5rem, 6vw, 5rem) !important; padding-bottom: 0 !important; }
.hero-copy { display: grid; justify-items: center; }
.hero h1 { max-width: 13ch; }
[lang="ru"] .hero h1 { max-width: 14ch; }
.lede { margin-top: 1.6rem; max-width: 31rem; font-size: clamp(1.15rem, 1.7vw, 1.375rem); line-height: 1.45; color: var(--muted); }
.hero-cta { margin-top: 2.2rem; }
.works-in { margin-top: 1rem; color: var(--muted); font-size: .875rem; }

/* The one loud moment: a sent bubble that flips from one language to the next. */
.hello { margin: 0 0 1.75rem; height: 3.6rem; display: flex; align-items: center; justify-content: center; perspective: 600px; }
.hello-bubble {
  display: inline-block; padding: .7rem 1.35rem; border-radius: 1.6rem; border-end-end-radius: .45rem;
  background: var(--bubble); color: #fff; font-size: 1.4rem; font-weight: 500; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(10, 132, 255, .6);
  transform-origin: 50% 50%; backface-visibility: hidden; transition: transform .32s cubic-bezier(.5, 0, .5, 1), opacity .32s;
}
.hello-bubble.out-going { transform: rotateX(90deg); opacity: .4; }
.hello-bubble.in-coming { transform: rotateX(-90deg); opacity: .4; transition: none; }
.hello-bubble[lang="ar"] { font-family: var(--ar); }

/* The phone stands in a soft glow of the brand colours. */
.stage { position: relative; margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; justify-items: center; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; z-index: -1; width: min(60rem, 140vw); aspect-ratio: 1.2; top: 2%; left: 50%; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at 38% 42%, rgba(255, 106, 61, .30), transparent 75%),
    radial-gradient(closest-side at 64% 52%, rgba(255, 45, 122, .26), transparent 75%),
    radial-gradient(closest-side at 50% 70%, rgba(10, 132, 255, .14), transparent 80%);
  filter: blur(30px);
}
.hero .phone-wrap { gap: 1.1rem; }
.hero .phone { box-shadow: 0 50px 90px -30px rgba(80, 20, 40, .45), 0 0 0 1px #3A3B42; }

/* ---------- River: the same message in eleven scripts, drifting ---------- */
.river {
  display: grid; gap: 1rem; padding: clamp(3.5rem, 7vw, 5.5rem) 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lane { overflow: hidden; }
.track { display: flex; gap: .9rem; width: max-content; animation: drift 70s linear infinite; }
.lane.rev .track { animation-direction: reverse; animation-duration: 80s; }
.track span {
  flex: none; padding: .7rem 1.3rem; border-radius: 1.5rem; border-end-start-radius: .45rem;
  background: var(--mist); color: var(--ink); font-size: clamp(1.05rem, 1.6vw, 1.35rem); white-space: nowrap;
}
.track span.me { background: var(--bubble); color: #fff; border-end-start-radius: 1.5rem; border-end-end-radius: .45rem; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- Features: a big line on one side, the thing itself on the other ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { max-width: 14ch; }
.feature-copy p { margin-top: 1.4rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--muted); max-width: 26rem; }
.panel { background: var(--mist); border-radius: 2.25rem; padding: clamp(1.5rem, 4vw, 2.75rem); }

/* Replies */
.replies-demo { display: grid; gap: 1rem; justify-items: start; }
.bubble-in { background: var(--cap); padding: .75rem 1.2rem; border-radius: 1.4rem; border-end-start-radius: .45rem; font-size: 1.1875rem; box-shadow: var(--shadow); }
.bubble-in[lang="ar"] { font-family: var(--ar); }
.mini-card { justify-self: stretch; background: var(--cap); border-radius: 1.4rem; padding: 1.25rem 1.35rem; box-shadow: var(--lift); display: grid; gap: .3rem; }
.mini-h { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.mini-b { font-size: 1.1875rem; font-weight: 500; }
.mini-sugs { display: grid; gap: .5rem; margin-top: .6rem; }
.mini-sugs span { position: relative; display: grid; background: var(--mist); border-radius: .9rem; padding: .65rem 2.3rem .65rem 1.15rem; font-size: 1.0625rem; }
.mini-sugs span[dir="rtl"] { padding: .65rem 1.15rem .65rem 2.3rem; }
.mini-sugs span::before { content: ""; position: absolute; inset-block: .65rem; inset-inline-start: .45rem; width: 3px; border-radius: 2px; background: linear-gradient(var(--start), var(--end)); }
.mini-sugs span::after { content: "↵"; position: absolute; inset-inline-end: .85rem; top: 50%; transform: translateY(-50%); color: var(--end); }
.mini-sugs small { font-size: .8125rem; color: var(--muted); text-align: start; }

/* Tones */
.source { font-size: 1.0625rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.chips button {
  font: 600 .9375rem var(--text); color: var(--ink); background: var(--cap); border: 0; border-radius: 999px;
  padding: .55rem 1.15rem; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s;
}
.chips button:active { transform: scale(.95); }
.chips button[aria-checked="true"] { color: #fff; background: linear-gradient(90deg, var(--start), var(--end)); box-shadow: 0 8px 20px -8px rgba(255, 45, 122, .7); }
.tones-demo .out {
  font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--display); min-height: 4.4em; color: #fff;
  background: var(--bubble); border-radius: 1.5rem; border-end-end-radius: .45rem; padding: 1.1rem 1.4rem;
}

/* Fix: the typo crossed out, the fixed message as a sent bubble */
.before-after { display: grid; gap: .5rem; justify-items: end; }
.before-after p { margin: 0; }
.before-after p:nth-child(3) { margin-top: 1.4rem; }
.was { font-size: 1.0625rem; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 45, 122, .75); text-decoration-thickness: 2px; }
.now {
  display: inline-block; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; color: #fff; background: var(--bubble);
  padding: .7rem 1.25rem; border-radius: 1.5rem; border-end-end-radius: .45rem;
}

/* ---------- Keyboards: a full-width band in the keyboard's grey ---------- */
main > section.langs { max-width: none; background: var(--grey); text-align: center; }
.langs-in { max-width: var(--wide); margin: 0 auto; display: grid; justify-items: center; }
.langs h2 { max-width: 14ch; }
.langs-lede { margin-top: 1.2rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: #50535D; }
.rows { list-style: none; margin: 3.5rem 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 3rem; text-align: start; }
.rows li { display: grid; gap: .5rem; }
.rows .name { font-size: .875rem; font-weight: 500; color: #50535D; }
.row { display: flex; gap: clamp(.2rem, .8vw, .35rem); }
.row b {
  flex: 1 1 0; min-width: 0; max-width: 3rem; aspect-ratio: .86; border-radius: .5rem;
  background: var(--cap); box-shadow: var(--shadow); display: grid; place-items: center; font-weight: 400; font-size: clamp(1rem, 1.9vw, 1.4rem);
}

/* ---------- Details: six short facts ---------- */
.details h2 { max-width: 16ch; }
.details dl { margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.details dl > div { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.details dt { font-weight: 600; font-size: 1.125rem; }
.details dd { margin: .35rem 0 0; color: var(--muted); }

/* ---------- Finale: dark, one statement, the store button ---------- */
main > section.finale { max-width: none; background: var(--night); color: #fff; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.finale::before {
  content: ""; position: absolute; z-index: -1; width: 44rem; aspect-ratio: 1; left: 50%; top: -22rem; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 45, 122, .38), rgba(255, 106, 61, .14) 55%, transparent); filter: blur(10px);
}
.finale-in { max-width: 52rem; margin: 0 auto; display: grid; justify-items: center; }
.finale-key {
  display: grid; place-items: center; width: 5.5rem; height: 3.5rem; border-radius: 2rem; margin-bottom: 2.25rem;
  background: linear-gradient(135deg, var(--start), var(--end)); box-shadow: 0 20px 50px -12px rgba(255, 45, 122, .7);
}
.finale-key svg { width: 1.8rem; height: 1.8rem; }
.finale h2 { max-width: 16ch; }
.finale p { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #A9ACB6; }
.finale p a { color: #fff; }
.finale .hero-cta { margin-top: 2.5rem; }

.foot { color: var(--muted); font-size: .9375rem; padding-top: 2rem; padding-bottom: 3rem; flex-wrap: wrap; }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy h2 { max-width: 14ch; }
  .rows { grid-template-columns: 1fr; }
  .details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenes { order: -2; }
  .caption { order: -1; }
}
@media (max-width: 560px) {
  .store.top-store { display: none; }
  .details dl { grid-template-columns: 1fr; gap: 1.75rem; }
  .phone { transform: scale(.92); transform-origin: top center; margin-bottom: -55px; }
  .panel { border-radius: 1.75rem; }
  .hello-bubble { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- The phone demo (also used inside the app) ---------- */
/* Phone */
.phone-wrap { margin: 0; display: grid; justify-items: center; gap: 1rem; }
.phone {
  position: relative; width: 340px; height: 690px; border-radius: 54px; overflow: hidden;
  background: #F2F2F7; border: 10px solid #1C1D22;
  box-shadow: 0 30px 60px -20px rgba(35, 37, 47, .45), 0 0 0 1px #3A3B42;
  display: flex; flex-direction: column; font-family: var(--ios);
}
.island { position: absolute; top: 10px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }

.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.chat-head { padding: 52px 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 3px; border-bottom: 1px solid #ECECEF; background: #F8F8FA; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(160deg, #A9ADB8, #7D828E); color: #fff; display: grid; place-items: center; font-weight: 600; }
.who { font-size: 12px; color: var(--ink); }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px 12px 8px; overflow: hidden; }
.msg { max-width: 78%; padding: 7px 12px; border-radius: 18px; font-size: 15px; line-height: 1.3; }
.msg.in { align-self: flex-start; background: #E9E9EB; color: #000; }
.msg.out { align-self: flex-end; background: var(--bubble); color: #fff; }
.msg.new { animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { transform: translateY(14px) scale(.92); opacity: 0; } }
.field { margin: 0 10px 8px; min-height: 34px; border: 1px solid #DADADE; border-radius: 18px; padding: 6px 12px; font-size: 15px; color: #000; }

/* The keyboard, drawn like ours */
.kb { position: relative; background: #D5D7DD; padding: 8px 0 30px; }
.bar { display: flex; align-items: center; gap: 8px; padding: 0 8px 10px; }
.tone, .send { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.chip { font-size: 10.5px; font-weight: 600; color: var(--end); background: rgba(255, 106, 61, .18); padding: 2px 8px; border-radius: 9px; }
.cap { font-size: 7.5px; color: #8A8D96; white-space: nowrap; }
/* מתחת לשורה, כמו במקלדת: הסבר קצר וארבעה צ׳יפים (תרגום, ניסוח, תיקון, תשובה). */
.modes { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mhint { font-size: 8.5px; color: #8A8D96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mhint.long { font-size: 6.6px; }
.mchips { display: flex; gap: 4px; }
.mchips span { font-size: 9.5px; font-weight: 600; padding: 3px 7px; border-radius: 10px; background: var(--cap); color: #1c1c1e; box-shadow: 0 1px 0 rgba(0, 0, 0, .1); transition: transform .15s; }
.mchips span.on { background: linear-gradient(90deg, var(--start), var(--end)); color: #fff; box-shadow: none; }
.mchips span.press { transform: scale(.9); }
.cap { text-align: center; line-height: 1.15; }
.field { display: flex; align-items: center; gap: 1px; }
.field #field-text { white-space: pre-wrap; }
.field .caret { height: 17px; }
.caret { width: 2px; height: 18px; background: var(--end); flex: none; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.arrow { display: grid; place-items: center; width: 40px; height: 27px; border-radius: 14px; background: linear-gradient(135deg, var(--start), var(--end)); transition: transform .15s; }
.arrow.press { transform: scale(.88); }
.arrow.busy svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.keys { display: grid; gap: 9px; padding: 0 3px; direction: ltr; } /* layouts are defined left to right, as in the app */
.krow { display: flex; justify-content: center; gap: var(--gap, 5px); }
.k {
  position: relative; flex: 0 0 auto; width: 26.5px; height: 40px; border-radius: 6px; background: var(--cap); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 19px; color: #000; line-height: 1;
}
.k.sp { background: #ABB0BA; font-size: 13px; }
.k.space { flex: 1; font-size: 12px; color: #8A8D96; }
.k.wide { width: 38px; }
.k.ret { width: 72px; }
.k.down::after {
  content: attr(data-c); position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 48px; border-radius: 9px; background: var(--cap); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  display: grid; place-items: center; font-size: 26px; z-index: 2;
}
.k.space.down, .k.sp.down { background: #9399A4; }
.k svg { width: 19px; height: 19px; fill: none; stroke: #000; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.picker {
  position: absolute; inset-inline-end: 8px; bottom: 100%; margin-bottom: -40px; width: 176px; padding: 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); font-size: 12px; z-index: 4;
}
.picker > span { display: block; color: #8A8D96; font-size: 11px; margin: 0 0 6px 4px; }
.picker ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.picker li { padding: 6px 8px; border-radius: 8px; }
.picker li.on { background: rgba(255, 45, 122, .12); color: var(--end); font-weight: 600; }

.caption { max-width: 340px; min-height: 3em; text-align: center; font-size: 1rem; color: var(--ink); }
.scenes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.scenes button {
  font: 500 .875rem var(--text); color: var(--muted); background: transparent; border: 0; border-radius: .45rem; padding: .45rem .7rem; cursor: pointer;
}
.scenes button[aria-selected="true"] { background: var(--cap); color: var(--ink); box-shadow: var(--shadow); }

/* Demo: reading a reply. The copy menu over the chat, the card over the bar (as in the keyboard). */
.chat { position: relative; }
.copy-menu {
  position: absolute; z-index: 3; padding: 7px 14px; border-radius: 10px; background: rgba(40, 40, 44, .92);
  color: #fff; font-size: 13px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.msg.lift { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); transition: transform .2s, box-shadow .2s; }
.clip {
  position: absolute; top: 6px; left: 8px; right: 8px; z-index: 3; border-radius: 12px; background: var(--cap);
  display: flex; flex-direction: column; gap: 7px; padding: 7px 9px 9px; box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.clip[hidden] { display: none; }
.clip-top { display: flex; align-items: center; gap: 8px; }
.clip-top[hidden] { display: none; }
.clip-x { color: #8A8D96; font-size: 11px; font-weight: 700; flex: none; }
.clip-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.clip-h { font-size: 10px; font-weight: 600; color: #8A8D96; }
.clip-b { font-size: 12.5px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-b.hint { color: #8A8D96; }
/* שני הכפתורים בשורה משלהם, כמו באפליקציה: ״תרגם״ במסגרת, ״תרגום ותשובה״ בולט. */
/* צ׳יפ הסגנון בכרטיס, מול ה-X (כמו הצ׳יפ שבפס). */
.clip-style { flex: none; font-size: 10px; font-weight: 600; color: var(--end); background: rgba(255, 106, 61, .16); padding: 3px 8px; border-radius: 9px; }
/* הטוען: שלוש נקודות קופצות בצבעי המותג, ומתחתיהן השלב. */
.clip-loader { display: grid; justify-items: center; gap: 6px; padding: 10px 0 6px; font-size: 11.5px; color: #8A8D96; }
.clip-loader[hidden] { display: none; }
.clip-loader .dots { display: flex; gap: 5px; height: 14px; align-items: flex-end; }
.clip-loader .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--start); animation: hop 1.1s ease-in-out infinite; }
.clip-loader .dots i:nth-child(2) { background: #FF4C5C; animation-delay: .15s; }
.clip-loader .dots i:nth-child(3) { background: var(--end); animation-delay: .3s; }
@keyframes hop { 0%, 45%, 100% { transform: translateY(0); opacity: .45; } 22% { transform: translateY(-7px); opacity: 1; } }
.clip-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.clip-btns[hidden] { display: none; }
.clip-btn {
  text-align: center; font-size: 11.5px; font-weight: 600; color: #fff; padding: 7px 8px; border-radius: 15px;
  background: linear-gradient(90deg, var(--start), var(--end)); transition: transform .15s;
}
.clip-btn.ghost { background: transparent; color: var(--end); box-shadow: inset 0 0 0 1.5px var(--end); }
.clip-btn.press { transform: scale(.94); }
.clip-btn.busy { color: transparent; position: relative; }
.clip-btn.busy::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite;
}
/* אחרי ״תרגום ותשובה״: מה שכתבו (מתורגם) ו-3 הצעות. */
.clip-reps { display: grid; gap: 5px; }
.clip-reps[hidden] { display: none; }
.theirs-cap { font-size: 9.5px; font-weight: 600; color: #8A8D96; }
.theirs { font-size: 12.5px; color: #000; margin-bottom: 2px; }
.rep { position: relative; background: rgba(0, 0, 0, .07); border-radius: 9px; padding: 6px 26px 6px 14px; display: grid; gap: 1px; transition: transform .15s, background .15s; }
.rep b { font-weight: 400; font-size: 12.5px; color: #000; }
.rep small { font-size: 10px; color: #8A8D96; text-align: start; }
.rep.press { transform: scale(.97); background: rgba(255, 45, 122, .18); }
.rep::before { content: ""; position: absolute; inset-block: 7px; inset-inline-start: 5px; width: 3px; border-radius: 2px; background: linear-gradient(var(--start), var(--end)); }
.rep::after { content: "↵"; position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); color: var(--end); font-size: 12px; }
.rep[dir="rtl"] { padding: 6px 14px 6px 26px; }
.bar.away { visibility: hidden; }

/* Footer links and the legal pages */
.foot-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.legal { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem) 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal .meta { margin-top: .5rem; color: var(--muted); }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 .6rem; }
.legal p, .legal li { line-height: 1.65; }
.legal p + p { margin-top: .8rem; }
.legal ul { margin: .6rem 0 0; padding-inline-start: 1.25rem; display: grid; gap: .5rem; }
.legal a { color: var(--link); }
.legal .note { margin-top: 2.5rem; color: var(--muted); font-size: .9375rem; }

/* Bubble sides follow the page's language: yours on the right in Hebrew, on the left side for theirs. */
[dir="rtl"] .before-after { justify-items: start; }
[dir="rtl"] .now, [dir="rtl"] .tones-demo .out { border-end-end-radius: 1.5rem; border-end-start-radius: .45rem; }
[dir="rtl"] .replies-demo .bubble-in { justify-self: end; }
@media (max-width: 560px) {
  .details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
  .details dt { font-size: 1rem; }
  .details dd { font-size: .9375rem; }
}

/* The scene tabs and the caption above the phone, on every screen size. */
.hero .scenes { order: -2; }
.hero .caption { order: -1; }

/* The scene tabs in the brand colours: the selected one filled with the gradient, the others in the brand's pink. */
.hero .scenes { gap: .4rem; }
.hero .scenes button { color: var(--end-text); padding: .5rem 1rem; border-radius: 999px; transition: background .2s, color .2s; }
.hero .scenes button:hover { background: rgba(255, 45, 122, .08); }
.hero .scenes button[aria-selected="true"] { color: #fff; background: linear-gradient(90deg, var(--start), var(--end)); box-shadow: 0 8px 20px -8px rgba(255, 45, 122, .7); }

/* Between the white sections: a brand-gradient hairline that fades at both ends. */
.feature + .feature, .river + .feature { position: relative; }
.feature + .feature::before, .river + .feature::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 61, .45) 30%, rgba(255, 45, 122, .45) 70%, transparent);
}
.river + .feature { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

/* Details, softer: each fact on a mist card, with a keycap on top drawing what it does. */
.details dl { gap: 1rem; }
.details dl > div {
  border-top: 0; padding: 1.6rem 1.6rem 1.75rem; border-radius: 1.75rem; background: var(--mist);
  display: grid; gap: .3rem; align-content: start;
}
.details dl > div::before {
  content: ""; width: 2.9rem; height: 2.9rem; margin-bottom: 1rem; border-radius: .7rem;
  background: var(--cap) var(--icon, none) center / 1.4rem no-repeat; box-shadow: 0 1px 0 rgba(35, 37, 47, .22), 0 6px 14px -8px rgba(35, 37, 47, .35);
  display: grid; place-items: center; font: 500 1.35rem/1 var(--text); color: var(--ink);
}
.details dl > div:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.details dl > div:nth-child(2)::before { content: "é"; }
.details dl > div:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M8 8l-4 4 4 4M16 8l4 4-4 4'/%3E%3C/svg%3E"); }
.details dl > div:nth-child(4) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c1-4 4-6 7-6s6 2 7 6'/%3E%3C/svg%3E"); }
.details dl > div:nth-child(5) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); }
.details dl > div:nth-child(6)::before { background: linear-gradient(135deg, var(--start), var(--end)); box-shadow: 0 8px 18px -8px rgba(255, 45, 122, .7); }
.details dt { font-size: 1.1875rem; }
.details dd { margin: 0; font-size: 1rem; line-height: 1.45; }
@media (max-width: 560px) {
  .details dl { gap: .75rem; }
  .details dl > div { padding: 1.2rem 1.15rem 1.3rem; border-radius: 1.4rem; }
  .details dl > div::before { width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; }
}
/* "Four colours": the keycap split into the four themes (light, dark, pink, sparkly pink). */
.details dl > div:nth-child(6)::before {
  background: conic-gradient(from 45deg, #E6E7EC 0 25%, #2A2B31 0 50%, #FFB3CF 0 75%, var(--end) 0);
  box-shadow: 0 1px 0 rgba(35, 37, 47, .22), 0 6px 14px -8px rgba(35, 37, 47, .35);
}
