/* The selling parts (tools/sell.py): the hero's three product tiles, "Which one is for me?", the product pages and the
 * phone's sticky call-to-action bar. Loaded after site.css on the homepages and product pages. Light only: white
 * cards, soft lines, the brand gradient and each product's accent (.p-resto, .p-pos, .p-cc in site.css). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pt-resto { --accent: linear-gradient(90deg, #ff9a3c, #f500e4); --tone: #c94c0c; --tint: #fff4ec; }
.pt-pos { --accent: linear-gradient(90deg, #00f2e7, #2577f9); --tone: #08808a; --tint: #e9fbfb; }
.pt-cc { --accent: linear-gradient(90deg, #2577f9, #a43cf0); --tone: #5b3fe0; --tint: #f1efff; }

/* ---- Homepage: a tighter hero, then the three products straight away ---- */
.home:not(.product-page) .hero { padding: clamp(24px, 3vw, 48px) 0 clamp(28px, 3vw, 44px); }
.home:not(.product-page) .hero .pill { margin-bottom: 18px; }
/* the call card stays short: the newest lines show at the bottom, older ones fade out at the top */
.hero .msgs { min-height: 0; height: 250px; overflow: hidden; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
@media (min-width: 1101px) {
  .home:not(.product-page) .hero .float-chip { display: none; }
  .home:not(.product-page) .hv-main { aspect-ratio: 4 / 4.6; }
}
.home:not(.product-page) .hero .lead { margin-top: 18px; }
.home:not(.product-page) .hero-cta { margin-top: 26px; }
.home:not(.product-page) .ticks { margin-top: 20px; }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(28px, 3vw, 44px); }
.pick-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.ptile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 22px; border-radius: 24px; background: rgba(255,255,255,.94); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.ptile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.ptile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pt-ic { position: absolute; top: 20px; inset-inline-end: 20px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--tone); }
.pt-kind, .ptile h2.pt-name { padding-inline-end: 56px; }
.pt-ic svg { width: 24px; height: 24px; }
.pt-kind { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tone); }
.ptile h2.pt-name { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -.03em; line-height: 1.15; }
.pt-name a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* the whole card opens the product page */
.ptile p { color: var(--text); font-size: 1rem; line-height: 1.5; margin-bottom: 10px; }
.pt-cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pt-cta .btn { height: 44px; }
.pick-note { margin-top: 16px; font-size: .95rem; color: var(--muted); }
.pick-note a { color: var(--blue); font-weight: 600; }
.prod-cta .btn-text { padding-inline: 8px; }

