/* Shared inner-page components (reference: Android SMS gateway page).
   Every inner page uses ONLY these blocks; never add per-page widths. */
/* page-specific + the new shared patterns INLINED (so a CDN-cached pages.css
   can never break the layout — same lesson as the homepage). */
.showcase{ display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(32px,5vw,64px); align-items:center; }
.showcase-ui{ border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line); box-shadow:0 40px 80px -40px rgba(12,16,18,.28), 0 2px 6px rgba(12,16,18,.05); background:#fff; }
.showcase-ui img{ width:100%; height:auto; display:block; }
.showcase-list{ list-style:none; margin:20px 0 0; padding:0; display:grid; gap:12px; }
.showcase-list li{ display:flex; align-items:flex-start; gap:11px; font-size:.98rem; color:var(--ink); line-height:1.5; }
.showcase-list li svg{ width:17px !important; height:17px !important; flex-shrink:0; margin-top:3px; color:var(--purple); }
@media(max-width:900px){ .showcase{ grid-template-columns:1fr; } .showcase-ui{ order:-1; } }
/* ---- masonry bento (SAME system as the homepage, inlined so a CDN-cached
   stylesheet can never break it). Tiles dense-pack to fill the block with no
   orphan: tall=1x2, wide=2x1, big=2x2, plain=1x1. ---------------------------- */
