/* Favabeans home page (/ and /ar/), from the owner's Claude Design file "Favabeans Homepage".
   Section pages keep /assets/home.css. Theme follows /assets/prefs.js: <html data-theme> when
   the visitor forces one, otherwise the device. Comfort settings come from prefs.js too:
   data-text / data-text-xl (text size), data-spacing="roomy", data-pictures="hide". */

/* Metric-matched fallback faces (no layout shift when the web fonts arrive): /assets/chrome.css. */

:root {
  --bg: #f7f6f2; --card: #ffffff; --ink: #18181b; --ink2: #3d3d44; --ink3: #4a4a52; --onink: #ffffff;
  --soft: #f0efea; --soft2: #ebe8df; --hover: rgba(0,0,0,.05); --line: rgba(0,0,0,.08); --line2: rgba(0,0,0,.16);
  --bluet: #1a3db8; --bluebg: #eef2fe; --pill: rgba(255,255,255,.75);
  --ok: #2c6b28; --okbg: #dcefd9; --blue: #2b55e6; --blue-h: #1f46cf; --eyebrow: #2b55e6; --link: #2b55e6; --link-h: #1a3db8;
  --t1: #e4ecfb; --t2: #f5eed8; --t3: #fae6dd; --t4: #e9e7fa;
  --sans: 'Atkinson Hyperlegible Next', 'Atkinson Fallback', 'IBM Plex Sans Arabic', 'PA Fallback 1', 'PA Fallback 2', 'PA Fallback 3', 'PA Fallback 4', system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Instrument Fallback', 'Amiri', 'AM Fallback 1', 'AM Fallback 2', 'AM Fallback 3', 'AM Fallback 4', Georgia, serif;
  --wrap: 1160px;
  color-scheme: light;
  font-size: 100%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214; --card: #1d1d21; --ink: #f2f1ec; --ink2: #c8c7c2; --ink3: #a9a8a3; --onink: #121214;
    --soft: #26262b; --soft2: #26262b; --hover: rgba(255,255,255,.07); --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.22);
    --bluet: #9fb4ff; --bluebg: #1f2640; --pill: rgba(0,0,0,.3); --ok: #8fd88a; --eyebrow: #9fb4ff; --link: #9fb4ff; --link-h: #c4d1ff;
    --t1: #1e2a40; --t2: #33301f; --t3: #3a2620; --t4: #2a2840;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121214; --card: #1d1d21; --ink: #f2f1ec; --ink2: #c8c7c2; --ink3: #a9a8a3; --onink: #121214;
  --soft: #26262b; --soft2: #26262b; --hover: rgba(255,255,255,.07); --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.22);
  --bluet: #9fb4ff; --bluebg: #1f2640; --pill: rgba(0,0,0,.3); --ok: #8fd88a; --eyebrow: #9fb4ff; --link: #9fb4ff; --link-h: #c4d1ff;
  --t1: #1e2a40; --t2: #33301f; --t3: #3a2620; --t4: #2a2840;
  color-scheme: dark;
}

