/* The features page (templates/features.html), 4 Oct 2026. Uses the tokens of site.css (light + dark), logical
   properties throughout so /ar/ and /ur/ mirror without overrides. One spacing scale: .5 / 1 / 1.5 / 2.5 / 4 rem. */

/* ---------- hero */
.fx-hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(2.5rem, 2rem + 3vw, 5rem); }
.fx-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.fx-hero h1 { max-width: 16ch; }
.fx-hero .lead { margin-block-end: 1.5rem; }
.fx-for { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 1.5rem 0 0; font-size: .92rem; color: var(--fg-muted); }
.fx-for span { margin-inline-end: .25rem; }
.fx-for a { color: var(--fg-strong); text-decoration: none; font-weight: 600; padding: .3rem .8rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--bg-card); }
.fx-for a:hover { border-color: var(--green); color: var(--green-2); }
@media (min-width: 900px) {
  .fx-hero-grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; }
}

/* ---------- sticky in-page nav (sits under the sticky site header; features.js measures it into --fx-top) */
.fx-nav { position: sticky; top: var(--fx-top, 64px); z-index: 45; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block: 1px solid var(--line); }
.fx-nav ul { display: flex; gap: .35rem; margin: 0; padding: .55rem 0; list-style: none; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to var(--fx-fade-dir, right), #000 92%, transparent);
  mask-image: linear-gradient(to var(--fx-fade-dir, right), #000 92%, transparent); }
[dir="rtl"] .fx-nav ul { --fx-fade-dir: left; }
.fx-nav ul::-webkit-scrollbar { display: none; }
.fx-nav li { flex: none; }
.fx-nav a { display: block; padding: .38rem .85rem; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  color: var(--fg-muted); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.fx-nav a:hover { color: var(--fg-strong); background: var(--slate-1); }
.fx-nav a.is-active, .fx-nav a[aria-current="true"] { background: var(--green-soft); color: var(--green-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fx-nav a:hover { background: #1C333D; } :root:not([data-theme="light"]) .fx-nav a.is-active { color: #7FE3C4; } }
:root[data-theme="dark"] .fx-nav a:hover { background: #1C333D; }
:root[data-theme="dark"] .fx-nav a.is-active { color: #7FE3C4; }
html[lang="ur"] .fx-nav a { font-size: .85rem; padding-block: .2rem .45rem; }

/* ---------- a feature area */
.fx-sec, .fx-compare-sec { scroll-margin-top: calc(var(--fx-top, 64px) + 56px); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4.5rem); }
.fx-sec:nth-of-type(even) { background: var(--bg-alt); border-block: 1px solid var(--line); }
/* phones: headline, picture, then the points; wide screens: text beside the picture, alternating sides */
.fx-grid { display: grid; gap: 1.5rem; grid-template-areas: "head" "visual" "body"; }
.fx-head { grid-area: head; }
.fx-visual { grid-area: visual; }
.fx-body { grid-area: body; }
.fx-head .fx-lead { margin-block-end: 0; }
@media (min-width: 900px) {
  .fx-grid { grid-template-columns: 5fr 7fr; grid-template-rows: auto auto; column-gap: clamp(2.5rem, 5vw, 4.5rem); row-gap: 1.25rem;
    grid-template-areas: "head visual" "body visual"; }
  .fx-head { align-self: end; }
  .fx-body { align-self: start; }
  .fx-visual { align-self: center; }
  .fx-sec.flip .fx-grid { grid-template-columns: 7fr 5fr; grid-template-areas: "visual head" "visual body"; }
}
.fx-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  color: var(--green-2); letter-spacing: .06em; text-transform: uppercase; }
html[lang="ar"] .fx-kicker, html[lang="ur"] .fx-kicker, html[lang="hi"] .fx-kicker { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.fx-num { display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.6rem; padding-inline: .45rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green-2); font-family: "Montserrat", system-ui, sans-serif; font-size: .78rem; letter-spacing: 0; }
.fx-text h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); margin-block-end: .6rem; max-width: 22ch; }
.fx-lead { font-size: 1.08rem; color: var(--fg-muted); margin: 0 0 1.25rem; max-width: 46ch; }
.fx-points { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.fx-points li { position: relative; padding-inline-start: 1.9rem; line-height: 1.5; }
html[lang="ur"] .fx-points li { line-height: 2; }
.fx-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center/70% no-repeat; }
html[lang="ur"] .fx-points li::before { top: .45em; }
.fx-tag { display: inline-block; vertical-align: .1em; margin-inline-start: .3rem; padding: .05em .55em; border-radius: 999px; font-size: .72rem;
  font-weight: 700; font-family: var(--font-head); color: var(--fg-muted); border: 1px solid var(--line); white-space: nowrap; line-height: 1.6; }
.fx-plans { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin: 0; font-size: .85rem; color: var(--fg-muted); }
.fx-plans-label { margin-inline-end: .15rem; }
.fx-plan { display: inline-flex; gap: .35rem; align-items: baseline; padding: .22rem .7rem; border-radius: 999px; background: var(--bg-card);
  border: 1px solid var(--line); color: var(--fg); }
.fx-sec:nth-of-type(even) .fx-plan { background: var(--bg); }
.fx-plan b { color: var(--green-2); font-weight: 700; }
.fx-note { margin: 1rem 0 0; font-size: .85rem; color: var(--fg-muted); max-width: 52ch; }

/* ---------- media: a screenshot in a window frame, a phone or a printout over its corner */
.fx-media { margin: 0; }
.fx-stage { position: relative; }
.fx-media.has-side.side-phone .fx-stage { padding-block-end: 22%; }
.fx-media.has-side.side-paper .fx-stage { padding-block-end: 12%; }
.fx-win { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(11, 46, 59, .05), 0 28px 60px -28px rgba(11, 46, 59, .45); }
.fx-has-side .fx-win, .fx-media.has-side .fx-win { margin-inline-end: 9%; }
.fx-bar { display: flex; gap: 6px; align-items: center; height: 22px; padding-inline: 12px; background: var(--ink); }
.fx-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3D6B7C; }
.fx-win img { width: 100%; height: auto; display: block; }
.fx-phone, .fx-paper { position: absolute; inset-block-end: 0; inset-inline-end: 0; overflow: hidden; background: #fff; }
.fx-phone { width: 27%; border: 6px solid #0B2E3B; border-radius: 24px; box-shadow: 0 24px 40px -16px rgba(11, 46, 59, .55); }
.fx-paper { width: 36%; border-radius: 8px; border: 1px solid rgba(11, 46, 59, .14); box-shadow: 0 24px 40px -16px rgba(11, 46, 59, .5); }
.fx-phone img, .fx-paper img { width: 100%; height: auto; display: block; }
.fx-sec.flip .fx-phone, .fx-sec.flip .fx-paper { inset-inline-end: auto; inset-inline-start: 0; }
.fx-sec.flip .fx-media.has-side .fx-win { margin-inline-end: 0; margin-inline-start: 9%; }
.fx-cap { margin: 1rem 0 0; font-size: .85rem; color: var(--fg-muted); text-align: start; }
.fx-art { display: grid; place-items: center; border-radius: 20px; padding: 1rem 1.25rem 1.25rem;
  background: radial-gradient(120% 120% at 70% 20%, var(--green-soft), transparent 70%), var(--bg-card); border: 1px solid var(--line); }
.fx-art img { width: min(62%, 360px); height: auto; filter: drop-shadow(0 18px 24px rgba(11, 46, 59, .18)); }
.fx-art .fx-cap { text-align: center; margin-block-start: .5rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fx-win { border-color: #2A4652; } }
.fx-visual .off-credit { margin-block-start: .4rem; }
@media (max-width: 899px) {
  .fx-visual { max-width: 640px; }
  .fx-phone { border-width: 4px; border-radius: 16px; }
}

/* ---------- Online vs Desktop */
.fx-compare-sec { background: var(--bg-alt); border-block: 1px solid var(--line); }
.fx-compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); box-shadow: var(--shadow); }
.fx-compare table { width: 100%; border-collapse: collapse; }
.fx-compare th, .fx-compare td { padding: .85rem 1.1rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.fx-compare tbody tr:last-child th, .fx-compare tbody tr:last-child td { border-block-end: 0; }
.fx-compare thead th { background: var(--bg); position: static; font-weight: 700; }
.fx-compare thead th strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.fx-compare thead th span:not(.visually-hidden) { display: block; font-size: .85rem; font-weight: 600; color: var(--green-2); margin-block-start: .15rem; }
.fx-compare tbody th { font-weight: 600; color: var(--fg-strong); width: 26%; }
.fx-compare tbody td { color: var(--fg); }
.fx-compare td:nth-child(2) { background: color-mix(in srgb, var(--green-soft) 35%, transparent); }
.fx-compare-note { margin: 1.25rem 0 .4rem; font-weight: 600; color: var(--fg-strong); }
.fx-compare-sec .btn-row { margin-block-start: 1.5rem; }
@media (max-width: 640px) {
  .fx-compare thead { display: none; }
  .fx-compare table, .fx-compare tbody, .fx-compare tr, .fx-compare th, .fx-compare td { display: block; width: auto; }
  .fx-compare tr { padding: .9rem 1rem; border-block-end: 1px solid var(--line); }
  .fx-compare tbody tr:last-child { border-block-end: 0; }
  .fx-compare tbody th, .fx-compare td { padding: 0; border: 0; }
  .fx-compare tbody th { margin-block-end: .4rem; font-size: 1rem; }
  .fx-compare td { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding-block: .2rem; background: none !important; font-size: .93rem; }
  .fx-compare td::before { content: attr(data-label); font-weight: 700; color: var(--green-2); font-size: .8rem; line-height: 1.7; }
}

/* ---------- the full list, folded */
.fx-details { display: grid; gap: .6rem; }
.fx-details details { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-s); }
.fx-details summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; color: var(--fg-strong); list-style: none; }
.fx-details summary::-webkit-details-marker { display: none; }
.fx-details summary::after { content: ""; width: .6rem; height: .6rem; border-inline-end: 2px solid var(--fg-muted); border-block-end: 2px solid var(--fg-muted);
  transform: rotate(45deg); transition: transform .15s; margin-inline-start: auto; flex: none; }
.fx-details details[open] summary::after { transform: rotate(-135deg); }
.fx-count { font-size: .78rem; font-weight: 700; color: var(--fg-muted); background: var(--slate-1); border-radius: 999px; padding: .05rem .55rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fx-count { background: #1C333D; } }
:root[data-theme="dark"] .fx-count { background: #1C333D; }
.fx-details .feature-items { padding: 0 1.1rem 1.1rem; }
.fx-details .badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-block-start: .35rem; }
@media (min-width: 900px) { .fx-details { grid-template-columns: 1fr 1fr; align-items: start; } }

/* a printout at the start corner (screens.json kind "paper start"), and the promotion examples on the illustration */
.fx-media.start .fx-win { margin-inline-end: 0; margin-inline-start: 9%; }
.fx-paper.start { inset-inline-end: auto; inset-inline-start: 0; }
.fx-art-stage { position: relative; width: 100%; display: grid; place-items: center; padding-block: 2.6rem; }
.fx-examples { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.fx-examples li { position: absolute; padding: .45rem .9rem; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 14px 28px -16px rgba(11, 46, 59, .45); font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--fg-strong); white-space: nowrap; }
.fx-examples li::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); margin-inline-end: .5rem; vertical-align: .05em; }
.fx-examples li:nth-child(1) { top: 0; inset-inline-start: 2%; }
.fx-examples li:nth-child(2) { top: 46%; inset-inline-end: 0; }
.fx-examples li:nth-child(3) { bottom: 0; inset-inline-start: 6%; }
@media (max-width: 520px) { .fx-examples li { font-size: .72rem; padding: .3rem .6rem; } }

/* ---- grouped page (5 Oct 2026): AI band, group heads with the new features' cards, "also in this group" ---- */
.fx-ai, .fx-group { scroll-margin-top: calc(var(--fx-top, 64px) + 56px); padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.fx-ai { background: linear-gradient(180deg, var(--green-soft), transparent 70%); }
.fx-ai-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .fx-ai-grid { grid-template-columns: 1fr 1fr; } }
.fx-ai-card { display: flex; flex-direction: column; gap: .6rem; }
.fx-ai-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.fx-ai-card h3 { margin: .25rem 0 0; }
.fx-ai-card p { margin: 0; }
.fx-ai-card .check-list { margin-block: .25rem; }
.fx-ai-never { display: flex; gap: .5rem; align-items: flex-start; padding: .7rem .9rem; border-radius: var(--radius-s); background: var(--bg-alt); font-weight: 600; font-size: .94rem; }
.fx-ai-never .ico { width: 20px; height: 20px; flex: none; color: var(--green-2); margin-block-start: .2rem; }
.fx-ai-card .more-link { margin-block-start: auto; }
.fx-group { background: var(--bg-alt); border-block-start: 1px solid var(--line); }
.fx-group-head { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; margin-block-end: 1.5rem; max-width: 820px; }
.fx-group-head h2 { margin-block-end: .3rem; }
.fx-group-head .fx-lead { margin: 0; }
.fx-new-label { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--green-2); margin-block-end: .75rem; }
.fx-also { margin-block-start: 1.5rem; }
.fx-also-label { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--fg-muted); margin-block-end: .6rem; }
.fx-also-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.fx-also-list li { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; }
.fx-also-list strong { color: var(--fg-strong); }
.fx-soon-note { margin-block-start: 1rem; }
.fx-sec.fx-area { background: var(--bg); border-block: 0; border-block-start: 1px solid var(--line); }
.fx-sec.fx-area .fx-plan { background: var(--bg-alt); }
@media (max-width: 520px) { .fx-group-head { grid-template-columns: 1fr; } }
.fx-group-top { display: grid; gap: 1rem 2rem; align-items: center; margin-block-end: 1.5rem; }
.fx-group-top .fx-group-head { margin-block-end: 0; }
@media (min-width: 900px) { .fx-group-top.has-art { grid-template-columns: minmax(0, 1fr) 280px; } }
.fx-group-art img, .fx-group-art .art-ico { width: 100%; max-width: 280px; height: auto; display: block; margin-inline: auto; }
@media (max-width: 899px) { .fx-group-art { max-width: 220px; } }
