/* One app's landing page (www/website/app.html) on the home's .nx system (next.css loads first). Page-only classes ap-*,
   every rule scoped .nx (+ a class) so it wins over rest.css. Light = light glass stages (next.css turns .nx-stage light),
   dark = night stages. RTL/LTR via logical properties. Phones (<640): centred, one column, the screen under the copy. */

/* ------------------------------------------------------------------ rhythm */
.nx .ap-sec{padding-block:clamp(40px,6vw,88px)}
.nx .ap-sec + .ap-sec{padding-top:clamp(8px,2vw,28px)}
.nx .ap-hero + .ap-sec{padding-top:clamp(24px,3.5vw,48px)}
.nx .ap-sec .nx-head{margin-bottom:clamp(22px,3vw,36px)}

/* gradient app tiles (hero, related, all apps) */
.nx .ap-tile{display:grid;place-items:center;flex:none;width:64px;height:64px;border-radius:20px;color:#fff;box-shadow:0 1px 0 rgb(255 255 255/.3) inset,0 14px 28px -12px rgb(14 27 44/.55)}
.nx .ap-tile .bi,.nx .ap-tile .robot{width:32px;height:32px}
.nx .ap-tile--mint{background:linear-gradient(145deg,#1FA67D,#0B6B51)}
.nx .ap-tile--gold{background:linear-gradient(145deg,#EBC572,#B3841E)}
.nx .ap-tile--seal{background:linear-gradient(145deg,#4C74B8,#2B4F8E)}
.nx .ap-tile .robot{background:rgb(255 255 255/.92);border-radius:10px;padding:2px}
.nx .ap-tile--sm{width:46px;height:46px;border-radius:14px}
.nx .ap-tile--sm .bi,.nx .ap-tile--sm .robot{width:24px;height:24px}
:root[data-theme="dark"] .nx .ap-tile{box-shadow:0 1px 0 rgb(255 255 255/.2) inset,0 12px 26px -12px rgb(0 0 0/.75)}

/* ------------------------------------------------------------------ HERO */
.nx .ap-hero{position:relative;isolation:isolate;padding-top:calc(var(--hh) + 12px + clamp(14px,3vh,40px));padding-bottom:clamp(20px,3.5vw,48px)}
.nx .ap-hero__bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 60%,transparent);mask-image:linear-gradient(180deg,#000 60%,transparent)}
.nx .ap-hero__grid{position:absolute;inset:0;background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 25%,#000 30%,transparent 75%);mask-image:radial-gradient(ellipse 70% 60% at 50% 25%,#000 30%,transparent 75%)}
:root[data-theme="dark"] .nx .ap-hero__bg{display:none}
.nx .ap-hero__in{display:grid;gap:clamp(24px,4vw,40px);min-width:0}
.nx .ap-hero__copy{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.nx .ap-hero__vis{min-width:0}

/* breadcrumb */
.nx .ap-crumbs ol{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:0 4px;margin:0 0 14px;padding:0;list-style:none;font-size:var(--fs-sm);color:var(--ink-4)}
.nx .ap-crumbs li{display:inline-flex;align-items:center;gap:4px}
.nx .ap-crumbs li+li::before{content:"›";padding-inline:4px;color:var(--ink-4)}
[dir="rtl"] .nx .ap-crumbs li+li::before{content:"‹"}
.nx .ap-crumbs a{display:inline-flex;align-items:center;min-height:40px;color:var(--ink-3);text-decoration:none}
.nx .ap-crumbs a:hover{color:var(--em-text);text-decoration:underline;text-underline-offset:5px}
.nx .ap-crumbs [aria-current]{color:var(--ink-2);font-weight:600}

/* icon tile + plan chip */
.nx .ap-id{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 14px;margin-bottom:16px}
.nx .ap-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 14px;border-radius:999px;font-size:var(--fs-sm);font-weight:600;color:var(--em-text);
	border:1px solid transparent;background:linear-gradient(180deg,rgb(255 255 255/.95),rgb(255 255 255/.8)) padding-box,linear-gradient(120deg,rgb(14 122 92/.45),rgb(255 255 255/.6) 45%,rgb(224 165 38/.45)) border-box;box-shadow:0 10px 22px -16px rgb(14 27 44/.4)}
.nx .ap-chip .i{width:18px;height:18px;padding:3px;border-radius:50%;color:#fff;background:linear-gradient(145deg,#1FA67D,#0E7A5C)}
:root[data-theme="dark"] .nx .ap-chip{color:#7FD8B8;background:linear-gradient(180deg,rgb(23 40 61/.92),rgb(14 27 44/.8)) padding-box,linear-gradient(120deg,rgb(77 182 148/.55),rgb(255 255 255/.06) 45%,rgb(235 197 114/.42)) border-box}

/* H1: the app's name, then its search phrase */
.nx .ap-h1{margin:0;max-width:18ch;font-size:clamp(2rem,1.2rem + 2.8vw,3.6rem);line-height:1.22}
.nx .ap-h1__name,.nx .ap-h1__q{display:block}
.nx .ap-h1__q{font-size:.62em;line-height:1.35;margin-top:.2em}
[lang="en"] .nx .ap-h1{line-height:1.06}
[lang="en"] .nx .ap-h1__q{line-height:1.18}
.nx .ap-lead{margin:14px auto 0;max-width:50ch;line-height:1.75}
.nx .ap-ctas{justify-content:center;margin-top:22px}
.nx .ap-micro{margin-top:14px}

/* the real screen / clip in a premium frame on a glass stage */
.nx .ap-stage{display:grid;place-items:center;align-content:center;gap:12px;padding:clamp(14px,3vw,36px)}
.nx .ap-shot{width:100%;max-width:720px;margin:0;border-radius:16px;box-shadow:0 1px 0 rgb(255 255 255/.6) inset,0 0 0 1px rgb(14 27 44/.08),0 34px 70px -34px rgb(14 27 44/.5),0 14px 28px -18px rgb(9 79 60/.3)}
.nx .ap-shot--tall{max-width:360px}
.nx .ap-shot__box{position:relative;display:block;background:var(--m-bg-2)}
.nx .ap-media,.nx .ap-media img,.nx .ap-shot video{display:block;width:100%;height:auto}
.nx .ap-shot img{aspect-ratio:1280/800}
.nx .ap-cap{display:flex;align-items:center;justify-content:center;gap:6px;max-width:100%;margin:0;font-size:var(--fs-xs);color:var(--ink-4);text-align:center;line-height:1.5}
.nx .ap-cap .i{flex:none;width:14px;height:14px;color:var(--em-text)}
:root[data-theme="dark"] .nx .ap-cap{color:#A9B4C2}
:root[data-theme="dark"] .nx .ap-cap .i{color:#7FD8B8}
:root[data-theme="dark"] .nx .ap-shot{box-shadow:0 1px 0 rgb(255 255 255/.06) inset,0 0 0 1px rgb(255 255 255/.08),0 40px 80px -36px rgb(0 0 0/.85)}

@media (min-width:1024px){
	.nx .ap-hero__in{grid-template-columns:minmax(0,5fr) minmax(0,7fr);align-items:stretch;gap:clamp(32px,4vw,64px)}
	.nx .ap-hero__copy{align-items:flex-start;justify-content:center;text-align:start}
	.nx .ap-crumbs ol,.nx .ap-id,.nx .ap-ctas{justify-content:flex-start}
	.nx .ap-lead{margin-inline:0}
	.nx .ap-micro{justify-content:flex-start}
	.nx .ap-stage{height:100%;min-height:min(500px,calc(100svh - var(--hh) - 140px))}
}

/* ------------------------------------------------------------------ capability cards (odd last spans; 5 = 3 + 2) */
.nx .ap-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0;padding:0;list-style:none}
.nx .ap-card{position:relative;display:flex;align-items:center;gap:16px;min-width:0;padding:22px 24px;border-radius:22px;overflow:hidden;border:1px solid transparent;
	background:linear-gradient(180deg,rgb(255 255 255/.95),rgb(255 255 255/.76)) padding-box,linear-gradient(140deg,rgb(14 122 92/.38),rgb(255 255 255/.45) 45%,rgb(224 165 38/.36)) border-box;
	box-shadow:0 1px 0 rgb(255 255 255/.9) inset,0 2px 4px rgb(14 27 44/.04),0 20px 44px -26px rgb(14 27 44/.35)}
.nx .ap-card::after{content:"";position:absolute;inset-inline:18%;top:0;height:1px;background:linear-gradient(90deg,transparent,rgb(14 122 92/.55),transparent);opacity:.7}
.nx .ap-card__ico{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;color:#fff;box-shadow:0 1px 0 rgb(255 255 255/.3) inset,0 10px 20px -10px rgb(14 27 44/.5)}
.nx .ap-card__ico .i{width:22px;height:22px}
.nx .ap-card__ico--em{background:linear-gradient(145deg,#16876A,#0B6B51)}
.nx .ap-card__ico--gold{background:linear-gradient(145deg,#EBC572,#B3841E)}
.nx .ap-card__ico--seal{background:linear-gradient(145deg,#4C74B8,#2B4F8E)}
.nx .ap-card__n{position:absolute;top:12px;inset-inline-end:16px;font-size:.75rem;font-weight:700;color:var(--ink-4);opacity:.7}
.nx .ap-card__t{flex:1;min-width:0;margin:0;font-weight:600;font-size:1.0625rem;line-height:1.6;color:var(--ink);text-wrap:pretty}
:root[data-theme="dark"] .nx .ap-card{background:linear-gradient(180deg,rgb(23 40 61/.9),rgb(14 27 44/.74)) padding-box,linear-gradient(140deg,rgb(77 182 148/.5),rgb(255 255 255/.06) 45%,rgb(235 197 114/.42)) border-box;box-shadow:0 1px 0 rgb(255 255 255/.05) inset,0 24px 48px -26px rgb(0 0 0/.8)}
:root[data-theme="dark"] .nx .ap-card__ico{box-shadow:0 1px 0 rgb(255 255 255/.2) inset,0 10px 24px -10px rgb(0 0 0/.7)}
@media (min-width:640px){
	.nx .ap-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
	.nx .ap-cards>li:last-child:nth-child(odd){grid-column:1/-1}
	.nx .ap-card{flex-direction:column;align-items:flex-start;padding:26px 24px 24px}
}
@media (min-width:1024px){
	.nx .ap-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
	.nx .ap-cards>li,.nx .ap-cards>li:last-child:nth-child(odd){grid-column:span 2}
	.nx :is(.ap-cards--n2,.ap-cards--n4)>li,.nx .ap-cards--n5>li:nth-child(n+4){grid-column:span 3}
	.nx .ap-cards--n1>li{grid-column:1/-1}
	.nx .ap-card{padding:28px}
}

/* ------------------------------------------------------------------ two-column rows: copy | visual, equal heights */
.nx .ap-row{display:grid;gap:clamp(22px,4vw,36px);min-width:0}
.nx .ap-row__copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-width:0}
.nx .ap-row__copy .nx-h2{margin:0}
.nx .ap-row__copy .nx-lead{margin-top:14px}
.nx .ap-row__copy .nx-tlink{margin-top:14px}
.nx .ap-row__copy .nx-kick .flag{width:18px;height:18px}
.nx .ap-vis{display:grid;place-items:center;align-content:center;min-width:0;min-height:clamp(240px,26vw,380px);padding:clamp(18px,3.4vw,44px)}
@media (min-width:960px){
	.nx .ap-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(36px,5vw,80px);align-items:stretch}
	.nx .ap-row--flip .ap-vis{order:-1}
}

/* country facts (inside the stage: the mock-up tokens follow the theme) */
.nx .ap-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;max-width:520px;margin:0}
.nx .ap-fact{min-width:0;padding:16px 18px;border-radius:18px;background:var(--m-bg);border:1px solid var(--m-line);box-shadow:0 14px 30px -22px rgb(14 27 44/.45)}
.nx .ap-fact--wide{grid-column:1/-1}
.nx .ap-fact dt{display:flex;align-items:center;gap:8px;font-size:var(--fs-xs);font-weight:600;color:var(--m-ink-4)}
.nx .ap-fact dt .bi{flex:none;width:20px;height:20px;color:var(--m-em)}
.nx .ap-fact dd{margin:6px 0 0;font-weight:600;line-height:1.6;color:var(--m-ink)}

/* related apps (links) */
.nx .ap-with{display:grid;gap:10px;width:100%;max-width:520px;margin:0;padding:0;list-style:none}
.nx .ap-with__a{display:flex;align-items:center;gap:14px;min-height:72px;padding:12px 16px;border-radius:18px;color:var(--m-ink);text-decoration:none;background:var(--m-bg);border:1px solid var(--m-line);box-shadow:0 14px 30px -22px rgb(14 27 44/.45);transition:translate .3s var(--ease),box-shadow .3s var(--ease),border-color .3s}
.nx .ap-with__a:hover{translate:0 -2px;border-color:rgb(14 122 92/.45);box-shadow:0 20px 40px -22px rgb(14 122 92/.5)}
.nx .ap-with__a:focus-visible,.nx .ap-apps__a:focus-visible{outline:2px solid var(--em);outline-offset:3px}
.nx .ap-with__t{display:grid;gap:2px;flex:1;min-width:0;text-align:start}
.nx .ap-with__t b{font-weight:600;font-size:1.0625rem;line-height:1.4}
.nx .ap-with__t small{font-size:var(--fs-sm);color:var(--m-ink-4);line-height:1.45}
.nx .ap-with__chev{flex:none;width:18px;height:18px;color:var(--m-em)}

/* ------------------------------------------------------------------ FAQ (cards from next.css .nx-faq__list) */
.nx .ap-faq__in{max-width:880px}
.nx .ap-faq__list .faq__i summary{min-height:64px}
.nx .ap-faq__list .faq__i summary:focus-visible{outline:2px solid var(--em);outline-offset:-2px;border-radius:20px}

/* ------------------------------------------------------------------ every other app (internal links) */
.nx .ap-apps{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0;padding:0;list-style:none}
.nx .ap-apps__a{display:flex;align-items:center;gap:14px;height:100%;min-height:76px;padding:14px 16px;border-radius:20px;color:var(--ink);text-decoration:none;border:1px solid transparent;
	background:linear-gradient(180deg,rgb(255 255 255/.94),rgb(255 255 255/.78)) padding-box,linear-gradient(140deg,rgb(14 122 92/.3),rgb(255 255 255/.5) 45%,rgb(224 165 38/.26)) border-box;
	box-shadow:0 1px 0 rgb(255 255 255/.9) inset,0 14px 34px -24px rgb(14 27 44/.32);transition:box-shadow .3s var(--ease),translate .3s var(--ease)}
.nx .ap-apps__a:hover{translate:0 -2px;box-shadow:0 1px 0 rgb(255 255 255/.9) inset,0 22px 44px -24px rgb(14 122 92/.45)}
.nx .ap-apps__t{display:grid;gap:2px;flex:1;min-width:0;text-align:start}
.nx .ap-apps__t b{font-family:var(--f-display);font-weight:600;font-size:1.0625rem;line-height:1.45}
.nx .ap-apps__t small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--fs-sm);line-height:1.55;color:var(--ink-3)}
.nx .ap-apps__chev{flex:none;width:18px;height:18px;color:var(--em-text)}
:root[data-theme="dark"] .nx .ap-apps__a{background:linear-gradient(180deg,rgb(23 40 61/.9),rgb(14 27 44/.75)) padding-box,linear-gradient(140deg,rgb(77 182 148/.42),rgb(255 255 255/.05) 45%,rgb(235 197 114/.32)) border-box;box-shadow:0 24px 48px -28px rgb(0 0 0/.8)}
:root[data-theme="dark"] .nx .ap-apps__a:hover{box-shadow:0 24px 48px -24px rgb(0 0 0/.85),0 0 40px -20px rgb(77 182 148/.5)}
@media (min-width:640px){.nx .ap-apps{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.nx .ap-apps>li:last-child:nth-child(odd){grid-column:1/-1}}
@media (min-width:1100px){.nx .ap-apps{grid-template-columns:repeat(5,minmax(0,1fr))}.nx .ap-apps>li:last-child:nth-child(odd){grid-column:auto}
	.nx .ap-apps__a{flex-direction:column;align-items:flex-start;padding:20px}.nx .ap-apps__chev{display:none}}

/* final CTA spacing */
.nx.ap .nx-final{padding-top:0}

/* ------------------------------------------------------------------ phones: centred, one column, the screen under the copy */
@media (max-width:639px){
	.nx .ap-tile{width:56px;height:56px;border-radius:18px}
	.nx .ap-tile .bi,.nx .ap-tile .robot{width:28px;height:28px}
	.nx .ap-tile--sm{width:44px;height:44px;border-radius:14px}
	.nx .ap-tile--sm .bi,.nx .ap-tile--sm .robot{width:22px;height:22px}
	.nx .ap-h1{font-size:clamp(1.9rem,1.2rem + 3.6vw,2.4rem)}
	.nx .ap-ctas{flex-direction:column;align-items:stretch;gap:6px;width:100%}
	.nx .ap-ctas .nx-cta{justify-content:center}
	.nx .ap-ctas .nx-tlink{justify-content:center}
	.nx .ap-stage{padding:12px}
	.nx .ap-cards{gap:10px}
	.nx .ap-card{flex-direction:column;justify-content:center;gap:10px;text-align:center;padding:16px 16px 18px}
	.nx .ap-card__ico{width:40px;height:40px;border-radius:13px}
	.nx .ap-card__ico .i{width:20px;height:20px}
	.nx .ap-card__t{font-size:1rem}
	.nx .ap-card__n{inset-inline-end:14px}
	.nx .ap-row__copy{align-items:center;text-align:center}
	.nx .ap-row__copy .nx-lead{margin-inline:auto}
	.nx .ap-vis{min-height:0;padding:14px 12px}
	.nx .ap-fact{padding:14px;text-align:center}
	.nx .ap-fact dt{justify-content:center}
	.nx .ap-with__a{padding:12px}
	.nx .ap-apps{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
	.nx .ap-apps>li:last-child:nth-child(odd){grid-column:1/-1}
	.nx .ap-apps__a{flex-direction:column;justify-content:center;text-align:center;gap:8px;min-height:104px;padding:14px 10px}
	.nx .ap-apps__t small{display:none}
	.nx .ap-apps__t b{font-size:.98rem}
	.nx .ap-apps__t{text-align:center;justify-items:center}
	.nx .ap-apps__chev{display:none}
}
@media (max-width:380px){.nx .ap-facts{grid-template-columns:minmax(0,1fr)}}
@media (prefers-reduced-motion:reduce){.nx .ap-with__a,.nx .ap-apps__a{transition:none}.nx .ap-with__a:hover,.nx .ap-apps__a:hover{translate:none}}
