:root{
  --bg:#f4f6f8;--surface:#fff;--fg:#0f1419;--muted:#56606b;--rule:#dbe1e7;
  --link:#1f6fb2;--primary:#1f6fb2;--on-primary:#fff;--tint:rgba(31,111,178,.1);
  --chat:#dfe8ef;--in:#fff;--out:#e1f7d0;--meta:#52677a;--meta-out:#4a6b45;--kbd:rgba(36,129,204,.14);--kbd-fg:#1a5f99;--btn:#1f6fb2;--on-btn:#fff;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}
/* dark follows Telegram's night theme so the page and the chat demos read as one surface */
@media (prefers-color-scheme:dark){:root{
  --bg:#121a23;--surface:#17212b;--fg:#f2f4f6;--muted:#9aa8b5;--rule:#26323e;
  --link:#62b1f0;--primary:#2f6ea5;--on-primary:#fff;--tint:rgba(98,177,240,.14);
  --chat:#0e1621;--in:#182533;--out:#2b5278;--meta:#8ea3b5;--meta-out:#c4d6e6;--kbd:rgba(98,177,240,.16);--kbd-fg:#8cc7f5;--btn:#2f6ea5;--on-btn:#fff;
}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.55 var(--sans)}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
a{color:var(--link);text-underline-offset:3px}
a:focus-visible,summary:focus-visible{outline:2px solid var(--link);outline-offset:3px;border-radius:6px}
h1,h2{font-weight:600;letter-spacing:-.025em;margin:0}
h1{font-size:clamp(38px,5.4vw,62px);line-height:1.04}
h2{font-size:clamp(28px,3.2vw,36px);line-height:1.15}
h3{font-size:16px;font-weight:600;margin:0 0 4px}
p{margin:0}
.muted{color:var(--muted)}
.label{font:13px/1 var(--mono);color:var(--muted);text-transform:lowercase}

/* buttons: one filled primary and an outline secondary */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 18px;border-radius:8px;background:var(--primary);color:var(--on-primary);font-weight:600;text-decoration:none;border:1px solid var(--primary)}
.btn:hover{opacity:.88}
.btn.outline,.btn.ghost{background:transparent;color:var(--fg);border-color:var(--rule)}
.btn.ghost{min-height:36px;padding:0 14px;white-space:nowrap}
.btn kbd{font:12px/1 var(--mono);padding:3px 6px;border-radius:4px;border:1px solid currentColor;opacity:.6}

header{border-bottom:1px solid var(--rule);background:var(--bg)}
/* three columns with equal sides: the nav stays centered on the page and the language switcher stays at the
   far end, so switching languages only changes the nav's own width around a fixed center */
header .wrap{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;height:60px}
.brand{display:flex;align-items:center;gap:10px;color:var(--fg);font-weight:600;font-size:16px;text-decoration:none;justify-self:start}
.brand svg{width:28px;height:28px;border-radius:8px}
nav{display:flex;gap:22px}
nav a{color:var(--muted);text-decoration:none;padding:6px 0}
nav a:hover{color:var(--fg)}
.head-end{display:flex;align-items:center;gap:10px;justify-self:end}
.head-end .lang{order:1}
/* language switcher: a no-script <details> dropdown */
details.lang{position:relative;border:0;padding:0}
.lang summary{display:flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border:1px solid var(--rule);border-radius:8px;
  list-style:none;font:13px/1 var(--mono);color:var(--fg);text-transform:uppercase}
