/* ArabicKeyboard.io / ClavierArabe.io front-page SEO/GEO funnel + tool breadcrumbs & FAQs. */
.arabic-hero .home-hero-h1 .hero-title-main { font-weight: inherit; color: var(--ink); }
.arabic-hero .home-hero-h1 > span { color: var(--accent-readable, var(--accent)); }
.home-assurance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 16px 0 0; font-size: 13px; font-weight: 500; line-height: 1.65; color: var(--ink); }
.home-assurance > span { display: inline-flex; align-items: center; gap: 6px; }
.home-assurance .icon { width: 14px; height: 14px; color: var(--accent-readable, var(--accent)); stroke-width: 2.3; }

.arabic-hero:has(+ .home-seo-intro) { margin-bottom: 20px; }
.home-seo-intro { padding-block: 0 18px; }
.home-seo-intro-copy { margin: 0; padding-inline: 12%; color: var(--muted); font-size: 14.5px; line-height: 1.82; text-align: start; text-wrap: pretty; }
.home-seo-intro-copy strong { font-weight: 700; color: var(--ink); }
.home-seo-intro-copy a { color: var(--accent-readable, var(--accent)); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 38%, transparent); text-underline-offset: 3px; }
.home-seo-intro-copy a:hover { text-decoration-color: currentColor; }

.home-seo-funnel { min-width: 0; padding-bottom: 18px; }
.home-seo-heading { display: grid; justify-items: center; gap: 8px; margin-bottom: 34px; text-align: center; }
.home-seo-heading .eyebrow { color: var(--accent-readable, var(--accent)); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.home-seo-heading h2 { margin: 0; font-size: calc(clamp(26px, 3vw, 34px) * var(--site-heading-scale, 1)); font-weight: 750; line-height: 1.26; letter-spacing: -.6px; text-wrap: balance; }
.home-seo-heading p { max-width: 68ch; margin: 4px auto 0; color: var(--muted); font-size: 15px; line-height: 1.8; text-wrap: pretty; }

.home-tools-section { padding-block: 44px 20px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.home-tool-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-tool-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 18px 16px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 20px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.home-tool-card-main { display: grid; grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "art heading" "art desc"; column-gap: 14px; row-gap: 5px; align-items: start; align-content: center; min-height: 96px; color: inherit; text-decoration: none; }
.home-tool-card-art { grid-area: art; align-self: center; display: grid; place-items: center; width: 108px; height: 92px; }
.home-tool-card-art img { width: 100%; height: 100%; object-fit: contain; }
.home-tool-card-heading { grid-area: heading; position: relative; margin-top: 4px; padding-inline-end: 24px; }
.home-tool-card h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.28; letter-spacing: -.3px; color: var(--ink); }
.home-tool-card .card-arrow { position: absolute; inset-block-start: 2px; inset-inline-end: 0; color: var(--accent-readable, var(--accent)); opacity: .75; }
.home-tool-card .card-arrow .icon { width: 16px; height: 16px; }
.home-tool-card-description { grid-area: desc; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.56; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.home-dot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.home-dot-links a { color: var(--accent-readable, var(--accent)); font-weight: 500; text-decoration: none; }
.home-dot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-link-dot { color: var(--muted); opacity: .6; user-select: none; }
.home-card-dot-links { padding-top: 13px; border-top: 1px solid var(--line); margin-top: auto; }
.home-faq-dot-links { margin-top: 14px; padding-bottom: 4px; }

.home-geo-facts, .home-usecases, .home-guides { padding-block: 48px 18px; scroll-margin-top: 90px; }
.home-geo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.home-geo-card { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: 24px; background: var(--surface); }
.home-geo-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.home-geo-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-readable, var(--accent)); }
.home-geo-icon .icon { width: 22px; height: 22px; }
.home-geo-card h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.home-geo-card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.78; }

.home-usecases-grid, .home-guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.home-usecase-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.home-usecase-card h3 { margin: 0 0 12px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.home-usecase-card p { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.78; }

.home-guide-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); overflow: hidden; }
.home-guide-art { display: grid; place-items: center; height: 176px; padding: 18px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-bottom: 1px solid var(--line); }
.home-guide-art img { width: auto; max-width: 100%; height: 100%; max-height: 140px; object-fit: contain; }
.home-guide-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.home-guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.home-guide-meta > span:first-child { color: var(--accent-readable, var(--accent)); }
.home-guide-body h3 { margin: 0 0 10px; font-size: 18.5px; font-weight: 700; line-height: 1.32; }
.home-guide-body p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-guide-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--accent-readable, var(--accent)); font-size: 13.5px; font-weight: 600; }
.home-guide-link .icon { width: 16px; height: 16px; }
.home-guides-footer { display: flex; justify-content: center; margin-top: 28px; }
.home-guides-all { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-size: 14.5px; font-weight: 600; }
.home-guides-all .icon { width: 17px; height: 17px; }

.home-how { padding-block: 48px 44px; border-top: 1px solid var(--line); }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; margin: 0; padding: 0; }
.home-steps li { display: flex; gap: 15px; align-items: flex-start; }
.home-step-num { flex: none; font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--accent-readable, var(--accent)); direction: ltr; }
.home-steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.home-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.76; }

.home-promise { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); align-items: center; gap: 38px; padding: 38px 46px; margin: 0 0 50px; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); border-radius: 26px; background: var(--accent-soft); }
.promise-copy h2 { margin: 10px 0 14px; font-size: calc(clamp(24px, 2.7vw, 31px) * var(--site-heading-scale, 1)); font-weight: 750; line-height: 1.25; }
.promise-copy p { margin: 0 0 14px; color: color-mix(in srgb, var(--ink) 28%, var(--muted)); font-size: 14.5px; line-height: 1.8; }
.promise-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-readable, var(--accent)); font-size: 14px; font-weight: 650; }
.promise-link .icon { width: 16px; height: 16px; }
.promise-art { width: min(100%, 310px); justify-self: center; }
.promise-art svg { display: block; width: 100%; height: auto; }

