/* The i2-suite homepage rhythm, with the working Zhuyin keyboard kept close. */
/* One responsive hero geometry for home and every keyboard landing page.
   Minimum heights reserve the artwork space while allowing longer copy to grow. */
.keyboard-landing-hero { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); align-items: center; gap: 40px; max-width: 1120px; min-height: 396px; padding-block: 28px; }
.keyboard-landing-hero > div { min-width: 0; }
.keyboard-landing-hero-art { display: flex; align-items: center; justify-content: center; }
.keyboard-landing-hero-art img { display: block; width: min(100%, 340px); height: auto; }
.keyboard-landing-nav { min-height: 65px; }
@media (max-width: 1000px) {
    .keyboard-landing-hero { gap: 12px; }
}
/* Reserve the extra wrapped headline line just above the stacked layout. */
@media (min-width: 681px) and (max-width: 760px) {
    .keyboard-landing-hero { min-height: 440px; }
}
@media (max-width: 680px) {
    .keyboard-landing-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: 560px; padding-block: 24px; }
    .keyboard-landing-hero-art img { width: min(100%, 210px); }
    .keyboard-landing-nav { min-height: 78px; }
}

.home-page { --home-muted: #556173; background: #fdfdfd; }
.home-content { font-family: var(--font-body); line-height: 1.6; }
.home-content[lang="en"] { --font-body: "Google Sans Flex", Arial, sans-serif; }
.home-content .container { width: min(1120px, calc(100% - 64px)); }
.home-content h1, .home-content h2, .home-content h3 { text-wrap: balance; }
.home-content p { text-wrap: pretty; }
.home-content #home-title, .home-content #home-title > span { letter-spacing: normal; }
.home-hero-band { background: #fff0f3; border-bottom: 1px solid #f4dce2; }
.home-hero-copy { text-align: center; min-width: 0; }
.home-eyebrow { display: block; font-size: 11px; font-weight: 650; letter-spacing: 1.5px; text-transform: uppercase; color: var(--home-muted); margin-bottom: 12px; }
.home-hero h1 { margin: 0 0 17px; font-size: clamp(36px, 4vw, 52px); line-height: 1.13; letter-spacing: -1.6px; font-weight: 800; }
.home-hero h1 > span { color: var(--accent-readable, var(--accent)); }
.home-lead { max-width: 460px; margin: 0 auto; color: var(--home-muted); font-size: 16px; line-height: 1.75; }
.home-hero-actions { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 23px; }
.home-cta { min-height: 54px; min-width: 185px; padding: 11px 18px 11px 23px; gap: 18px; border-radius: 13px; font-size: 15px; }
.home-cta .icon { width: 29px; height: 29px; padding: 6px; background: #ffffff25; border-radius: 50%; }
.home-text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--accent-readable, var(--accent-hover)); font-size: 14px; font-weight: 650; }
.home-text-link .icon { width: 17px; height: 17px; }
.home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-assurance { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 17px; color: var(--home-muted); font-size: 12px; }
.home-assurance span + span::before { content: "·"; margin-right: 12px; }
.home-quick-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 22px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.home-quick-nav > span { color: var(--home-muted); }
.home-quick-nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: var(--ink); font-weight: 550; }
.home-quick-nav a:hover { color: var(--accent-readable, var(--accent-hover)); }
.home-quick-nav .icon { width: 14px; height: 14px; color: var(--accent-readable, var(--accent-hover)); }
.home-typing { padding-block: 32px 0; }
.home-section-heading { text-align: center; margin-bottom: 27px; }
.home-section-heading h2 { margin: 0; font-size: clamp(26px, 2.8vw, 34px); font-weight: 750; line-height: 1.2; letter-spacing: -.7px; }
.home-section-heading > p { max-width: 660px; margin: 12px auto 0; color: var(--home-muted); font-size: 15px; line-height: 1.7; }
.home-typing-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(740px, calc(100% - 48px)); margin: 0 auto 17px; }
.home-typing-heading h2 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.4px; }
.home-typing-heading p { color: var(--home-muted); font-size: 13px; margin: 4px 0 0; }
.home-typing-heading .home-text-link { flex-shrink: 0; font-size: 12px; }
#typing { scroll-margin-top: 18px; }
#typing:focus { outline: none; }
.home-content #keyboardApp { scroll-margin-top: 16px; margin-bottom: 0; }
.home-typing-guide { max-width: 980px; padding-block: 29px 54px; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.home-steps > li { display: flex; align-items: flex-start; gap: 12px; }
.home-step-number { display: grid; place-items: center; flex: 0 0 28px; height: 28px; background: var(--accent-soft); color: var(--accent-readable, var(--accent-hover)); border-radius: 8px; font-size: 12px; font-weight: 700; }
.home-steps h3 { font-size: 15px; margin: 2px 0 5px; line-height: 1.4; }
.home-steps p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--home-muted); }
.home-steps kbd { font: inherit; color: var(--ink); white-space: nowrap; }
.home-steps-link { margin: 17px 0 0; text-align: center; }
.home-steps-link .home-text-link { font-size: 13px; }
.home-learn { display: grid; grid-template-columns: 1.1fr 1fr; gap: 46px; align-items: center; padding: 37px 44px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.home-learn-copy h2 { font-size: clamp(27px, 3vw, 37px); letter-spacing: -.9px; line-height: 1.2; max-width: 450px; margin: 0 0 15px; }
.home-learn-copy > p { max-width: 460px; margin: 0 0 18px; color: var(--home-muted); font-size: 15px; line-height: 1.8; }
.home-learn-copy .home-eyebrow { color: var(--accent-readable, var(--accent-hover)); }
.home-learning-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 15px; }
.home-learning-links a { color: var(--home-muted); font-size: 13px; min-height: 35px; display: inline-flex; align-items: center; }
.home-learning-links a:hover { color: var(--accent-readable, var(--accent-hover)); text-decoration: underline; text-underline-offset: 4px; }
.home-reading-art { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 240px; padding: 24px 20px; border-radius: 19px; background: var(--accent-soft); }
.home-reading-symbols { display: flex; gap: 10px; }
.home-reading-symbols span { display: grid; place-items: center; width: 58px; height: 64px; background: var(--surface); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 13%, var(--line)); border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line)); border-radius: 11px; color: var(--accent-readable, var(--accent-hover)); font: 34px Arial, sans-serif; }
.home-reading-art > .icon { width: 24px; height: 24px; margin: 20px 0 6px; transform: rotate(90deg); color: var(--home-muted); }
.home-reading-word { font: 58px/1.4 Arial, sans-serif; color: var(--ink); }
.home-reading-caption { font-size: 13px; color: var(--home-muted); margin-top: 7px; }
.home-methods { padding-block: 60px; }
.home-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-method-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.home-method-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 12px 30px #18223b09; }
.home-method-main { display: flex; flex: 1; flex-direction: column; padding: 25px 25px 17px; }
.home-method-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-method-heading h3 { font-size: 25px; line-height: 1.2; letter-spacing: -.6px; margin: 0; }
.home-native { font: 600 21px Arial, sans-serif; color: var(--accent-readable, var(--accent-hover)); }
.home-method-art { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; height: 133px; margin: 21px 0 17px; border-radius: 13px; background: var(--canvas); direction: ltr; }
.home-method-code { font-size: 25px; font-weight: 650; color: var(--accent-readable, var(--accent-hover)); }
.home-method-result { font: 33px/1.2 Arial, sans-serif; color: var(--ink); }
.home-root-keys { display: flex; gap: 10px; }
.home-root-keys > span { display: grid; justify-items: center; min-width: 53px; padding: 7px 10px 10px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 9px; background: var(--surface); font: 27px/1.25 Arial, sans-serif; }
.home-root-keys small { font: 10px/1.5 "Google Sans Flex", sans-serif; color: var(--home-muted); align-self: start; justify-self: start; }
.home-method-main > p { color: var(--home-muted); font-size: 14px; margin: 0 0 18px; line-height: 1.75; flex: 1; }
.home-method-action { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--accent-readable, var(--accent-hover)); }
.home-method-action .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--accent-soft); }
.home-method-extra { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 13px 25px; border-top: 1px solid var(--line); }
.home-method-extra a { min-height: 30px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--home-muted); }
.home-method-extra a:hover { color: var(--accent-readable, var(--accent-hover)); }
.home-method-extra .icon { width: 13px; height: 13px; }
.home-tools-band { border-block: 1px solid var(--line); background: var(--canvas); padding-block: 47px 50px; }
.home-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.home-tool { display: flex; gap: 13px; padding: 21px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.home-tool:hover { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.home-tool-mark { flex: 0 0 39px; height: 42px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-readable, var(--accent-hover)); border-radius: 9px; font: 23px Arial, sans-serif; }
.home-tool strong { display: block; font-size: 15px; line-height: 1.4; margin: 1px 0 5px; }
.home-tool small { display: block; color: var(--home-muted); font-size: 12px; line-height: 1.7; }
.home-promise { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 60px; padding-block: 55px; border-bottom: 1px solid var(--line); }
.home-promise h2 { font-size: 32px; line-height: 1.25; letter-spacing: -.6px; margin: 0 0 15px; }
.home-promise p { margin: 0 0 12px; color: var(--home-muted); font-size: 14px; line-height: 1.85; }
.home-privacy-art { position: relative; max-width: 290px; width: 100%; justify-self: center; }
.home-privacy-browser { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); overflow: hidden; box-shadow: 0 10px 30px #19213308; }
.home-browser-top { display: flex; align-items: center; gap: 5px; padding: 14px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.home-browser-top span { width: 5px; height: 5px; border-radius: 50%; background: var(--home-muted); opacity: .55; }
.home-browser-body { padding: 22px 24px 28px; }
.home-browser-body > strong { display: block; font: 34px/1.4 Arial, sans-serif; margin-bottom: 14px; }
.home-browser-line { height: 5px; border-radius: 3px; margin-top: 9px; width: 83%; background: var(--line); }
.home-browser-line:last-child { width: 57%; }
.home-local-badge { display: flex; align-items: center; gap: 9px; width: fit-content; padding: 11px 15px; margin: -5px auto 0; position: relative; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 17%, var(--line)); color: var(--accent-readable, var(--accent-hover)); border-radius: 11px; font-size: 12px; font-weight: 600; }
.home-local-badge .icon { width: 17px; height: 17px; }
.home-faq { display: grid; grid-template-columns: .65fr 1fr; gap: 70px; padding-block: 55px 10px; }
.home-faq-intro h2 { font-size: 33px; line-height: 1.22; letter-spacing: -.7px; margin: 0 0 13px; }
.home-faq-intro p { color: var(--home-muted); font-size: 14px; max-width: 280px; }
.home-faq-item { border-bottom: 1px solid var(--line); }
.home-faq-item:first-child { border-top: 1px solid var(--line); }
.home-faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 65px; padding: 17px 0; list-style: none; font-size: 15px; font-weight: 600; }
.home-faq-item > summary::-webkit-details-marker { display: none; }
.home-faq-item > summary .icon { width: 17px; height: 17px; flex: none; color: var(--home-muted); transition: transform .15s; }
.home-faq-item[open] > summary .icon { transform: rotate(180deg); }
.home-faq-item > p { color: var(--home-muted); font-size: 14px; line-height: 1.85; margin: 0 25px 18px 0; }
.home-faq-item > .home-text-link { margin-bottom: 16px; font-size: 13px; }
.home-content :is(a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.home-content .home-method-main:focus-visible { border-radius: 20px 20px 0 0; }
.home-content .home-cta:focus-visible { outline-color: var(--ink); border-radius: 13px; }
:root[data-appearance="dark"] .home-page { --home-muted: #b3bdcc; background: var(--page-bg); }
:root[data-appearance="dark"] .home-hero-band { background: #2b1d27; border-color: #47323d; }
@media (max-width: 1000px) {
    .home-hero h1 { font-size: 40px; }
    .home-learn { gap: 28px; padding: 30px; }
    .home-method-main { padding: 21px 19px 17px; }
    .home-method-extra { padding-inline: 19px; }
    .home-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-faq { gap: 35px; }
}
@media (max-width: 680px) {
    .home-content .container { width: calc(100% - 32px); }
    .home-hero h1 { font-size: clamp(32px, 8.3vw, 42px); letter-spacing: -1px; margin-bottom: 13px; }
    .home-lead { font-size: 14px; max-width: 360px; }
    .home-hero-actions { gap: 15px; margin-top: 18px; }
    .home-hero-actions .home-text-link { font-size: 12px; }
    .home-cta { min-width: 151px; min-height: 48px; gap: 12px; padding: 9px 13px 9px 16px; font-size: 14px; }
    .home-assurance { font-size: 10px; gap: 6px 9px; margin-top: 12px; }
    .home-assurance span + span::before { margin-right: 9px; }
    .home-quick-nav { gap: 5px 17px; padding-block: 11px; font-size: 12px; }
    .home-quick-nav > span { width: 100%; text-align: center; font-size: 11px; }
    .home-typing { padding-top: 24px; }
    .home-typing-heading { width: calc(100% - 32px); align-items: flex-start; gap: 12px; }
    .home-typing-heading h2 { font-size: 22px; }
    .home-typing-heading p { font-size: 12px; }
    .home-typing-heading .home-text-link { max-width: 93px; overflow-wrap: anywhere; font-size: 11px; gap: 5px; line-height: 1.5; }
    .home-typing-heading > div { min-width: 0; overflow-wrap: anywhere; }
    .home-typing-guide { padding-block: 24px 36px; }
    .home-steps { grid-template-columns: 1fr; gap: 18px; }
    .home-steps > li { gap: 12px; }
    .home-steps h3 { margin-bottom: 3px; }
    .home-steps-link { text-align: left; padding-left: 40px; margin-top: 9px; }
    .home-learn { grid-template-columns: 1fr; gap: 23px; padding: 24px; border-radius: 18px; }
    .home-learn-copy h2 { font-size: 29px; }
    .home-learn-copy > p { font-size: 14px; }
    .home-reading-art { min-height: 210px; }
    .home-reading-symbols span { width: 49px; height: 55px; font-size: 29px; }
    .home-reading-word { font-size: 48px; }
    .home-methods { padding-block: 38px; }
    .home-section-heading { margin-bottom: 23px; }
    .home-section-heading > p { font-size: 14px; }
    .home-method-grid { grid-template-columns: 1fr; gap: 16px; }
    .home-method-main { padding: 24px 23px 18px; }
    .home-method-extra { padding-inline: 23px; }
    .home-method-art { height: 112px; }
    .home-method-main > p { margin-bottom: 16px; }
    .home-tools-band { padding-block: 34px; }
    .home-tools-grid { grid-template-columns: 1fr; gap: 10px; }
    .home-tool { padding: 18px; }
    .home-promise { grid-template-columns: 1fr; gap: 26px; padding-block: 36px; }
    .home-promise h2 { font-size: 28px; }
    .home-privacy-art { max-width: 245px; }
    .home-faq { grid-template-columns: 1fr; gap: 20px; padding-block: 36px 0; }
    .home-faq-intro h2 { font-size: 28px; }
    .home-faq-intro p { max-width: none; }
}
@media print { .home-hero-band, .home-quick-nav, .home-methods, .home-tools-band, .home-promise, .home-faq { display: none; } }

.home-content:is([lang="ar"],[lang="fa"],[lang="ur"]) { --font-body: "Noto Kufi Arabic", "Google Sans Flex", sans-serif; font-family: var(--font-body); line-height: 1.95; }
.home-content[dir="rtl"] :is(h1,h2,h3,.home-eyebrow) { letter-spacing: 0; }
.home-content:is([lang="ar"],[lang="fa"],[lang="ur"]) :is(h1,h2,h3) { line-height: 1.65; }
.home-content:is([lang="ar"],[lang="fa"],[lang="ur"]) .home-hero h1 { font-size: clamp(29px,3.4vw,43px); }
.home-content[dir="rtl"] .home-assurance span + span::before { margin-right: 0; margin-inline-end: 12px; }
.home-content[dir="rtl"] :is(.home-cta,.home-text-link,.home-tool,.home-method-action,.home-method-extra a,.home-quick-nav a) > .icon { transform: rotate(180deg); }
.home-content[dir="rtl"] :is([lang^="zh"], .home-reading-symbols, .home-method-code, .home-root-keys) { direction: ltr; unicode-bidi: isolate; }
.home-content[dir="rtl"] .home-reading-symbols { font-family: Arial, sans-serif; }
@media (max-width: 680px) {
    .home-content[dir="rtl"] .home-steps-link { text-align: start; padding-left: 0; padding-inline-start: 40px; }
    .home-content:is([lang="ar"],[lang="fa"],[lang="ur"]) .home-hero h1 { font-size: clamp(26px,7.6vw,36px); }
}