.lang summary::-webkit-details-marker{display:none}
.lang summary::after{content:"";border:4px solid transparent;border-top:5px solid var(--muted);margin-top:5px}
.lang ul{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:10;min-width:200px;margin:0;padding:6px;list-style:none;
  background:var(--surface);border:1px solid var(--rule);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.lang a{display:block;padding:8px 10px;border-radius:6px;color:var(--fg);text-decoration:none}
.lang a:hover{background:var(--tint)}
.lang a[aria-current]{font-weight:600;color:var(--link)}
/* letter spacing breaks Arabic joining */
:lang(ar) h1,:lang(ar) h2{letter-spacing:0}
/* monospace fonts have no Arabic joining forms */
:lang(ar) .label,:lang(ar) .pills,:lang(ar) .lang summary{font-family:var(--sans)}
:lang(ar) .save{direction:ltr;unicode-bidi:isolate}

/* framed blocks with corner ticks */
.frame{position:relative;border:1px solid var(--rule);background:var(--surface)}
.c{position:absolute;width:11px;height:11px}
.c::before,.c::after{content:"";position:absolute;background:var(--muted);opacity:.7}
.c::before{left:0;top:5px;width:11px;height:1px}
.c::after{left:5px;top:0;width:1px;height:11px}
.c.tl{top:-6px;left:-6px}.c.tr{top:-6px;right:-6px}.c.bl{bottom:-6px;left:-6px}.c.br{bottom:-6px;right:-6px}

/* anchor jumps from the header stop with some room above the section title */
.section{margin-top:40px;scroll-margin-top:40px}
.section-head{max-width:820px;margin-bottom:16px}
.section-head p{color:var(--muted);margin-top:10px}

/* home hero: text and the chat demo side by side on wide screens so both fit the first screen;
   stacked and centered on narrow ones */
.hero-c{margin-top:24px;padding:40px 24px 32px;text-align:center}
.pills{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font:13px var(--mono);color:var(--muted);margin-bottom:28px}
.pills span{padding:5px 12px;border:1px solid var(--rule);border-radius:999px}
.hero-c .lead{margin:20px auto 0;max-width:34em}
.hero-c .cta{justify-content:center}
/* fixed height fits the longest translation, so the hero and everything below keep their place across languages;
   messages start at the top, right under the chat header */
.hero-c .chat{max-width:460px;margin:36px auto 0;text-align:start;height:590px;display:flex;flex-direction:column}
.hero-c .msgs{flex:1;padding-top:12px}
.hero-c .sizer,.hero-c .live{justify-content:flex-start}
@media (min-width:960px){
  .hero-c{display:grid;grid-template-columns:1fr 380px;gap:56px;align-items:center;padding:32px 56px;text-align:start}
  .hero-c h1{font-size:clamp(40px,4.2vw,54px)}
  .hero-c .lead{margin:20px 0 0}
  .hero-c .cta,.hero-c .pills{justify-content:flex-start}
  .hero-c .chat{margin:0;max-width:none;height:560px}
  /* a compact chat keeps the demo about as tall as the text column */
  .hero-c .photo{height:72px;font-size:40px}
  .hero-c .out .msg.post{width:240px}
}
/* guide pages keep a two-column hero */
.hero{display:grid;grid-template-columns:1fr 440px;gap:56px;align-items:center;padding:40px 0 8px}
.hero h1{font-size:clamp(32px,3.8vw,46px);margin-bottom:16px}
.lead{font-size:19px;color:var(--muted);max-width:30em}
.cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:28px}

/* Telegram-style chat. It replays the scheduling flow in a 14 s loop: messages are appended at the bottom like in
   Telegram (hidden ones take no height), and the chat box keeps its height, so the page around it never moves. */
.chat{background:var(--chat);border:1px solid var(--rule);border-radius:16px;overflow:hidden}
.chat-head{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--in)}
.chat-head svg{width:38px;height:38px;border-radius:50%}
.chat-head b{display:block;font-weight:600;line-height:1.2}
.chat-head span{font-size:13px;color:var(--meta)}
.msgs{display:grid;padding:0 12px 14px}
/* .sizer holds the finished conversation invisibly and sets the box height for any font and width; .live plays
   on top of it in the same grid cell */
