/* Trustera home: minimal content, a strong hero, very quiet motion elsewhere. Base tokens and header/menu come from v2.css.
   Palette: graphite #0B0C0F · policy gold #F5B83D · allowed green #3DDBB4 · violation red #FF5D5D.
   Motion only runs under html.motion (added by v2-home.js when prefers-reduced-motion is off); transforms and opacity only. */
.home { --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace; --soft: #5D6270; --rule: #E3DCD0; --ease: cubic-bezier(.2, .7, .2, 1); --dir: 1; }
html[dir="rtl"] .home { --dir: -1; }
.lang-pending .topbar, .lang-pending main, .lang-pending .site-footer { visibility: hidden; }  /* see lang-init.js */

/* ---------- header ---------- */
.brand-group { display: flex; align-items: center; gap: 12px; }
.home .lang-short { min-width: 40px; min-height: 34px; padding: 4px 10px; border: 1px solid #D6CDBB; border-radius: 8px; background: transparent;
  color: #41434A; font: 600 13px "IBM Plex Sans", sans-serif; letter-spacing: .04em; cursor: pointer; transition: border-color .2s, color .2s; }
.home .lang-short:hover, .home .lang-short:focus-visible { border-color: #885717; color: #17181C; }
.login-link { color: #41434A; font-weight: 650; text-decoration: none; padding: 8px 10px; }
.login-link:hover { color: #17181C; text-decoration: underline; }
.home .v2-nav a { position: relative; padding-block: 6px; transition: color .2s; }
.home .v2-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: #F5B83D;
  transform: scaleX(0); transition: transform .3s var(--ease); }
.home .v2-nav a:hover::after, .home .v2-nav a.active::after { transform: scaleX(1); }
.home .v2-nav a.active { color: #17181C; }
.home .topbar.menu-open .v2-nav a::after { display: none; }
.home .product-button { transition: background-color .2s, border-color .2s; }
.home .product-button-primary { box-shadow: none; }

/* ---------- reveal on scroll (fade + slight rise, once) ---------- */
.motion main section [data-reveal] { opacity: 0; transform: translateY(12px); }
.motion main section.in [data-reveal] { opacity: 1; transform: none;
  transition: opacity .7s var(--ease) calc(var(--d, 0) * 90ms), transform .7s var(--ease) calc(var(--d, 0) * 90ms); }

/* ---------- hero ---------- */
.home .product-hero { background: #0B0C0F; }
.home .hero-layout { grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); min-height: 0; padding-block: clamp(56px, 8vw, 104px); }
.home .hero-copy { padding-block: 0; }
.home h1.hero-simple { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 20px; max-width: 720px; }
html[lang="ar"] .home h1.hero-simple { line-height: 1.4; letter-spacing: 0; }
.home .hero-description { font-size: clamp(16px, 1.6vw, 19px); color: #C9CCD4; max-width: 600px; line-height: 1.75; }
.home .product-buttons { margin-block-start: 30px; }

.verify-panel { background: #121419; border: 1px solid #262A33; border-radius: 16px; padding: 18px 22px 22px; color: #E8E8EA; }
.vp-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #8B909C; margin-bottom: 16px; }
.vp-replay { margin-inline-start: auto; background: none; border: 0; color: #8B909C; padding: 2px 4px; font: inherit; font-size: 12px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #3A3D45; transition: color .2s; }
.vp-replay:hover, .vp-replay:focus-visible { color: #F5B83D; }
.vp-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; color: #B9BCC6; }
.vp-count { font: 700 18px "IBM Plex Sans", sans-serif; font-variant-numeric: tabular-nums; }
.vp-count.ok { color: #3DDBB4; } .vp-count.bad { color: #FF8A8A; transition: color .4s; }
.motion .verify-panel:not(.s5) .vp-count.bad { color: #C9CCD4; }
.vp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.vp-chips li { font-size: 13px; padding: 5px 11px; border-radius: 99px; border: 1px solid #F5B83D55; color: #F3E2B8; background: #1A1710; }

/* the request: policy node -> wire -> partner node; the packet travels by the wire's width (container units, transform only) */
.vp-wire { position: relative; height: 18px; margin: 20px 0 6px; container-type: inline-size; }
.vp-node { position: absolute; top: 2px; width: 14px; height: 14px; box-sizing: border-box; }
.vp-node.policy { inset-inline-start: 0; border-radius: 4px; background: #F5B83D; }
.vp-node.partner { inset-inline-end: 0; border-radius: 50%; border: 2px solid #3DDBB4; }
.vp-line { position: absolute; top: 8px; inset-inline: 20px; height: 2px; border-radius: 2px; background: #2A2D35; overflow: hidden; }
.vp-line::after { content: ""; position: absolute; inset: 0; background: #F5B83D; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
html[dir="rtl"] .vp-line::after { transform-origin: right; }
.s2 .vp-line::after { transform: scaleX(1); }
.vp-packet { position: absolute; top: 4px; inset-inline-start: 20px; width: 10px; height: 10px; border-radius: 3px; background: #F5B83D; opacity: 0; }
.motion .s2:not(.s3) .vp-packet { animation: packet .9s var(--ease) forwards; }
@keyframes packet { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 100% { opacity: 1; transform: translateX(calc(var(--dir) * (100cqw - 50px))); } }
.vp-sending { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #6F7480; margin: 0 0 14px; }
.vp-sending span:nth-child(2) { color: #8B909C; opacity: 0; transition: opacity .4s; }
.s2 .vp-sending span:nth-child(2) { opacity: 1; }

.mini-fields { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.mini-fields li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #C9CCD4; transition: color .4s, opacity .5s var(--ease), transform .5s var(--ease); }
.mark-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 800; flex: none;
  background: #2A2D35; color: transparent; transition: background-color .4s, color .4s; }
.s4 .mini-fields li.ok { color: #E8E8EA; }
.s4 li.ok .mark-icon { background: #3DDBB4; color: #0B0C0F; }
.mini-fields li.bad { color: #FF8A8A; }
li.bad .mark-icon { background: #FF5D5D; color: #fff; }
.motion .vp-chips li { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--ease) calc(var(--d, 0) * 120ms), transform .45s var(--ease) calc(var(--d, 0) * 120ms); }
.motion .s1 .vp-chips li { opacity: 1; transform: none; }
.motion .mini-fields li { opacity: 0; transform: translateY(6px); transition-delay: calc(var(--d, 0) * 130ms); }
.motion .s3 .mini-fields li.ok, .motion .s5 .mini-fields li.bad { opacity: 1; transform: none; }
.motion .s4 .mini-fields li.ok { transition-delay: 0s; }
.motion .s4 li.ok .mark-icon { transition-delay: calc(var(--d, 0) * 110ms); }
.mini-result { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #23262D; font-weight: 700; color: #FFB3B0; line-height: 1.6; }
.motion .mini-result { opacity: 0; transform: translateY(4px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .s6 .mini-result { opacity: 1; transform: none; }

/* ---------- plain sections ---------- */
.plain-section { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--rule); }
.plain-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.3; margin: 0 0 10px; font-weight: 700; }
.plain-lead { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.7; max-width: 640px; }

/* ---------- how it works: four steps joined by one line ---------- */
.four-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.four-step { position: relative; }
.four-step:not(:last-child)::after { content: ""; position: absolute; top: 17px; inset-inline-start: 46px; inset-inline-end: -12px; height: 1px; background: #D6CDBB; }
.four-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid #D6CDBB; background: #F6F3EA; box-sizing: border-box;
  color: #885717; font: 700 14px "IBM Plex Sans", sans-serif; transition: background-color .25s, border-color .25s, color .25s; }
.four-step:hover .four-n { background: #F5B83D; border-color: #F5B83D; color: #19140E; }
.four-step h3 { margin: 16px 0 6px; font-size: 18px; }
.four-step p { margin: 0; color: var(--soft); line-height: 1.65; }

/* ---------- challenge: title, one line, one button ---------- */
.challenge-band { background: #FBFAF6; }
.challenge-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.challenge-inner .product-button { flex: none; }

/* ---------- who uses Trustera: three columns, no boxes ---------- */
.audience-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.audience-list li { border-top: 2px solid var(--rule); padding-top: 18px; transition: border-color .3s; }
.audience-list li:hover { border-top-color: #F5B83D; }
.audience-list h3 { margin: 0 0 6px; font-size: 17px; }
.audience-list p { margin: 0; color: var(--soft); line-height: 1.65; }
.sectors-line { margin: 28px 0 0; color: #3A3D45; line-height: 1.8; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; margin-top: 18px; max-width: 860px; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); padding: 16px 2px; }
.faq-item summary { cursor: pointer; font-weight: 650; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: #885717; font-weight: 500; font-size: 20px; line-height: 1; transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: #885717; }
.faq-item p { margin: 10px 0 2px; color: #3A3D45; line-height: 1.8; max-width: 760px; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.member { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 16px; }
.member-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 12px; background: #0B0C0F; }
.member h3 { margin: 0 0 4px; font-size: 16px; }
.member p { margin: 0; color: var(--soft); font-size: 14px; }
.member-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: #0A66C2; font-weight: 600; font-size: 14px; text-decoration: none; }
.member-link:hover, .member-link:focus-visible { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: #0B0C0F; color: #C9CCD4; padding-block: 44px 26px; }
.site-footer .brand { color: #F2F2F0; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.footer-row > .brand { margin-inline-end: auto; }
.footer-col { display: grid; gap: 8px; }
.footer-col h3 { margin: 0 0 2px; font-size: 13px; font-weight: 700; color: #8B909C; letter-spacing: .02em; }
.footer-col a { color: #E8E8EA; text-decoration: none; transition: color .2s; }
.footer-col a:hover, .footer-col a:focus-visible { color: #F5B83D; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { transition: transform .25s var(--ease); }
.social:hover svg, .social:focus-visible svg { transform: translateY(-2px); }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid #23262D; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 13px; color: #8B909C; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .home .hero-layout { grid-template-columns: 1fr; }
  .four-steps { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .four-step:nth-child(2)::after { display: none; }
  .audience-list { grid-template-columns: 1fr; gap: 22px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home .product-nav-actions { display: none; }
  .home .brand-group { gap: 8px; }
  .home .menu-toggle .menu-label { display: none; }
}
@media (max-width: 560px) {
  .home .product-buttons .product-button { flex: 1 1 100%; text-align: center; }
  .verify-panel { padding: 16px 16px 18px; }
  .four-steps { grid-template-columns: 1fr; gap: 0; }
  .four-step { display: grid; grid-template-columns: 34px 1fr; column-gap: 16px; padding-bottom: 24px; }
  .four-step .four-n { grid-row: span 2; }
  .four-step h3 { margin: 5px 0 4px; }
  .four-step:not(:last-child)::after, .four-step:nth-child(2)::after { display: block; top: 40px; bottom: 4px; inset-inline-start: 16.5px; inset-inline-end: auto;
    width: 1px; height: auto; }
  .challenge-inner .product-button { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
}
