/* Shared language control; native details works with keyboard and without JS. */
.language-select{position:relative;flex-shrink:0;color:inherit;font:500 1rem/1.4 var(--body,Arial,sans-serif);z-index:60}
.language-select>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-width:55px;min-height:44px;padding:8px;border:1px solid transparent;border-radius:6px;list-style:none;cursor:pointer;color:inherit;font:inherit;white-space:nowrap}
.language-select>summary::-webkit-details-marker{display:none}
.language-select[open]>summary{border-color:currentColor}
.language-select summary:focus-visible,.language-select a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.language-select .locale-code{font-family:Arial,sans-serif;font-size:1rem;letter-spacing:.03em;min-width:24px}
.language-options{position:absolute;inset-inline-end:0;top:calc(100% + 8px);width:240px;max-width:calc(100vw - 32px);max-height:min(calc(100vh - 140px),560px);overflow-y:auto;overscroll-behavior:contain;padding:6px;background:#fff;color:var(--ink,#112f40);border:1px solid var(--line,#cdd9df);border-radius:10px;box-shadow:0 14px 42px #0003;display:flex;flex-direction:column;gap:2px;text-align:start}
.language-options a{display:flex;align-items:center;gap:14px;min-height:42px;padding:9px 12px;border-radius:5px;border:0;text-decoration:none;color:inherit;white-space:normal;font-size:1rem;line-height:1.4;opacity:1}
.language-options a[aria-current=page]{background:#e9eef1;font-weight:700;box-shadow:inset 3px 0 currentColor}
.language-options a:hover{background:#f0f3f4}
.language-options a span:last-child{flex:1}

/* Preserve the existing Portuguese layout adjustments. */
html[lang=pt-PT] .hero h1{overflow-wrap:normal}
html[lang=pt-PT] .pricing-main .plan-card .price{font-size:36px;white-space:nowrap}
html[lang=pt-PT] .plan-card .price span{white-space:normal}
@media(max-width:1120px){html:not([lang=en]) .desktop-nav{display:none}html:not([lang=en]) .menu-toggle{display:block}}
@media(max-width:700px){.nav-actions>.button{display:none!important}.nav-actions{gap:8px!important}.language-select>summary{min-width:49px}}
@media(max-width:420px){html[lang=pt-PT] .hero h1{font-size:clamp(38px,10.3vw,45px)}html[lang=pt-PT] .pricing-main .plan-card .price{font-size:34px}}

/* Translated copy must be allowed to wrap within cards and grids. */
html:not([lang=en]):not([lang=pt-PT]) :is(h1,h2,h3,p,summary,.button,.text-link,.small-note,.eyebrow){overflow-wrap:anywhere}
html:not([lang=en]):not([lang=pt-PT]) :is(.story-grid,.section-top,.science-grid,.sensor-grid,.contact-layout,.faq-grid,.pricing-options,.plan-grid,.legal-layout)>*{min-width:0}
html:not([lang=en]):not([lang=pt-PT]) .button{white-space:normal;text-align:center}
html:not([lang=en]):not([lang=pt-PT]) :is(.step-note,.hero-note,.scroll-cue,.brand>span,.window-brand>span,.demo-label){white-space:normal}
html[lang^=de] :is(h1,h2,h3,p){hyphens:auto}
@media(max-width:700px){html:not([lang=en]):not([lang=pt-PT]) .nav .brand>span{display:none}html:not([lang=en]):not([lang=pt-PT]) :is(.hero-bottom,.actions,.free-access-actions){flex-wrap:wrap}}

/* Use installed script-capable families, with a system fallback. No remote font requests. */
html[lang^=ja]{--script-font:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif;--title:var(--script-font);--head:var(--script-font);--body:var(--script-font)}
html[lang^=ko]{--script-font:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',sans-serif;--title:var(--script-font);--head:var(--script-font);--body:var(--script-font)}
html[lang=zh-Hans]{--script-font:'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;--title:var(--script-font);--head:var(--script-font);--body:var(--script-font)}
html[lang^=hi]{--script-font:'Noto Sans Devanagari','Kohinoor Devanagari','Nirmala UI',sans-serif;--title:var(--script-font);--head:var(--script-font);--body:var(--script-font)}
html[lang^=ar]{--script-font:'Noto Sans Arabic','Geeza Pro',Tahoma,Arial,sans-serif;--title:var(--script-font);--head:var(--script-font);--body:var(--script-font)}
html:is([lang^=ja],[lang^=ko],[lang=zh-Hans],[lang^=hi],[lang^=ar]) .legal-page{font-family:var(--body)}
html:is([lang^=ja],[lang^=ko],[lang=zh-Hans],[lang^=hi],[lang^=ar]) :is(h1,h2,h3,.legal-hero h1,.legal-section h2){font-family:var(--script-font);letter-spacing:0;line-height:1.3}
html:is([lang^=ja],[lang^=ko],[lang=zh-Hans],[lang^=hi],[lang^=ar]) :is(.eyebrow,.step-note,.source-type,.global-context span){letter-spacing:0;line-height:1.7}
html:is([lang^=ja],[lang^=ko],[lang=zh-Hans]) p{line-height:1.85}
html[lang^=ko] :is(h1,h2,h3,p){word-break:keep-all;overflow-wrap:anywhere}
html[lang^=hi] :is(h1,h2,h3){line-height:1.4}

html:is([lang^=ja],[lang^=ko],[lang=zh-Hans]) .hero h1{font-size:clamp(38px,5.25vw,72px);text-wrap:balance}

/* RTL composition: mirror the hero photo wrapper, preserving its animated image. Maps retain their orientation. */
html[dir=rtl] body{text-align:start}
html[dir=rtl] .hero-photo{transform:scaleX(-1)}
html[dir=rtl] .hero-shade{transform:scaleX(-1)}
html[dir=rtl] .closing:after{transform:scaleX(-1)}
html[dir=rtl] .brand>span{border-left:0;border-right:1px solid #ffffff40;padding-left:0;padding-right:16px}
html[dir=rtl] .desktop-nav a:after{transform-origin:right}
html[dir=rtl] :is(.plan-card li,.dialog-flow){padding-left:0;padding-right:19px}
html[dir=rtl] .plan-card li:before{left:auto;right:0}
html[dir=rtl] .plan-guidance .text-link{margin-left:0;margin-right:auto}
html[dir=rtl] .legal-brand{margin-right:0;margin-left:auto}
html[dir=rtl] :is(.legal-brand img,.eyecon-signature img){object-position:right center}
html[dir=rtl] :is(.button,.text-link)>span[aria-hidden=true]{transform:scaleX(-1)}
html[dir=rtl] :is(input[type=email],input[type=tel],a[href^="mailto:"],.price,.locale-code){direction:ltr;unicode-bidi:isolate}
html[dir=rtl] :is(input[type=email],input[type=tel]){text-align:left}
html[dir=rtl] .price span{direction:rtl;unicode-bidi:isolate;display:inline-block}
html[dir=rtl] .language-options a[aria-current=page]{box-shadow:inset -3px 0 currentColor}
@media(min-width:601px){html[dir=rtl] .global-context>div+div{border-left:0;border-right:1px solid #2b4553;padding-left:0;padding-right:30px}}
@media(max-width:600px){html[dir=rtl] .step{padding-left:0;padding-right:55px}html[dir=rtl] .step-number{left:auto;right:0}html[dir=rtl] .global-context>div+div{border-right:0;padding-inline:0}html[dir=rtl] .plan-guidance .text-link{margin-right:0}}

/* Local script subsets for the new languages; no third-party font requests. */
/* vietnamese */
@font-face {
  font-family: 'Inter Vietnamese';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* devanagari */
@font-face {
  font-family: 'Noto Sans Devanagari Local';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-devanagari.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
/* thai */
@font-face {
  font-family: 'Noto Sans Thai Local';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(fonts/noto-sans-thai.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
html[lang^=ne]{--script-font:'Noto Sans Devanagari Local','Kohinoor Devanagari','Nirmala UI',Inter,sans-serif;--head:var(--script-font);--body:var(--script-font)}
html[lang^=th]{--script-font:'Noto Sans Thai Local','Thonburi','Leelawadee UI',Inter,sans-serif;--head:var(--script-font);--body:var(--script-font)}
html[lang^=vi]{--body:'Inter Vietnamese',Inter,Arial,sans-serif}
html:is([lang^=ne],[lang^=th]) .legal-page{font-family:var(--body)}
html:is([lang^=ne],[lang^=th]) :is(h1,h2,h3,.legal-hero h1,.legal-section h2){font-family:var(--script-font);letter-spacing:0;line-height:1.4}
html:is([lang^=ne],[lang^=th]) :is(p,li,.button,.eyebrow,.step-note,.source-type,.global-context span){letter-spacing:0;line-height:1.75}
html[lang^=th] :is(h1,h2,h3,p,li){word-break:normal}
.language-options a[lang=ne-NP]>span:last-child{font-family:'Noto Sans Devanagari Local',Arial,sans-serif;line-height:1.7}
.language-options a[lang=th-TH]>span:last-child{font-family:'Noto Sans Thai Local',Arial,sans-serif;line-height:1.7}
.language-options a[lang=vi-VN]>span:last-child{font-family:'Inter Vietnamese',Inter,Arial,sans-serif}