.sizer,.live{grid-area:1/1;display:flex;flex-direction:column;justify-content:flex-end}
.sizer{visibility:hidden}
.row{display:flex;flex-direction:column;flex-shrink:0;overflow:hidden;margin-top:8px}
.msg{max-width:86%;padding:7px 11px 5px;border-radius:14px;background:var(--in);line-height:1.4}
.msg time{display:block;text-align:end;font-size:13px;color:var(--meta)}
/* flex-end/start follow the direction, so in RTL the outgoing bubble sits on the left like in Telegram */
.out{align-items:flex-end}.out .msg{background:var(--out);border-end-end-radius:4px}.out .msg time{color:var(--meta-out)}
.in{align-items:flex-start}.in .msg{border-end-start-radius:4px}
.photo{position:relative;display:grid;place-items:center;height:150px;margin:-3px -7px 6px;border-radius:8px;overflow:hidden;
  background:linear-gradient(135deg,#fde2bf,#f2a96b);font-size:64px;line-height:1}
.photo .wm{position:absolute;inset-inline-end:12px;bottom:10px;font:700 15px/1 var(--sans);color:#fff;opacity:.8;letter-spacing:.02em}
.out .msg.post{width:300px}
.kbd{display:flex;gap:6px;margin-top:6px}
.kbd span{padding:7px 14px;border-radius:8px;background:var(--kbd);color:var(--kbd-fg);font-weight:600}
.kbd.col{flex-direction:column}
.kbd.col span{text-align:center}
.typing{display:flex;gap:4px;padding:12px 14px}
.typing i{width:7px;height:7px;border-radius:50%;background:var(--meta);animation:bounce 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
.live .row{animation:14s infinite both}
.live .b0{animation-name:p0}.live .a1{animation-name:p1}.live .t1{animation-name:ty1}.live .a2{animation-name:p2}
.live .t2{animation-name:ty2}.live .a3{animation-name:p3}
.live .pick{animation:press 14s infinite both}
@keyframes p0{0%{opacity:0}3%,92%{opacity:1}97%,100%{opacity:0}}
@keyframes p1{0%,10%{opacity:0;max-height:0;margin-top:0}14%,92%{opacity:1;max-height:320px;margin-top:8px}97%,100%{opacity:0;max-height:320px;margin-top:8px}}
@keyframes ty1{0%,18%{opacity:0;max-height:0;margin-top:0}20%,26%{opacity:1;max-height:60px;margin-top:8px}28%,100%{opacity:0;max-height:0;margin-top:0}}
@keyframes p2{0%,27%{opacity:0;max-height:0;margin-top:0}31%,92%{opacity:1;max-height:200px;margin-top:8px}97%,100%{opacity:0;max-height:200px;margin-top:8px}}
@keyframes ty2{0%,48%{opacity:0;max-height:0;margin-top:0}50%,56%{opacity:1;max-height:60px;margin-top:8px}58%,100%{opacity:0;max-height:0;margin-top:0}}
@keyframes p3{0%,57%{opacity:0;max-height:0;margin-top:0}61%,92%{opacity:1;max-height:200px;margin-top:8px}97%,100%{opacity:0;max-height:200px;margin-top:8px}}
@keyframes press{0%,38%{background:var(--kbd);color:var(--kbd-fg);transform:none}40%,44%{background:var(--btn);color:var(--on-btn);transform:scale(.95)}47%,100%{background:var(--kbd);color:var(--kbd-fg);transform:none}}
@keyframes bounce{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-3px);opacity:1}}
@media (prefers-reduced-motion:reduce){
  .live .row,.live .pick{animation:none}
  .live .t1,.live .t2{display:none}
}

/* flow: boxes joined by lines, from the post to the channel */
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;padding:28px;list-style:none;margin:0}
.flow li{position:relative;border:1px solid var(--rule);border-radius:8px;padding:14px 16px;background:var(--bg)}
.flow li+li::before{content:"";position:absolute;inset-inline-start:-28px;top:50%;width:28px;height:1px;background:var(--muted)}
.flow li+li::after{content:"";position:absolute;inset-inline-start:-6px;top:calc(50% - 3px);border:3px solid transparent;border-inline-start:5px solid var(--muted)}
.flow b{display:block;font-weight:600}
.flow .label{display:block;margin-top:6px}

/* feature grid: one frame split into cells that share borders */
.grid2{display:grid;grid-template-columns:1fr 1fr}
.cell{display:flex;flex-direction:column;padding:24px}
.grid2 .cell:nth-child(odd){border-inline-end:1px solid var(--rule)}
.grid2 .cell:nth-child(n+3){border-top:1px solid var(--rule)}
.cell>p{color:var(--muted)}
/* the guide link moves to the next line as a whole instead of leaving its first word at the end of a line */
.cell>p a{display:inline-block}
.demo{flex:1;margin-top:16px;background:var(--chat);border-radius:8px;padding:12px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.demo .msg{max-width:100%}
.demo .kbd{margin-top:0;flex-wrap:wrap}
.plan-row{display:grid;grid-template-columns:76px 1fr auto;gap:10px;align-items:baseline;padding:8px 10px;border-radius:8px;background:var(--in)}
.plan-row time{font-weight:600}
.plan-row span{color:var(--meta);font-size:13px}
.mini-photo{position:relative;height:110px;border-radius:8px;display:grid;place-items:center;font-size:48px;background:linear-gradient(135deg,#fde2bf,#f2a96b)}
.also{color:var(--muted);margin-top:14px}

/* start steps: one strip, three cells */
.steps{display:grid;grid-template-columns:repeat(3,1fr);margin:0;padding:0;list-style:none}
.steps li{padding:20px 24px}
.steps li+li{border-inline-start:1px solid var(--rule)}
.steps .label{display:block;margin-bottom:10px}
/* taller lines leave room between the inline right chips when they wrap onto separate lines */
.steps p{color:var(--muted);line-height:1.85}
.chip{display:inline-block;padding:0 7px;line-height:22px;border-radius:8px;background:var(--tint);color:var(--link);font-size:13px;font-weight:600;white-space:nowrap}

.pricing{display:grid;grid-template-columns:1fr 1fr}
.pricing>div{padding:24px}
.pricing>div+div{border-inline-start:1px solid var(--rule)}
.price{font-size:36px;font-weight:600;letter-spacing:-.02em;line-height:1.2;margin:8px 0 8px}
.price small{font-size:16px;font-weight:400;color:var(--muted);letter-spacing:0}
.pricing p{color:var(--muted)}

.faq details{border-bottom:1px solid var(--rule);padding:14px 0}
.faq details:first-of-type{border-top:1px solid var(--rule)}
.faq summary{cursor:pointer;font-weight:600}
.faq details p{color:var(--muted);margin-top:8px}
.faq{margin-top:24px}
.section-head+.faq{margin-top:0}

/* closing call to action: one compact bar, text at the start and the button at the end */
.final{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:48px;padding:28px 32px}
.final h2{margin:0;font-size:28px}
.final p{color:var(--muted);margin-top:6px}
.final .cta{margin-top:0}
footer{margin-top:64px;border-top:1px solid var(--rule)}
footer .wrap{padding:16px 24px;font-size:13px;color:var(--muted);line-height:2}
footer a{display:inline-block;min-height:24px}

/* guide pages: long-form text under the hero */
.guide{max-width:44em}
.guide h2{margin:56px 0 14px}
.guide p+p,.guide p+ol,.guide p+ul,.guide ol+p,.guide ul+p{margin-top:14px}
.guide ol,.guide ul{margin:0;padding-inline-start:1.4em}
.guide li+li{margin-top:8px}

@media (max-width:900px){
  nav{display:none}
  header .wrap{display:flex;justify-content:space-between}
  .hero{grid-template-columns:1fr;gap:24px}
  .flow{grid-template-columns:1fr 1fr}
  .flow li:nth-child(3)::before,.flow li:nth-child(3)::after{display:none}
}
@media (max-width:700px){
  header .wrap{gap:10px}
  /* phones: logo and language switcher only, the hero right below carries the same call to action */
  header .head-end .btn{display:none}
  .btn.ghost{padding:0 12px}
  .wrap{padding:0 16px}
  .section{margin-top:32px}
  .hero-c{margin-top:16px;padding:28px 16px 20px}
  .pills{margin-bottom:20px}
  h1{font-size:34px}
  .hero-c h1{font-size:30px}
  /* the phone hero keeps one pill and one button so the chat starts on the first screen */
  .pills span+span{display:none}
  .hero-c .cta .btn.outline{display:none}
  .lead{font-size:17px}
  .hero{padding-top:20px}
  .cta{margin-top:20px}
  .flow{grid-template-columns:1fr;gap:20px;padding:20px}
  .flow li+li::before{inset-inline-start:50%;top:-20px;width:1px;height:20px}
  .flow li+li::after{inset-inline-start:calc(50% - 3px);top:-6px;border:3px solid transparent;border-top:5px solid var(--muted)}
  .flow li:nth-child(3)::before,.flow li:nth-child(3)::after{display:block}
  .steps,.pricing{grid-template-columns:1fr}
  /* feature cells become a horizontal swipe row instead of four tall blocks */
  .grid2{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  .grid2::-webkit-scrollbar{display:none}
  .grid2 .cell{flex:0 0 86%;scroll-snap-align:start;border-top:0!important}
  .grid2 .cell:nth-child(odd){border-inline-end:0}
  .grid2 .cell+.cell{border-inline-start:1px solid var(--rule)}
  .steps li+li,.pricing>div+div{border-inline-start:0;border-top:1px solid var(--rule)}
  .final{flex-direction:column;align-items:flex-start;padding:24px 20px}
  .plan-row{grid-template-columns:84px 1fr}
  .plan-row span{display:none}
  /* the chat demo fits one phone screen under the hero */
  .chat-head{padding:8px 12px}
  .chat-head svg{width:32px;height:32px}
  .msgs{padding:12px 10px 10px}
  /* top-anchored so the first message sits under the chat header instead of below an empty reserved area */
  .sizer,.live{justify-content:flex-start}
  .out .msg.post{width:220px}
  .photo,.hero-c .photo{height:72px;font-size:40px}
}

/* Pro periods: price and the cost per 30 days, so the longer plans' saving is visible at a glance */
.price-table{width:100%;border-collapse:collapse;margin:10px 0 12px}
.price-table th{font-size:13px;font-weight:400;color:var(--muted);text-align:start;padding:6px 0;border-bottom:1px solid var(--rule)}
.price-table td{padding:8px 0;border-bottom:1px solid var(--rule)}
.price-table td+td,.price-table th+th{text-align:end;padding-inline-start:12px;white-space:nowrap}
.price-table td:first-child{color:var(--fg)}
/* savings get their own fixed column so the star prices line up in every row */
.price-table .sv{width:3.5em}
.save{font-size:13px;font-weight:600;color:var(--link)}
.incl{margin:10px 0 12px;padding-inline-start:18px;color:var(--fg)}
.incl li+li{margin-top:4px}