.home-faq { padding-block: 10px 36px; max-width: 900px; margin-inline: auto; }
.home-faq-list { display: grid; gap: 12px; }
.home-faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 18px 22px; }
.home-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary h3 { margin: 0; font-size: 16.5px; font-weight: 650; line-height: 1.45; }
.home-faq-item summary .icon { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.home-faq-item[open] summary .icon { transform: rotate(180deg); }
.home-faq-item > p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

.tool-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.tool-breadcrumbs a { color: var(--muted); font-weight: 500; text-decoration: none; }
.tool-breadcrumbs a:hover { color: var(--accent-readable, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.tool-breadcrumbs .tool-breadcrumb-sep { color: var(--muted); opacity: .55; user-select: none; }
.tool-breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

[dir="rtl"] :is(.home-tool-card .card-arrow, .home-guide-link, .home-guides-all, .promise-link) .icon { transform: scaleX(-1); }

@media (max-width: 1020px) {
    .home-tool-cards, .home-usecases-grid, .home-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .home-seo-intro-copy { padding-inline: 0; }
    .home-promise { padding: 30px; gap: 24px; }
}
@media (max-width: 760px) {
    .tool-breadcrumbs, .home-assurance { justify-content: center; }
    .home-tool-cards, .home-geo-grid, .home-usecases-grid, .home-guides-grid, .home-steps { grid-template-columns: 1fr; gap: 16px; }
    .home-promise { grid-template-columns: 1fr; padding: 26px 22px; }
    .promise-art { width: 180px; grid-row: 1; }
}
@media print { .tool-breadcrumbs { display: none !important; } }

/* The shared i2Suite header and footer, adapted to the ArabicKeyboard wordmark. */
.site-header .brand { width:258px; min-width:0; flex-shrink:1; }
.site-header .brand-logo { width:100%; height:auto; }
.site-network > summary { min-height:40px; }
.arabic-page .site-footer { display:flex; flex-direction:row; align-items:center; flex-wrap:wrap; gap:18px 25px; margin-top:54px; padding:26px 0 35px; text-align:start; }
.site-footer .footer-brand { justify-content:flex-start; }
.site-footer .footer-brand .brand-logo { width:195px; height:auto; }
.footer-note { display:block; font-size:12px; color:var(--muted); flex:1; }
.footer-note a { display:inline-block; margin-inline-start:14px; text-decoration:underline; text-underline-offset:3px; }
.footer-note a:hover { color:var(--ink); }
.footer-details { width:100%; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px 24px; }
.footer-links { justify-content:flex-start; gap:10px 24px; }
.footer-keyboard-links { width:100%; justify-content:center; gap:10px; margin-bottom:6px; padding-block:20px; border-block:1px solid var(--line); font-size:11px; }
.footer-keyboard-links a { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:8px 15px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font-weight:500; line-height:1.4; text-decoration:none; }
.footer-keyboard-links a:hover { background:var(--canvas); color:var(--accent-readable,var(--accent)); text-decoration:none; }
.footer-keyboard-links a[aria-current] { background:var(--accent-soft); color:var(--accent-readable,var(--accent)); font-weight:600; text-decoration:none; }
.footer-keyboard-links a:focus-visible,.footer-information-links a:focus-visible { outline-offset:-2px; }
.site-footer .copyright { display:inline; width:auto; margin:0; font-size:12px; color:var(--muted); }
.footer-made { flex-basis:100%; margin:0; text-align:center; font-size:12px; line-height:1.7; color:var(--muted); }
.footer-heart { display:inline-block; width:16px; height:16px; margin-inline:2px; vertical-align:-3px; fill:#e44859; }
@media(max-width:680px) {
    .site-header .brand { width:min(218px,calc(100vw - 156px)); }
    .site-header .site-network > summary { width:36px; height:36px; min-height:36px; padding:0; justify-content:center; border:1px solid var(--line); border-radius:50%; }
    .site-header .site-network > summary > bdi { display:none; }
    .arabic-page .site-footer { gap:12px 16px; margin-top:34px; padding:22px 4px; }
    .footer-note { flex-basis:100%; }
    .footer-note a { margin-inline-start:10px; }
    .footer-details { gap:12px 18px; }
    .footer-information-links { gap:8px 18px; }
    .site-footer .copyright { width:100%; font-size:11px; }
    .footer-keyboard-links { gap:7px; padding-block:16px; }
    .footer-keyboard-links a { padding-inline:10px; font-size:10px; }
}
/* Guide discovery uses the same quiet card language as the keyboard sites. */
.arabic-guides-index{padding-block:38px 48px}
.arabic-guide-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.arabic-guide-directory article{display:flex;flex-direction:column;gap:16px;padding:28px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}
.arabic-guide-directory h2{margin:0;font-size:25px;line-height:1.35;overflow-wrap:anywhere}
.arabic-guide-directory p{margin:0;color:var(--muted);font-size:14px;line-height:1.8}
.arabic-guide-directory .arabic-content-button{align-self:flex-start;margin-top:auto}
.arabic-guide-directory-blog{display:flex;justify-content:center;margin-top:32px}
.arabic-guide-directory-blog a{display:inline-flex;align-items:center;gap:10px;color:var(--accent-readable);font-weight:600}
.header-content-link{padding-inline:6px}
@media(max-width:1000px){.header-content-link{display:none}}
@media(max-width:680px){.arabic-guide-directory{grid-template-columns:1fr}.arabic-guides-index{padding-block:25px}.arabic-guide-directory article{padding:24px}}