/* ---- "Which one is for me?": a comparison table (cards on phones) ---- */
.compare { padding: clamp(56px, 6vw, 96px) 0 0; }
.compare .split-head { margin-bottom: clamp(28px, 3vw, 44px); }
.cmp-wrap { border-radius: 28px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .98rem; }
.cmp th, .cmp td { padding: 16px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.cmp thead th { font-size: 1.08rem; color: var(--ink); background: var(--soft); }
.cmp thead th a:hover { color: var(--blue); }
.cmp thead th:nth-child(2) { box-shadow: inset 0 4px 0 #ff9a3c; }
.cmp thead th:nth-child(3) { box-shadow: inset 0 4px 0 #6b5cf0; }
.cmp thead th:nth-child(4) { box-shadow: inset 0 4px 0 #00c2d9; }
.cmp thead td { background: var(--soft); width: 17%; }
.cmp tbody th { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cmp tbody td { color: var(--text); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp-start td { padding-block: 18px 20px; }
.cmp-start .btn { height: 44px; }
.cmp-more { display: inline-block; margin-inline-start: 12px; padding: 10px 0; font-size: .92rem; font-weight: 600; color: var(--blue); }
.cmp-cards { display: none; }
@media (max-width: 760px) {
  .cmp-wrap { border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .cmp { display: none; }
  .cmp-cards { display: grid; gap: 14px; }
  .cmp-card { position: relative; padding: 20px 18px 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
  .cmp-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
  .cmp-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
  .cmp-card h3 a { display: inline-flex; align-items: center; min-height: 44px; }
  .cmp-card dl { margin: 0 0 14px; display: grid; gap: 8px; }
  .cmp-card dt { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .cmp-card dd { margin: 0 0 4px; font-size: .97rem; color: var(--text); line-height: 1.45; }
  .cmp-card .pt-cta .btn { flex: 1 1 auto; height: 44px; }
}

/* ---- Product pages ---- */
.product-page main section { padding: clamp(56px, 6vw, 96px) 0; }
.product-page main section.pp-hero { padding: clamp(28px, 4vw, 64px) 0 clamp(48px, 5vw, 80px); }
.product-page main section.contact-sec { padding: 0 0 clamp(56px, 6vw, 96px); }
.pp-hero { position: relative; isolation: isolate; overflow: hidden; }
.pp-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-weight: 600; }
.pp-hero .kind { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tone); margin-bottom: 14px; }
.pp-hero h1 { font-size: clamp(2.3rem, 4.2vw, 4rem); }
.pp-hero h1 > span { display: block; }
.pp-hero .lead { font-size: clamp(1.08rem, 1.3vw, 1.22rem); max-width: 560px; }
.pp-outcomes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.pp-outcomes li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 1.04rem; font-weight: 600; color: var(--ink); line-height: 1.45; }
.pp-outcomes svg { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #e7f8f1; color: var(--green); margin-top: 1px; }
.pp-hero .hero-cta { margin-top: 30px; }
.trial-line { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.pp-hero-vis { position: relative; }
.pp-hero-vis > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 36px; box-shadow: 0 50px 100px -50px rgba(13,19,48,.45), 0 2px 6px rgba(13,19,48,.05); }
.pp-hero-vis .prod-ui { position: absolute; z-index: 2; left: 24px; bottom: 24px; margin: 0; width: min(320px, 70%); }
.p-pos .pp-hero-vis .prod-ui, .p-cc .pp-hero-vis .prod-ui { left: auto; right: 24px; }
.pp-head { max-width: 760px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.pp-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); counter-reset: none; }
.steps3 li { position: relative; padding: 26px 26px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.steps3 .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad-btn); color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.steps3 h3 { font-size: 1.22rem; margin-bottom: 8px; }
.steps3 p { color: var(--muted); }

.pp-feats { background: linear-gradient(180deg, #fff, #f6f8fd 25%, #f6f8fd 75%, #fff); }
.fgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.feat { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; padding: 22px 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.f-ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.p-resto .f-ic { background: #fff4ec; color: #c94c0c; }
.p-pos .f-ic { background: #e9fbfb; color: #08808a; }
.p-cc .f-ic { background: #f1efff; color: #5b3fe0; }
.f-ic svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.08rem; margin: 2px 0 4px; }
.feat p { color: var(--muted); font-size: .97rem; line-height: 1.5; }

.pp-ex-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 6vw, 110px); align-items: center; }
.pp-ex-grid h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 18ch; }
.pp-ex-grid .hero-cta { margin-top: 28px; }
.pp-example .convo { background: rgba(255,255,255,.9); }
.pp-example .msgs { min-height: 0; }
.ava-ic { color: #fff; }
.ava-ic svg { width: 20px; height: 20px; }
.btn small[hidden] { display: none; }

.price3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.pcard { padding: 28px 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pc-main { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.pc-big { display: block; font-size: clamp(1.9rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; color: var(--ink); }
.pc-main .pc-big { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pc-label { display: block; margin: 6px 0 12px; font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pcard p { color: var(--text); font-size: .98rem; }
.price-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }

.pp-faq .faq-side h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.pp-others { padding-top: 0 !important; }
.pp-others-h { font-size: clamp(1.4rem, 2vw, 1.8rem); margin-bottom: 20px; }

/* ---- The phone's sticky bar: Start free trial + Talk to the assistant (assets/sell.js shows it) ---- */
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta:not([hidden]) { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; position: fixed; z-index: 57; left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -18px rgba(13,19,48,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateY(110%); transition: transform .3s var(--ease); }
  .m-cta.on { transform: none; }
  .m-cta .btn { height: 48px; padding: 0 12px; font-size: .95rem; }
  body.mcta-on .ruby-greet { bottom: 84px; }
  body.mcta-on .foot { padding-bottom: 96px; }
}


/* ---- Tablets and phones ---- */
@media (max-width: 1100px) {
  /* small laptops and landscape tablets: keep the two columns, tighter */
  .pp-hero-grid { gap: 32px; }
  .pp-hero-vis > img { aspect-ratio: 1 / 1; }
  .pp-hero-vis .prod-ui { width: min(300px, 82%); left: 16px; bottom: 16px; }
  .p-pos .pp-hero-vis .prod-ui, .p-cc .pp-hero-vis .prod-ui { right: 16px; }
  .pp-ex-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 36px; }
}
@media (max-width: 860px) {
  /* portrait tablets and phones: one column, every block the full width (no empty half) */
  .pp-hero-grid, .pp-ex-grid { grid-template-columns: minmax(0, 1fr); }
  .pp-hero-vis > img { aspect-ratio: 16 / 10; }
  .pp-example .convo { max-width: none; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* no orphan card */
}
@media (max-width: 980px) {
  /* phones and tablets: the promise, then the three products, then the photo and the call */
  .home:not(.product-page) .hero { display: flex; flex-direction: column; }
  .home:not(.product-page) .hero-grid { display: contents; }
  .home:not(.product-page) .hero-text, .home:not(.product-page) .hero-vis { width: min(1400px, 100% - 2 * clamp(20px, 5vw, 88px)); margin-inline: auto; }
  .home:not(.product-page) .hero-text { order: 1; }
  .home:not(.product-page) .pick { order: 2; }
  .home:not(.product-page) .pick-note { order: 3; }
  .home:not(.product-page) .hero-vis { order: 4; margin-top: 36px; }
  .pick { grid-template-columns: minmax(0, 1fr); }
  .ptile p { margin-bottom: 8px; }
}
@media (max-width: 640px) {
  /* phones: the homepage's product rows keep their headline, one line and buttons; the details are on each product's
     own page ("See how it works") */
  .prow ul { display: none; }
  .prow .desc { margin-bottom: 20px; }
  .prod-cta .btn { flex: 1 1 auto; }
  .fgrid, .steps3, .price3, .pick-2 { grid-template-columns: minmax(0, 1fr); }
  .feat { padding: 18px; }
  .pp-hero-vis .prod-ui { position: relative; left: auto !important; right: auto !important; bottom: auto; width: auto; margin: -56px 16px 0; }
  .pp-hero-vis > img { border-radius: 26px; }
  .hero-cta .btn-lg { width: 100%; }
  .price-cta .btn { width: 100%; }
  .pt-cta .btn { flex: 1 1 auto; }
  .crumbs { margin-bottom: 12px; }
}

/* ---- Right to left (the Arabic Gulf pages) ---- */
[dir="rtl"] .pp-hero-vis .prod-ui { left: auto; right: 24px; }
[dir="rtl"] .p-pos .pp-hero-vis .prod-ui, [dir="rtl"] .p-cc .pp-hero-vis .prod-ui { right: auto; left: 24px; }
[dir="rtl"] .crumbs span[aria-hidden] { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .pt-kind, [dir="rtl"] .pp-hero .kind, [dir="rtl"] .cmp tbody th, [dir="rtl"] .pc-label { letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .ptile, .m-cta { transition: none; }
  .ptile:hover { transform: none; }
}
