/* The home page: bands, hero, the module hub, numbered cards, deep dives, the languages showcase, steps, questions and the closing band.
   Alternating bands down the page: Cloud hero with a soft cobalt glow, white, Cloud, white, Cloud, a full-bleed Ink band, white, Cloud, white, Cloud, a Cobalt band, the Ink footer.
   The glow in the hero is the only gradient of the site (<= 12 % cobalt). Spacing is the 8-point scale of css/site.css. */

.band { position: relative; padding: var(--s8) 0; }
.band.cloud { background: var(--bg-soft); }
.band.ink { background: var(--deep); color: var(--on-deep); }
.band.ink h2, .band.ink h3 { color: var(--on-deep); }
.band.ink .lead { color: var(--on-deep-muted); }
.band.ink a:not(.btn) { color: #9db7ff; }
.band.ink .btn-ghost { border-color: rgba(243, 245, 248, .38); color: var(--on-deep); }
.band.ink .btn-ghost:hover { border-color: var(--on-deep); }
.band.cobalt { background: var(--accent); color: #fff; text-align: center; overflow: hidden; }
.band.cobalt h2 { color: #fff; }
.band.cobalt p { color: #fff; max-width: 34em; margin-inline: auto; margin-bottom: var(--s4); font-size: 1.1rem; }
.band.cobalt .btn-light { background: #fff; color: var(--ink); }
.band.cobalt .btn-light:hover { background: var(--cloud); }
.band.cobalt .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.band.cobalt .btn-line:hover { border-color: #fff; }
.band.cobalt .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.band.cobalt::before, .band.cobalt::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); pointer-events: none; }
.band.cobalt::before { inset-inline-start: -180px; top: -240px; }
.band.cobalt::after { inset-inline-end: -160px; bottom: -280px; }
.band.cobalt .wrap { position: relative; z-index: 1; }
#cta-links { display: contents; }

.eb { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s2); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.eb span:first-child::after { content: " \00b7"; }
.band.ink .eb { color: #9db7ff; }
html[lang="fa"] .eb, html[lang="ps"] .eb { letter-spacing: 0; text-transform: none; font-size: .95rem; }
h1 em, h2 em { font-style: normal; color: var(--accent); }   /* no slant: the Plex italic is not shipped, and an upright font slanted by the browser is a fake */
.band.ink h2 em { color: #8eaaff; }
html[lang="fa"] h1 em, html[lang="ps"] h1 em, html[lang="fa"] h2 em, html[lang="ps"] h2 em { font-weight: 600; }
html[lang="fa"] h1, html[lang="ps"] h1, html[lang="fa"] h2, html[lang="ps"] h2 { font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 34em; }

/* hero */
.hero { position: relative; background: var(--bg-soft); padding: var(--s7) 0 0; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; background: radial-gradient(60% 70% at 50% 0%, var(--glow), transparent 72%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .copy { text-align: center; max-width: 900px; margin: 0 auto; }
.pill-label { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: .86rem; font-weight: 500; color: var(--text); background: var(--bg); margin-bottom: var(--s4); }
.pill-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 { margin-bottom: var(--s3); }
html[lang="fa"] .hero h1, html[lang="ps"] .hero h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); line-height: 1.35; }
.hero .lead { margin: 0 auto var(--s4); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-vis { position: relative; z-index: 3; max-width: 1060px; margin: var(--s7) auto -176px; }
.hero + .after { padding-top: calc(176px + var(--s7)); }

/* the numbers */
.hstats { margin: 0; border-top: 0; border-bottom: 1px solid var(--line); }
.hstats .stat { padding: var(--s4) var(--s4) var(--s5); }
.hstats .stat b { --num: clamp(2.6rem, 4.6vw, 3.5rem); font-size: var(--num); font-weight: 500; letter-spacing: -.03em; position: relative; }
.hstats .stat b.counting { font-size: 0; }
.hstats .stat b.counting::after { content: attr(data-shown); font-size: var(--num); line-height: 1.1; }
.hstats .stat span { display: block; margin-top: 8px; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 500; }
html[lang="fa"] .hstats .stat span, html[lang="ps"] .hstats .stat span { letter-spacing: 0; text-transform: none; font-size: .9rem; }

/* strip of facts */
.strip { padding: var(--s6) 0; }
.strip h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; text-align: center; margin: 0 0 var(--s4); line-height: 1.4; }
html[lang="fa"] .strip h2, html[lang="ps"] .strip h2 { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3); }
.strip li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; font-size: .9rem; font-weight: 500; line-height: 1.4; }
@media (max-width: 960px) { .strip ul { grid-template-columns: repeat(3, 1fr); row-gap: var(--s4); } }
@media (max-width: 560px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }

/* deep dives */
.dd2 { display: grid; grid-template-columns: 1fr 1.08fr; gap: var(--s7); align-items: center; }
.dd2.flip .copy { order: 2; }
.dd2 h2 { margin-bottom: var(--s3); }
.ticks { list-style: none; margin: var(--s4) 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ms { color: var(--accent-text); flex: none; margin-top: 2px; font-size: 1.2em; }
.band.ink .ticks .ms { color: #9db7ff; }
.visual { position: relative; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float); font-size: .88rem; font-weight: 500; line-height: 1.3; z-index: 4; }
.float .ms { color: var(--accent-text); }
.float b { font-weight: 600; }
.float.a { inset-inline-start: -28px; top: 12%; }
.float.b { inset-inline-end: -24px; bottom: 10%; }
@media (max-width: 960px) { .dd2 { grid-template-columns: 1fr; gap: var(--s5); } .dd2.flip .copy { order: 0; } .float.a { inset-inline-start: 8px; top: -18px; } .float.b { inset-inline-end: 8px; bottom: -18px; } }
@media (max-width: 520px) { .float { padding: 9px 12px; font-size: .8rem; } .float.b { display: none; } }

/* the hub */
.hub { position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 1 / 1.02; }
.hub .lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub .lines line { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hub .lines line.flow { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 2 14; stroke-linecap: round; animation: hubflow 2.6s linear infinite; }
@keyframes hubflow { to { stroke-dashoffset: -64; } }
.hub .ring { position: absolute; inset-inline-start: 50%; top: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); aspect-ratio: 1; }
html[dir="rtl"] .hub .ring { transform: translate(50%, -50%); }
.hub .r1 { width: 44%; } .hub .r2 { width: 76%; }
.hub .pulse { position: absolute; inset-inline-start: 50%; top: 50%; width: 21%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--accent); transform: translate(-50%, -50%); animation: hubpulse 3.2s ease-out infinite; opacity: 0; }
html[dir="rtl"] .hub .pulse { transform: translate(50%, -50%); }
@keyframes hubpulse { 0% { opacity: .5; width: 21%; } 100% { opacity: 0; width: 70%; } }
.hub .core { position: absolute; inset-inline-start: 50%; top: 50%; width: 21%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font: 700 clamp(2rem, 6.5vw, 3.6rem)/1 "NkPlexAr", var(--font); padding-bottom: .12em; box-shadow: 0 0 0 7px var(--bg), 0 0 0 8.5px var(--accent); }
html[dir="rtl"] .hub .core { transform: translate(50%, -50%); }
.hcard { position: absolute; width: 36%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 11px; padding: 11px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-float); }
.hcard .tile { width: 36px; height: 36px; font-size: 20px; border-radius: 11px; }
.hcard .t { display: block; min-width: 0; }
.hcard b { display: block; font-size: .8rem; line-height: 1.28; font-weight: 600; }
.hcard small { display: block; margin-top: 2px; font-size: .68rem; line-height: 1.25; color: var(--muted); }
@media (max-width: 520px) { .hcard { padding: 9px 10px; width: 38%; } .hcard .tile, .hcard small { display: none; } .hcard b { font-size: .74rem; } .hub .core { box-shadow: 0 0 0 5px var(--bg), 0 0 0 6.5px var(--accent); } }

/* numbered cards: module groups, industries, steps */
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.icard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: var(--s4) var(--s4) 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.icard:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-float); transform: translateY(-4px); }
.icard .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.icard .no { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.icard h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.015em; }
.icard p { margin: 0; color: var(--muted); font-size: .95rem; }
.icard .go { position: absolute; inset-inline-end: var(--s4); bottom: 28px; color: var(--accent-text); opacity: 0; transition: opacity .2s; }
html[dir="rtl"] .icard .go { transform: scaleX(-1); }
.icard:hover .go { opacity: 1; }
@media (max-width: 960px) { .icards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .icards { grid-template-columns: 1fr; } .icard { padding: var(--s3); } }
.honest { margin-top: var(--s5); display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.honest .bar { width: 160px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.honest .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.honest p { margin: 0; }
.honest b { font-weight: 600; }
@media (max-width: 760px) { .honest { grid-template-columns: 1fr; } .honest .bar { width: 100%; } }

/* control: ledger and invoice windows, then the safety grid */
.vis2 { position: relative; }
.vis2 .w1 { width: 90%; }
.vis2 .w2 { width: 56%; margin: -7% 0 0 auto; position: relative; z-index: 2; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.safe { margin-top: var(--s7); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.safe .item { padding: var(--s3); border: 1px solid rgba(243, 245, 248, .16); border-radius: var(--r-lg); background: rgba(243, 245, 248, .04); display: flex; flex-direction: column; gap: 16px; font-weight: 500; line-height: 1.45; }
@media (max-width: 960px) { .safe { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .safe { grid-template-columns: 1fr; } }

/* languages */
.lang-show { display: grid; place-items: center; position: relative; padding: var(--s5) 0; }
.lang-show::before { content: ""; position: absolute; width: min(100%, 520px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--accent) 9%, transparent); }
.lang-show .ph { position: relative; width: min(64%, 270px); }
.lang-show .float.a { inset-inline-start: -9%; top: 16%; }
.lang-show .float.b { inset-inline-end: 0; bottom: 16%; }
@media (max-width: 960px) { .lang-show .float.a { inset-inline-start: 2%; top: 6%; } .lang-show .float.b { inset-inline-end: 2%; bottom: 8%; } }
.seg.big { margin: 0 0 var(--s2); }
.seg.big button { padding: 8px 20px; font-size: .95rem; }

/* how it starts */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); counter-reset: s; position: relative; }
.st3 { position: relative; padding: var(--s4); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.st3 .n { display: block; font-size: 3.4rem; line-height: 1; font-weight: 500; letter-spacing: -.04em; color: color-mix(in srgb, var(--accent) 22%, var(--line)); margin-bottom: var(--s3); font-variant-numeric: tabular-nums; }
.st3 h3 { font-size: 1.3rem; margin-bottom: 8px; }
.st3 p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } }

/* questions */
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center h2::before { inset-inline-start: 50%; transform: translateX(-50%); }
html[dir="rtl"] .section-head.center h2::before { transform: translateX(50%); }
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--accent-text); transition: background .2s, color .2s; }
.faq details[open] summary::after { content: "\2013"; background: var(--accent); border-color: var(--accent); color: #fff; }
.faq .ans { padding: 0 0 var(--s3); color: var(--muted); max-width: 46em; }
.faq .ans p { margin: 0 0 .6em; }

/* motion: only when js/motion.js switched it on (so without JS, and for people who asked for less motion, everything simply shows) */
.js-motion .reveal:not(.in) { opacity: 0; transform: translateY(16px); }
.js-motion .reveal { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.btn { transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) { .hub .lines line.flow, .hub .pulse { animation: none; } .hub .pulse { display: none; } .icard, .icard:hover { transform: none; transition: none; } .btn, .btn:active { transform: none; transition: none; } }

@media (max-width: 960px) { .hero { padding-top: var(--s6); } .hero-vis { margin-top: var(--s6); margin-bottom: -96px; } .hero + .after { padding-top: calc(96px + var(--s6)); } .band { padding: var(--s6) 0; } }