/* Comfort text size (A / A+ / A++): /assets/chrome.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:root[data-motion="reduce"] { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
:root[data-spacing="roomy"] body { letter-spacing: .03em; word-spacing: .12em; line-height: 1.75; }
/* Spacing between letters breaks up Arabic script, so roomy Arabic gets word and line space only. */
:root[data-spacing="roomy"][lang="ar"] body { letter-spacing: normal; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-h); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; }
button { font: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
[lang="ar"] .serif { font-style: normal; letter-spacing: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.ck { width: 20px; height: 20px; border-radius: 50%; background: var(--okbg); color: #2c6b28; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; line-height: 1; }

.skip { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--onink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; color: var(--onink); }

/* Header, Comfort panel and footer: /assets/chrome.css (shared by every site page). */

/* ---------- Hero ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.badge { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--bluebg); color: var(--bluet); font-size: .875rem; font-weight: 600; }
.hero h1 { margin: 0; font-size: clamp(2.75rem, 6.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; }
.lede { margin: 0; font-size: 1.25rem; color: var(--ink2); max-width: 520px; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-p { display: inline-flex; align-items: center; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font-size: 1.0625rem; font-weight: 700; }
.btn-p:hover { background: var(--blue-h); color: #fff; }
.btn-s { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line2); color: var(--ink); text-decoration: none; font-size: 1.0625rem; font-weight: 600; }
.btn-s:hover { border-color: var(--ink); color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9375rem; color: var(--ink2); }
.checks li { display: flex; align-items: center; gap: 8px; }

/* Phones: CSS iPhone frames around fresh 390-wide screenshots (no upscaling). */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 480px; padding: 20px 0; }
:root[data-pictures="hide"] .hero-art { display: none; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 0; border-radius: 40px; background: var(--soft2); }
.phone { position: relative; flex: none; padding: 3px; background: linear-gradient(140deg, #e4e4e8 0%, #a7a7ad 35%, #f0f0f3 55%, #8d8d93 100%); box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 10px 20px -10px rgba(0,0,0,.25); }
.phone-s { width: 170px; height: 368px; border-radius: 34px; }
.phone-m { width: 200px; height: 433px; border-radius: 40px; z-index: 2; }
.phone-l { margin-inline-end: -44px; transform: rotate(-6deg) translateY(16px); }
.phone-r { margin-inline-start: -44px; transform: rotate(6deg) translateY(16px); }
[dir="rtl"] .phone-l { transform: rotate(6deg) translateY(16px); }
[dir="rtl"] .phone-r { transform: rotate(-6deg) translateY(16px); }
.phone .btn-side { position: absolute; width: 3px; border-radius: 2px 0 0 2px; background: #9a9aa0; left: -3px; }
.phone .btn-side.r { left: auto; right: -3px; border-radius: 0 2px 2px 0; }
.phone-s .b1 { top: 70px; height: 18px; } .phone-s .b2 { top: 99px; height: 33px; } .phone-s .b3 { top: 140px; height: 33px; } .phone-s .r { top: 110px; height: 48px; }
.phone-m .b1 { top: 82px; height: 22px; } .phone-m .b2 { top: 117px; height: 39px; } .phone-m .b3 { top: 165px; height: 39px; } .phone-m .r { top: 130px; height: 56px; }
.bezel { width: 100%; height: 100%; background: #0a0a0c; }
.phone-s .bezel { border-radius: 31px; padding: 7px; }
.phone-m .bezel { border-radius: 37px; padding: 8px; }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0a0a0c; }
.phone-s .screen { border-radius: 24px; }
.phone-m .screen { border-radius: 29px; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.island { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone-s .island { top: 6px; width: 53px; height: 15px; }
.phone-m .island { top: 7px; width: 62px; height: 18px; }
.phones { position: relative; display: flex; align-items: center; justify-content: center; }

/* ---------- Finder ---------- */
.finder { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 72px; scroll-margin-top: 90px; }
.panel { background: var(--card); border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 20px 50px -30px rgba(0,0,0,.18); padding: clamp(24px, 4vw, 48px); }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; font-size: .875rem; font-weight: 700; color: var(--eyebrow); letter-spacing: .04em; text-transform: uppercase; }
[lang="ar"] .eyebrow { letter-spacing: 0; }
.h2 { margin: 0; font-size: clamp(2rem, 4vw, 2.875rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.h2b { margin: 0; font-size: clamp(1.875rem, 3.6vw, 2.625rem); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
[lang="ar"] :is(.h2, .h2b, h1, h3) { letter-spacing: 0; }
.pick-hint { margin: 0; font-size: 1.0625rem; color: var(--ink2); max-width: 380px; }
.finder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 28px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); font-size: 1.0625rem; font-weight: 500; cursor: pointer; text-align: start; }
.chip:hover { border-color: var(--ink); }
.chip .tick { display: none; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--onink); font-weight: 600; }
.chip[aria-pressed="true"] .tick { display: inline; }
.starter { min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1.5px dashed var(--blue); background: var(--bluebg); color: var(--bluet); font-size: 1.0625rem; font-weight: 600; cursor: pointer; text-align: start; }
.starter[aria-pressed="true"] { border-style: solid; }
.out { background: var(--bg); border-radius: 24px; padding: 24px; min-height: 320px; display: flex; flex-direction: column; gap: 16px; }
.out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.out-head .eyebrow { margin: 0; }
.clear { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink2); font-size: .9375rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.clear[hidden] { display: none; }
.empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; padding: 20px; border: 2px dashed var(--line); border-radius: 18px; }
.empty[hidden] { display: none; }
.empty-t { margin: 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; }
.empty-s { margin: 0; font-size: 1rem; color: var(--ink3); max-width: 300px; }
.results { display: flex; flex-direction: column; gap: 16px; }
.results[hidden] { display: none; }
.res-title { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.res-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.res { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: 18px; padding: 14px 16px; border: 1px solid var(--line); }
.res-ic { width: 52px; height: 52px; border-radius: 13px; flex: none; display: block; }
.res-txt { flex: 1; min-width: 0; }
.res-name { margin: 0; font-size: 1.125rem; font-weight: 700; }
.res-blurb { margin: 2px 0 0; font-size: .9375rem; color: var(--ink3); text-wrap: pretty; }
.res-demo { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-top: 2px; font-size: .875rem; font-weight: 600; color: var(--bluet); text-decoration: none; }
.res-demo:hover { text-decoration: underline; color: var(--bluet); }
.res-demo .pl { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bluebg); font-size: 9px; }
[dir="rtl"] .res-demo .pl { transform: scaleX(-1); }
.res-open { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.res-open:hover { background: var(--blue-h); color: #fff; }
.res-note { margin: 0; font-size: .875rem; color: var(--ink3); }

/* ---------- Browse ---------- */
.browse { max-width: var(--wrap); margin: 0 auto; padding: 24px 24px 80px; scroll-margin-top: 90px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 28px; }
.sec-sub { margin: 8px 0 0; font-size: 1.125rem; color: var(--ink2); }
/* Section tiles (the owner's pick from before the redesign): a tinted panel with a fan of three app
   icons, then title, one line, the apps' icons, "N apps" and an Explore pill. 2 x 2, stacked on phones. */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; scroll-margin-top: 90px; transition: box-shadow .3s; }
.tile:hover { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 34px -24px rgba(0,0,0,.3); }
.tile-1 { --tint: var(--t1); } .tile-2 { --tint: var(--t2); } .tile-3 { --tint: var(--t3); } .tile-4 { --tint: var(--t4); }
.tile-art { display: grid; place-items: center; padding: 24px 20px; min-height: 236px; background: var(--tint); }
.tile-body { display: flex; flex-direction: column; min-width: 0; padding: 26px 26px 22px; }
.tile h3 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
.tile-line { margin: 8px 0 0; color: var(--ink2); font-size: 1rem; line-height: 1.5; }
.tile-icons { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tile-icons li { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tile-icons img { display: block; width: 28px; height: 28px; border-radius: 7px; }
.tile-icons img.plate { padding: 3px; }
.tile-foot { margin: auto 0 0; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.tile-count { font-size: .9375rem; font-weight: 600; color: var(--ink2); }
.tile-go { display: inline-flex; align-items: center; gap: .4em; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--bluebg); color: var(--bluet); font-size: 1rem; font-weight: 700; text-decoration: none; }
.tile-go:hover { color: var(--bluet); background: color-mix(in srgb, var(--blue) 18%, var(--card)); }
/* The whole tile opens its page; the Explore pill carries the link (and the focus ring). */
.tile-go::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.tile-go:focus-visible { outline: none; }
.tile:has(.tile-go:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.tile-go span[aria-hidden] { display: inline-block; transition: transform .3s; }
.tile:hover .tile-go span[aria-hidden] { transform: translateX(3px); }
[dir="rtl"] .tile:hover .tile-go span[aria-hidden] { transform: translateX(-3px); }
.see-all { margin: 28px 0 0; text-align: center; }
.see-all a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; font-size: 1.0625rem; font-weight: 600; color: var(--link); }
.see-all a:hover { color: var(--link-h); }
/* The fan: three real app icons, the middle one in front */
.fan { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 210px; }
.fan img { display: block; width: 40%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 10px 14px rgb(20 24 40 / .22)) drop-shadow(0 2px 3px rgb(20 24 40 / .12)); transition: transform .45s; }
.fan img:nth-child(1) { transform: rotate(-11deg) scale(.84); margin-inline-end: -10%; z-index: 1; }
.fan img:nth-child(2) { position: relative; z-index: 2; }
.fan img:nth-child(3) { transform: rotate(11deg) scale(.84); margin-inline-start: -10%; z-index: 1; }
[dir="rtl"] .fan img:nth-child(1) { transform: rotate(11deg) scale(.84); }
[dir="rtl"] .fan img:nth-child(3) { transform: rotate(-11deg) scale(.84); }
.tile:hover .fan img:nth-child(1) { transform: rotate(-15deg) scale(.86) translateX(-4%); }
.tile:hover .fan img:nth-child(3) { transform: rotate(15deg) scale(.86) translateX(4%); }
.tile:hover .fan img:nth-child(2) { transform: translateY(-3%); }
[dir="rtl"] .tile:hover .fan img:nth-child(1) { transform: rotate(15deg) scale(.86) translateX(4%); }
[dir="rtl"] .tile:hover .fan img:nth-child(3) { transform: rotate(-15deg) scale(.86) translateX(-4%); }
.fan img.plate { background: #fff; border-radius: 23%; padding: 7%; box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fan img { filter: drop-shadow(0 10px 16px rgb(0 0 0 / .5)); } }
:root[data-theme="dark"] .fan img { filter: drop-shadow(0 10px 16px rgb(0 0 0 / .5)); }
@media (prefers-reduced-motion: reduce) { .fan img, .tile-go span[aria-hidden] { transition: none; } }
:root[data-motion="reduce"] .fan img, :root[data-motion="reduce"] .tile-go span[aria-hidden] { transition: none; }
:root[data-pictures="hide"] .tile-art { display: none; }
:root[data-pictures="hide"] .tile { grid-template-columns: minmax(0, 1fr); }
/* Icons without their own tile (ReadThis) get a white app-icon plate. */
img.plate { background: #fff; padding: 5px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.res-ic.plate { padding: 7px; }

/* ---------- Promise ---------- */
.promise { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 24px; }
.promise-in { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; }
.promise h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; line-height: 1; }
[lang="ar"] .promise h2 { font-style: normal; }
.promise ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; flex: 1; }
.promise li { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; }
.promise li .ck { width: 22px; height: 22px; }
.promise-link { font-size: .9375rem; font-weight: 600; color: var(--bluet); display: inline-flex; align-items: center; min-height: 44px; }
.promise-note { margin: 0; flex-basis: 100%; font-size: .875rem; color: var(--ink3); }

/* ---------- Why + sync + feedback ---------- */
.about { max-width: var(--wrap); margin: 0 auto; padding: 80px 24px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: start; scroll-margin-top: 90px; }
.why { display: flex; flex-direction: column; gap: 18px; }
.why p { margin: 0; font-size: 1.125rem; color: var(--ink2); text-wrap: pretty; }
.why .free { font-size: 1rem; padding: 16px 18px; background: var(--soft2); border-radius: 16px; }
.why .free strong { color: var(--ink); }
.sign { display: flex; align-items: center; gap: 10px; }
.sign img { width: 26px; height: 26px; }
.sign span { font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--ink); }
[lang="ar"] .sign span { font-style: normal; }
.side { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--card); border-radius: 24px; border: 1px solid var(--line); padding: 26px; }
.sync { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; scroll-margin-top: 90px; }
.sync-txt { flex: 1; min-width: 200px; }
.sync-art { flex: none; width: 96px; height: auto; }
.sync-art .sa-fill { fill: color-mix(in srgb, var(--blue) 12%, var(--card)); }
.sync-art .sa-fill2 { fill: color-mix(in srgb, #8E7CF0 16%, var(--card)); }
.sync-art .sa-line { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.sync-art .sa-arc { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .sync-art { transform: scaleX(-1); }
:root[data-pictures="hide"] .sync-art { display: none; }
.btn-sync { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.card h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.sync p { margin: 6px 0 0; font-size: 1rem; color: var(--ink2); }

/* The real feedback box (/assets/feedback.js), dressed as the design's card. Its pieces are
   re-ordered with display: contents so it reads: [BETA] question / intro / stars / note link. */
.fb-card .fbk { width: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 10px; }
.fb-card .fbk-intro { display: contents; }
.fb-card .fbk .fbk-beta { order: 1; margin: 0; padding: 4px 10px; border: 0; border-radius: 999px; background: #fbe3b8; color: #7a4a05; font: 700 .8125rem/1.4 var(--sans); letter-spacing: .04em; box-shadow: none; }
.fb-card .fbk-q { order: 2; flex: 1 1 12em; margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.fb-card .fbk-q svg { display: none; }
.fb-card .fbk-intro-text { order: 3; flex-basis: 100%; font-size: 1rem; color: var(--ink2); }
.fb-card .fbk-stars { order: 4; gap: 6px; }
.fb-card .fbk-star { width: 48px; height: 48px; padding: 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink3); display: grid; place-items: center; }
.fb-card .fbk-star svg { width: 24px; height: 24px; }
.fb-card .fbk-star.on, .fb-card .fbk-stars.hovering .fbk-star.hov { background: rgba(224,161,0,.15); color: #e0a100; }
.fb-card .fbk-stars.hovering .fbk-star:not(.hov) { color: var(--ink3); background: var(--card); }
.fb-card .fbk-hint { order: 5; color: var(--ink2); font-size: .9375rem; }
.fb-card .fbk-form { order: 7; flex-basis: 100%; margin: 0; }
.fb-card .fbk textarea { background: var(--bg); border-color: var(--line2); }
.fb-card .fbk-send { order: 6; background: var(--blue); color: #fff; min-height: 44px; }
.fb-card .fbk-foot { order: 8; flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--ink3); }
.fb-card .fbk-foot a { color: var(--ink3); }
.fb-card .fbk-msg { order: 3; flex-basis: 100%; color: var(--ok); }
.fb-card .fbk-err { color: #b3261e; }
.fb-card .fbk-star:focus-visible, .fb-card .fbk button:focus-visible, .fb-card .fbk textarea:focus-visible, .fb-card .fbk input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.fb-card:empty { display: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 760px) {
  .wrap, .hero, .finder, .browse, .promise, .about { padding-inline: 16px; }
  .hero { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .hero-art { min-height: 0; padding: 8px 0; }
  .phones { zoom: .86; }
  .finder { padding-bottom: 56px; }
  .browse { padding-top: 8px; padding-bottom: 56px; }
  .about { padding-top: 56px; }
}
@media (max-width: 520px) {
  .phones { zoom: .74; }
  .out { padding: 16px; }
  .res { flex-wrap: wrap; gap: 12px 14px; padding: 12px; }
  .res-ic { width: 44px; height: 44px; border-radius: 11px; }
  .res-txt { flex-basis: calc(100% - 60px); }
  .res-open { margin-inline-start: 58px; }
}
@media (max-width: 520px) {
  .promise h2, .promise ul { flex-basis: 100%; }
  .card { padding: 22px 20px; }
  .fb-card .fbk-star { width: 40px; height: 44px; }
  .fb-card .fbk-stars { gap: 4px; }
}
@media (max-width: 380px) {
  .phones { zoom: .62; }
  .chip, .starter { padding: 0 16px; font-size: 1rem; }
}

/* Section tiles on smaller screens: one column, then a narrower picture panel */
@media (max-width: 900px) {
  .tiles { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .tile { grid-template-columns: 112px minmax(0, 1fr); border-radius: 24px; }
  .tile-go::after { border-radius: 24px; }
  .tile-art { min-height: 0; padding: 14px 10px; }
  .tile-body { padding: 18px 18px 16px; }
  .tile h3 { font-size: 1.25rem; }
  .tile-icons { margin-top: 14px; gap: 4px; }
  .tile-icons li { width: 34px; height: 34px; border-radius: 10px; }
  .tile-icons img { width: 24px; height: 24px; border-radius: 6px; }
  .tile-foot { padding-top: 14px; }
  .tile-go { padding: 0 16px; }
  .fan img { width: 46%; }
  .fan img:nth-child(1) { margin-inline-end: -16%; }
  .fan img:nth-child(3) { margin-inline-start: -16%; }
  .sync-art { width: 80px; }
}
@media (max-width: 360px) {
  .tile { grid-template-columns: 84px minmax(0, 1fr); }
  .tile-body { padding: 16px 14px 14px; }
}

/* ---------- Intro video: "Watch: Favabeans in 90 seconds" (front.js; files in /assets/intro/) ---------- */
.intro-pl { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
.intro-pl svg { width: 14px; height: 14px; fill: currentColor; margin-inline-start: 2px; }
[dir="rtl"] .intro-pl svg { transform: scaleX(-1); }

.intro-dlg { width: min(880px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 14px 16px 16px;
  border: 0; border-radius: 24px; color: var(--ink); background: var(--card); overflow: auto;
  box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 28px 60px -20px rgb(0 0 0 / .45); }
.intro-dlg::backdrop { background: rgb(15 15 20 / .5); }
.intro-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.intro-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.intro-x { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1;
  color: var(--ink2); background: transparent; display: grid; place-items: center; }
.intro-x:hover { background: var(--hover); color: var(--ink); }
.intro-vid { aspect-ratio: 16 / 9; max-height: calc(100dvh - 260px); margin: 0 auto; border-radius: 16px; overflow: hidden; background: #f7f6f2; }
.intro-vid video { display: block; width: 100%; height: 100%; object-fit: contain; background: #f7f6f2; }
/* Captions under the picture: large, and room for two lines so nothing jumps when they change */
.intro-cap { margin: 12px 0 0; min-height: calc(2 * 1.4em); font-size: 1.0625rem; font-weight: 500; line-height: 1.4; text-align: center; text-wrap: balance; color: var(--ink); }
[lang="ar"] .intro-cap { line-height: 1.6; min-height: calc(2 * 1.6em); }
.intro-err { margin: 10px 0 0; font-weight: 600; color: #b3261e; }
.intro-err[hidden] { display: none; }
.intro-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.intro-acts button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid var(--line2); cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--ink); background: var(--card); }
.intro-acts button:hover { border-color: var(--ink); }
.intro-acts .intro-voice { border-color: transparent; background: var(--blue); color: #fff; }
.intro-acts .intro-voice:hover { background: var(--blue-h); border-color: transparent; }
.intro-acts .intro-voice[aria-pressed="true"] { background: var(--card); color: var(--ink); border-color: var(--line2); }
.intro-voice svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.intro-voice[aria-pressed="false"] .w { opacity: .45; }
.intro-note { margin: 10px 0 0; font-size: .9375rem; line-height: 1.45; text-align: center; color: var(--ink3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .intro-dlg::backdrop { background: rgb(0 0 0 / .66); } }
:root[data-theme="dark"] .intro-dlg::backdrop { background: rgb(0 0 0 / .66); }
@media (max-width: 480px) {
  .intro-dlg { padding: 10px 12px 14px; border-radius: 20px; }
  .intro-head h2 { font-size: 1.0625rem; }
  .intro-vid { border-radius: 12px; }
  .intro-cap { font-size: 1rem; }
}
@media (forced-colors: active) { .intro-dlg { border: 1px solid CanvasText; } }

/* The way in: the whole three-phones picture is one button, with a frosted "Watch" pill at its bottom.
   With Comfort "Pictures: Hide" the picture goes and the same pill (.intro-alone) shows under the main buttons. */
.intro-alone { display: none; align-self: flex-start; max-width: 100%; margin: -4px 0 0; padding: 0; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:root[data-pictures="hide"] .intro-alone { display: inline-flex; }
.intro-alone:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.art-play { position: absolute; inset: 8% 4% 0; z-index: 3; display: grid; place-items: end center; margin: 0; padding: 0 14px 22px; border: 0; border-radius: 40px;
  background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.art-play:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.art-pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 52px; padding: 0 20px 0 8px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; line-height: 1.25; text-align: start; text-wrap: balance; color: #18181b; background: rgb(255 255 255 / .94);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 12px 30px -10px rgb(20 24 40 / .45), 0 3px 8px -3px rgb(20 24 40 / .25); }
[dir="rtl"] .art-pill { padding: 0 8px 0 20px; }
.art-pill .intro-pl { width: 38px; height: 38px; background: #2b55e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art-pill { color: #f2f1ec; background: rgb(29 29 33 / .92); box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 12px 30px -10px rgb(0 0 0 / .7); } }
:root[data-theme="dark"] .art-pill { color: #f2f1ec; background: rgb(29 29 33 / .92); box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 12px 30px -10px rgb(0 0 0 / .7); }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduce"]) .art-pill { transition: transform .25s ease, box-shadow .25s ease; }
  :root:not([data-motion="reduce"]) :is(.art-play, .intro-alone):hover .art-pill { transform: translateY(-2px) scale(1.03); }
}
@media (max-width: 380px) { .art-pill { font-size: .9375rem; min-height: 48px; } }
@media (forced-colors: active) { .art-pill { border: 1px solid ButtonText; } }