.bento2{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:156px; grid-auto-flow:row dense; gap:16px; margin-top:40px; }
.b2{ position:relative; overflow:hidden; border-radius:var(--r-lg); padding:24px; display:flex; flex-direction:column; border:1px solid transparent; transition:transform .3s var(--ease), box-shadow .3s var(--ease); }
.b2-tall,.b2-wide,.b2-big{ justify-content:space-between; }
.b2-tall .b2-label,.b2-wide .b2-label,.b2-big .b2-label{ margin-bottom:auto; }
.b2-tall,.b2-wide,.b2-big{ justify-content:flex-end; }
.b2-tall h3,.b2-wide h3,.b2-big h3{ margin-top:16px; }
.b2 > *{ position:relative; z-index:1; }
.b2:hover{ transform:translateY(-4px); box-shadow:0 26px 50px -30px rgba(12,16,18,.22); }
.b2-tall{ grid-row:span 2; } .b2-wide{ grid-column:span 2; } .b2-big{ grid-column:span 2; grid-row:span 2; } .b2-full{ grid-column:1 / -1; }
.b2-label{ align-self:flex-start; font-size:.68rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; padding:5px 10px; border-radius:999px; margin-bottom:12px; background:rgba(12,16,18,.05); color:var(--ink-2); }
.b2 h3{ font-size:1.1rem; font-weight:580; letter-spacing:-.018em; } .b2 p{ margin-top:7px; font-size:.92rem; line-height:1.5; }
.b2-plain{ background:#fff; border-color:var(--line); } .b2-plain h3{ color:var(--ink); } .b2-plain p{ color:var(--ink-2); } .b2-plain .b2-label{ background:var(--bg-2); color:var(--ink-2); }
.b2-lav{ background:#F1EEFA; } .b2-lav h3{ color:#241C4A; } .b2-lav p{ color:#5A4C93; } .b2-lav .b2-label{ background:rgba(109,74,255,.1); color:var(--purple-deep); }
.b2-mint{ background:#E8F0EE; } .b2-mint h3{ color:#17302C; } .b2-mint p{ color:#48665F; } .b2-mint .b2-label{ background:rgba(40,72,76,.1); color:#2B5550; }
.b2-dark{ background:#0C1012; } .b2-dark h3{ color:#F7F8F6; } .b2-dark p{ color:#A7B1B3; } .b2-dark .b2-label{ background:rgba(255,255,255,.1); color:#CFD6D4; }
.b2-flow{ position:absolute; inset:0 0 auto 0; width:100%; height:58%; z-index:0; fill:none; stroke:var(--purple); stroke-width:1.3; opacity:.12; pointer-events:none; transition:opacity .4s var(--ease), transform .5s var(--ease); }
.b2:hover .b2-flow{ opacity:.2; transform:translateY(-4px); }
.b2-dark .b2-flow{ stroke:#fff; opacity:.22; stroke-width:1.5; height:72%; } .b2-mint .b2-flow{ stroke:var(--petrol); opacity:.18; }
@media(max-width:900px){ .bento2{ grid-template-columns:repeat(2,1fr); grid-auto-rows:150px; } .b2-wide,.b2-big{ grid-column:span 2; } .b2-big{ grid-row:span 2; } }
@media(max-width:560px){ .bento2{ grid-template-columns:1fr; grid-auto-rows:auto; } .b2-tall,.b2-wide,.b2-big{ grid-column:auto; grid-row:auto; } .b2-flow{ display:none; } }
/* ---- steps: scroll-driven timeline (SAME as homepage, inlined) ------------- */
.steps{ position:relative; display:grid; grid-template-columns:repeat(var(--cols,3),1fr); gap:22px; margin-top:56px; }
.steps-track{ position:absolute; top:23px; left:calc(50% / var(--cols,3)); right:calc(50% / var(--cols,3)); height:2px; background:var(--line); z-index:0; }
.steps-line{ position:absolute; inset:0; background:var(--ink); transform-origin:left; transform:scaleX(0); }
.no-gsap .steps.in .steps-line{ transform:scaleX(1); transition:transform 1.6s var(--ease-out) .2s; }
.step{ position:relative; z-index:1; text-align:center; padding:0 6px; }
.step-dot{ width:46px; height:46px; margin:0 auto 18px; border-radius:50%; background:#fff; border:1.5px solid var(--line-2); display:grid; place-items:center; font-family:var(--font-mono); font-size:.85rem; font-weight:600; color:var(--ink-2); transition:.5s var(--ease); transition-delay:var(--d,0s); }
.steps.in .step-dot{ border-color:var(--ink); color:var(--ink); }
.step h3{ font-size:1.05rem; margin-bottom:6px; font-weight:580; } .step p{ color:var(--ink-2); font-size:.92rem; line-height:1.5; }
@media(max-width:860px){
  .steps{ grid-template-columns:1fr; gap:0; }
  .steps-track{ left:auto; right:auto; inset-inline-start:22px; inset-inline-end:auto; top:10px; bottom:10px; width:2px; height:auto; }
  .steps-line{ transform-origin:top; transform:scaleY(0); }
  .no-gsap .steps.in .steps-line{ transform:scaleY(1); }
  .step{ display:grid; grid-template-columns:46px 1fr; gap:18px; text-align:start; padding:18px 0; align-items:start; }
  .step-dot{ margin:0; }
}
/* ---- FAQ: two columns, sticky aside + accordion (SAME as homepage) --------- */
.faq-wrap{ display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(40px,6vw,80px); align-items:start; }
.faq-aside{ position:sticky; top:96px; }
.faq-aside h2{ font-size:var(--fs-h2); } .faq-aside .lead{ margin-top:14px; }
.faq-aside .faq-cta{ margin-top:26px; display:flex; flex-direction:row; gap:10px; align-items:center; flex-wrap:wrap; }
@media(max-width:860px){ .faq-wrap{ grid-template-columns:1fr; gap:30px; } .faq-aside{ position:static; top:auto; } }
.faq{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; background:none; border:0; text-align:start; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:24px 4px; font-size:1.08rem; font-weight:520; color:var(--ink); letter-spacing:-.01em; }
.faq-ic{ flex-shrink:0; width:20px; height:20px; position:relative; }
.faq-ic::before,.faq-ic::after{ content:""; position:absolute; background:var(--ink-3); left:50%; top:50%; transform:translate(-50%,-50%); transition:.28s var(--ease); }
.faq-ic::before{ width:14px; height:2px; } .faq-ic::after{ width:2px; height:14px; }
.faq-item.open .faq-ic::after{ transform:translate(-50%,-50%) scaleY(0); }
.faq-item.open .faq-ic::before{ background:var(--purple); }
.faq-a{ overflow:hidden; max-height:0; transition:max-height .32s var(--ease); }
.faq-a p{ padding:0 4px 24px; color:var(--ink-2); font-size:.96rem; line-height:1.62; max-width:66ch; }
@media(max-width:620px){ .faq-q{ padding:15px 0 !important; } }

/* ---- tiles without a label keep their text at the bottom ---- */
.b2-tall,.b2-wide,.b2-big{ justify-content:flex-end; }
a.b2{ color:inherit; text-decoration:none; }

/* ---- showcase: image on the left variant ---- */
.showcase-rev > :first-child{ order:2; }
@media(max-width:900px){ .showcase-rev > :first-child{ order:0; } }

/* ---- hairline numbered list (same as the home page) ---- */
.flist{ margin-top:46px; border-top:1px solid var(--line); }
.frow{ display:grid; grid-template-columns:70px 1.05fr 1.5fr 36px; gap:30px; align-items:baseline;
  padding:30px 10px; border-bottom:1px solid var(--line); transition:background .25s var(--ease); color:inherit; text-decoration:none; scroll-margin-top:96px; }
a.frow:hover{ background:var(--bg-2); }
.frow .fn{ font-family:var(--font-mono); font-size:.78rem; color:var(--ink-3); }
.frow h3{ font-size:1.32rem; font-weight:560; letter-spacing:-.02em; }
.frow p{ color:var(--ink-2); font-size:.96rem; line-height:1.55; }
.frow .fx{ color:var(--ink-3); justify-self:end; transition:.25s var(--ease); }
a.frow:hover .fx{ color:var(--ink); transform:translateX(4px); }
.frow .fx svg{ width:18px; height:18px; }
@media(max-width:820px){ .frow{ grid-template-columns:48px 1fr; gap:8px 16px; } .frow p{ grid-column:2; } .frow .fx{ display:none; } }

/* ---- comparison table: hairlines, no boxes ---- */
.s8-table-wrap{ margin-top:40px; overflow-x:auto; border-top:1px solid var(--line); }
.s8-table{ width:100%; border-collapse:collapse; font-size:.95rem; min-width:560px; }
.s8-table th,.s8-table td{ text-align:start; padding:18px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.s8-table thead th{ font-size:.82rem; font-weight:560; color:var(--ink-3); }
.s8-table tbody th{ font-weight:520; color:var(--ink); width:34%; }
.s8-table td{ color:var(--ink-2); }
.s8-table .hl{ background:var(--bg-2); color:var(--ink); font-weight:520; }
.s8-table thead .hl{ color:var(--ink); }
.t-yes svg{ width:17px; height:17px; color:var(--ink); } .t-no{ color:var(--ink-3); }
.s8-note{ margin-top:18px; color:var(--ink-3); font-size:.85rem; }

/* ---- pricing plans: hairline columns, no boxes ---- */
.s8-plans{ display:grid; grid-template-columns:repeat(3,1fr); margin-top:48px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.s8-plan{ padding:34px clamp(20px,3vw,40px) 38px; display:flex; flex-direction:column; gap:16px; }
.s8-plan + .s8-plan{ border-inline-start:1px solid var(--line); }
.s8-plan h3{ font-size:1.1rem; font-weight:580; }
.s8-plan.is-featured h3::after{ content:" \00B7  Most chosen"; color:var(--ink-3); font-weight:440; font-size:.9rem; }
.s8-price b{ font-size:2.4rem; font-weight:620; letter-spacing:-.03em; color:var(--ink); }
.s8-price span{ color:var(--ink-3); font-size:.9rem; margin-inline-start:6px; }
.s8-plan p{ color:var(--ink-2); font-size:.93rem; line-height:1.5; min-height:2.8em; }
.s8-plan .btn{ align-self:flex-start; }
.s8-plan ul{ list-style:none; margin:6px 0 0; padding:18px 0 0; border-top:1px solid var(--line); display:grid; gap:10px; }
.s8-plan li{ display:flex; gap:10px; font-size:.92rem; color:var(--ink); line-height:1.45; }
.s8-plan li svg{ width:16px; height:16px; flex-shrink:0; margin-top:2px; color:var(--ink); }
@media(max-width:860px){ .s8-plans{ grid-template-columns:1fr; } .s8-plan + .s8-plan{ border-inline-start:0; border-top:1px solid var(--line); } }

/* ---- long-form text (legal) ---- */
.s8-prose{ max-width:72ch; margin-inline:auto; color:var(--ink-2); font-size:1rem; line-height:1.7; }
.s8-prose.s8-article{ max-width:820px; font-size:1.05rem; line-height:1.75; }
.s8-article table{ width:100%; } .s8-article p, .s8-article li{ max-width:none; }
.s8-prose h2{ font-size:1.5rem; color:var(--ink); margin:44px 0 12px; }
.s8-prose h2:first-child{ margin-top:0; }
.s8-prose h3{ font-size:1.12rem; color:var(--ink); margin:28px 0 8px; font-weight:580; }
.s8-prose p{ margin:0 0 14px; } .s8-prose ul{ margin:0 0 14px; padding-inline-start:20px; } .s8-prose li{ margin:4px 0; }
.s8-prose a{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }

/* ---- link rows (contact, next steps): hairline rows with a labelled arrow ---- */
.s8-linklist .frow{ grid-template-columns:1.05fr 1.5fr auto; }
.s8-linklist .fgo{ display:inline-flex; align-items:center; gap:7px; font-weight:600; font-size:.9rem; color:var(--ink); white-space:nowrap; transition:.25s var(--ease); }
.s8-linklist .fgo svg{ width:15px; height:15px; }
.s8-linklist a.frow:hover .fgo{ transform:translateX(4px); }
@media(max-width:820px){ .s8-linklist .frow{ grid-template-columns:1fr; gap:6px; } .s8-linklist .frow p{ grid-column:auto; } }

/* ---- billing switch (pricing): two plain options on a hairline, yearly first ---- */
.s8-billing{ display:flex; justify-content:center; gap:4px; margin:28px auto 0; padding:4px; width:max-content; border:1px solid var(--line); border-radius:999px; }
.s8-billing button{ background:none; border:0; border-radius:999px; padding:8px 16px; font:inherit; font-size:.9rem; font-weight:560; color:var(--ink-2); cursor:pointer; transition:.2s var(--ease); }
.s8-billing button span{ color:var(--ink-3); font-weight:440; }
.s8-billing button.is-on{ background:var(--ink); color:#fff; }
.s8-billing button.is-on span{ color:rgba(255,255,255,.7); }
.s8-price small{ display:block; margin-top:4px; color:var(--ink-3); font-size:.82rem; }
.s8-plans .s8-m{ display:none; } .s8-plans.bill-y .s8-m{ display:none; } .s8-plans:not(.bill-y) .s8-m{ display:block; } .s8-plans:not(.bill-y) .s8-y{ display:none; }

/* ---- right-to-left (Arabic): arrows point the reading direction ---- */
[dir="rtl"] .btn svg:not(.ext), [dir="rtl"] .frow .fx svg, [dir="rtl"] .s8-linklist .fgo svg{ transform:scaleX(-1); }
[dir="rtl"] a.frow:hover .fx, [dir="rtl"] .s8-linklist a.frow:hover .fgo{ transform:translateX(-4px); }

/* ---- interactive tools (free tools pages): hairline panel, no card shadow ---- */
.s8-tool{ margin-top:36px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:28px 0; display:flex; flex-direction:column; gap:18px; }
.s8-tool-label{ display:flex; flex-direction:column; gap:8px; font-size:.9rem; font-weight:560; color:var(--ink); }
.s8-tool-input{ width:100%; font:inherit; font-size:1rem; font-weight:400; color:var(--ink); background:#fff; border:1px solid var(--line-2); border-radius:var(--r-sm); padding:12px 14px; }
.s8-tool-input:focus{ outline:2px solid var(--ink); outline-offset:1px; }
textarea.s8-tool-input{ resize:vertical; line-height:1.5; }
.s8-tool-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.s8-tool-bar{ height:3px; background:var(--line); border-radius:3px; overflow:hidden; }
.s8-tool-bar span{ display:block; height:100%; width:0; background:var(--ink); transition:width .2s var(--ease); }
.s8-tool-out{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); margin:0; border-top:1px solid var(--line); }
.s8-tool-out > div{ padding:18px 0 0; }
.s8-tool-out dt{ font-size:.82rem; color:var(--ink-3); }
.s8-tool-out dd{ margin:4px 0 0; font-size:1.7rem; font-weight:620; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
@media(max-width:820px){ .s8-tool-grid{ grid-template-columns:1fr 1fr; } }
@media(max-width:520px){ .s8-tool-grid{ grid-template-columns:1fr; } }

/* ---- blog: article body and post list ---- */
.s8-article{ max-width:820px; }
.s8-article-meta{ color:var(--ink-3); font-size:.88rem; margin:0 0 28px; }
.s8-article h2{ margin-top:48px; } .s8-article h3{ margin-top:30px; }
.s8-article img{ max-width:100%; height:auto; border-radius:var(--r-md); border:1px solid var(--line); margin:10px 0 18px; }
.s8-article figure{ margin:22px 0; } .s8-article figcaption{ color:var(--ink-3); font-size:.85rem; margin-top:6px; }
.s8-article blockquote{ margin:22px 0; padding:2px 0 2px 18px; border-inline-start:2px solid var(--ink); color:var(--ink); }
.s8-article pre{ background:#0C1012; color:#E8ECEA; border-radius:var(--r-sm); padding:16px 18px; overflow-x:auto; font-size:.85rem; line-height:1.55; margin:16px 0 20px; direction:ltr; text-align:start; }
.s8-article code{ font-family:var(--font-mono); font-size:.88em; }
.s8-article :not(pre) > code{ background:var(--bg-2); border:1px solid var(--line); border-radius:6px; padding:1px 6px; color:var(--ink); }
.s8-article table{ width:100%; border-collapse:collapse; font-size:.92rem; margin:18px 0 22px; display:block; overflow-x:auto; }
.s8-article th, .s8-article td{ text-align:start; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.s8-article th{ color:var(--ink); font-weight:580; }
.s8-article .video{ position:relative; aspect-ratio:16/9; margin:20px 0; } .s8-article .video iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; border-radius:var(--r-md); }
.s8-postlist .frow .fn{ white-space:nowrap; }
/* ---- real product screens: homepage tour + inner-page hero shot ----------- */
/* the screens carry their own rounded panel and soft fade, so no extra frame */
.shot-frame{ border-radius:var(--r-lg); overflow:hidden; }
.shot-frame img{ display:block; width:100%; height:auto; }
.tour{ max-width:1100px; margin:36px auto 0; }
.tour-tabs{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-bottom:22px; }
.tour-tabs button{ font:inherit; font-size:.92rem; font-weight:560; color:var(--ink-2); background:transparent; border:1px solid transparent;
  border-radius:999px; padding:8px 16px; cursor:pointer; transition:background .2s, color .2s, border-color .2s; }
.tour-tabs button:hover{ color:var(--ink); }
.tour-tabs button[aria-selected="true"]{ color:var(--ink); background:#fff; border-color:var(--line); box-shadow:0 1px 3px rgba(12,16,18,.06); }
.tour-tabs button:focus-visible{ outline:2px solid var(--purple); outline-offset:2px; }
.tour-stage{ display:grid; }
.tour-panel{ margin:0; grid-area:1/1; opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .4s ease, transform .4s ease, visibility 0s linear .4s; }
.tour-panel.on{ opacity:1; visibility:visible; transform:none; transition:opacity .4s ease, transform .4s ease, visibility 0s; }
@media (prefers-reduced-motion:reduce){ .tour-panel,.tour-panel.on{ transition:none; transform:none; } }
.tour-sec .section-head{ display:block; text-align:center; margin-inline:auto; }
.tour-sec .section-head h2,.tour-sec .section-head .lead{ margin-inline:auto; }
.tour-panel .tour-cap{ text-align:center; color:var(--ink-2); font-size:.95rem; margin-top:16px; }
.hero-shot{ max-width:1100px; margin:clamp(40px,6vw,64px) auto 0; }
@media(max-width:600px){ .tour-tabs{ justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; } .tour-tabs button{ flex-shrink:0; } }
.more-cmp{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px 10px; margin-top:20px; }
.more-cmp a{ font-size:.92rem; font-weight:540; color:var(--ink); border:1px solid var(--line); border-radius:999px; padding:8px 16px; text-decoration:none; transition:border-color .2s; }
.more-cmp a:hover{ border-color:var(--ink-3); }
/* blog posts: centered reading column, tighter start under the hero */
.s8-article{ max-width:740px; margin-inline:auto; font-size:1.04rem; line-height:1.7; }
.page-hero + .section:has(.s8-article){ padding-top:clamp(20px,3vw,36px); }

/* contrast: small grey text needs 4.5:1 on white (--ink-3 is kept for large soft headings) */
.s8-note,.s8-article-meta,.s8-article-meta time,.s8-price span,.s8-price small,.tour-panel .tour-cap,.foot-col .foot-h,.foot-bottom,.foot-bottom span,.foot-bottom a,.foot-lang a,.rating-line .rt{ color:#5E6662 !important; }
.foot-bottom a:hover,.foot-lang a:hover,.foot-lang a[aria-current]{ color:var(--ink) !important; }
/* inner-page hero: visible on first paint (no wait for JS, faster LCP); a short CSS-only slide keeps the motion */
.page-hero [data-reveal]{ opacity:1 !important; filter:none !important; transform:none; animation:s8-hero-in .6s cubic-bezier(.2,.7,.2,1) both; }
.page-hero [data-reveal]:nth-child(2){ animation-delay:.06s; } .page-hero [data-reveal]:nth-child(3){ animation-delay:.12s; }
@keyframes s8-hero-in{ from{ transform:translateY(14px); } to{ transform:none; } }
@media (prefers-reduced-motion: reduce){ .page-hero [data-reveal]{ animation:none; } }
