/* The App page, rebuilt 31 Oct (Ohad: "why does it look so immature"). Loaded last on the-app.html only.
   Mobile first. Beige ground and beige boxes, never white ones; one phone style on the page: every real app screen
   sits in the same ink frame as the hero phone. No circles except logos and the pill dot; nothing sticky; figures carry est. */

/* ---- no white boxes (Ohad, 31 Oct: "eliminate the white background in the boxes. can't have it"). The About tokens:
   a box one step deeper than the cream, wells one step deeper again, chips lighter, warm hairlines and shadows ---- */
.tapp{--tbx:#F3ECDF;--tbx-line:rgba(110,80,40,.15);--tbx-well:#EAE0CE;--tbx-chip:#F8F2E7;--tbx-div:#E2D7C4;--tcard:0 0 0 1px var(--tbx-line),0 22px 44px -32px rgba(80,55,20,.4)}

/* ---- rhythm: one gap between sections, one gap from heading to content ---- */
.tapp main>.sec:not(.pnx){padding-top:44px;padding-bottom:44px}
.tapp #mh.ph{padding-bottom:30px}
.tapp main>.sec.tight.pnx{padding-top:8px}
.tapp .ta-sec .lede{max-width:640px}
@media(min-width:761px){
  .tapp main>.sec:not(.pnx){padding-top:80px;padding-bottom:80px}
  .tapp #mh.ph{padding-bottom:56px}
  .tapp main>#screens{padding-top:64px}
  .tapp main>.sec.tight.pnx{padding-top:16px}
}

/* ---- hero: the pill and the option chips on beige, the list in beige boxes; the open tab keeps its pillar bar.
   The list's markers are short bars, not dots ---- */
.tapp .mpill,.tapp .tdoors span{background:var(--tbx-chip);box-shadow:0 0 0 1px var(--tbx-line)}
@media(min-width:761px){
  .tapp .tlist button{background:var(--tbx);box-shadow:inset 0 0 0 1px var(--tbx-line)}
  .tapp .tlist button:hover{background:#EFE6D6}
  .tapp .tlist button[aria-pressed="true"]{background:var(--tbx);box-shadow:inset 4px 0 0 var(--tc),inset 0 0 0 1px var(--tbx-line),0 14px 28px -20px rgba(80,55,20,.45)}
  .tapp .tlist i{width:4px;height:20px;border-radius:2px}
  .tapp .tlist button[aria-pressed="true"] i{box-shadow:none}
}

/* ---- one phone: the real app screen in the hero phone's ink frame ---- */
.ta-ph{position:relative;width:100%;max-width:280px;margin:0 auto}
.ta-fr{background:#141216;padding:3.125%;border-radius:16.25%/7.74%;box-shadow:0 0 0 1.5px #3a3540,0 40px 80px -34px rgba(20,18,22,.5),0 18px 30px -20px rgba(20,18,22,.38)}
.ta-sc{position:relative;aspect-ratio:643.2/1398.4;border-radius:13.6%/6.3%;overflow:hidden;background:#FAF7EF;isolation:isolate}
.ta-sc img{position:absolute;left:-5.97%;top:-2.6316%;width:111.94%;max-width:none;height:auto;display:block}
/* Return's screen is drawn, not a stale Friday screenshot. Same crop, same frame, phone-sized type. */
.ta-sc.ta-live{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:16px 14px 12px;background:#FAF7EF;text-align:left}
.ta-retk{margin:0;font:700 9px/1.2 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:#7149C9}
.ta-reth{margin:7px 0 0;font:800 18px/1.05 'DM Sans',system-ui,sans-serif;letter-spacing:-.02em;color:#141216}
.ta-reth em{font-style:normal;color:#7149C9}
.ta-retp{margin:6px 0 0;font:500 11px/1.35 'DM Sans',system-ui,sans-serif;color:#4A4550}
.ta-retm{display:grid;gap:5px;margin-top:10px}
.ta-retm div{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:baseline;gap:6px;padding:6px 8px;border-radius:10px;background:#F3ECDF}
.ta-retm small{font:700 9px/1 'DM Sans',system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--c)}
.ta-retm b{font:800 15px/1 'DM Sans',system-ui,sans-serif;letter-spacing:-.02em;color:var(--c)}
.ta-retm span{font:500 10px/1.2 'DM Sans',system-ui,sans-serif;color:#4A4550;text-align:right}
.ta-retn{margin:8px 0 0;font:500 10px/1.35 'DM Sans',system-ui,sans-serif;color:#5E5866}

/* ---- 01 the four pillars: four cards, each a phone on its pillar's tint, cropped at the fold ---- */
.tapp .ta-rail{margin-top:24px}
.ta-pc{height:100%;display:grid;grid-template-rows:auto 1fr;background:var(--tbx);border-radius:24px;overflow:hidden;box-shadow:var(--tcard)}
.ta-pv{height:330px;overflow:hidden;padding:24px 26px 0;background:var(--tbx);background:linear-gradient(180deg,color-mix(in srgb,var(--c) 15%,var(--tbx)) 0%,var(--tbx) 100%);position:relative}
.ta-pv::after{content:"";position:absolute;left:0;right:0;bottom:0;height:36px;background:linear-gradient(180deg,rgba(243,236,223,0),var(--tbx))}
.ta-pv .ta-ph{max-width:236px}
.ta-pb{display:flex;flex-direction:column;gap:10px;padding:18px 22px 22px}
.ta-pk{display:flex;align-items:center;gap:9px;font:600 11.5px/1.2 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--c)}
.ta-pk::before{content:"";flex:none;width:18px;height:3px;border-radius:2px;background:var(--c)}
.ta-pc h3{font-family:var(--serif);font-weight:400;font-size:27px;line-height:1.08;letter-spacing:-.01em;color:var(--ink);margin:0}
.ta-pc p{font-size:16px;line-height:1.55;color:var(--body);margin:0}
/* the figure sits on the card's bottom edge in all four cards (Ohad, 2 Nov: "all should align to the bottom of their respective cards"),
   its label beside it and bottom-aligned, so the four figures share one line whatever the text above them runs to */
.tapp .ta-rail>.rc{display:flex}.tapp .ta-rail>.rc>.ta-pc{flex:1 1 auto}
.ta-pf{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;column-gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid var(--tbx-div)}
.ta-pf b{font:800 28px/1 var(--sans);letter-spacing:-.02em;color:var(--c);font-variant-numeric:tabular-nums}
.ta-pf span{font-size:14.5px;line-height:1.3;color:var(--body);padding-bottom:1px}
.ta-fine{font-size:13px;line-height:1.5;color:var(--mute);font-style:italic;text-align:center;margin:18px auto 0;max-width:680px}

/* ---- 02 behind the thread: the Desk tab with four numbered callouts, two on each side on wide screens ---- */
.ta-sg{display:grid;gap:12px;margin-top:26px;grid-template-areas:"v" "l" "r"}
.ta-sgv{grid-area:v;margin:0 0 16px;display:grid;justify-items:center;gap:14px}
.ta-sll{grid-area:l}.ta-slr{grid-area:r}
.ta-sgv figcaption{font-size:14px;color:var(--body);text-align:center}
.ta-phl{max-width:300px}
.ta-mk{position:absolute;right:-12px;width:30px;height:30px;margin-top:-15px;border-radius:9px;background:#FA1896;color:#fff;font:800 14px/30px var(--sans);text-align:center;box-shadow:0 0 0 3px #FAF6EE,0 8px 16px -8px rgba(250,24,150,.7);z-index:2}
.ta-mk::before{content:"";position:absolute;right:100%;top:50%;width:26px;height:2px;margin-top:-1px;background:#FA1896}
.ta-mk.l{right:auto;left:-12px}
.ta-mk.l::before{right:auto;left:100%}
.ta-sl{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.ta-sl li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;align-items:start;background:var(--tbx);border-radius:20px;padding:16px 16px 16px 14px;box-shadow:var(--tcard)}
.ta-sl li>b{width:32px;height:32px;border-radius:10px;background:#FA1896;color:#fff;font:800 15px/32px var(--sans);text-align:center}
.ta-sl h3{font:800 18px/1.25 var(--sans);color:var(--ink);margin:3px 0 4px}
.ta-sl p{font-size:16px;line-height:1.55;color:var(--body);margin:0}

/* ---- 03 where the desk lives: three full cards, each with a glimpse of the thread ---- */
.ta-op{display:grid;gap:14px;margin-top:24px}
.ta-oc{display:grid;gap:16px;align-content:start;background:var(--tbx);border-radius:24px;padding:22px;box-shadow:var(--tcard);border-top:4px solid var(--c)}
.ta-oc.on{border-top-color:#25D366}
.ta-oh{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ta-oc h3{font:800 23px/1.15 var(--sans);color:var(--ink);margin:0}
.ta-chip{font:600 11px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;padding:7px 10px;border-radius:7px;background:var(--tbx-chip);box-shadow:inset 0 0 0 1px var(--tbx-line);color:#4A4550;white-space:nowrap}
.ta-oc.on .ta-chip{background:#E5F8EC;box-shadow:none;color:#0E6B42}
/* "Coming soon" is a pink message bubble with white words (Ohad, 2 Nov) */
.ta-oc:not(.on) .ta-chip{background:#FA1896;box-shadow:none;color:#fff;border-radius:999px 999px 4px 999px;padding:7px 11px}
/* Texting opens a text to the desk, in iMessage blue (Ohad, 2 Nov: "should also link to jumpstart a text message") */
.btn.im{background:#0A84FF;color:#fff;box-shadow:0 10px 24px -10px rgba(10,132,255,.6),inset 0 -2px 0 rgba(0,0,0,.12)}
.btn.im:hover,.btn.im:focus-visible{background:#0071E3;color:#fff}
.ta-oc .btn.im{justify-self:stretch;justify-content:center}
/* Phones: the channel buttons keep the 19px site size; tighter sides fit one line from 414px, and a wrap reads as two even lines */
@media (max-width:480px){.ta-oc{padding:20px}.ta-oc .btn{padding-left:12px;padding-right:12px;text-wrap-style:balance;text-align:center}.ta-oc .btn.im{gap:5px}}
.ta-ov{border-radius:18px;padding:14px;display:grid;gap:8px;align-content:start;min-height:122px}
/* the threads sit on the box itself, framed by a hairline, so the desk's bubble can be the well colour */
.ta-wa,.ta-tx{background:transparent;box-shadow:inset 0 0 0 1px var(--tbx-div)}
.ta-ap{background:var(--tbx-well);grid-template-columns:1fr 1fr;gap:8px}
.ta-bu{max-width:86%;padding:9px 12px;border-radius:16px;font-size:14.5px;line-height:1.4;color:#1F1A24}
.ta-bu small{display:block;font-size:11.5px;font-weight:700;color:#0E6B42;margin-bottom:2px}
.ta-wa .me{justify-self:end;background:#D9FDD3;border-bottom-right-radius:5px}
.ta-wa .fo{justify-self:start;background:var(--tbx-well);border-bottom-left-radius:5px}
.ta-tx .in{justify-self:start;background:var(--tbx-well);border-bottom-left-radius:5px}
.ta-ap span{display:grid;gap:3px;background:var(--tbx-chip);border-radius:12px;padding:9px 10px;border-top:3px solid var(--k);box-shadow:0 0 0 1px var(--tbx-line)}
.ta-ap small{font:700 10.5px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--k)}
.ta-ap b{font:800 19px/1.05 var(--sans);letter-spacing:-.02em;color:var(--k);font-variant-numeric:tabular-nums}
.ta-oc ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.ta-oc li{display:grid;grid-template-columns:16px minmax(0,1fr);gap:10px;font-size:16px;line-height:1.45;color:var(--body)}
.ta-oc li::before{content:"";width:14px;height:3px;border-radius:2px;margin-top:.62em;background:var(--c)}
.ta-oc.on li::before{background:#25D366}
.ta-oc .btn{justify-self:stretch;justify-content:center}
.ta-soon{font-size:16px;line-height:1.45;color:var(--mute);font-style:italic}
.ta-lk{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:700;font-size:15.5px;color:#C8106F;text-decoration:none}
.ta-lk:hover{text-decoration:underline}

/* ---- 04 the rules: four statements, each with a large numeral ---- */
.ta-rl{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:12px}
.ta-rl li{display:grid;gap:8px;align-content:start;background:var(--tbx);border-radius:22px;padding:22px;box-shadow:var(--tcard)}
.ta-rl li>b{font-family:var(--serif);font-weight:400;font-size:44px;line-height:1;color:#FA1896}
.ta-rl h3{font:800 20px/1.2 var(--sans);color:var(--ink);margin:4px 0 0}
.ta-rl p{font-size:16px;line-height:1.55;color:var(--body);margin:0}
.ta-more{margin:22px 0 0;text-align:center}
.ta-more .btn{min-height:48px}
.tapp .ta-more .btn.gh,.tapp .ta-more .btn.gh:hover{background:transparent}

/* ---- Up next: the same beige box ---- */
.tapp .nxt{background:var(--tbx);box-shadow:var(--tcard)}

/* ---- 05 the close: a beige panel, the three actions ---- */
.ta-cl{display:grid;justify-items:center;gap:14px;text-align:center;background:linear-gradient(150deg,#F6F0E4 0%,#EFE6D4 100%);border-radius:28px;padding:34px 20px 30px}
.ta-cl .h2{margin:0}
.ta-cl>p:not(.ta-fine){font-size:17px;line-height:1.55;color:var(--body);max-width:560px;margin:0}
.ta-cl .mctas{margin-top:6px;justify-content:center;width:100%;max-width:680px}
.ta-cl .ta-fine{margin-top:4px}

/* ---- phones: the pillar cards are a swipe row with the rail's own dots ---- */
@media(max-width:760px){
  .tapp .ta-rail>.rc{flex-basis:82%}
  .ta-pv{height:300px;padding:22px 22px 0}
  .ta-pv .ta-ph{max-width:214px}
  .ta-pc h3{font-size:25px}
  .ta-mk{right:-8px}
  .ta-rl li{grid-template-columns:auto minmax(0,1fr);column-gap:16px;row-gap:4px;padding:18px}
  .ta-rl li>b{grid-row:1/span 2;font-size:38px;line-height:.95}
  .ta-rl h3{margin:0}
}
@media(max-width:359px){.ta-pv{height:270px}.ta-pv .ta-ph{max-width:196px}}

/* ---- tablets: two pillar cards across ---- */
@media(min-width:761px) and (max-width:1099px){
  .tapp .ta-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
@media(min-width:761px){
  .tapp .ta-rail{gap:18px;margin-top:32px}
  .ta-sg{grid-template-columns:minmax(0,340px) minmax(0,1fr);grid-template-areas:"v l" "v r";align-content:center;column-gap:56px;row-gap:12px;margin-top:34px}
  .ta-sll{align-self:end}.ta-slr{align-self:start}
  .ta-sgv{margin:0}
  .ta-phl{max-width:320px}
  .ta-op{gap:18px;margin-top:32px}
  .ta-rl{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:32px}
  .ta-cl{padding:52px 40px 40px}
}
@media(min-width:1100px){
  .ta-rl{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ta-pv{height:340px}
  .ta-sg{grid-template-columns:minmax(0,1fr) 340px minmax(0,1fr);grid-template-areas:"l v r";align-items:center;column-gap:64px}
  .ta-sll,.ta-slr{align-self:center;gap:16px}
  .ta-sll li{grid-template-columns:minmax(0,1fr) 32px;padding:18px 14px 18px 18px;text-align:right}
  .ta-sll li>b{order:2}
}

/* ---- where the desk lives: WhatsApp across the top on tablets, three across from 1024px ---- */
@media(min-width:761px) and (max-width:1023px){
  .ta-op{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ta-oc.on{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
  .ta-oc.on .ta-oh{grid-column:1/-1}
  .ta-oc.on .ta-ov{grid-row:2/span 2}
  .ta-oc.on ul{grid-column:2}
  .ta-oc.on .btn{grid-column:2;align-self:end}
}
@media(min-width:1024px){.ta-op{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---- reduced motion: the cards and the phones simply show ---- */
@media(prefers-reduced-motion:reduce){.ta-pc,.ta-sl li,.ta-oc,.ta-rl li{transition:none}}
/* Nov 2 · each card's button or link sits on the card's bottom line, whatever the list above it holds */
.ta-oc{grid-template-rows:auto auto 1fr auto}.ta-oc>ul{align-self:start}
