/* ===== Trioty landing — base + components ===== */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;background:#FEFCF8;color:#1A1A1A;font-family:'Space Grotesk',sans-serif;-webkit-font-smoothing:antialiased;}
body[dir="rtl"]{font-family:'Tajawal','Space Grotesk',sans-serif;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;}
.tri-anchor{scroll-margin-top:88px;}

/* keyframes */
@keyframes triHeroIn{from{opacity:0;transform:translateY(22px);}to{opacity:1;transform:none;}}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;font-weight:600;cursor:pointer;border-radius:9999px;border:1px solid transparent;white-space:nowrap;line-height:1;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;}
.btn:active{transform:translateY(1px);}
.btn-md{height:44px;padding:0 20px;font-size:15px;}
.btn-lg{height:52px;padding:0 26px;font-size:16px;}
.btn-secondary{background:#FAB95B;color:#0E1628;}
.btn-secondary:hover{background:#f5ad42;box-shadow:0 10px 24px -10px rgba(250,185,91,.65);}
.btn-primary{background:#0E1628;color:#fff;}
.btn-primary:hover{background:#1b2c49;box-shadow:0 10px 24px -12px rgba(14,22,40,.6);}
.btn-primary:disabled{opacity:.6;cursor:default;}
.btn-outline{background:transparent;color:#0E1628;border-color:#0E1628;}
.btn-outline:hover{background:rgba(14,22,40,.06);}
.btn-full{width:100%;}
/* A CTA whose destination isn't supplied yet still looks live but does nothing. */
.btn[data-todo]{cursor:default;}

/* ===== Header ===== */
#hero-header{transition:background .3s ease,border-color .3s ease;}
.nav-pill .nav-links a{transition:color .2s ease;}
.nav-pill .nav-links a:hover{color:#fff !important;}
.nav-burger{display:none;}
/* Inline display:flex on .nav-menu beats the UA [hidden] rule, so enforce it here */
.nav-menu[hidden]{display:none !important;}
@media (min-width:761px){ .nav-menu{display:none !important;} }
@media (max-width:760px){
  .nav-pill .nav-links{display:none !important;}
  .nav-pill .nav-cta{display:none !important;}
  .nav-pill .nav-burger{display:inline-flex !important;}
}

/* ===== Hero (static, instant) ===== */
#hero{position:relative;background:#0E1628;color:#fff;overflow:hidden;}
#hero .hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
#hero .hero-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(14,22,40,.92) 0%,rgba(14,22,40,.72) 42%,rgba(14,22,40,.86) 100%);}
#hero .hero-inner{position:relative;max-width:840px;margin:0 auto;padding:clamp(72px,13vh,132px) 22px clamp(64px,11vh,116px);text-align:center;}
#hero .hero-kicker{animation:triHeroIn .7s cubic-bezier(.22,.7,.2,1) .05s both;}
#hero h1{animation:triHeroIn .8s cubic-bezier(.22,.7,.2,1) .16s both;}
#hero .hero-sub{animation:triHeroIn .8s cubic-bezier(.22,.7,.2,1) .28s both;}
#hero .hero-ctas{animation:triHeroIn .8s cubic-bezier(.22,.7,.2,1) .4s both;}
@media (max-width:560px){ #hero .hero-ctas .btn{width:100%;} }

/* ===== §2B buyer-journey walkthrough ===== */
/* Cards stretch to the tallest in the row, and `margin-top:auto` pushes every
   image to the bottom of its card. Since all four images share a width and an
   aspect ratio, bottom-aligning them also aligns their tops — so a caption that
   wraps to two lines no longer pushes its image down. */
.walk-strip{list-style:none;margin:clamp(24px,3vw,36px) 0 0;padding:0 0 6px;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(14px,2vw,22px);align-items:stretch;}
.walk-step{display:flex;flex-direction:column;min-width:0;}
.walk-head{margin-bottom:12px;min-width:0;}
.walk-step>.walk-frame{margin-top:auto;border:6px solid #0E1628;border-radius:24px;background:#0E1628;
  box-shadow:0 22px 42px -26px rgba(14,22,40,.55);overflow:hidden;}
@media (max-width:820px){
  /* Phone: a swipeable strip rather than four squeezed columns. */
  .walk-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:14px;
    margin-inline:calc(clamp(20px,4vw,32px) * -1);padding-inline:clamp(20px,4vw,32px);scrollbar-width:none;}
  .walk-strip::-webkit-scrollbar{display:none;}
  /* back to real flex items on the swipeable strip; a min-height on the caption
     keeps the images level across cards */
  .walk-step{flex:0 0 68%;max-width:280px;scroll-snap-align:start;}
}

/* ===== §8 Application form ===== */
.apply-card{background:#fff;border:1px solid #ECE8DF;border-radius:22px;padding:clamp(22px,3.4vw,34px);box-shadow:0 24px 56px -34px rgba(14,22,40,.3);display:flex;flex-direction:column;gap:20px;}
.fld{display:flex;flex-direction:column;gap:9px;}
.fld-l{font-size:15px;font-weight:600;color:#0E1628;}
.fld-h{font-size:13px;color:#888780;}
.inp{width:100%;height:50px;border:1px solid #DAD5C9;border-radius:12px;padding:0 15px;font-family:inherit;font-size:16px;color:#1A1A1A;background:#FEFCF8;outline:none;transition:border-color .2s ease,box-shadow .2s ease;}
.inp:focus{border-color:#0E1628;box-shadow:0 0 0 3px rgba(14,22,40,.1);}
select.inp{appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F5E5A' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-size:18px;background-position:right 15px center;padding-inline-end:44px;}
body[dir="rtl"] select.inp{background-position:left 15px center;padding-inline-end:44px;}
.chip-row{display:flex;flex-wrap:wrap;gap:9px;}
.chip{font-family:inherit;font-size:14px;font-weight:600;color:#5F5E5A;background:#FEFCF8;border:1px solid #DAD5C9;border-radius:9999px;padding:11px 17px;cursor:pointer;transition:all .18s ease;}
.chip:hover{border-color:#0E1628;color:#0E1628;}
.chip-on{background:#0E1628;border-color:#0E1628;color:#fff;}
.apply-err{margin:0;font-size:14px;font-weight:600;color:#8F2C0C;background:#FBE9E3;border:1px solid #F0CDBF;border-radius:10px;padding:12px 14px;}

/* ===== §11 final CTA ===== */
@media (max-width:560px){ .final-cta .btn{width:100%;} }

/* ===== Bento grid ===== */
.bento{display:grid;gap:16px;grid-template-columns:repeat(6,1fr);}
.bento>.b2{grid-column:span 2;}
.bento>.b3{grid-column:span 3;}
.bento>.b4{grid-column:span 4;}

/* ===== §7 category cards (same floating visual the brand strip used) ===== */
.brand-stage{height:300px;max-width:1240px;}
.brand-stage .brand-card{position:absolute;}
@keyframes triFloatT{0%,100%{translate:0 0;}50%{translate:0 -9px;}}
.brand-stage .brand-card{animation:triFloatT 5.6s ease-in-out infinite;}
.brand-stage .brand-card:nth-child(2){animation-duration:6.1s;animation-delay:.3s;}
.brand-stage .brand-card:nth-child(3){animation-duration:5.8s;animation-delay:.6s;}
.brand-stage .brand-card:nth-child(4){animation-duration:6.3s;animation-delay:.2s;}
.brand-stage .brand-card:nth-child(5){animation-duration:5.5s;animation-delay:.8s;}
.brand-stage .brand-card:nth-child(6){animation-duration:6.4s;animation-delay:.5s;}
.brand-stage .brand-card:nth-child(7){animation-duration:5.9s;animation-delay:1s;}

/* ===== §4 pain carousel ===== */
.testi-card{display:flex;align-items:stretch;text-align:start;}
.testi-photo{flex:0 0 44%;position:relative;}
.testi-body{flex:1;display:flex;flex-direction:column;justify-content:center;}
.testi-peek{display:block;}

/* ===== Responsive ===== */
@media(max-width:1000px){.testi-peek{display:none !important;}}
@media(max-width:900px){.bento{grid-template-columns:repeat(2,1fr);}.bento>.b2,.bento>.b3,.bento>.b4{grid-column:span 1;}.bento>.bwide{grid-column:span 2;}}
@media(max-width:820px){.brand-stage{height:auto !important;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;}.brand-stage .brand-card{position:static !important;transform:none !important;animation:none !important;translate:none !important;box-shadow:0 10px 24px -12px rgba(0,0,0,0.6) !important;}}
@media(max-width:640px){.testi-card{flex-direction:column;}.testi-photo{flex:none !important;height:240px;}}
@media(max-width:560px){.bento{grid-template-columns:1fr;}.bento>*{grid-column:span 1 !important;}}

/* scroll-reveal (JS-gated so no-JS / crawlers still see everything) */
.js-anim .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s cubic-bezier(.22,.7,.2,1),transform .7s cubic-bezier(.22,.7,.2,1);}
.js-anim .reveal.in{opacity:1;transform:none;}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  #hero .hero-kicker,#hero h1,#hero .hero-sub,#hero .hero-ctas{animation:none !important;}
  .brand-stage .brand-card{animation:none !important;}
  .js-anim .reveal{opacity:1 !important;transform:none !important;}
}
